Open brianpeiris opened 10 years ago
Also, if all you care about is direct translation to JS, with no specific runtime characteristics (i.e. NOT how like ClojureScript include their own type system), building scheme-like languages is mostly just a for-loop over an array of Regex replace expressions: https://github.com/capnmidnight/brian/blob/master/web/loosp.js
Are you familiar with the live-graphics-coding work that's been done with Racket? It would seem that you were already going towards this programming style of a purely functional, composable interaction API, but JavaScript can make that a bit of a pain sometimes.
Pict has been around for quite a while: http://docs.racket-lang.org/pict/index.html
This was very recent, an attempt to make a pict-like language for hardware accelerated 3D: https://www.youtube.com/watch?v=t3xdv4UP9-U
And finally, there is Whalesong, a Racket-to-JavaScript transpiler: https://www.hashcollision.org/whalesong/
Though there are a number of From-Scheme-To-JS transpilers that I'm sure would do well. Or perhaps what you really want is this style of API plus CoffeeScript.