Monday, August 19, 2019

Journey of a thousand miles starts with jlox

Recently, I've been following along Robert Nystrom's book "Crafting Interpreters" about writing a Lox interpreter. I hate to admit that I've gone deeper into this rabbit hole of "making your own programming language". So, how did I get myself into this mess? Well, um... it all started when I poked around the InterWebs  about Common Lisp.  One thing leads to another and I unknowingly landed myself on an online version of "Build your own Lisp". Interestingly enough, the base code is written in C! What intrigued me the most is the author's MPC (Micro Parser Combinators) library. I realised my C skillset is virtually non-existent when I looked at the MPC repo, so I finally made a brave attempt to overcome my fear of parsers, specifically "Recursive Descent Parser".

This explains why I'm here today.

And why Clojure, you ask? Firstly, I find Clojure and any Lisp-like derivatives enigmatic. For some unexplainable reason, I keep coming back to them. Secondly, I intend to explore more about the Clojure language because of reason number one.

Alright, this is my single step out of a thousand miles, so wish me luck.