Tips or strategies to understanding how CPython works under the hood

Alain Ketterlin alain at universite-de-strasbourg.fr.invalid
Tue Jan 9 15:12:49 EST 2018


ElChino <elchino at cnn.cn> writes:

> Chris Angelico wrote:
>
>> CPython is a stack-based interpreter, which means it loads values onto
>> an (invisible) internal stack, processes values at the top of the
>> stack, and removes them when it's done.
>
> Is this similar to how Lua operates too?

No. Lua uses a register-based (virtual) machine. See

https://www.lua.org/doc/jucs05.pdf

I think Lua was the first language in widespread use to move to a
register-based machine.

-- Alain.



More information about the Python-list mailing list