[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tips or strategies to understanding how CPython works under the hood

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


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

-- Alain.