Ruby in Ruby

This is very interesting:

Rails has evolved tremendously from what was already a good start. All the development around it has nurtured ruby developement in all areas. Rails and all those parts make up a most mature and advanced software system.

The “rails effect” is due to the accessibility of the system, imho. Ie it is written in ruby.

Ruby itself has not enjoyed this rails effect, and that is because it is written in C (or c++)

I think rubinius started life trying to be ruby in ruby (except for a very small stack handler written in C). It didn’t pan out, but much of it’s early work was based on smalltalk (which is why I think I remember that). And I think all the core Rubinius libraries are written in ruby.

1 Like

The core classes in Rubinius are mostly written in ruby itself.
The VM, JIT and some parts of the core classes (called Rubinius primitives) are written in C++.

Rubinius Kernel / Core Classes:
Rubinius VM:
Rubinius Primitives:

Also the entire Stdlib for rubinius is outsourced into gems:

1 Like

I guess my point was that this was not always so. Ruby in Ruby is a cool idea, but is somewhat elusive at this point. Be great is someone could pull it off.

1 Like

What happened to - was it related to Rubinious?

@kofno sorry I misread your reply :slight_smile:

@AstonJ as far as I know Rubinius X will be non compatible with MRI
Rubinius 3.0 should be compatible with MRI but also provide addtional functionality
You can read more about it here:

Also you could ask brixen more about this on the rbx gitter channel: rubinius/rubinius - Gitter

Cheers :slight_smile:

1 Like

No worries. I wasn’t especially clear, so I thought I would clarify. :slight_smile:

1 Like