Swaroop C H

blog books about contact subscribe

IronPython and Jython

02 Feb 2004

Now this is something really really cool.

Jim Hugunin has written an implementation of the Python language which uses .NET CLI as the backend. So what it means that your program is still in Python but it is running on .NET . So what, you say? Yes, I know there is already Jython, but what is interesting about IronPython is that it is giving 70% better improvement in performance compared to the CPython implementation! That's a huge improvement if you ask me. You can read more details in Jim's post

Jython

When I mentioned Jython, if it didn't ring a bell in your head, let me explain. Jython is an interpreter for Python written in Java. This means that you can write Python programs using the Java libraries - in effect, combining the power and simplicity of the Python language with the huge class libraries of Java. For example, you can write code like this to open a Java Swing frame using the Python language (with the Jython interpreter):

from javax.swing import JFrame
f = JFrame('Jython swings!')
f.setSize(400, 300)
f.show()

Feedback

There's no comment box, but please do email me or tweet me your thoughts and criticisms, and I will publish the relevant ones here.