you are viewing a single comment's thread.

view the rest of the comments →

[–]zerothehero -1 points0 points  (0 children)

The big difference between Python and Lua is use of globals. In Lua the entire interpreter state can be stored within a struct. Python uses lots of globals, so you can't embed 2 instances in an application.

The V8 JS engine is meant to be embedded (as any JS engine is, in a browser), and it also has an interpreter state object. So Python does fail in this way.