Consider: --script: wat
to support raw textual web assembly
#1849
Labels
lang: wasm
WASM runtime related
--script: wat
to support raw textual web assembly
#1849
I was just talking to @keithohara about the possibility of
script: wat
... (for those who REALLY want to write and run raw textual web assembly as it's own thing) and just realized that now that the WASM work is done it would be absurdly trivial to add WAT (as it's own language) provided we could get thewat2wasm
source to compile properly on all our supported platforms.Probably no more than a 200 line wrapper around the WASM runtime that on init compiles a temporary BINARY segment and on close wipes that segment and otherwise just defers to WASM init/shutdown... everything else is just the editor trappings, syntax keywords, etc...
Now personally I don't think this is a thing a lot of people would want, but as a teaching/educational tool I could see it being interesting... provided the compiler error were surfaced well (and assuming there are decent compiler errors to be had).
Originally posted by @joshgoebel in #1775 (comment)
The text was updated successfully, but these errors were encountered: