Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
destructionator
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
destructionator
3y ago
> Xorg being removed. What does this mean? It means your distro is terrible and it is time to switch. The author of this blog works for Red Hat though, so he won't speak that particular truth.
32.
▲
by
destructionator
3y ago
I've played with this a bit over the years, starting with my automatic form generator for the web back in 2011 based on function arguments (coupled with an automatic data to html thing to see the function output), and more recently som
33.
▲
by
destructionator
3y ago
Translating small syntax differences like that are easy to do by machine if you have to.
34.
▲
by
destructionator
3y ago
Hmm, yeah, I never saw any internal stuff (I'm just a random person on the internet), but my impression from public info is they had a few isolated individuals experiment with it on small projects but the company never formally adopted
35.
▲
by
destructionator
3y ago
> Many projects were written in D. What's your source on this?
36.
▲
by
destructionator
3y ago
I joined a number of patreon things and i liked how it just billed me the one thing a month and it was pretty easy to stop it all on the one website, but i recently tried joining a new one and it asked for my payment info again and had a di
37.
▲
by
destructionator
3y ago
What I like about D is if you already know it, it can adapt to just about anything you want, from these kind of shorter "scripts" to experimenting on bare metal to regular applications. But yeah, if you already know ruby and pytho
38.
▲
by
destructionator
3y ago
I have D code I wrote back in 2008 that still works fine today. That said, there are often small breakages scattered around and it can be annoying. If it is your own code, you spend the 5-10 minutes to update it (with some exceptions, the l
39.
▲
by
destructionator
3y ago
> Well, it makes the project unprofessional. Next time I hire a professional, I'll be sure to call them unprofessional when they hand me a bill. A real professional doesn't expect to be paid!
40.
▲
by
destructionator
3y ago
Caps lock is great when you are typing one-handed.
41.
▲
by
destructionator
3y ago
On Windows, the normal ReadFile function can return synchronously or async (if you pass the appropriate arguments to it) depending on presence in the cache. Since it is all one atomic operation, there's no race condition; you just call
42.
▲
by
destructionator
3y ago
This test doesn't include epoll in any significant fashion at all, and also doesn't apply to network operations. The libuv thing is specifically about disk files, which linux doesn't really support with epoll (epoll just alwa
43.
▲
by
destructionator
3y ago
libuv's implementation of "async" disk i/o brings massive overhead (somewhat necessarily on linux, totally unnecessarily on other systems), so just about anything (including just switching to straight blocking read/
44.
▲
by
destructionator
3y ago
The client is given an XConfigureEvent when it is moved and can compare it against the monitor's bounding boxes (which it caches in between xrandr change notifications) and rescale itself. Doesn't work with legacy applications...
45.
▲
by
destructionator
3y ago
You can do it with client side scaling in X (which is also the preferred solution on systems like Windows, since an application can scale itself better than a generic compositor anyway).
46.
▲
by
destructionator
3y ago
First, you can simply not use trash frameworks and get better results. But more importantly, drawing pixels is just one part of a gui and focusing on that without considering the other parts hurts. I've been testing input devices on re
47.
▲
by
destructionator
4y ago
> Are you doing different scaling per monitor in X11? I do this, but only some applications cooperate. I couldn't even figure out how to configure it right on kde even though the underlying capability is there. It definitely isn
48.
▲
by
destructionator
4y ago
I use tons of things on it. When I use my laptop, often I'll run a local browser (though sometimes I run remote browsers too - Chromium's core works actually surprisingly well on a remote X link - but the bigger problem there is t
49.
▲
by
destructionator
4y ago
He claims gedit does 130 blocking InternAtom calls, 34 blocking GetProperty calls, and 116 property change requests. None of those are actually using the available async functions (or even available XInternAtoms call to batch all those 130
50.
▲
by
destructionator
4y ago
It isn't really Wayland's calls itself, I prolly stretched too much there, but the main thing is the async discussion usually comes up in the context of running applications remotely, which Wayland simply doesn't support. If
51.
▲
by
destructionator
4y ago
> That graceful degradation is in practice the same, as just using Wayland. Ever tried to use modern X11 app over network? RDP is vastly better experience, (and RDP support is wip in wayland). I do, in fact, use modern X11 apps over the
52.
▲
by
destructionator
4y ago
This isn't that different than X though which also has the fire off a message and receive event back. Very few of the functions actually make you want (even in xlib, which wraps the protocol itself to be a bit easier to use from C, the
53.
▲
by
destructionator
4y ago
> But even with that it's STILL possible with the right setup using xrandr where you essentially render at a higher res and then downscale. You actually don't even have to do this for updated programs - hidpi aware applications
54.
▲
by
destructionator
4y ago
This link comes up in literally every Wayland thread and it is even more bullshit now than it was in 2013 when it was first posted (and it was bullshit then too). It is titled "the real story" but it is quite the opposite. A few k
55.
▲
by
destructionator
4y ago
> The fact that any Xorg client can become a key logger without any user input or authentication is a pretty big security hole imo. This "hole" doesn't exist. For an X client to capture input, it must be authenticated by e
56.
▲
by
destructionator
4y ago
> I’m speaking of the consequences of Xorg’s basic lack of isolation (because it wasn’t designed for use cases where that matters): that granting access to the X socket allows you to inspect, intercept and modify inputs and outputs for
57.
▲
by
destructionator
4y ago
> Do you think the Xorg devs are spreading lies about Xorg? Some are, yes, this is incontrovertibly true. But this one? You should hit the "history" button that's in the corner of every wiki. That page hasn't been edi
58.
▲
by
destructionator
4y ago
> the likes of Xorg really aren’t designed for that use case. Bullshit. Would be nice if people were to stop spreading these outright lies.
59.
▲
by
destructionator
4y ago
D rarely has copy on write. It will just plain copy certain types on assignment though so perhaps that's what you meant.
60.
▲
by
destructionator
4y ago
D is realistically somewhere in a middle ground between C and Rust for kernel work. It leans more toward familiarity for C programmers with some added safety checks (indeed, you do lose something by not using a garbage collector, but you ca
More ›