Live data from Hacker News

CPython internals: Codewalk through the Python interpreter source code (2014)

pgbovine.net

1–10 of 18 posts

Re: CPython internals: Codewalk through the Python interpreter source code (2014)

#3
Looks interesting.

Pedagogically, I wonder what the tradeoffs for using Python are. I haven't looked at it, in part because I've heard comments to the effect that it's a big hairy mess inside.

On the upside, students have a better chance of actually needing the knowledge than with Lua, for instance.

Re: CPython internals: Codewalk through the Python interpreter source code (2014)

#4

Looks interesting. Pedagogically, I wonder what the tradeoffs for using Python are. I haven't looked at it, in part because I've heard comments to the effect that it's a big hairy mess inside. On the upside, students have a better chance of actually needing the knowledge than with Lua, for instance.

[author here] it's not too bad, actually; i mean there's the usual hairiness of anything implemented in C, but the interpreter doesn't try to do much in terms of clever optimizations, so the code base is fairly readable for a production-grade system. check it out!

Re: CPython internals: Codewalk through the Python interpreter source code (2014)

#5
post #4

Looks interesting. Pedagogically, I wonder what the tradeoffs for using Python are. I haven't looked at it, in part because I've heard comments to the effect that it's a big hairy mess inside. On the upside, students have a better chance of actually needing the knowledge than with Lua, for instance.

[author here] it's not too bad, actually; i mean there's the usual hairiness of anything implemented in C, but the interpreter doesn't try to do much in terms of clever optimizations, so the code base is fairly readable for a production-grade system. check it out!

I actually have it open, and so far, it's not as much as I thought.

Still, the interpreter I've previously looked at is Lua, so it's a lot bigger.

Post reply on HN