Hacker News new | past | comments | ask | show | jobs | submit login
Whalesong: A Racket to JavaScript Compiler (hashcollision.org)
49 points by Tomte on May 24, 2022 | hide | past | favorite | 3 comments



I had to ask in Discourse: 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 but IIUC it can compile only a subset of Racket.


If you're interested in JavaScript on Racket, also please check out Urlang: 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


Is there any current work on Racket CS / Chez Scheme -> WASM?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: