Awesomely, Jens has been working on Urlang: a Racket-ish syntax for
JavaScript, using the nanopass compiler infrastructure:

https://github.com/soegaard/urlang

and more ambitiously, a Racket (subset) ->JavaScript compiler (rjs), taking
a distinct approach from Whalesong.

* * *

Just using plain Urlang together with sxml, Bootstrap (for css), and
notably Ractive.js <http://ractive.js> for templating and data-binding I
made the following demo / proof-of-concept:

http://htmlpreview.github.io/?https://github.com/danprager/urlang/blob/master/urlang-examples/ractive/ractive-bootstrap-example.html

Note: no heavyweight js runtime required: actually no runtime at all.


Racket source:
https://github.com/danprager/urlang/blob/master/urlang-examples/ractive/ractive-bootstrap-example.rkt

HTML output (including embedded JavaScript):
https://github.com/danprager/urlang/blob/master/urlang-examples/ractive/ractive-bootstrap-example.html

The abstractions are a bit leaky, but I'm quietly excited about where this
sort of approach could lead.

What do you think?

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to