3 ms·
The article takes the approach of gluing together disparate solutions to write a language. With a functional language as your base, writing a new language can b
by efnx 6y ago
The article takes the approach of gluing together disparate solutions to write a language. With a functional language as your base, writing a new language can be quite elegant and fun! A great series by Stephen Diehl http://dev.stephendiehl.com/fun/ http://dev.stephendiehl.com/fun/ covers the subject in good detail and the fvg Lang https://github.com/Lemmih/fvg https://github.com/Lemmih/fvg is a nice reference.
- chrisseaton 6y ago> The article takes the approach of gluing together disparate solutions to write a language. But so does Diehl! It's no different! He pulls together a 'disparate' parser library (actually he implements it himself, but it's a copy of an existing library) and he mentions using literally exactly the same backend (LLVM)! What do you think the difference is that using a functional language makes? It looks like exactly the same process to me.
- a1369209993 6y agoTo be fair, they didn't say that using a functional language made it different from gluing together disparate solutions, just that it made it elegant and fun. Though admittedly, even that is at best subjective.