Language

Filed Under Coding | 

Although I should be doing something else, Boo, IronPython and .NET kept occupying my mind. So I made a small coding experiment.

First, I downloaded IKVM. Then - SWT. I compiled SWT jar to a dll. No problems here.

Then I wrote a SWT hello world in IronPython. To be honest - I took a Java one from SWT website and rewrote line by line. I was surprised that my hello world ran without a glich!

Next, I copied a HelloWorldSWT.py into HelloWorldSWT.boo and changed the import statement. Compiled ("By golly! No problems? No warnings?") and run. And no problems again??

It started to look suspicious... Java run on .NET, calls from Java to native library, two different languages... and everything without a single warning?

So I decided to take it to foreign territory... Ubuntu! I fired up a VMWare image with Ubuntu 6.10 (the linux vm I have handy), downloaded Linux SWT, compiled it to dll, copied HelloWorldSWT.exe from Windows along with some ikvm dlls and... no problems again!

I'm really, really surprised how smooth the experiment was. Thumbs up!


Comments

1 Comment so far

  1. WildKid on November 27, 2007 11:28 am

    Really good and really interesting post. I expect (and other readers maybe :)) new useful posts from you!
    Good luck and successes in blogging!

Name (required)

Email (required)

Website

Speak your mind