by fouc · 5y ago · 0 comments
This format uses S-expressions like lisp, and it's got a stack machine like forth. [1] [2]
I'm a bit surprised something so mainstream ended up being a lispy forth.
[1] https://ph1lter.bitbucket.io/blog/2020-12-03-webasm-forth-wi... [2] https://developer.mozilla.org/en-US/docs/WebAssembly/Underst...
You may be interested to read this, which talks about a proposal to add additional stack instructions: https://github.com/WebAssembly/design/issues/1381
Thanks for reading the post :)
Update 2020-12-07: There was a bug in the macro expansion logic. I've backported the fix to the linked source and explained the bug in the 'mistakes' section.