MSDN Flash
UK MSDN Flash
16 April 2008
Editor's Intro

Hello

The Register section has been quite short over the last couple of months (access past issues at our archive). So, it is great to see so many upcoming UK developer events this time (scroll down). One of those events is our first delivery of the MSDN Roadshow in Cardiff and astonishingly there are still places available so sign up now.

What isn't astonishing is the result of last issue's Poll: 80% of you use .NET Framework v2.0 or v3.5 (bypassing our intermediate release of v3.0). I could ask which version of Visual Studio you are using, but I can safely presume the majority would be using Visual Studio 2008... Instead, I am more interested in your work environments so please participate in this issue's Poll further down. Personally, before you ask, up until now in my career I have "ticked" 1, 2 and 3.

As you work your way through the Fresh and Register sections aiming for the Poll section, don't forget to read this issue's Article on the DLR from a non-Microsoft employee. The .NET space is getting even more interesting for C# and VB developers because of new options with dynamic (and even functional) languages, while still keeping the ability to use the .NET Framework – exciting times!

Cheers
Daniel

MSDNMSDN EventsMSDN ScreencastsEvaluation CentreDeveloper CentresMSDN

Fresh Discoveries
Articles
Book
Downloads
Recorded Video
Dan Reed: On the ManyCore Future and Parallelism in the Sky.
Focus is on the server-side parallelism problem which is distinct from the client problem.
Articles
Case Study
EMIS Accelerates GP Systems and Enhances Patient Care.
UK Healthcare Solutions Provider uses WPF, WCF, VS2008 and Windows Server 2008.
Downloads
Download
Windows Mobile 6.1 Emulator Images.
Windows Mobile 6.1 emulator images that can be used with or without Visual Studio.
Downloads
Download
Microsoft Robotics Developer Studio 2008 Community Technical Preview (CTP) April.
Environment for developers to create robotics apps across a wide variety of hardware.
Downloads
Download
Visual C++ 2008 Feature Pack Final Release.
Extends the VC++ MFC Libraries shipped with Visual Studio 2008, with cool new controls.
Articles
MSDN Magazine
Provisioning Mobile Devices.
Introduction to Configuration Service Providers plus more.
Articles
MSDN Magazine
Bjarne Stroustrup on the Evolution of Languages.
Interview with the inventor of C++.
Articles
KB Article
Visual Studio Debugger seems to hang when you start debugging MFC applications.
Invalid symbol path or a distant location, causing network latency.
Articles
Website
SharpSTS – a C# Code Library.
Allows development of an Information Card Security Token Service.
Articles
Controls Offer
Over 40 Individual WebForms and WinForms Controls Free of Charge.
Devexpress offer for controls that are supported in both VS2005 and VS2008.
Downloads
E-Learning
Downloads
Download
ASP.NET Dynamic Data Preview.
Provides usability improvements to working with data controls in ASP.NET Web sites.
Downloads
Download
Unity (Application Block) 1.0 by Patterns and Practises Team.
Lightweight extensible dependency injection container.
Downloads
Download
Visual Studio Team System Code Name "Rosario" April 2008 CTP (VPC Image).
A glimpse into the version of Team System that follows VSTS 2008.
Downloads
Download
.NET 3.5 Enhancements Training Kit with Labs, Demos and PPTs.
Content on MVC, Dynamic Data, AJAX History, Data Services and Entity Framework.
Articles
NY Times Article
Industry Giants Try to Break Computing’s Dead End.
Intel and Microsoft invest in multicore computing.
Articles
Blog
IsolatedStorage in Siverlight 2 Beta 1.
All you ever wanted to know about IsolatedStorage in Silvelight.

Register Now to Avoid Disappointment
Community event
Community event
Community event
21 April, Cardiff: MSDN Roadshow.
Community event
21 April, Coventry: NxtGenUG – Dave McMahon on MOSS.
Community event
Community event 
Community event
Community event
Community event
Community event
24 April, Birmingham: VBUG - Developer Conference (From £119.00 ex VAT).
Community event
Community event

Feature Article

Getting Started with IronPython

The Dynamic Language Runtime (DLR) is a framework for creating dynamic languages that run on the Common Language Runtime (CLR). At the Lang.NET symposium the DLR team made quite a splash with IronPython. IronPython version 1.0 was released in late 2006 and then the DLR was abstracted out. The DLR is still in beta, along with IronPython 2, which is built on top of it. IronPython 2 and the DLR share a release schedule with Silverlight 2, and will be out of beta by the end of the year.

IronPython v1 is already an excellent implementation of Python, passing most of the Python test suite and able to run large Python applications like the web framework Django.

There is increasing developer interest in dynamic languages, and Python is a particularly good one. It is widely used, semantically concise and easy to learn. As a dynamic language, types are enforced at runtime rather than compile time. Developers used to statically typed languages may find this removal of the "safety net" worrying, but in practise it turns out not to be a problem, particularly if you are using best practises for your testing cycles. There is a performance cost for these runtime checks, but dynamic typing makes it easy to do things that are either cumbersome or not even possible with statically typed languages. Benefits include first class (and higher order) functions and types, late binding, easy introspection, duck-typing and metaprogramming. For more on dynamic typing, read Strong Typing versus Strong Testing.

The most important thing about IronPython is how well it is integrated with the .NET framework, and how easy it is to work with managed objects. This makes mixing C# and IronPython very straightforward. Beyond writing full applications, other practical uses for IronPython include embedding it into applications to provide a scripting environment, using it as a standalone language for system administration and utilising it as a tool for exploring assemblies. This last use case is best done with the interactive interpreter, which is also a great place to start experimenting.

After downloading IronPython, you start the interpreter by running "ipy.exe", which you can also use at the command line to execute Python scripts. You will be presented with a version string and a 'prompt', at which you can enter code and 'interactively' see the results. This means that you can inspect objects to see what methods are available and what happens when you call them. You start by adding references to assemblies (at runtime of course). Here's a simple example using System.Management:

IronPython 1.1 (1.1) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference("System.Management")
>>> from System.Management import *
>>> mo = ManagementObject("Win32_PerfFormattedData_PerfOS_Processor.Name='_total'")
>>> for p in mo.Properties:
... print p.Name, '=', p.Value
...

For more recipes illustrating how to work with IronPython, visit the IronPython Cookbook. However, the best resource for IronPython, is my book "IronPython in Action".

Michael Foord, Senior Software Engineer at Resolver Systems.

Read Michael's Blog.

Flash Poll Question
Results From Last Poll: 
Which .NET Framework version are you targeting in your most recent project?

47% .NET Framework v2.0, 33% .NET Framework v3.5, 10% Not targeting .NET, 7% .NET Framework v3.0 and 3% .NET Framework v1.x.

Flash Results

Question of the fortnight

Which of the following statements best describes what you do?

1. I build in-house products (e.g. working for a corporation’s R&D department)
2. I build products for 3rd parties (e.g. working for an ISV)
3. I am part of a consultancy/training services company (i.e. not building product)
4. I work for myself (e.g. offering services or building product for 3rd parties)
5. I am not a developer/architect/consultant (e.g. technical managerial position)

On the Horizon
Community event
Community event
10 May, Glasgow: Developer Day Scotland.
Community event
3-5 June, London: Software Architect 2008 (Register before 16 May to save £200, £1095 + VAT).



Contact Microsoft

Send your feedback and comments to ukmsdn@microsoft.com.
Find out more about the MSDN resources that are available to you.

Find out more about the Microsoft Contact Centre or call on 0870 60 10 100 (0800-1800 Monday to Friday)
Find out more about your MSDN support options or call 0800 0517 215

MSDNMSDN EventsMSDN ScreencastsEvaluation centreDeveloper CentresMSDN

To cancel your subscription to this newsletter, reply to this message with the word UNSUBSCRIBE in the Subject line. You can also unsubscribe at the Microsoft Profile Centre You can manage all your Microsoft.com communication preferences at this site.

Legal Information 

This newsletter was sent by Microsoft Ltd, Microsoft Campus, Thames Valley Park, Reading RG6 1WG.
Sign up for other newsletters | Contact Us | Unsubscribe | Update your profile | Legal information
© 2007 Microsoft Corporation  Terms of Use | Trademarks | Privacy Statement
Microsoft