I was thinking the vm is able to run more than one bytecode set. Why couldnât our vm support both Pharo and Java bytecodes?
Perhaps a simpler way is to make a translator from Java bytecodes -> Pharo (Sista) bytecodes. I believe that ikvm did something similar for .NET. The hardest part of this would actually be on parsing the .class files. Best regards, Ronie 2018-04-22 21:31 GMT-03:00 Esteban A. Maringolo <emaringolo@gmail.com>:
On 22/04/2018 11:03, henry wrote:
I was thinking the vm is able to run more than one bytecode set. Why couldnât our vm support both Pharo and Java bytecodes?
Smaltallk/X provides that Smalltalk/Java code duality.
But I think if Pharo ever pursues that path the best thing would be to make it run in a VM such as Truffle/GraalVM [1]. A longest path maybe, but you'll be able to piggyback on an existing community of VM developers, and be able to interact not only with Java but it other languages as well.
Regards!
-- Esteban A. Maringolo