A Python Interpreter Written in Python
aosabook.org
A Python Interpreter Written in Python
1–10 of 57 posts
Re: A Python Interpreter Written in Python
#2Re: A Python Interpreter Written in Python
#3See also https://github.com/nedbat/byterun and https://github.com/rocky/x-python
It makes me sad that I have to write C to make any meaningful changes to Python. Same goes for ruby. Rubinius was such a nice project.
Hacking on schemes and lisps made me realize how much more fun it is when the language is implemented in the language itself. It also makes sure you have the right abstractions for solving a bunch of real problems.
Re: A Python Interpreter Written in Python
#4I think because python is a stack-based interpreter this is a really great way to get some exposure to how it works if you're not too familiar with C. A nice project!
Re: A Python Interpreter Written in Python
#5See also https://github.com/nedbat/byterun and https://github.com/rocky/x-python
And, in some ways, PyPy. I still think it is the sanest way to implement Python. It makes me sad that I have to write C to make any meaningful changes to Python. Same goes for ruby. Rubinius was such a nice project. Hacking on schemes and lisps made me realize how much more fun it is when the language is implemented in the language itself. It also makes sure you have the right abstractions for solving a bunch of real…
What do you mean by that? I'm not familiar with PyPy
Re: A Python Interpreter Written in Python
#6Earlier quoted context omitted.
And, in some ways, PyPy. I still think it is the sanest way to implement Python. It makes me sad that I have to write C to make any meaningful changes to Python. Same goes for ruby. Rubinius was such a nice project. Hacking on schemes and lisps made me realize how much more fun it is when the language is implemented in the language itself. It also makes sure you have the right abstractions for solving a bunch of real…
> And, in some ways, PyPy What do you mean by that? I'm not familiar with PyPy
Re: A Python Interpreter Written in Python
#7Earlier quoted context omitted.
> And, in some ways, PyPy What do you mean by that? I'm not familiar with PyPy
PyPy is python implemented in python. It is fast.
Re: A Python Interpreter Written in Python
#8Earlier quoted context omitted.
> And, in some ways, PyPy What do you mean by that? I'm not familiar with PyPy
PyPy is python implemented in python. It is fast.
It lags behind CPython in features and currently only supports Python versions up to 3.11. There was a big discussion a month ago: https://news.ycombinator.com/item?id=47293415
But you can help! https://pypy.org/howtohelp.html