[Ironruby-core] Code Review: socket2

Peter Bacon Darwin bacondarwin at googlemail.com
Wed May 7 10:33:03 EDT 2008

The majority if not all of the IronRuby libraries have been written in C# so
far.  There have been discussions about this on the mailing list before.

There are a number of Ruby libraries that have been written in Ruby.  Once
IronRuby is fully compliant then it should be able to load these and run
them straight up.

Obviously stuff that cannot be written in Ruby (such as accessing hardware
devices and so on) has to be written in something else.  In CRuby these
libraries are written in C.  In IronRuby these are written in a .NET
language (i.e. C#).

That being said, since IronRuby provides .NET interop then it is conceivable
to write a Ruby library in Ruby and bounce out to the .NET framework classes
as necessary.  Obviously performance issues must be taken into account.
Also, there are issues discussed recently about packaging up such Ruby
libraries when deploying to Silverlight.


-----Original Message-----
From: ironruby-core-bounces at rubyforge.org
[mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of C.J. Adams-Collier
Sent: Wednesday,07 May 07, 2008 15:10
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Code Review: socket2

I see that the Ruby.StandardLibrary.RubySocket is implemented in C#.   
Is it common to write the core in C#?  Has anything been written in  
Ruby itself?

Sorry for the newbie question... is there a FAQ for this type of  

More information about the Ironruby-core mailing list