Microsoft Releases Pre-Alpha IronRuby Including Source

As announced today on Scott Guthrie's blog Microsoft has released a pre-alpha for IronRuby. IronRuby is Microsoft's implementation of the Ruby language which is a follow up dynamic language to IronPython. IronRuby is fully integrated with the .NET Framework and will be able to run cross-platform through Silverlight 1.1 as well as run on Windows desktop and server platforms through all versions of the .NET Framework. Users will be able to use the full .NET FX APIs from Ruby. IronRuby will be a community driven, shared-source project similar to IronPython. Microsoft believes IronPython project has shown that the community takes a deep interest to make languages work cross-platform and we also hope to do this as well with the Ruby community.

There are some great getting started samples that you can play with on Scott Guthrie's blog. Now to make it really simple for you to try out a dynamic language here's the first steps to getting going.

  1. Get the .NET Framework 3.0. Visual Studio is not required.

  2. Get the Iron Ruby Pre-Alpha release.

  3. Unzip the release and open a CMD prompt

  4. Build the IronRuby source. Note that if you aren't using a Windows SDK Prompt or a Visual Studio Prompt you will have to set the two environment variables FRAMEWORKDIR and FRAMEWORKVERSION first.
     
    The important commands to build are:

    set frameworkdir=c:\windows\Microsoft.NET\Framework

    set frameworkversion=v2.0.50727

    build

  5. Run RBX.EXE and try the samples from Scott Guthrie's blog.

Running up RBX that you've just compiled and having it execute simple ruby commands through to WPF windows is cool.