Hacker News new | ask | show | jobs
by aspirin 3519 days ago
It makes me sad to see the AST go. I was thinking of writing my own WASM compiler just for fun, purely as an AST transformer.

Its funny how most of the WASM tools still use s-experssions as the text format. How does that even work, now that the AST is history?

1 comments

Yes, the s-expression format has become awkward. There are differences between the s-expression format in the test suite, what browsers will show, and what tools support.

You can think of the old s-expression format as a language that compiles into wasm, a language that is an AST and that happens to have the same types and operations etc. as wasm.