Dailydave mailing list archives

IronPython.


From: Dave Aitel <dave () immunitysec com>
Date: Fri, 10 Sep 2004 08:33:58 -0400

http://ironpython.com/ is a .Net implementation of Python that runs on
the CLR or on Mono. 

Originally, I thought it was going to be a failed experiment. I assumed,
perhaps naively, that the CLR and .Net's architecture in general
couldn't handle a language as truly dynamic as Python is without a major
performance hit. If you look at his latest slidepack though, you'll see
I was wrong. He runs Guido's latest benchmarks (meant to be brutally
rigorous) 4% slower (overall) than CPython. In many tests, he was a lot
faster than CPython.

The amazing thing is that he managed to do it at all. Also, it's amazing
that Mono can run it - it doesn't run it as well as the Microsoft CLR,
but it runs it well enough to use. This means you could write a pyGTK
that wrapped GTK#, and all your pyGTK apps would run on Mono. pyGTK is
still, by far, the fastest and best way to write GUI's on any platform,
imo. My opinion is that the reason Miguel doesn't like what he sees of
Avalon is that Avalon is not as easy to use or conceptually clean as
GTK# (which is very similar to pyGTK - libglade, etc). Once you've used
the pyGTK/GTK# toolkit, there's really just no going back. We don't want
to be professional GUI developers - we just want to look like we are.

Example from IronPython mailing list:
"""
        Every object in IronPython, like in Python proper, supports a(or is it
some?) intrinsic property for every object created. This is the __name__
property. You could access it with the normal '.' operator.

        Try the following code, it worked for me.

        >>>from System.Text import *
        >>>s = StringBuilder
        >>>s.__name__
        >>>"System.Text.StringBuilder"
"""


Anyways, really amazing work. Microsoft apparently hired him already,
which is quite a coup. Almost as big a hire as getting both Fes and Bdog
into their security world.

Dave Aitel
Immunity, Inc. 


_______________________________________________
Dailydave mailing list
Dailydave () lists immunitysec com
http://www.immunitysec.com/mailman/listinfo/dailydave


Current thread: