I’ve spent most of the past month or so working on a rewrite of the internals of RubyCLR. I got the last major set of tests to pass today, and I’m almost at feature parity with the Drop 4 release. So I finally decided to check in new bits into the Subversion repository.
Here’s a brief summary of what’s changed:
- Better coverage in trapping CLR exceptions and marshaling them to Ruby.
- Better error reporting – you will see both a CLR and a Ruby stack trace if your application crashes.
- Better performance, the unit tests run about 60% faster than in Drop 4.
- Cleaner organization of code in the C++ layer. I would say that 90% of the code was touched during this rewrite (which is why it took so long).
- Vastly improved support for generics and nested types.
- Independent set of unit tests for new reflection library.
- Better separation of layers. Things are very strict in this release and it’s much more obvious which layer you’re coding in.
Most of the samples work, including the prototype irb in Avalon. I’ll fix the few remaining bugs on my list and will probably release a Drop 5 tomorrow in anticipation of Beta 1 (which will include docs!) in time for RubyConf.

5 archived reader comments
Nathan (2006-09-15)
You mean you have a months worth of work that is not checked in anywhere, not even on a branch? That seems just a little bit reckless to me.
Then again the computer department where I work (I’m not a professional developer) don’t use any version control software at all. so what do I know.
Peter Krantz (2006-09-15)
Way to go John! This looks very promising. It looks like we are close to be able to sun Rails on either the JVM or CLR in the near future. Has Microsoft made you an offer yet? :-)
John Lam (2006-09-15)
It was checked into a private repository here, just not the main respository. The new code was very broken for a very long time (this was a fundamental rewrite) that it didn’t make any sense to have it in the public repository.
Justin (2006-09-15)
John,
I can’t get to the subversion repository from behind my proxy at work. Any chance you are going to put this in a gem soon or make a new downloadable release?
John Lam (2006-09-15)
New snapshot will be out tonight (I have a lousy net connection here at the library where I do most of my work).