Oriel — AI & technology worth noticing, every day.

Wax: A User-Friendly Syntax for WebAssembly

Web page · https://tarides.com/blog/2026-11-26-wax

First seen by Oriel on .

AI summary

Wax is a Rust-like syntax and OCaml toolchain for writing WebAssembly that compiles to the same instructions while supporting conversion between Wax, WAT, and Wasm binaries.

  • Wax maps its constructs directly to Wasm instructions and types, including GC references, structs, arrays, casts, and control flow.
  • Its decompiler turns existing WAT into shorter Wax; decompiling and recompiling preserves instruction order, with a faithful mode that disables equivalent-code rewrites.
  • The toolchain includes type checking, formatting, configurable lints, conditional compilation, source maps, and editor support through VS Code, tree-sitter, and LSP.
  • wasm_of_ocaml already uses Wax to type-check and lint runtime WAT in CI; the runtime can be decompiled into Wax, reducing nearly 27,000 lines to about 21,000.
  • Wax is at release 0.3 and is available through opam, npm, prebuilt binaries, and a browser playground.

#webassembly #wasm gc #compiler tooling

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 210, latest observation ; +186 over observed period since
  • Lobsters: 70, latest observation ; +67 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 53, latest observation ; +49 over observed period since
  • Lobsters: 10, latest observation ; +10 over observed period since

Aliases

SourceExternal IDURL
Hacker News50761885https://tarides.com/blog/2026-11-26-wax/ Read discussion
Lobstersqdmolfhttps://tarides.com/blog/2026-11-26-wax/ Read discussion