Ruby.NET

I had blogged earlier about Gardens Point Ruby.NET. After I read Don Box writing about it, I decided to give it a try.

I tried compiling some Ruby code. I failed to get the retry code to run. It kept giving "Unable to cast object of type 'Ruby.Object' to type 'Ruby.Class'" error.

I tried to compile other code like the webserver and line number and also closure code. Most of them compiled and worked. However wherever I had references to ruby library classes it failed to run due to lack of support. Since any piece of code that accomplishes something significant is bound to use some of these libraries it'll be difficult to truly check out Ruby.NET until it supports these libraries. However if calling .NET BCL libraries becomes possible it'll open a Pandora's box!!!

Overall I was fairly impressed with it. Especially a look into the generated exe using Reflector made my brain hurt. I'm sure it'd have been immensely difficult to fit a dynamic language like Ruby into a static-typed CLR. Facts like ruby methods can be dynamically added and removed from classes and that a class can be arbitrarily spread across files with no inter-connection between them complicates the whole thing.

The ability to call .NET framework from the Ruby code should've been enabled. With that the true power of Ruby.NET would have come out. Or did I fail to figure out how that can be done??