A Python Interpreter Written in Python | Hacker News
TL;DR AI
2 min readKey summary
Hacker News commenters discussed a Python interpreter implemented in Python and highlighted its elegant `getattr`-based opcode dispatch.
They noted the pattern as a practical interpreter design that also works well for extensible command-dispatch systems.
The thread also debated how accurately projects like PyPy can be described as being “written in Python.”
More broadly, the discussion underscored the value of self-hosted language implementations.



