3 ms·
Whalesong: A Racket to JavaScript Compiler
- gus_massa 5y agoI had to ask in Discourse: https://racket.discourse.group/t/racket-to-javascript-compiler/1018 https://racket.discourse.group/t/racket-to-javascript-compil... Whalesong depends too much in the internal details of the Racket compiler, so it only works with Racket 6.something. (The current version is 8.5.) A "modern" alternative is RacketScript https://docs.racket-lang.org/racketscript/index.html https://docs.racket-lang.org/racketscript/index.html but IIUC it can compile only a subset of Racket.
- michaelsbradley 4y agoIs there any current work on Racket CS / Chez Scheme -> WASM?
- oofoe 4y agoIf you're interested in JavaScript on Racket, also please check out Urlang: https://github.com/soegaard/urlang/tree/master https://github.com/soegaard/urlang/tree/master It's not a Racket to JavaScript compiler, but rather lets you write JavaScript using Lisp syntax... and macros! Very pleasant to work with. For a "real world" worked example, I used it to write a small game: https://oofoe.itch.io/qube-cat https://oofoe.itch.io/qube-cat