Richard Boulton
rboulton.bsky.social
Richard Boulton
@rboulton.bsky.social
Though thinking further, how would an operating system recover from a permanent error without this behaviour? All future fsyncs would return errors as it continued to fail to sync to a broken disk. So, probably a pragmatic decision.
January 25, 2025 at 2:06 PM
It's hard to avoid concluding that the fsync() behaviour here is just broken. I can't think of a justification for returning success from the second fsync while having pages which haven't been synced.
January 25, 2025 at 11:33 AM
Storage wars - is that something like Cache in the Attic?
December 30, 2024 at 10:49 PM
Verdict: Leftfield - Original is still the best music to watch www.youtube.com/watch?v=SILV...
Leftfield - Original
YouTube video by LeftfieldVEVO
www.youtube.com
December 30, 2024 at 10:21 PM
One surprise has been how nice the Rust ecosystem for programming this has been - I'm using github.com/rp-rs which was just the first thing that came up. I expected a lot of device support to be skeletal at best, but everything I wanted was there, and pretty easy to put together.
rp-rs
Rust on the RP series of microcontrollers. https://matrix.to/#/#rp-rs:matrix.org - rp-rs
github.com
December 30, 2024 at 10:13 PM
And I do mean easily. Here's my code github.com/rboulton/pla... - it's a few bits of Rust thrown together with zero thought for efficiency or cleanliness, but it's sitting here analysing the sound of my typing and flashing pretty lights at something like 50FPS, without breaking any kind of a sweat.
GitHub - rboulton/plasma-lights: Code for a pimoroni plasma2040 to flash lights in response to music
Code for a pimoroni plasma2040 to flash lights in response to music - rboulton/plasma-lights
github.com
December 30, 2024 at 10:12 PM
I first played with this kind of thing in the late 90s. At that time, I needed the full resources of a desktop PC to perform this kind of analysis. The fact that a roughly £1 microcontroller can do it easily is something I find quite incredible.
December 30, 2024 at 10:03 PM
Rather than just software, I've been playing with simple hardware - a string of ws2812 leds, a shop.pimoroni.com/products/pla... and a cheap electret microphone. Total cost around £30. General idea - record an audio signal, perform an FFT to get the frequencies, massage them into something pretty.
Plasma 2040
Swathe everything in rainbows with this all-in-one, USB-C powered controller for WS2812/Neopixel and APA102/Dotstar addressable LED strip.
shop.pimoroni.com
December 30, 2024 at 9:56 PM