Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That is really cool. How did you go about designing the language. Did you go for a full lexer and parser ? or it was more functional. Curious to understand how you built it.


Ruby's super power is it's meta programming ability. So they were really just writing Ruby. If you google, I think there's a bunch of tutorials out there for creating a DSL in Ruby... but I learned from a book called "Metaprogramming Ruby"


Thanks for the book recommendation, I am eager to read it.

I looked on Amazon but there are only used paperbacks and no Kindle edition. But I saw from the cover that it was a Pragmatic Press book, so looked for it there and they have a no-DRM ebook of the second edition - for a lot less money than the used copies on Amazon!

https://pragprog.com/book/ppmetr2/metaprogramming-ruby-2


Very cool. Reminds me of the Ruby DSL for music performance: https://sonic-pi.net/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: