3 ms·
On a similar note, there is a branch in the guile git repo that aims at compiling to JS. It does a pretty nifty compilation pass that constructs a kind of minim
by bjoli 5y ago
On a similar note, there is a branch in the guile git repo that aims at compiling to JS. It does a pretty nifty compilation pass that constructs a kind of minimal CPS where all calls are tail calls, giving instant support for delimited continuations and very simple (yet not fantastically fast) tail calls even in hosts that doesnt support it (using a trampoline).
Meaning, hopefully, full guile in the browser.
- nerdponx 5y agoIs there a Scheme targeting Webassembly yet?
- lf-non 5y agoThere is a WIP unofficial project from developers at Google called Schism [1]. [1] https://github.com/schism-lang/schism https://github.com/schism-lang/schism
- bjoli 5y agoThe scheme standard mandates things that are not in the wasm spec yet (tail calls and GC being probably the most notable ones, being available only in chrome). There are quite a few open questions regarding RnRS schemes on webassembly. Currently it seems that the ones available are either discouraged by the limitations of wasm, or are implemented to specifically test non-standard proposals of wasm. In other words: no fun at all.
- jagger27 5y agoGrain is a fully functional language that exclusively targets WebAssmebly. It isn’t a Scheme though. It’s already a very mature project with some external funding. https://grain-lang.org/ https://grain-lang.org/
- Zababa 5y agoHow is Grain "very mature"? Is there a package manager? A language server? A complete standard library? An ecosystem of libraries?