MIDREAL
Menu

Inside PyPy: First Contact with RPython

https://bernsteinbear.com/blog/inside-pypy-first-contact-with-rpython/ (bernsteinbear.com)

64 points | 3d ago | Discuss on Hacker News | Back to Radar

Comments

jbloggs777 15h ago on HN
> 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/

mathisfun123 15h ago on HN
Do people have a fetish for recommending things on hn they just learned about on hn? I'm surprised this isn't a recommendation for mojo...
corv 14h ago on HN
Their comment is relevant because Nim 3.0 uses a bespoke IR, NIF.
mathisfun123 10h ago on HN
What exactly does that have to do with the blog post?
jbloggs777 14h ago on HN
I'm a long time Nim user, albeit just for hobby projects.
e12e 10h ago on HN
Really a reply to the article, not the comment - but I sort of read the article, because I saw the quote and thought: "wait a minute, isn't racket made for that?"

Then I searched, and apparently accidentally implemented a Forth (caveat: no idea if it works):

https://share.google/aimode/fkVZsfLxoaayEBQSJ

zem 9h ago on HN
there's a footnote about how the author didn't want to implement atop racket. no reason given but at least it was considered.
cowlevel 10h ago on HN
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.

kccqzy 9h ago on HN
Recursive descent is something you can figure out without having heard of it. What you can’t easily figure out is what to do when the grammar is inherently left-recursive. Or limit the amount of lookahead. Or any fancier algorithm like the Earley algorithm.

Comments are loaded live from Hacker News and are not stored by Mid or Real.