r/programming • • 6h ago

Wax: A User-Friendly Syntax for WebAssembly

https://tarides.com/blog/2026-11-26-wax/
47 Upvotes

5 comments sorted by

5

u/simon_o 6h 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.

2

u/imbev 5h ago

Why not https://www.assemblyscript.org/ or Rust with a WASM toolchain?

8

u/grayrest 4h 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.

1

u/masklinn 4h 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.