Java “Virtual Machine” vs. Python “Interpreter” parlance?

后端 未结 13 620
春和景丽
春和景丽 2020-11-29 14:45

It seems rare to read of a Python \"virtual machine\" while in Java \"virtual machine\" is used all the time.

Both interpret byte codes; why call one a virtual machi

13条回答
  •  离开以前
    2020-11-29 14:56

    Don't forget that Python has JIT compilers available for x86, further confusing the issue. (See psyco).

    A more strict interpretation of an 'interpreted language' only becomes useful when discussing performance issues of the VM, for example, compared with Python, Ruby was (is?) considered to be slower because it is an interpreted language, unlike Python - in other words, context is everything.

提交回复
热议问题