A major new feature of RubyCLR is implementing CLR interfaces using Ruby. This will provide most of the goodness of the ‘how do I call Ruby code from my .NET code?’ scenario without having to derive a Ruby class from a .NET class (a much harder problem).
A key driver for this scenario is supporting data binding without having to hand-write CLR wrapper classes for those interfaces (right now I only support calling Ruby code via delegates). This support is there in the current drop, but will be completely rewritten in Ruby in the next drop.
However, I ran into numerous blocking issues over the past week. True, I was distracted setting up my new MacBook Pro, but I resumed work mid-week on RubyCLR and fought issues in both Ruby and Reflection.Emit (I’m pretty sure I found a bug in ILGenerator). I’ve got workarounds for all of those issues, so I’m pretty sure I can get something up and running tomorrow.
More news soon.
3 archived reader comments
mrak (2006-04-17)
Pardon my ignorance but I’ve just discovered your RubyCLR project and I was wondering how do you evaluate ruby code within .net code? Do you have your own interpreter or do you call external ruby interpeter?
John Lam (2006-04-17)
RubyCLR bridges the Ruby interpreter and the CLR. So when you call Ruby code, it’s executing within the context of the Ruby interpreter (which acts as a host for the CLR).
mrak (2006-04-17)
So basically it is ruby code within c# code within ruby code ;-)