logoalt Hacker News

Inside PyPy: First Contact with RPython

65 points • by lumpa • last Thursday at 4:26 PM • 9 comments • view on HN

Comments

jbloggs777 • yesterday at 5:43 PM

> I get restless now and then and I want to implement a programming language. Then after mustering the resolve, I stew, for there is no good implementation language.

Have you seen Nimony (Nim 3.0)? https://nimony.org/

➕ show 2 replies
cowlevel • yesterday at 11:07 PM

Note that if you want to write a programming language, it's not too hard, even doing it from scratch in C without any specific helper libraries. You should try it over a week, it's great fun (the first time). Either make an interpreter or a compiler to another language you're very familiar with - you do not need to understand how to make an executable file.

The main technique you probably won't figure out by yourself is called "recursive descent parsing". You can also use a parser generator if you like one.

➕ show 1 reply