Differences between revisions 29 and 30
Revision 29 as of 2009-06-14 15:58:29
Size: 3350
Editor: 87-194-212-65
Comment:
Revision 30 as of 2009-08-04 08:53:08
Size: 3350
Editor: c2414-h2794
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 * Stable Version is 2.0.1 (targeting Python 2.5)
 * Developers Version is 2.6 Beta 1 (targeting Python 2.6)
 * Stable Version is 2.0.2 (targeting Python 2.5)
 * Developers Version is 2.6 Beta 2 (targeting Python 2.6)

IronPython

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

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

  • Stable Version is 2.0.2 (targeting Python 2.5)
  • Developers Version is 2.6 Beta 2 (targeting Python 2.6)

IronPython 2 (which uses the Dynamic Language Runtime, a framework for writing dynamic languages for .NET which was abstracted out of IronPython 1) is part of Silverlight 2. This means that IronPython can be used for client-side scripting in the browser.

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 will also run in future versions of Firefox. (See IronMonkey).

IronPython is actually 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:

  • Corporate credibility (introducing new technologies can be very difficult in some companies, if .NET is already established then you may need no excuse to start using IronPython)

  • No GlobalInterpreterLock - IronPython has no GIL and multi-threaded code can use multi core processors

  • The .NET framework library is very big. Particularly the user interface library Windows Forms is very good.

  • IronPython is easy to embed in .NET applications as a scripting language

  • Easier to extend than CPython (C# is memory managed and C# types can be used directly in IronPython with no wrapping)

  • Silverlight!

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.

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

IronPython (last edited 2022-09-25 12:38:41 by HuntBlanchat)

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