3 ms·
It's a combination of both, actually. From what I understand, Matz is more of a dreams guy than an implementations guy. He made MRI work, but never really inten
by steveklabnik 17y ago
It's a combination of both, actually. From what I understand, Matz is more of a dreams guy than an implementations guy. He made MRI work, but never really intended it to be fast or efficient. This is why 1.9 is a totally different compiler; Matz can go back to designing, and others can worry about implementations
There's also quite a bit of Ruby that's non-trivial to compile. For instance, think about method_missing. If a message gets sent to an object, a naive implementation would have to check every parent class up the inheretance chain, and then do it all over again to see if a method_missing is defined, too. That's quite a bit of time. Also, things like open classes make things like caching hard, as well.
None of these problems are insurmountable, but they take some work and some effort. Luckily, Ruby has those people now.
- ionfish 17y agoThis is also why things like the double-inclusion problem are still live issues. http://eigenclass.org/hiki/The+double+inclusion+problem http://eigenclass.org/hiki/The+double+inclusion+problem One problem that Ruby does need to deal with is when implementation problems become institutionalised as language specifications. http://blog.jcoglan.com/2009/06/06/when-bugs-become-features/ http://blog.jcoglan.com/2009/06/06/when-bugs-become-features...
- peregrine 17y agoThanks! You've answered my question completely(and then some).