{"by":"andrewosh","descendants":1,"id":47096186,"kids":[47138584],"score":41,"text":"Hey HN, just wanted to share a fun, vibe-coded Friday night experiment: a little playground for writing cellular automata in a subset of Rust, which is then compiled into WGSL.<p>Since it lets you dynamically change parameters while the simulation is running via a TUI, it&#x27;s easy to discover weird behaviors without remembering how you got there. If you press &quot;s&quot;, it will save the complete history to a JSON file (a timeline of the parameters that were changed at given ticks), so you can replay it and regenerate the discovery.<p>You can pan&#x2F;zoom, and while the main simulation window is in focus, the arrow keys can be used to update parameters (which are shown in the TUI).<p>Claude deserves all the credit and criticism for any technical elements of this project (beyond rough guidelines). I&#x27;ve just always wanted something like this, and it&#x27;s a lot of fun to play with. Who needs video games these days.","time":1771634829,"title":"Show HN: Cellarium: A Playground for Cellular Automata","type":"story","url":"https://github.com/andrewosh/cellarium"}