System.Scripting 6

Posted by Jb Evain Thu, 31 Jul 2008 08:36:00 GMT

Plume

Two days ago, I was sharing what I was foreseeing for C# 4 and .net 4, and the integration with the DLR.

Turns out that today, by reading this post, my eye was caught by the namespace I was thinking about: System.Scripting.

But this post is about the beta 4 of IronPython 2, that hasn’t been released yet. But heh, it’s easy to forget that latest IronPython code can be downloaded from CodePlex’s TFS.

And it indeed turns out, that in the latest revision, Microsoft.Scripting.Core namespace has been renamed to System.Scripting, and that the DLR AST has been merged into System.Linq.Expressions.

So yeah, I guess we can safely admit that C# 4 will have statements support inside expression trees.

And that .net 4 will contain very cute features for dynamically generating programs, without resorting to emitting plain IL, simply using the DLR, contained in a new assembly (or namespace, if they move some to parts to System.Core), System.Scripting.

Trackbacks

Use the following link to trackback from your own site:
http://www.evain.net/blog/articles/trackback/493

Comments

Leave a response

  1. Romain Verdier Thu, 31 Jul 2008 09:37:51 GMT

    That’s a good news.

    So, we will be able to leverage all the DLR power from non dynamic languages, like C#, if our need is to create code dynamically. Manipulating AST instead of emitting CIL with LCG and SRE, right ?

  2. Jb Evain Thu, 31 Jul 2008 09:43:31 GMT

    Exactly. The DLR is dynamic language oriented, so the generated code tend to me sometimes complex, but that’s the use case :)

  3. Guillem Thu, 31 Jul 2008 09:46:41 GMT

    Some hints had already been dropped by the brains around Anders Heljsberg in this (interesting) video: http://channel9.msdn.com/posts/Charles/C-40-Meet-the-Design-Team/

  4. Guillem Thu, 31 Jul 2008 09:48:55 GMT

    Nevermind, I should have read your previous post before commenting ;)

  5. Jason Schluter Fri, 01 Aug 2008 05:04:35 GMT

    So Silverlight 3.0 with Dynamic C#

    *Smiling ear to ear

  6. Jb Evain Fri, 01 Aug 2008 07:27:26 GMT

    Well, I don’t think «Dynamic C#» is the appropriate naming. I mean, C# is and will stay a statically typed language.

    But it will certainly have better integration with dynamic languages.

Comments