Recent submissions

Comment · 1 month ago
In this case, IIUC the swap-restore mechanism just can’t use fragmented files because it runs before filesystem drivers can do their work. So it just gets an offset and probably derives the length from a header stored there, using raw disk accesses to thaw the RAM contents.

In general terms though, I hear disk fragmentation still makes a difference, f.ex. because disk page sizes don‘t match filesystem extent sizes, and disk optimizations like prefetching or even garbage collection work better with contiguous data.

Comment · 1 month ago
That’s my point, it’s different for each distro & partitioning setup, so I wouldn’t know what to share here. Having a swap partition makes it as easy as adding `resume=/dev/sdXYZ` or `resume=UUID=…` to your kernel parameters.
Comment · 1 month ago
swap files make setting up hibernation a bit more complicated - in most cases the file has to be contiguous, e.g. you have to defragment it once after allocating. Then, you need to tell the bootloader the byte offset of the file on the partition.
Comment · 1 month ago
It‘s going to be a godsend for people with M1 macs when Apple or App vendors decide to drop support for them.

The hardware is super capable and will make a great fileserver, TV box or HomeAssistant instance once I‘m done using it as daily driver.

Similarly, because of distros like Fedora and Ubuntu, I can keep using a 15y old Samsung notebook with a modern firefox, whereas Windows 8 already broke Samsung‘s display brightness driver and thermal management, and 10&11 are entirely unusable.

Comment · 6 months ago
Demand would go down, so meat companies would reduce breeding to reduce output. Or start an ad & lobbying campaign to increase demand again.
Comment · 10 months ago
A couple years ago, I was at a station waiting for a (delayed) ICE train. I couldn't buy a ticket at the machine or with the app, since the train had already departed (if it had been on schedule). The ticket machine also wouldn't take VISA / MasterCard, only the more common Girocard (most people still call it EC)

Later, in the train, when I asked the conductor to buy a ticket with my Girocard, he said "That's not a commonly used payment method" and asked for VISA, or cash (not having any to provide change, obviously).

Comment · 1 year ago
If my math is right, that gives you 83 clock cycles to calculate a single sample. on a 16 core, theoretically 1333 cycles. that‘s not a lot, considering you don‘t nearly 100% of the cpu all the time.
Comment · 2 years ago
That same graph had me jump towards the sampling theorem - playing back an animation with linear interpolation creates hard edges, e.g. frequency spikes. I‘m not sure if the movement space is comparable to audio here, but I can‘t see why not.

so; if the sampling theorem applies; having 2x the maximum movement „frequency“ should be enough to perfectly recreate them, as long as you „filter out“ any higher frequencies when playing back the animation by using something like fft upscaling (re-sampling) instead of linear or bezier interpolation.

(having written this, I realize that‘s probably what everyone is doing.)

Comment · 3 years ago
Most languages with macro or templating should be able to define this behavior as a library. Rust and C++ come to mind, for example.
Comment · 3 years ago
is this satire? I honestly can’t tell.
Comment · 3 years ago
Fellow German here, I’ve experienced a total of ~2 hours, in one single outage, about 20 years ago. Not even a single brownout since.
Comment · 4 years ago
Hmm… That makes sense. Though if you are building from source, the only gain you have over regular go tooling is downloading from your favorite mirror rather than github&co. I hope it doesn’t install these source-packages for prebuilt binaries…
Comment · 4 years ago
What are the golang- packages about in OpenSUSE? Go doesn‘t support dynamic linking (except for non-go-pieces like glibc or via cgo). Do they contain source-code? Or pre-built .a‘s? Both would have a hard time not conflicting with go‘s own build tooling, right?
Comment · 4 years ago
If you want to use this as a toy, sure. But please don’t rely on it for messages you want to actually get delivered: These gateways frequently drop messages for random reasons, or block your IP if you send more than a few messages at a time. Also, in countries other than the US, expect the gateways to be long gone, or completely unreliable.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton