Open bucket.svc.moebucket.svc.moe/uploads/wss/life.html
wss (WebAssembly-to-CSS transpiler)
A WebAssembly-to-CSS transpiler that runs Conway's Game of Life, displaying the grid and memory visualizer. Includes a pure-CSS version.
Visit project- First shared
- Nov 3, 2026
- HN activity
- 50
Show HN@iridisNov 3, 2026
Show HN: Run Conway's Game of Life in CSS
Repository: https://github.com/el-ev/wss This project is heavily inspired by Lyra Rebane's x86CSS (https://lyra.horse/x86css/). So I built a WebAssembly-to-CSS transpiler and spent some time optimizing its output. This is one of the programs it produced: the program runs Conway's Game of Life, store the grid in memory, then display the grid as well as buffers in the memory visualizer. The program polls the on-screen keyboard once every few cycles when it needs input, so you may need to hold a key down for a second or more for it to register. You may notice there's still a piece of JS in the page, which provides a faster and more reliable clock to the CSS runtime. Without JS, a CSS animation drives the runtime at about 1s per cycle. You can try the pure-CSS version at https://bucket.svc.moe/uploads/wss/life_nojs.html . It is slower but at a playable speed.