4 ms·
>A new language: WebAssembly code defines an AST (so does JavaScript) represented in a binary format. You can author and debug in a text format so it’s readable
by shultays 11y ago
>A new language: WebAssembly code defines an AST (so does JavaScript) represented in a binary format. You can author and debug in a text format so it’s readable.
Heh, since every binary executable has a non-compiled source code somewhere out there, can we call them readable too?
- Manishearth 11y agoI don't think that's what they're saying; they're saying that wasm has a somewhat-readable textual representation. Not a precompiled/decompiled program, a one-one mapping from the AST to the text format. Or something. Think of it like how assembly is to machine code, but probably more readable.
- Rusky 11y agoThe intent is exactly like assembly/machine code, though they haven't really nailed down the format yet. Current implementation(s?) just use s-exprs, though I don't think they want that to be the final form.