Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider: --script: wat to support raw textual web assembly #1849

Open
joshgoebel opened this issue Feb 23, 2022 · 0 comments
Open

Consider: --script: wat to support raw textual web assembly #1849

joshgoebel opened this issue Feb 23, 2022 · 0 comments
Labels
lang: wasm WASM runtime related

Comments

@joshgoebel
Copy link
Collaborator

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 the wat2wasm 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: wasm WASM runtime related
Projects
None yet
Development

No branches or pull requests

1 participant