4 ms·
React is a perfect example of a lot of Racket’s value proposition. JSX is a mini-language created as a way to write XML which interacts bidirectionally with JS
by slaymaker1907 7y ago
React is a perfect example of a lot of Racket’s value proposition. JSX is a mini-language created as a way to write XML which interacts bidirectionally with JS in a seamless way. While it takes quite a bit of effort in JS to create all the tooling for this DSL including not only compilation but also making sure it stays editor friendly, creating something equivalent would take an afternoon in Racket including having sensible error messages and syntax highlighting.
I chose JSX in particular since it really highlights how useful it can be to have seamless interop between languages. Another really interesting #lang for Racket is Rosette which is IMO the easiest to use interface for SMT solvers out there since the code you write is regular racket (it even supports recursion via symbolic execution).