News for hackers. Stuff that matters.

clebert

Show HN: Ticking Away, a Dark Side of the Moon Watchface Written in Zig

https://clebert.github.io/ticking-away/

I built a watchface inspired by Pink Floyd's "Dark Side of the Moon". A prism that refracts light into a rainbow to show the time. The minute hand is a light ray, the rainbow points at the hour.It's written in Zig, which lets me target the browser (WASM), a Raspberry Pi Zero 2 W driving a 13.3" e-ink display as a wall clock, a Pico 2 for bare-metal battery operation, and eventually the Pebble...

( Read More... | no comments | 2 points | on HN )
I love the use of `@hasDecl(root, "mime_types")`. I didn't realize that `@import("root")` was a thing.

https://github.com/cztomsik/tokamak/blob/main/src/mime.zig