logoalt Hacker News

masklinn • today at 4:54 PM • 1 reply • view on HN

> This is essentially just Rust with the compile target set to WASM, though?

It's not rust at all, it's a rust-like representation of wasm bytecode.

> WASM Text (WAT) is not really meant to be human-authored, it's an IR representation, like LLVM IR.

Which is exactly why TFA wrote an alternate representation, they're writing the runtime for a wasm target so they specifically want to craft their bytecode, and WAT is not a great thing to write.


Replies

Onavo • today at 5:24 PM

Tbh I don't understand why people don't like the intermediate representation. It's ridiculously high level compared to say x64 or ARM or even RISC V assembly. It's a simple lisp that most high schoolers who have taken basic programming can read it without issue.

I can't think of a single other production level VM with such an easy to read decompiled form.

➕ show 2 replies