HNHacker News
TopNewBestAskShowJobs

andreespirela

7 karma · joined April 11, 2024

submissionscomments
andreespirela··on Painting a fractal with a pool of WebAssembly threads (Rust, in the browser)
Some context: fusor is a Rust web framework with components as plain .html files. This demo page is a fusor app.

The picture is painted by a pool of Wasm threads, tile by tile. Race pits one thread against all of them (1,991 ms vs 216 ms on my M4 Pro with 14 threads), the checkbox colors each tile by the thread that painted it.