@msimoni: Hash table code from my new language for Wasm GC. It's completely static, and you must write all types manually (there …
Summary
A developer shares code for a hash table in a new static language designed for WebAssembly GC, highlighting manual type requirements and decent performance with a toy compiler.
View Cached Full Text
Cached at: 09/09/26, 03:47 AM
Hash table code from my new language for Wasm GC. It’s completely static, and you must write all types manually (there isn’t even generic argument inference). This means I can get decent performance with a toy compiler. https://t.co/LE91gJ9sAZ
Similar Articles
@msimoni: The red-black tree in my new language for Wasm GC is as fast and has roughly the same memory consumption as the native …
The author's red-black tree implementation in a new language for Wasm GC matches native C in speed and memory usage, with plans to publish the codebase.
@msimoni: I created this in one day, and it's a bit of a frankenlanguage, but it does have some interesting ideas and results: Id…
A developer created Idle, a statically-typed, low-level Lisp for WebAssembly GC with interesting features like O(1) method lookups and macros loaded from Wasm modules.
GC and Exceptions in Wasmtime
Wasmtime 47 enables Wasm GC and exceptions proposals by default, making it easier for high-level languages with garbage collection and exceptions to target WebAssembly efficiently.
@msimoni: https://v8.dev/blog/wasm-speculative-optimizations…
V8 has implemented speculative call_indirect inlining and deoptimization support for WebAssembly, significantly improving performance, especially for WasmGC programs with speedups up to 50% in benchmarks.
@msimoni: This shows that with some very mild macrology, WebAssembly is almost a recognizable Lisp you can write directly.
The article discusses how WebAssembly can be approached with Lisp-like macros to make its syntax more human-friendly, referencing a past JavaScript implementation by Joel Martin.