Revision as of 04:17, 27 January 2009 editRonark (talk | contribs)3,546 editsm →License← Previous edit | Revision as of 11:29, 21 February 2009 edit undoAlexander Widefield (talk | contribs)320 edits releaseNext edit → | ||
Line 5: | Line 5: | ||
| caption = | | caption = | ||
| developer = ] | | developer = ] | ||
| latest release version = 2.0 | | latest release version = 2.0.1 | ||
| latest release date = |
| latest release date = February 13, 2009 | ||
| latest preview version = | | latest preview version = | ||
| latest preview date = | | latest preview date = |
Revision as of 11:29, 21 February 2009
Developer(s) | Jim Hugunin |
---|---|
Stable release | 2.0.1 / February 13, 2009 |
Repository | |
Platform | .NET Framework, Mono |
Type | Python Programming Language Interpreter |
License | Microsoft Public License |
Website | www.codeplex.com/IronPython |
IronPython is an implementation of the Python programming language targeting the .NET Framework and Mono, created by Jim Hugunin. Version 1.0 was released on September 5, 2006. Version 2.0 was released on December 10, 2008.
IronPython is written entirely in C#, although some of its code is automatically generated by a code generator written in Python.
Status and roadmap
The current 1.1.2 version targets CPython 2.4.4 for compatibility. However, there are some differences between the Python reference implementation and IronPython. Some projects built on top of IronPython are known not to work under CPython. Conversely, CPython applications that depend on extensions to the language that are implemented in C (e.g. NumPy) are not compatible with IronPython, although a commercially-supported open source project to address this is underway.
Release 2.0, released on December 10th, 2008, targets CPython 2.5. IronPython 2.0 is built on top of the upcoming Dynamic Language Runtime (DLR) which contains a dynamic type system and dynamic language hosting environment abstracted out of IronPython 1. Because the DLR runs on top of the core CLR that will ship with the upcoming Silverlight 2, IronPython can be used for client-side browser scripting with Silverlight.
License
Until version 0.6 IronPython was released under the Common Public License. Following recruitment of the project lead in August 2004, IronPython was made available as part of Microsoft's Shared Source initiative. Authors claim that the license, while not reviewed by the Open Source Initiative, conforms to the OSI's definition of open source. With the 2.0 alpha release the license was changed to the Microsoft Public License.
Interface extensibility
One of IronPython's key advantages is in its function as an extensibility layer to application frameworks written in a .NET language. It is relatively simple to integrate an IronPython interpreter into an existing .NET application framework. Once in place, downstream developers can use scripts written in IronPython that interact with .NET objects in the framework, thereby extending the functionality in the framework's interface, without having to change any of the framework's code base.
IronPython makes extensive use of reflection. When passed in a reference to a .NET object, it will automatically import the types and methods available to that object. This results in a highly intuitive experience when working with .NET objects from within an IronPython script.
Example
The following IronPython script manipulates .NET Framework objects. This script can be supplied by a third-party client-side application developer and passed into the server-side framework through an interface. Note that neither the interface, nor the server-side code is modified to support the analytics required by the client application.
from BookService import BookDictionary booksWrittenByBookerPrizeWinners = booksWrittenByBookerPrizeWinners
In this case, assume that the .NET Framework implements a class, BookDictionary, in a module called BookService, and publishes an interface into which IronPython scripts can be sent and executed.
This script, when sent to that interface, will iterate over the entire list of books maintained by the framework, and pick out those written by Booker Prize-winning authors.
What's interesting is that the responsibility for writing the actual analytics reside with the client-side developer. The demands on the server-side developer are minimal, essentially just providing access to the data maintained by the server. This design pattern greatly simplifies the deployment and maintenance of complex application frameworks.
See also
- Boo, a language for the .NET Framework and Mono with Python-inspired syntax and features borrowed from C# and Ruby.
- IronLisp
- IronRuby
- Jython - an implementation of Python for the Java Virtual Machine.
- Resolver One - a commercial application (with free license) written in IronPython, with the largest known IronPython codebase
References
- "Jim Hugunin's blog: IronPython 1.0 released today!". 2006-09-05. Retrieved 2006-12-14.
- "Release dates for ironpython". 2008-12-10. Retrieved 2009-01-25.
- "Differences between IronPython 1.0 and CPython 2.4.3". Microsoft. 2007-12-18. Retrieved 2008-02-09.
- Foord, Michael. "New Project: Implementing .NET Libraries in Pure Python". Retrieved 2008-02-09.
- Eby, Phillip. "Children of a Lesser Python". Retrieved 2008-07-09.
- "Ironclad". Retrieved 2008-07-09.
- "Original IronPython homepage". July 28, 2004. Retrieved 2007-05-13.
- "Shared Source License for IronPython". April 28, 2006. Retrieved 2007-05-13.
- "Microsoft permissive license". April 28, 2007. Retrieved 2007-05-13.
- "Using .NET objects from IronPython in Resolver One". Retrieved 2008-11-18.
- Extreme Program - Software Development Times On The Web
External links
- CodePlex IronPython Workspace - IronPython Homepage
- IronPython Studio - IronPython IDE, with WPF and Windows Forms designer, that will run standalone or integrated into Visual Studio
- IronPython Cookbook Wiki
- IronPython URLs Blog
- IronPython ASP.NET Blog and Tutorials - IronPython tutorials, screencasts, and script generators
- IronPython in Action - IronPython book, published by Manning
- Tutorial Series on IronPython and Windows Forms
- Microsoft Shared Source Initiative
Python | ||
---|---|---|
Implementations | ||
IDEs | ||
Topics | ||
Designer | ||
|