[IronPython] Announcing IronPython 2.0 VS10 CTP

Curt Hagenlocher curt at hagenlocher.org
Mon Oct 27 17:38:39 PDT 2008


List<object> is a heterogenous data container.

There's nothing in dynamic typing that is dependent on changes in the
underlying CLR code execution engine -- otherwise, we wouldn't be able to
ship basically the same DLR for CLR 2 as what's included in CLR 4.  Value
types still need to be boxed to be treated as "dynamic".

Do I misunderstand what you mean?

On Mon, Oct 27, 2008 at 4:17 PM, Dody Gunawinata <empirebuilder at gmail.com>wrote:

> I wonder if this Dynamic Type finally allow heterogeneous data container to
> be used in C#.
> This is from the sample code
> "  static void Main(string[] args)        {
>             Console.WriteLine("Loading helloworld.py...");
>
>             ScriptRuntime py = Python.CreateRuntime();
>             dynamic helloworld = py.UseFile("helloworld.py");
>
>             Console.WriteLine("helloworld.py loaded!");
>
>
>             for (int i = 0; i < 1000; i++)
>             {
>                 Console.WriteLine(helloworld.welcome("Employee #{0}"), i);
>             }
>             Console.WriteLine();
>         }"
>
> Now if helloworld actually returns a tuple or mixed typed array, can it
> actually be used in the C# program?
>
> Dody G.
>
> On Tue, Oct 28, 2008 at 12:47 AM, Curt Hagenlocher <curt at hagenlocher.org>wrote:
>
>> Sixteen months ago, Eric Lippert wrote:
>> "Second, this raises the question of whether C# ought to support some of
>> the dynamic features which languages like JScript, Ruby, Python, etc,
>> support. The VB team's motto as far as this question is concerned has always
>> been early binding when possible, late binding when necessary.  The C# team,
>> by contrast, has always cleaved to the principle that we do early binding
>> when possible, late binding when the user explicitly writes umpteen dozen of
>> lines of ugly reflection code."
>> [
>> http://blogs.msdn.com/ericlippert/archive/2007/06/21/calling-static-methods-on-type-variables-is-illegal-part-three.aspx
>> ]
>>
>> Philosophically, this is basically still true -- you have to explicitly
>> opt-in to the dynamic behavior.  What's changed is that we've written those
>> "umpteen dozen of lines of ugly reflection code" for you.
>>
>>
>> As for the feature list being underwhelming, there are undoubtedly many
>> people who take the opposite position -- that the language is evolving far
>> too quickly for them to assimilate.  And in truth, I can't think of a
>> programming language with C#'s rate of adoption which has evolved as quickly
>> or as radically as C# has.
>>
>>
>> On Mon, Oct 27, 2008 at 3:36 PM, Dody Gunawinata <empirebuilder at gmail.com
>> > wrote:
>>
>>> Yup. It looks like more information needed on all of these dynamic
>>> features. In the first glance it looks like C# 4.0 is turning into VB 6 :)
>>>
>>>
>>> On Tue, Oct 28, 2008 at 12:17 AM, Dino Viehland <dinov at microsoft.com>wrote:
>>>
>>>>  You might find Dynamic / DynamicObject to be more useful for doing
>>>> simple method-missing style calls.  IDynamicObject gives you a lot of power
>>>> you might not need – but then again you can do some pretty cool things with
>>>> it too.
>>>>
>>>>
>>>>
>>>> *From:* users-bounces at lists.ironpython.com [mailto:
>>>> users-bounces at lists.ironpython.com] *On Behalf Of *Dody Gunawinata
>>>> *Sent:* Monday, October 27, 2008 3:13 PM
>>>> *To:* Discussion of IronPython
>>>> *Subject:* Re: [IronPython] Announcing IronPython 2.0 VS10 CTP
>>>>
>>>>
>>>>
>>>> Although it looks like IDynamicObject looks like C# equivalent of method_missing.
>>>> Now that's something to celebrate.
>>>>
>>>> On Tue, Oct 28, 2008 at 12:02 AM, Dody Gunawinata <
>>>> empirebuilder at gmail.com> wrote:
>>>>
>>>> Is it me or is C# 4.0 feature list so far is underwhelming? (I know,
>>>> it's a wrong list)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Oct 27, 2008 at 6:33 PM, Srivatsn Narayanan <
>>>> srivatsn at microsoft.com> wrote:
>>>>
>>>>   Hello IronPython Community,
>>>>
>>>>
>>>>
>>>> This is a special release of IronPython designed to work with the Visual
>>>> Studio 2010 CTP<https://connect.microsoft.com/VisualStudio/content/content.aspx?ContentID=9790>.
>>>> This release will let you try out C# 4.0's new Dynamic feature, which allows
>>>> you to easily call into dynamic object models such as IronPython modules
>>>> from your C# code.
>>>>
>>>>
>>>>
>>>> To get started using IronPython with C#'s Dynamic feature:
>>>>
>>>> 1.       Install this .MSI<http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=18448>on your Visual Studio 2010 CTP Virtual PC image, either by enabling network
>>>> access or sharing a host folder in Virtual PC's settings.
>>>>
>>>> 2.       In Visual Studio 2010, click the *CTP Walkthroughs* link on
>>>> the Start Page and browse to the *Visual Studio* walkthroughs.  Follow
>>>> along with the *Dynamic Programming in C#* walkthrough.
>>>>
>>>>
>>>>
>>>> This release is not related to the recently released IronPython 2.0 RC1.
>>>> In fact, this is based on source code from the beta4 timeframe. Also note
>>>> that this release will only work with the VS10 CTP and not against any other
>>>> version of .NET.
>>>>
>>>>
>>>>
>>>> You can download the release here -
>>>> http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=18448
>>>>
>>>>
>>>>
>>>> The IronPython Team
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> nomadlife.org
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> nomadlife.org
>>>>
>>>
>>>
>>>
>>> --
>>> nomadlife.org
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ironpython.com
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>>
>>
>
>
> --
> nomadlife.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20081027/385f9e58/attachment.htm>


More information about the Users mailing list