Re:Python to get Google-backed speedup
by briansmith on Sunday June 14, 2009 @11:55AM
(#657200)
No, I wasn't being sarcastic. If you want to use libraries written in Python in Ruby (just as an example), you need to be able to convert all the Pythonisms to Rubyisms and/or Rubyisms to Pythonisms. That is the case whether you are doing source-to-source rewriting or using a shared VM.
Note that the JVM and .NET runtimes do pretty much exactly what was asked--they run programs written in multiple languages on the same VM. Because the "native" VMs for Python and Ruby are so bad, the JVM and .NET VMs can even out-perform the native ones for most tasks.
Re:Python to get Google-backed speedup
by karanbhangui on Saturday June 13, 2009 @06:28PM
(#656572)
That wasn't sarcasm; it was a rhetorical question to illustrate a point.
Re:Python to get Google-backed speedup
by johnnybgoode on Saturday June 13, 2009 @06:43PM
(#656586)
Thank you for adding so much to the discussion.
(That was sarcasm.)
Original comment: Yeah, that would be one solution, but I think the shared VM helps so you can easily access libraries written in different languages. I remember why (of Ruby fame) trying to run Ruby code on Google App Engine back when it was Python-only. He discovered that Ruby bytecode is nearly identical to Python bytecode. Like me, he didn't understand why Python and Ruby still need to be on separate runtimes.