BT

Your opinion matters! Please fill in the InfoQ Survey!

IronJS – A new JavaScript Compiler for the DLR

| by Jonathan Allen Follow 198 Followers on Feb 18, 2010. Estimated reading time: less than one minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

With Jscript.NET more or less abandoned by Microsoft, there is an opening for a new JavaScript compatible language on the CLR. Fredrik Holmström is trying to fill the void with IronJS. Like the other Iron languages by Microsoft and independent developers, it is based on the Dynamic Language Runtime. This includes the DLR’s hosting framework and unified object model.

While still in the early stages, IronJS currently runs CLR 2 and Mono 2.6 and can compile jQuery 1.4. IronJS is being offered on github under the Microsoft Public License.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Silverlight Support by Ryan Riley

The only thing missing is Silverlight support. It currently depends upon System.Web, so some changes will need to be made to get it running on Silverlight. However, once it does, it would be theoretically possible to swap out IE's JS engine for IronJS through Gestalt [1]. Actually, I wouldn't mind seeing IE adopt the DLR as its scripting engine and use IronJS for its JavaScript runtime.

[1] gestalt.codeplex.com/

Re: Silverlight Support by Stefan Wenig

Interesting. But there's a chance IronJS + COM interop is slower when accessing the HTML DOM than poor old JScript, depending on your ratio of DOM access vs. pure JavaScript execution.

Re: Silverlight Support by Ryan Riley

What's COM got to do with it? Silverlight can access the HTML directly, so I would think you could access the current document just fine. Am I missing something?

Re: Silverlight Support by Stefan Wenig

But how does Silverlight (.NET) access IE's DOM (exposed via COM)? I assume they're using some kind of COM interop internally. Just because you can't see it...

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

4 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT