ArticleslgStudy

computer science

IronRuby

IronRuby is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand IronRuby rather than just read about it. In short: 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.

IronRuby — main illustration
IronRuby — illustration

Key takeaways

  • IronRuby belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect IronRuby to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of IronRuby from memory before moving on to harder problems.

Reference excerpt

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. It was planned to be released to the public at OSCON 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. On August 31, 2007, John Lam and the DLR Design Team released the code in its pre-alpha stage on RubyForge. 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. On July 24, 2008, the IronRuby team released the first binary alpha version, in line with OSCON 2008. On November 19, 2008, they released a second Alpha version. The team actively worked to support Rails on IronRuby. 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. 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. Version 0.9 was announced as OSCON 2009. This version improved performance. Version 1.0 RC1 became available on November 20, 2009. 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. 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. In July 2010, Microsoft let go Jimmy Schementi, one of two remaining members of the IronRuby core team, and stopped funding the project. 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". The last published release of IronRuby was on March 13, 2011 as version 1.1.3.

Architecture

Mono support IronRuby may run as well on Mono as it does on Microsoft Common Language Runtime (CLR), but as the IronRuby team only tests it with the CLR on Windows., it may not build on Mono depending on the build.

.NET interoperability The interoperability between IronRuby classes and regular .NET Framework classes is very limited because many Ruby classes are not .NET classes. However, better support for dynamic languages in .NET 4.0 may increase interoperability in the future.

Silverlight support IronRuby was supported on Silverlight. It could be used as a scripting engine in the browser just like the JavaScript engine. IronRuby scripts were passed like simple client-side JavaScript-scripts in <script>-tags. It is then also possible to modify embedded XAML markup. The technology behind this was called Gestalt.

The same worked for IronPython.

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.

License IronRuby was previously released under the Microsoft Public License, which is OSI-certified BSD-style license. On July 16, 2010, Microsoft re-licensed IronRuby along with the DLR under the Apache License 2.0.

Further reading Friedman, Shay (2010). IronRuby Unleashed. Sams Publishing. ISBN 978-0-672-33078-0. Porto Carrero, Ivan; Burmister, Adam (2010). IronRuby in Action. Manning Publications. ISBN 978-1-933988-61-0.

See also

IronPython IronScheme JRuby Ruby on Rails, an open source web application framework for Ruby

References

External links IronRuby home page IronRuby Archived December 30, 2009, at the Wayback Machine on Codeplex IronRuby source code S. Somasegar's blog entry announcing IronRuby State of IronRuby by John Lam at RubyConf 2007 IronRuby: The Right Language for the Right Job by John Lam at PDC2008

Worked examples

Example 1 — a first encounter with IronRuby

Start with the simplest possible case. Write down what IronRuby claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to IronRuby before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about IronRuby ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of IronRuby

In research
IronRuby appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses IronRuby in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
IronRuby is common in secondary-school and first-year university syllabi. It links to neighbouring topics .NET programming languages, 2007 software, Beta software, so understanding it makes those chapters shorter.
In everyday life
Look for IronRuby outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “IronRuby” →

How to study IronRuby in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what IronRuby means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain IronRuby out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is IronRuby in simple terms?

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 thi…

Why does IronRuby matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study IronRuby?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on IronRuby.

Tags

  • .NET programming languages
  • 2007 software
  • Beta software
  • Free software programmed in C Sharp
  • Microsoft free software
  • Microsoft programming languages
  • Ruby (programming language)
  • Software using the Apache license

Keep exploring