On Dec 5, 2007 10:40 AM, Just Another Victim of the Ambient Morality <ihatespam / hotmail.com> wrote: > > "Gerardo Santana Góíez Garrido" <gerardo.santana / gmail.com> wrote in message > news:b06e22130712050805x568029eeh3d8d39a60ab75490 / mail.gmail.com... > > > On Dec 5, 2007 7:46 AM, Just Another Victim of the Ambient Morality > > <ihatespam / hotmail.com> wrote: > >> > >> "Nobuyoshi Nakada" <nobu / ruby-lang.org> wrote in message > >> news:20071205061035.DD12DE0697 / mail.bc9.jp... > >> > Hi, > >> > > >> > At Wed, 5 Dec 2007 14:25:07 +0900, > >> > Just Another Victim of the Ambient Morality wrote in > >> > [ruby-talk:282132]: > >> >> "Nobuyoshi Nakada" <nobu / ruby-lang.org> wrote in message > >> >> news:20071205020914.E6311E0666 / mail.bc9.jp... > >> >> > Hi, > >> >> > > >> >> > At Wed, 5 Dec 2007 08:40:11 +0900, > >> >> > Just Another Victim of the Ambient Morality wrote in > >> >> > [ruby-talk:282100]: > >> >> >> Why is there any "converting" to do? How can this not work? > >> >> >> My best guess is that the Range class is not written in Ruby > >> >> >> and, > >> >> >> hence, > >> >> >> has funny limitation on how it may work. > >> >> > > >> >> > Yes, and performance issue. > >> >> > >> >> Just so I'm clear on this; the Range class is implemented in C for > >> >> performance reasons? > >> > > >> > It isn't the only reason why Range is implemented in C, I wrote > >> > about your "limitation." > >> > >> Where did you write about this? I'd be happy to read it... > >> > >> > >> > If Range were written in Ruby, it couldn't be used until > >> > something was loaded. It wasn't acceptable for intrinsic > >> > classes. > >> > >> Okay, this makes more sense to me. So, some built-in classes use > >> Range > >> and they couldn't if it were written in Ruby. > >> This brings up several issues. One would be, why not? Wouldn't it > >> be > >> nice if the Ruby interpreter's built in classes could be written in Ruby? > > > > That's what Rubinius is. > > > > http://rubini.us/ > > Rubinius is a virtual machine implementation. I'm not sure how this > relates... From the web page I linked to: "Rubinius implements the core libraries in Ruby, providing a system that is much more accessible, easier to develop and to extend." -- Gerardo Santana