...

azakai

7762

Karma

2010-11-26

Created

Recent Activity

  • Hi!

    Yeah, certainly compiler smarts can remove many bounds checks (in particular for small deltas, as you mention), hoist them, and so forth. Maybe even most of them in theory?

    Still, there are common patterns like pointer-chasing in linked list traversal where you just keep getting an unknown i64 pointer, that you just need to bounds check...

  • Great, thanks for the info!

  • Sorry about binaryen.js - those JS/TS bindings could be a lot better, and better documented, but priorities are generally focused on improving optimizations in core Binaryen.

    That is, most work in Binaryen is on improving wasm-opt which inputs wasm and outputs wasm, so any toolchain can use it (as opposed to just JS/TS).

    But if someone had the time to improve the JS/TS bindings that would be great!

  • > garbage collection was implemented by my colleague Nick Fitzgerald a few years ago

    The wasm features page says it is still behind a flag on wasmtime (--wasm=gc). Is that page out of date?

  • Wasm GC is entirely separate from Wasm Memory objects, so no, this does not help linear memory applications.

HackerNews