Remix.run Logo
▲ masklinn 3 hours ago

> 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.

▲Onavo 2 hours ago | parent [-]

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.

▲LeFantome 2 hours ago | parent [-]

CIL