Revision 37 as of 2009-11-23 23:57:09

Clear message

IronPython

IronPython is JimHugunin's implementation of Python on the .NET CLR and on Mono.

The project has a workspace where you can get news and download the latest version.

IronPython 2 (which uses the Dynamic Language Runtime, a framework for writing dynamic languages for .NET which was abstracted out of IronPython 1) runs on Silverlight, the Microsoft browser plugin that runs on Windows and the Mac (and a Mono port called Moonlight runs on Linux). This means that IronPython can be used for client-side scripting in the browser.

IronPython is a Python compiler. It compiles Python code to in memory bytecode before execution (which can be saved to disk, making binary only distributions possible).

Performance is comparable to CPython - much faster for some things (where it can take advantage of the JIT compiler in the underlying platform), but slower for other things (particularly the built in container types where a lot of work has been done on optimising the CPython types).

Reasons that CPython programmers might be interested in IronPython include:

A book on IronPython for Python and .NET developers: IronPython in Action.

A useful resource for IronPython code examples, is the IronPython Cookbook.

A book that introduces core concepts of IronPython programming using a .NET–centric approach is Pro IronPython.

IronPython Winforms tutorial at ZetCode.

Mozilla announced a project to port the DLR (well, the underlying Core CLR that it uses in fact) to run on their Tamarin JIT. This means that IronPython could also run in future versions of Firefox. (See IronMonkey). Unfortunately this project has not made any progress since its announcement.

Other Python-Like Languages for .NET/Mono

Some other Python-like languages for .NET and Mono include:

Accessing .NET from CPython

Python for .NET is the reverse of IronPython, it lets you access .NET assemblies from CPython.


See also: PythonAndParrot, LoGix, IronPython IDE

Unable to edit the page? See the FrontPage for instructions.