Better HN
topnewbestaskshowjobs
Log inSign up

znah

95 karma · joined Oct 13, 2016 (10y ago) · 11 submissions

Submissions

1.

Tiny Tapeout Explorer: WASM FET-level circuit SIM&vis(znah.net ↗)

13 points · by znah · 4mo ago · discuss

2.

Like Game-of-Life, but on Growing Graphs, with WASM and WebGL(znah.net ↗)

217 points · by znah · 9mo ago · 26 comments

comment 1y ago · link · parent

First I implemented it, and then learned that it is called Layout vs Schematic (LVS). For now automatic conversion is limited to stateless cells, but I'm planning to rewrite the circuit extractor to support all flipflops and latches.

comment 1y ago · link · parent

Author here, and this is how running your design on real hardware feels https://x.com/zzznah/status/1876684831222067350?t=b8-zl-h6uV...

comment 3y ago · link · parent

Fixed, thanks for pointing! Undefined is only passed at the first frame, other frames receive current time in ms, according to requestAnimationFrame docs

comment 3y ago · link · parent

I wanted to avoid (in some cases) a separate initialization phase and unify resource allocation with rendering (because requirements may change and require reallocation). Take GameOfLife example (https://github.com/google/swissgl/blob/main/demo/GameOfLife....). It only has 'frame()' function which transparently resizes textures when needed.

comment 3y ago · link · parent

Author here. SwissGL is an experiment in minimal API design. I needed something that would simplify making things like https://znah.net/hexells or https://znah.net/lenia

I'm planning to switch to WebGPU once it's widely supported. I also think there's a chance for SwissGL.c, SwissGL.py and SwissGL.zig

8.

SwissGL: Swiss Army Knife for WebGL2(google.github.io ↗)

2 points · by znah · 3y ago · discuss

9.

Tutorial: 3D rendering with ~100 lines of pure Jax code(google-research.github.io ↗)

2 points · by znah · 4y ago · discuss

comment 10y ago · link · parent

Ideas are cheap, making them work is hard.