What next for Pharo vm?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

What next for Pharo vm?

henry
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?

Sent from ProtonMail Mobile
Reply | Threaded
Open this post in threaded view
|

Re: What next for Pharo vm?

Ben Coman


On 22 April 2018 at 22:03, henry <[hidden email]> 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?


Some previous discussion here...

cheers -ben
Reply | Threaded
Open this post in threaded view
|

Re: What next for Pharo vm?

Esteban A. Maringolo
In reply to this post by henry
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.

[1] https://www.graalvm.org/

Regards!

--
Esteban A. Maringolo

Reply | Threaded
Open this post in threaded view
|

Re: What next for Pharo vm?

Ronie Salgado

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 <[hidden email]>:
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.

[1] https://www.graalvm.org/

Regards!

--
Esteban A. Maringolo