4

It seems that a pretty significant fraction of new languages that come out run either on the JVM or the CLR. Presumably high on the list of advantages to doing so are 1) access to libraries and 2) portability, especially with Java. Has anyone attempted to do the same for Python? The closest I can find digging around is this:

Why the lucky stiff once hacked together a script that would compile Ruby code into Python bytecode. I remember that it worked well for simple Ruby scripts. You can look at the sources to see how he did it.

EDIT: So what he does is let the Ruby VM generate Ruby bytecode, than translate that bytecode to Python. Could still be interesting to see how the Python bytecode is assembled :)

BTW, here's an interesting thread about whether Python has a "VM" in the same sense that Java does or an "interpreter." In sum, I think for the purposes of this question it's reasonable to consider Python to have a VM.

Community
  • 1
  • 1
kuzzooroo
  • 6,788
  • 11
  • 46
  • 84
  • 2
    Someone asked a similar question http://programmers.stackexchange.com/questions/148959/why-arent-there-other-programming-languages-that-compile-to-python-bytecode – Khaelex Apr 11 '14 at 13:39
  • 4
    This question appears to be off-topic because it belongs on http://programmers.stackexchange.com/ – jonrsharpe Apr 11 '14 at 13:40
  • 3
    *And* the current title encourages list answers. – Martijn Pieters Apr 11 '14 at 13:41
  • Why is this a better fit for programmers.stackexchange.com? [The documentation I find](http://meta.stackexchange.com/a/68386/252342) says that "Programmers - Stack Exchange is for expert programmers who are interested in subjective discussions on software development." This question factual, not subjective. – kuzzooroo Apr 11 '14 at 16:43

0 Answers0