r/programming • u/simon_o • 1d ago
Wax: A User-Friendly Syntax for WebAssembly
https://tarides.com/blog/2026-11-26-wax/4
u/imbev 1d ago
Why not https://www.assemblyscript.org/ or Rust with a WASM toolchain?
12
u/grayrest 1d ago
This is covered in the article. Author is implementing wasm support for OCaml, needs byte level control over the compilation target, and as a consequence is implementing features in bytecode. This is a semantically equal but less explicit rendering of the existing text format for wasm bytecode.
4
u/masklinn 1d ago
They’re not writing a classic wasm program / library, they’re writing the runtime support for ocaml’s wasm implementation.
Assemblyscript supports raw-ish wasm but it’s not the primary goal and is rough, and assemblyscript comes with (or requires) its own runtime.
Also this is 1:1 to the bytecode and standard text representations, which afaik is very much not the case for AS, or Rust.
1
1
7
u/simon_o 1d ago
This will certainly be useful for people who felt that dealing with WAT for writing wasm manually was too cumbersome.
I just wish they hadn't faithfully copied over every syntactic paper-cut from Rust.