LWN.net Logo

Python slithers into Wesnoth

Python slithers into Wesnoth

Posted Jan 18, 2009 20:58 UTC (Sun) by zlynx (subscriber, #2285)
In reply to: Python slithers into Wesnoth by massimiliano
Parent article: Python slithers into Wesnoth

Another comment I just thought of about Mono and Python.

I've played around with IronPython on Microsoft's .NET. It is impressive, in my opinion.

It's much faster than cpython and threading really works. Or so it seemed to me.

I think that even if Wesnoth wants to stay with Python, it should be possible to use Python on top of Mono via IronPython.


(Log in to post comments)

Python slithers into Wesnoth

Posted Jan 18, 2009 21:13 UTC (Sun) by massimiliano (subscriber, #3048) [Link]

Yes, IronPython is impressive!

I think that even if Wesnoth wants to stay with Python, it should be possible to use Python on top of Mono via IronPython.

Yes, it would be possible to do so.
There are two drawbacks (funny, the LWN code is not accetting "ul" tags...):
(1) Mono is often not as performant as the MS CLR (yet, and we're getting there...). Anyway, it should be more than enough for Wesnoth.
(2) IronPython is not compatible with the C extensions of cPython, which means that besides embedding Mono, they'd have to redo all the Python bindings they have already in place. Now, it's true that binding C code to Mono is much easier than binding it to Python, but this is added work for them that they'd not like at all.

That said, Mono would of course be usable :-)

Have fun,
Massi

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds