| ▲ | dfajgljsldkjag 4 hours ago | |||||||||||||
It is interesting to see another language target WebAssembly especially one like Racket. The fact that it compiles to a subset of the language limits its utility right now. I think it is a neat proof of concept but it needs full language support. | ||||||||||||||
| ▲ | gcr 2 hours ago | parent | next [-] | |||||||||||||
For folks curious about the supported language subset, here's a summary: - Modules aren't implemented yet, but are high on the list - Continuation-based control flow isn't supported yet, including break and promises. Tail calls are supported though. - No support for complex numbers, bignums, weak hashtables, immutable hashtables, prefab structs, regexp, or file I/O support Most of the rest of racket/base should work, according to the README. There's also a FFI for javascript, including bindings for Math, DOM, Canvas, MathJax, XTermJS, and JSXGraph. Overall feels like you can use most of the language right now unless you need odd Racket-isms or call/cc. | ||||||||||||||
| ▲ | volemo 2 hours ago | parent | prev | next [-] | |||||||||||||
As far as I know compiling full Racket to WASM is impossible because of continuations. | ||||||||||||||
| ||||||||||||||
| ▲ | d_philla 3 hours ago | parent | prev [-] | |||||||||||||
check out grain! https://grain-lang.org/ | ||||||||||||||