www.nickhodge.com

microsoft, munging and on being a mercurial iconoclastic professional geek.

Archive for the ‘dlr’ Category

First Irons in the Fire

with 2 comments

Irons in the Fire

Down­loaded from source and compiled.

Iron­Ruby seems pretty self-contained (ie: all the Libs + gems) come along

Iron­Py­thon: I need to find out how to point it at my cPy­thon install

Can do simple .pyw to Iron­Py­thon­Windows, includ­ing a call to .NET Windows.Forms

Off we go!

Written by Nick Hodge

September 9th, 2008 at 10:35 pm

Posted in dlr,microsoft

LOLCODE on DLR. Download it now

without comments

Written by Nick Hodge

November 11th, 2007 at 6:04 pm

Posted in dlr,lolcode,technology

John Lam and Jim Hugunin: DLR Presentation

without comments

Microsoft’s John Lam and Jim Hugunin go large with the DLR at MIX07. Here are my notes whilst listen­ing and watch­ing the presentation:

What to expect: a Mac, Text­Mate, Javas­cript, Python, Ruby, Safari and Silverlight.  Text­Mate equals text edit­ing. Sil­ver­light is not bin­ary, its just XML and text. You can break it apart and look at the gooey­ness inside. And some friendly Microsoft people ban­ter­ing about Ruby vs Python.

And DLR is going Open Source, like Iron­Py­thon.

What strikes me the most is that the lan­guage that people are com­fort­able with: Javas­cript, Python, Ruby, C# — you can code your cli­ent side in the same lan­guage as server side.

Also, hav­ing Ruby instan­ti­ate Javas­cript and call func­tions. Wow. With a C# object doing UI. Tech­nor­ati via XML through Yahoo!Pipes to JSON to Sil­ver­light on a Mac. Retriev­ing from the JSON object deseri­al­ised and quer­ied via LINQ.

Let alone doing Basic, with REM and all.

In their only Power­point slide, Jim details the per­form­ance gains of Iron­Py­thon on the CLR engine. I won­der if the perf gains are going to match to Ruby, too? Is the DLR/CLR going to be the saviour of the scal­ing bumps of Ruby?

Parts of the DLR (from Jim Hugunin at end of video):

  1. Dynamic type sys­tem, shared object system
  2. Shared host­ing API; host one, get all of ‘em. ruby bits are com­ing together now.
  3. Bunch of help­ers for com­piler writers, so dynamic lan­guage runs fast

Ques­tion: can use DLR inside con­sole, ASP.NET?

Answer: yes, you can use DLR any­where you are using .NET. More con­strained in Sil­ver­light, due to the sandbox.

Ques­tion: is it com­pil­ing an assembly, or execut­ing script

Answer: Dynamic meth­ods in .NET 2.0, for code gen­er­a­tion lazily; and is a dynamic method. Only held whilst there is a live ref­er­ence. ASP.NET scen­arios with stress test not held onto. Not using method rental; System.Reflection.EmitDynamicMethod

Ques­tion: JScript.NET vs. new Dynamic Lan­guage Jscript?

Answer: Developer want lan­guage pur­ity, not tight integ­ra­tion and fol­low­ing .NET. So fol­low the ECMA 3.0 spec. That’s Javas­cript. vs. Ruby “freelove” spe­cific­a­tion of Ruby is its imple­ment­a­tion, not a spe­cific­a­tion document.

Microsoft has changed, big time. My head is spinning.

Written by Nick Hodge

May 3rd, 2007 at 11:36 am

More DLR

without comments

John Lam, why Dynamic Lan­guages from John Udell pod­cast:

express­ing my intent in the code.

Inter­est­ing inter­view between Tim Heuer and John Lam on Ruby as a part of the announce­ments yesterday.

The Ruby sup­port from Microsoft is more than just Sil­ver­light; it also crosses into the server and the cli­ent, out­side the browser.

21st Cen­tury Small­Talk: Iron­Py­thon 2.0 in a browser, per­form­ance and dynamic fun.

Written by Nick Hodge

May 2nd, 2007 at 12:15 pm

Miguel de Icaza on DLR

without comments

Miguel de Icaza, lead of the Mono pro­ject (open­source CLR) on the new Dynamic Lan­guage Runtime:

Bin­ar­ies of the DLR were released today as part of Sil­ver­light 1.1, and the source code was included with Iron­Py­thon 2.0 (also released today).

The release for the DLR is done under the terms of the Microsoft Per­missive License (MsPL) which is by all means an open source license. This means that we can use and dis­trib­ute the DLR as part of Mono without hav­ing to build it from scratch. A bril­liant move by Microsoft.

Written by Nick Hodge

May 1st, 2007 at 8:02 pm

By the light of Dynamic Silverlight

without comments

Keep­ing secrets is tough. Hear­ing about the Dynamic Lan­guage Runtime (DLR) from John Lam in Feb­ru­ary this year was one of those secrets that kept well.

John Udell inter­viewed John Lam, and has a back­grounder here. Some in the Ruby com­munity didn’t see this com­ing.

Jim Hugunin has a post­ing on the new DLR, open source nature of the DLR on his “Think­ing Dynam­ic­ally” blog.

In addi­tion to the Sil­ver­light release, we’ve also made the full source code for both Iron­Py­thon and all of the new DLR plat­form code avail­able on code­plex under the BSD-style Microsoft Per­missive License. All of that code can be down­loaded today as part of the Iron­Py­thon pro­ject at codeplex.com/ironpython.

The real­ity of being able to debug Ruby in a client-side UI frame­work on Safari on a Mac using Microsoft Sil­ver­light tickles me, and oth­ers, greatly.

Blog from the key­note today, with all the ups-and-downs. Good to see I am not the only one who craves demos and has sub­vers­ive thoughts in the midst of formal sessions.

Ryan Stew­art has com­ments, and fur­ther links. The DLR adds 400K (what the!) to the Sil­ver­light down­load. Wow.

zdnet has a sort of tran­script of the Q&A that occured with Mike Arring­ton, Ray Ozzie and Scottgu.

Does Microsoft get Web 2.0? Yes.

Written by Nick Hodge

May 1st, 2007 at 9:56 am