Will Ruby or another language run faster on Parrot?

I just saw that there is a Ruby for Parrot compiler called Cardinal , which can create code for Parrot , which is a virtual machine that can run bytecode. How the performance of Ruby or any language is compiled and run there because, for example, Ruby probably does not have pre-compiled byte code. Can it run faster on Parrot ? Perhaps Python will work better since it is .pyc.

+7
ruby parrot
source share
2 answers

Parrot development is not yet focused on optimization. The roadmap has always indicated this on version 3 or 4 ( Parrot is currently in version 2.9).

There is currently a large branch of refactoring that involves breaking JIT and replacing it with a new one (refs: Lorito and JITRewrite ).

The fruits of this should begin as part of Parrot 3.0, which, it seems to me, should be next spring.


Update

Most likely the roadmap was published by the developer Parrot on the blog. Here is a summary of what he thinks in the next 3 years:

  • 3.0 - New Garbage Collector
  • 3.3 - Lorito Prototype
  • 4.0 - metamodel of a new object
  • 5.0 - New JIT
  • 6.0 - New concurrency system

/ I3az /

+4
source share

Edit: I searched for older results when newer ones are available . Compared with the most modern standards, which are still quite old, the parrot beats vm vanilla on several tests, but on others more slowly. A few tests that he could not even complete.

yarv is a rotation encoder for ruby ​​performance.

+1
source share

All Articles