4 ms·
I love this, I had this idea back in 2020, a lisp that compiles to WASM, and then can compile itself to WASM at run-time in the browser, or any WASM run-time, d
by giancarlostoro 3y ago
I love this, I had this idea back in 2020, a lisp that compiles to WASM, and then can compile itself to WASM at run-time in the browser, or any WASM run-time, dogfeed itself. I'm not a compiler guru by any means, so its just one of many things on my bucket list.
- lamerose 3y agoThe article is presenting a Scheme interpreter running in Scheme, compiled to WASM, not a Scheme compiler, but your idea is also cool. The WASM API apparently doesn't need a pre-made file as its input: you can pass raw bytes generated during runtime into the Module constructor, so it would be totally feasible.
- davexunit 3y agoWhen we have the compiler running in Wasm we'll post about that, too. That's the dream.
- pankajdoharey 3y agoSomeone actually wrote a scheme back in 2017 https://github.com/google/schism https://github.com/google/schism so this isnt new. Infact the whole idea of WASM is not new, 20 yrs back Sun had the same idea, embed compiled bytecode inside browser called applets, developed in JAVA. Even flash was a similar idea, though flash VM was riddled with security flaws. This failed to gain wider acceptance, now 20 yrs later we have a embedded bytecode compiler in the browser, but it may work this time.
- pankajdoharey 3y agoExplain why you downvoted this? Self hosting scheme compilers on WASM is not new. HN a compliance Ghetto?
- tmtvl 3y agoI don't know why you've been downvoted, I've given you an upvote for linking to an interesting project (even if it's linked in some way to Google). I'd also like to link to the updated GH link: <https://github.com/schism-lang/schism https://github.com/schism-lang/schism>.
- pankajdoharey 3y agoThanks.
- pankajdoharey 3y agoThis is what a Ghetto Looks like. If i had a way to delete my account i would be happy.