Re:JIT and Ruby's MJIT
by sosodev on Friday December 06, 2019 @08:12PM
(#21727761)
It does. If you’re asking why not AOT compile a whole ruby app? Well Ruby is a really dynamic language and the generated C might not be valid after the app begins execution. I guess theoretically you could enumerate all of the different possible class states or the final class states but that sounds really hard.
If you actually need a compiled Ruby binary mRuby is the best option but it has its own drawbacks of course.
If you actually need a compiled Ruby binary mRuby is the best option but it has its own drawbacks of course.