Better HN
topnewbestaskshowjobs
Log inSign up

sandydooo

2 karma · joined Oct 15, 2015 (11y ago) · 5 submissions

machine shepherd hey@sandydoo.me
Submissions

comment 4y ago · link · parent

> I'd be curious to profile the official program and see what's hogging the GPU so much...

It's a fluid simulation. Compute shaders, compute shaders, compute shaders.

comment 4y ago · link · parent

I had 2 requirements starting out:

1. It absolutely had to run in the browser. 2. I wanted the option of shipping native binaries later on, e.g. screensavers

This narrows the choice to something that can compile to WASM and has bindings for WebGL/OpenGL. Rust has substantial support for these technologies, there's an active graphics community, and, personally, it felt approachable for someone without experience with C/C++.

Also, I write Haskell/Elm for a living. I don't need much convincing to pick up another typed, memory-safe language.

comment 4y ago · link · parent

Hey, everyone!

This is Flux — a fluid simulation inspired by the Drift screensaver that first shipped with MacOS Catalina. You can adjust all sorts of settings in the control panel: colors, fluid, noise parameters, and more.

I built this as a fun challenge to learn Rust and dig into low-level graphics programming. In the browser, it runs on WebGL2 and WebAssembly, and the control panel is built with Elm. The GL bindings are cross-platform (via glow), so I’d like to eventually release native versions (screensavers, anyone?)

Source code: https://github.com/sandydoo/flux

4.

Show HN: An ode to the macOS Drift screensaver that runs in the browser(flux.sandydoo.me ↗)

3 points · by sandydooo · 4y ago · 2 comments

comment 11y ago · link · parent

You can leave feedback: https://news.ycombinator.com/item?id=10489499