greg
2021-10-18 11:47:43

I remember being confused by this. <meme src='Pulp Fiction'>Name another thing "trace", I dare you.</meme>


alan.delaney
2021-10-18 12:03:11

@alan.delaney has joined the channel


alan.delaney
2021-10-18 12:26:30

Hi. I’m involved in a small work project that wants to create a narrowly-focused DSL. The concept that’s being presented is that the language will be Javascript-like, with().a().heavy().emphasis().on().function().chaining(), and will compile to Javascript, but beyond that the details are still a little vague. I’d like to look into hacking a proof-of-concept together in Racket to assess it’s suitability and acceptance, as this is something I’ve always wanted to try but never had the opportunity to.

Unfortunately my own Racket skills are limited to a few Advent of Code puzzles, so I’m not really sure where to start with this. While there are plenty of general resources on creating a DSL, does anyone know of any documentation or examples on creating a compile-to-javascript DSL like this one?


sorawee
2021-10-18 12:31:16

Perhaps you meant https://docs.racket-lang.org/reprovide/? @gmauer @laurent.orseau


seanbunderwood
2021-10-18 12:32:03

Take a look at <https://beautifulracket.com/|Beautiful Racket>. I don’t think it has compile-to-JS specifically, but the 2nd or 3rd chapter has an example of a DSL that generates json.


laurent.orseau
2021-10-18 12:38:24

Indeed! Courtesy of @alexknauth


spdegabrielle
2021-10-18 13:16:06

@alan.delaney > RacketScript is an experimental lightweight Racket to JavaScript (ECMAScript 6) compiler. > https://github.com/racketscript/racketscript\|https://github.com/racketscript/racketscript You can see it in action and try some examples at http://play.racketscript.org/\|http://play.racketscript.org/


spdegabrielle
2021-10-18 13:18:39

There is also a #racketscript channel


laurent.orseau
2021-10-18 14:17:08

“RacketScript is a simplified version of Racket, like JavaScript for Java”? :smile:


ben.knoble
2021-10-18 14:30:17