Ask HN: Why isn't Ruby written in Ruby?

1 points by hypr_geek ↗ HN
I started learning Ruby two days ago. I checked out the source code and it seemed to be all in C. I couldn't find why it hasn't been converted to Ruby (performance reasons?), so asking here.

2 comments

[ 6.2 ms ] story [ 203 ms ] thread
A large portion of Ruby, primarily standard libraries, is written in Ruby. The entire language isn't in Ruby for performance reasons.
There are many Ruby implementations, a very popular one is Rubinius which is implemented in Ruby http://rubini.us/

The MRI or Matz's Ruby Interpreter (also called CRuby) is the reference implementation (Though RubySpec started by the Rubinius project has become the standard). Other implementations are very popular, such as JRuby that allows for running Ruby in the JVM.