IronRuby

{{Short description|.NET implementation of Ruby}}

{{Use mdy dates|date=July 2023}}

{{Infobox software

| name = IronRuby

| logo = IronRuby Logo.png

| screenshot =

| caption =

| author = Microsoft Dynamic Language Runtime Team

| developer = .NET Foundation

| released = {{Start date and age|2007|08|31}}

| latest release version = IronRuby 1.0

| latest release date = {{Start date and age|2010|04|12}}

| latest preview version = IronRuby 1.1.3

| latest preview date = {{Start date and age|2011|03|13}}

| repo = {{URL|https://github.com/IronLanguages/ironruby}}

| programming_language = C#

| operating system = Windows, Linux, macOS

| platform = .NET Framework, Mono

| genre = Ruby programming language compiler{{cite web

| url = http://blogs.msdn.com/somasegar/archive/2007/07/23/early-look-at-ironruby.aspx

| title = Early look at IronRuby

| author = S. Somasegar

| author-link = S. Somasegar

| access-date = July 25, 2007}}{{cite web

| url = http://rubyforge.org/projects/ironruby/

| title = RubyForge: IronRuby: Project Info

| access-date = September 7, 2007

| archive-url = https://web.archive.org/web/20160925061950/http://rubyforge.org/projects/ironruby/

| archive-date = September 25, 2016

| url-status = dead

}}

| license = Apache License 2.0

| website = {{URL|http://www.ironruby.net}}

}}

IronRuby is an implementation of the Ruby programming language targeting Microsoft .NET Framework. It is implemented on top of the Dynamic Language Runtime (DLR), a library running on top of the Common Language Infrastructure that provides dynamic typing and dynamic method dispatch, among other things, for dynamic languages.

The project is currently inactive, with the last release of IronRuby (version 1.1.3) being in March 2011.

History

On April 30, 2007, at MIX 2007, Microsoft announced IronRuby, which uses the same name as Wilco Bauwer's IronRuby project with permission.{{cite web|url=http://www.wilcob.com/Wilco/IronRuby/microsoft_ironruby.aspx |title=Microsoft's Iron Ruby |author=Wilco Bauwer |access-date=July 24, 2007 |archive-url=https://web.archive.org/web/20070929025914/http://www.wilcob.com/Wilco/IronRuby/microsoft_ironruby.aspx |archive-date=September 29, 2007 |url-status=dead }} It was planned to be released to the public at OSCON 2007.{{cite web | url = http://www.iunknown.com/2007/05/microsoft_and_i.html | title = Microsoft and IronRuby | author = John Lam | access-date = June 18, 2007 | url-status = dead | archive-url = https://web.archive.org/web/20070612185141/http://www.iunknown.com/2007/05/microsoft_and_i.html | archive-date = June 12, 2007 }}

On July 23, 2007, as promised, John Lam and the DLR Design Team presented the pre-Alpha version of the IronRuby compiler at OSCON. He also announced a quick timeline for further integration of IronRuby into the open source community.{{cite web | url = http://www.iunknown.com/2007/07/a-first-look-at.html | title = A First Look at IronRuby | author = John Lam | access-date = July 23, 2007 | url-status = dead | archive-url = https://web.archive.org/web/20070726181932/http://www.iunknown.com/2007/07/a-first-look-at.html | archive-date = July 26, 2007 }}

On August 31, 2007, John Lam and the DLR Design Team released the code in its pre-alpha stage on RubyForge.{{cite web

|url = http://www.iunknown.com/2007/08/ironruby-on-rub.html

|title = IronRuby on Rubyforge!

|quote = Today, you must check the source code out of the IronRuby Subversion repository on Rubyforge. You will need a Subversion client; we recommend TortoiseSVN. To build the sources from the command line, you must also have Ruby installed on your computer already

|last = Lam

|first = John

|access-date = August 31, 2007

|url-status = dead

|archive-url = https://web.archive.org/web/20070903213020/http://www.iunknown.com/2007/08/ironruby-on-rub.html

|archive-date = September 3, 2007

}} The source code has continued to be updated regularly by the core Microsoft team (but not for every check-in). The team also does not accept community contributions for the core Dynamic Language Runtime library, at least for now.{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2008-April/001507.html

|title = Regarding IronRuby... How true it sounds from this blog

|quote = The DLR does not accept contributions from the community (...) Today we do not push to SVN on every successful SNAP check-in

|last = Lam

|first = John

|date = April 29, 2008

|access-date = May 25, 2008

|archive-url = https://web.archive.org/web/20090316034858/http://rubyforge.org/pipermail/ironruby-core/2008-April/001507.html

|archive-date = March 16, 2009

|url-status = dead

}}

On July 24, 2008, the IronRuby team released the first binary alpha version, in line with OSCON 2008.{{cite web

|url = http://www.iunknown.com/2008/07/ironruby-at-oscon.html

|title = IronRuby at OSCON

|last = Lam

|first = John

|quote = We're shipping our first binary release. In this package, we’re taking a “batteries included” approach and shipping the Ruby standard libraries in it

|date = July 24, 2008

|access-date = August 4, 2008

|url-status = dead

|archive-url = https://web.archive.org/web/20080807064758/http://www.iunknown.com/2008/07/ironruby-at-oscon.html

|archive-date = August 7, 2008

}} On November 19, 2008, they released a second Alpha version.

The team actively worked to support Rails on IronRuby.{{cite web

|url = http://en.oreilly.com/rails2008/public/schedule/detail/2056

|title = IronRuby on Rails

|access-date = May 25, 2008

|archive-date = May 29, 2009

|archive-url = https://web.archive.org/web/20090529055728/http://en.oreilly.com/rails2008/public/schedule/detail/2056

|url-status = dead

}}{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2008-May/001911.html

|title = IronRuby r112 is out

|last = Lam

|first = John

|date = May 24, 2008

|access-date = May 25, 2008

|archive-url = https://web.archive.org/web/20090316133356/http://rubyforge.org/pipermail/ironruby-core/2008-May/001911.html

|archive-date = March 16, 2009

|url-status = dead

}} Some Rails functional tests started to run, but a lot of work still needed to be done to be able to run Rails in a production environment.{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2008-May/001909.html

|title = IronRuby / Rails Question

|last = Lam

|first = John

|quote = I don't think we're near the end game yet :) We're barely able to run Rails functional tests now, and there's a lot more library work to be done before we can start thinking about deployment

|date = May 25, 2008

|access-date = May 25, 2008

|archive-url = https://web.archive.org/web/20090317090824/http://rubyforge.org/pipermail/ironruby-core/2008-May/001909.html

|archive-date = March 17, 2009

|url-status = dead

}}

On May 21, 2009, they released 0.5 version in conjunction with RailsConf 2009. With this version, IronRuby could run some Rails applications, but still not on a production environment.{{cite web

|url = http://blog.jimmy.schementi.com/2009/05/ironruby-at-railsconf-2009.html

|title = IronRuby at RailsConf 2009

| last=Schementi|first=Jimmy

|quote = IronRuby running Rails is not new, but doing it well or completely – is. IronRuby can now run real Rails applications, rather than just toy-hello-world examples. This does not mean IronRuby on Rails is ready for production, but it’s a great measure of forward progress

|date=May 25, 2008

|access-date = May 25, 2008}}

Version 0.9 was announced as OSCON 2009.{{cite web

|url = http://en.oreilly.com/oscon2009/public/schedule/detail/7965

|title = IronRuby 0.9

|date = July 23, 2009

|access-date = August 3, 2009

|archive-date = May 12, 2009

|archive-url = https://web.archive.org/web/20090512192141/http://en.oreilly.com/oscon2009/public/schedule/detail/7965

|url-status = dead

}} This version improved performance.{{cite web

|url = http://antoniocangiano.com/2009/08/03/performance-of-ironruby-ruby-on-windows/

|title = Comparing the performance of IronRuby, Ruby 1.8 and Ruby 1.9 on Windows

| last=Cangiano|first=Antonio

|date = August 3, 2009

|access-date = August 3, 2009}} Version 1.0 RC1 became available on November 20, 2009.{{cite web

|url = http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35312

|title = IronRuby 1.0RC1

|date = November 20, 2009

|access-date = December 29, 2009

|archive-date = December 21, 2009

|archive-url = https://web.archive.org/web/20091221031512/http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35312

|url-status = dead

}}

Version 1.0 became available on April 12, 2010, in two different versions:

  • The preferred one, which runs on top of .NET 4.0.
  • A version with more limited features, which ran on top of .NET 2.0. This version was the only one compatible with Mono.{{cite web

|url = http://ironruby.codeplex.com/releases/view/25901

|title = IronRuby 1.0 release notes

|date = April 12, 2010

|quote = IronRuby now comes in two flavors - one that runs on top of .NET 4.0, and one that runs on any earlier framework starting with .NET 2.0 SP1. The .NET 4.0 flavor features faster startup time, compatibility with C#’s dynamic keyword, and access to the new features in .NET 4.0. So, the .NET 4.0 flavor is the preferred download now, as the Microsoft .NET Framework 4.0 is publicly available as of today. For Mono compatibility, use the zip file release for 2.0 SP1.

|access-date = April 17, 2010

|archive-date = April 16, 2010

|archive-url = https://web.archive.org/web/20100416135406/http://ironruby.codeplex.com/releases/view/25901

|url-status = dead

}}

The IronRuby team planned to support Ruby 1.8.6 only for 1.0 point releases, and 1.9 version only for upcoming 1.x releases, skipping support for Ruby 1.8.7.{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2010-February/006301.html

|title = MRI 1.8.7 compatibility

|date = February 12, 2010

|access-date = March 6, 2010

|archive-date = September 28, 2011

|archive-url = https://web.archive.org/web/20110928023501/http://rubyforge.org/pipermail/ironruby-core/2010-February/006301.html

|url-status = dead

}}{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2010-February/006323.html

|title = MRI 1.8.7 compatibility

|date = February 14, 2010

|quote = IronRuby 1.0.x releases: ONLY ruby-1.8.6 compatible; IronRuby 1.x releases: ONLY ruby-1.9 compatible

|access-date = March 6, 2010

|archive-date = September 28, 2011

|archive-url = https://web.archive.org/web/20110928023507/http://rubyforge.org/pipermail/ironruby-core/2010-February/006323.html

|url-status = dead

}}

In July 2010, Microsoft let go [http://jimmy.schementi.com Jimmy Schementi], one of two remaining members of the IronRuby core team, and stopped funding the project.{{cite web

| url=http://www.infoworld.com/article/2625762/ruby/it-s-not-you--it-s-me--microsoft-kills-ironruby.html

| title=It's not you, it's me: Microsoft kills IronRuby

| publisher=InfoWorld

| date = August 11, 2010

| access-date=December 28, 2012}}{{cite web

| url=http://blog.jimmy.schementi.com/2010/08/start-spreading-news-future-of-jimmy.html

| title="Start spreading the news": the future of Jimmy and IronRuby

| last=Schementi|first=Jimmy

| date = August 6, 2010

| quote=Overall, I see a serious lack of commitment to IronRuby, and dynamic language on .NET in general. At the time of my leaving Tomas and myself were the only Microsoft employees working on IronRuby

| access-date=December 28, 2012}} In October 2010 Microsoft announced the Iron projects (IronRuby and IronPython) were being changed to "external" projects and enabling "community members to make contributions without Microsoft's involvement or sponsorship by a Microsoft employee".{{cite web|last1=Zander|first1=Jason|title=New Components and Contributors for IronPython and IronRuby|url=http://blogs.msdn.com/b/jasonz/archive/2010/10/21/new-components-and-contributors-for-ironpython-and-ironruby.aspx|publisher=Microsoft|access-date=December 27, 2014}}

The last published release of IronRuby was on March 13, 2011 as version 1.1.3.{{cite web | url=http://ironruby.codeplex.com/releases/view/60511 | title=IronRuby 1.1.3 | publisher=ironruby.codeplex.com | date=March 13, 2011 | access-date=May 19, 2013 | archive-date=May 30, 2013 | archive-url=https://web.archive.org/web/20130530020039/http://ironruby.codeplex.com/releases/view/60511 | url-status=dead }}

Architecture

=Mono support=

IronRuby may run as well on Mono as it does on Microsoft Common Language Runtime (CLR),{{cite web

| url=http://tirania.org/blog/archive/2009/Jul-27.html

| title=Improving Mono's compatibility with .NET CLR

| author=Miguel de Icaza

| author-link=Miguel de Icaza

| quote=For as long as we remember, most new versions of IronPython, IronRuby or the Dynamic Language Runtime exposed new missing functionality in Mono

| date=July 27, 2009

| access-date=August 3, 2009}} but as the IronRuby team only tests it with the CLR on Windows.,{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2008-August/002553.html

|title = IronRuby and Mono

|last = Sanghyeon

|first = Seo

|date = August 6, 2008

|access-date = September 13, 2008

|url-status = dead

|archive-url = https://web.archive.org/web/20090316034903/http://rubyforge.org/pipermail/ironruby-core/2008-August/002553.html

|archive-date = March 16, 2009

}} it may not build on Mono depending on the build.{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2008-September/002787.html

|title = IronRuby and Mono

|last = Vander Schelden

|first = Wim

|date = September 4, 2008

|access-date = September 13, 2008

|url-status = dead

|archive-url = https://web.archive.org/web/20090316034940/http://rubyforge.org/pipermail/ironruby-core/2008-September/002787.html

|archive-date = March 16, 2009

}}{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2009-January/003654.html

|title = DLR Daily Builds (including IronRuby)

|last = Hall

|first = Ben

|date = January 23, 2009

|access-date = January 23, 2009

|url-status = dead

|archive-url = https://web.archive.org/web/20090315051756/http://rubyforge.org/pipermail/ironruby-core/2009-January/003654.html

|archive-date = March 15, 2009

}}{{cite web

|url = http://rubyforge.org/pipermail/ironruby-core/2009-May/004638.html

|title = mono builds

|last = Porto Carrero

|first = Ivan

|date = May 26, 2009

|access-date = June 5, 2009

|url-status = dead

|archive-url = https://web.archive.org/web/20120223233113/http://rubyforge.org/pipermail/ironruby-core/2009-May/004638.html

|archive-date = February 23, 2012

}}

=.NET interoperability=

The interoperability between IronRuby classes and regular .NET Framework classes is very limited because many Ruby classes are not .NET classes.{{cite web

| url=http://rubyforge.org/pipermail/ironruby-core/2008-December/003390.html

| title=Xna+IronRuby+RubyNewb=headache

| last=Hagenlocher

| first=Curt

| date=December 16, 2008

| access-date=December 20, 2008

| archive-url=https://web.archive.org/web/20090316034935/http://rubyforge.org/pipermail/ironruby-core/2008-December/003390.html

| archive-date=March 16, 2009

| url-status=dead

}} However, better support for dynamic languages in .NET 4.0 may increase interoperability in the future.{{cite web

| url=http://rubyforge.org/pipermail/ironruby-core/2008-December/003378.html

| title=WPF databinding with ruby objects

| last=Brotherus

| first=Robert

| date=December 12, 2008

| access-date=December 13, 2008

| archive-url=https://web.archive.org/web/20090325052400/http://rubyforge.org/pipermail/ironruby-core/2008-December/003378.html

| archive-date=March 25, 2009

| url-status=dead

}}{{cite web |title=Dynamic .NET - Creating Interactive Bing Maps with Silverlight and IronRuby |url=https://learn.microsoft.com/en-us/archive/msdn-magazine/2010/february/dynamic-net-creating-interactive-bing-maps-with-silverlight-and-ironruby |website=learn.microsoft.com |date=September 22, 2015 |language=en-us}}

= Silverlight support =

IronRuby was supported on Silverlight. It could be used as a scripting engine in the browser just like the JavaScript engine.[http://ironruby.net/browser/index.html IronRuby in the browser - IronRuby.net] IronRuby scripts were passed like simple client-side JavaScript-scripts in

The same worked for IronPython.{{cite news |title=Silverlight: Embed IronRuby/DLR Scripting within XAML using IValueConverter and Custom UserControl {{!}} Chris Pietschmann |url=https://pietschsoft.com/post/2010/10/02/silverlight-embed-ironrubydlr-scripting-within-xaml-using-ivalueconverter-and-custom-usercontrol |work=pietschsoft.com}}

=Testing infrastructure=

IronRuby integrated RubySpec, which is a project to write a complete, executable specification for the Ruby programming language. The IronRuby Git repo includes a copy of the RubySpec tests, including the MSpec test framework.{{cite web

| url=https://github.com/ironruby/ironruby/wiki/RubySpec

| title=RubySpec

| website=GitHub

| quote=The IronRuby GIT repo includes a copy of the RubySpec tests, including the MSpec test framework, under External.LCA_RESTRICTED\Languages\IronRuby\mspec. This makes it easy to modify existing tests or write new tests, and fix the bugs in the IronRuby sources, all in a single commit to the IronRuby repo.| access-date=October 23, 2010}}

License

IronRuby was previously released under the Microsoft Public License, which is OSI-certified BSD-style license.{{cite news |last1=Bort |first1=Julie |title=After three years effort, Microsoft's open source IronRuby stable and available |url=https://www.networkworld.com/article/2230442/after-three-years-effort--microsoft-s-open-source-ironruby-stable-and-available.html |work=Network World |date=April 14, 2010 |language=en}}

On July 16, 2010, Microsoft re-licensed IronRuby along with the DLR under the Apache License 2.0.{{cite web

| url=http://ironruby.codeplex.com/license

| title=IronRuby License

| date=July 16, 2010

| access-date=July 27, 2010

| archive-date=December 6, 2010

| archive-url=https://web.archive.org/web/20101206001330/http://ironruby.codeplex.com/license

| url-status=dead

}}

Further reading

  • {{Cite book|author1-last=Friedman|author1-first=Shay|year=2010|title=IronRuby Unleashed|publisher=Sams Publishing|isbn=978-0-672-33078-0}}
  • {{Cite book|author1-last=Porto Carrero|author1-first=Ivan|author2-last=Burmister|author2-first=Adam|year=2010|title=IronRuby in Action|publisher=Manning Publications|isbn=978-1-933988-61-0}}

See also

{{Portal|Free and open-source software|Computer programming}}

{{Clear}}

References

{{Reflist}}