Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arghwhat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
811.
▲
by
arghwhat
3y ago
That's for a journalling filesystem. For CoW filesystems, the issue is that any change to the filesystem is done by making a new file tree containing your change, and then updating the root to point the new tree. Later, garbage collect
812.
▲
by
arghwhat
3y ago
As a Dane from central Copenhagen, I'm not sure where you'd get that idea from. While most would agree that fresh food tastes better (unless it's pizza, that jury is out on that one), that doesn't mean we're too pos
813.
▲
by
arghwhat
3y ago
If it's anything like Denmark, it's just that nobody local ever does it, and so we never learn that it is an option. Then we suddenly see a foreigner do it and wonder what other options we've missed and start to wish life c
814.
▲
by
arghwhat
3y ago
Bonus fun fact: People in ketosis tend to have a breath with a hint of nail polish remover. This is because one of the ketone bodies is acetone, a result of spontaneous breakdown of one of the other ketone bodies. Only the liver can break d
815.
▲
by
arghwhat
3y ago
No, it is the opposite. Ketone bodies are an emergency pathway of sorts. When in a high-glucagon and low-insulin state (that is, there is a demand for more fuel in the bloodstream than is present), after the liver has used up its glycogen s
816.
▲
by
arghwhat
3y ago
I suspect you might have misunderstood how fat storage and metabolism works. When your pancreas releases glucagon, adipose tissue (compromised mostly of adipocytes - "fat cells") respond with lipolysis, converting their stores of
817.
▲
by
arghwhat
3y ago
Just make sure to screen any donors for Eldian ancestry.
818.
▲
by
arghwhat
3y ago
The prion protein, which is the specific protein that can misfold to cause prion disease, is vastly more abundant in nervous tissue.
819.
▲
by
arghwhat
3y ago
You can, but to win ridiculous cases you need massively out-lawyer the defendant. It's a lot easier for a big company to out-lawyer a handful of individuals than the other way around.
820.
▲
by
arghwhat
3y ago
Note that emulators for all(?) other Nintendo consoles remain available, and were available while the consoles were relevant. There is little Nintendo can do as long as the authors actively steer clear of guiding/condoning piracy or gu
821.
▲
by
arghwhat
3y ago
> Yes, they're changing one aspect of signal handler use to work around this problem. They're not stopping the use of signal handlers in general. Hotspot continues to use signals for efficiency in general. See https:/
822.
▲
by
arghwhat
3y ago
> No, you get EFAULT. System calls don't work that way. `ppoll(2)` is a C library function you call. On glibc, depending on which implementation you hit on your architecture, the `ppoll` call will segfault before the syscall if yo
823.
▲
by
arghwhat
3y ago
> That is not accurate. If I have a single-threaded program sitting around a ppoll(2) loop and a signal can arrive only inside my main loop ppoll(), then I know a priori that my signal handler can't be interrupting non-reentrant cod
824.
▲
by
arghwhat
3y ago
> Please, knock it off with the value judgements. "Ill-advised" according to whom? You? Why should your opinion prevail? Ill-advised as per the authors decision to remove said hack as it brought none of the intended benefits. O
825.
▲
by
arghwhat
3y ago
> Also, there's a lot more you can do in a signal handler than just set a flag: you can longjmp or even make calls to regular functions. ... As long as the called functions are fully async-signal-safe/reentrant. It used to be e
826.
▲
by
arghwhat
3y ago
This did not improve performance, it was just an unnecessary hack. The authors agree, as they removed it realizing it was not an optimization. UNIX signals are in no way or form direct translations of hardware CPU traps. The kernel handle
827.
▲
by
arghwhat
3y ago
The "safe fetch" code relies on a signal handler (either here https://github.com/openjdk/jdk/blob/48717d63cc58f693f0917e61... or here https://github.com/openjdk/jdk/blob&#x
828.
▲
by
arghwhat
3y ago
Despite what the other commenters are saying, it is bizarre. 1. There is very little you can safely do in a signal handler. For a threaded application, that pretty much boils entirely down to setting a bit and leaving it at that. If they
829.
▲
by
arghwhat
3y ago
The kernel decided to have a different uAPI on different architectures. This is not just struct size that might differ, but the fields available and their possible values. Imagine a JSON field being a numeric constant in one arch, but a str
830.
▲
by
arghwhat
3y ago
Do the same to a JSON array. Position having meaning is a common part of most data representations, not something specific to structs. If you need to, you can also engineer order independence in structs with arrays of type and value union
831.
▲
by
arghwhat
3y ago
Having to know structs is not really an issue - you also need to know text formats, JSON schemas, what not. Re-ordering of structs is always forbidden with the binary format being strictly specified, so there's nothing to worry about t
832.
▲
by
arghwhat
3y ago
Now, proper plan9-style namespaces, that I miss. :) User namespaces are still a hell of a lot clunkier than "each process inherits its parents' namespace".
833.
▲
by
arghwhat
3y ago
There are named files (which have a file path) and anonymous files (which do not). You can see these in /proc/$PID/fd/$FD if you're curious - when the link doesn't start with '/', it's a
834.
▲
by
arghwhat
3y ago
nit: The ioctl syscall targets files just the same as the write syscall. Everything being a file, and everything being read/write calls are different things. There's pros and cons.
835.
▲
by
arghwhat
3y ago
A more accurate term is that everything is a file descriptor . The main difference is that plan9 uses read and write for everything, whereas Linux and BSD uses ioctls on file descriptors for everything.
836.
▲
by
arghwhat
3y ago
That is to say, they are allowed to provide certain mandatory security services where justified for free .
837.
▲
by
arghwhat
3y ago
It does not triple resolution. Subpixel rendering can only be used to smooth full pixel lines - this introduces color fringing on the sides of font glyphs, but one that can sometimes be ignored when the smoothed lines are thick enough to di
838.
▲
by
arghwhat
3y ago
Subpixel AA does not have significant benefits over greyscale AA on 1440p or similar displays, and it always have all the downsides. If you're rocking a large 1080p display and never share your screen (including screenshots), sure. A
839.
▲
by
arghwhat
3y ago
> I'm not an ES[0-9] ninja enough to know what the practical implication is of those decisions Well, it makes it non-compliant and makes it unable to run some (horrible, yet compliant) ES5 scripts. "undefined", "argum
840.
▲
by
arghwhat
3y ago
The animation clarifies the change. A user, heck even I could be confused by an instantaneous touch toggle. Why? Because my finger covers it during the press, so I would not see the change happen - if my mindset was "change that settin
More ›