Hacker News new | ask | show | jobs
by an1sotropy 1358 days ago
Well, ok, but then isn't a CPU is also just an interpreter, traversing the object code text of compiled code?
1 comments

We don't normally call hardware or firmware implementations an 'interpreter'.

Almost all execution techniques include some combination of compilation and interpretation. Even some ASTs include aspects of transformation to construct them from the source code, which we could call a compiler. Native compilers sometimes have to interpret metadata to do things like roll forward for deoptimisation.

But most people in the field would describe CPython firmly as an 'interpreter'.

I call it "bytecode interpreted" to distinguish it from traditional parse-tree interpretation such as Perl 5 and others