Monday, October 09, 2006

Python and .NET

Python is a dynamic object-oriented programming language which runs on Windows, Linux/Unix, Amiga, Palm OS etc. It is becoming a favorite language by programmers due to it's portability and fast performance. It doesn't matter if your a seasoned programmer, or just started creating your first "Hello World!" program. You can learn the language in just a few days. It's really very easy to install and offers strong support for integration with other languages and tools.

I started dabbling with Python a few years ago, creating quick solutions and a few libraries for my personal software needs. I was then given an opportunity to be a part of a web-based software development using C# and .NET Framework. Although I still tried creating small and quick solutions in Python, the .NET project I am working on prevented me from fully integrating Python into my application. Don't get me wrong, I really love C#. But Python has somehow captured my fancy.

Then came Google. I was amazed to learn that the Python was a major powerhouse behind the company's powerful applications. I was more amazed in learning that Python played an important role in the development of MMORPG's like Eve Online, my favorite Civilization 4, and even Star Wars: Episode II.

Acting on the excitement building up in me, I started looking back again at Python and started researching on ways how I may be able to implement it on the .NET Framework and be able to have it interoperate with my existing C# applications.

My research narrowed down to two solutions, IronPython and Python for .NET. It is really a good thing to know .NET programmers and even Microsoft people are now taking notice of the Python language's capability.

Unlike the Python for .NET package which "does not produce managed code (IL) from Python code", IronPython does enable you to compile your program into bytecode (IL). It makes .NET libraries available to your Python program, and even extend your existing Python applications by importing libraries and assemblies in .NET.

In terms of execution speed, benchmarks conducted on IronPython produced positive results.

The future of running Python on CLR looks promising. Can't wait to try my hands on this new found toy.



Blogger Jac said...

sorry, but as soon as I read anything about computer programming my brain HANGS XD

10:36 PM  
Blogger Crimson Knight said...

hehe, you need a brain chip and memory module upgrade. ;)

5:44 PM  

Post a Comment

Links to this post:

Create a Link

<< Home