Grok CLI
This blog will track my journey of discovery in relation to the Common Language Runtime. I want to see if CLI or what some people call .NET can deliver on the promise of cross language and platform development.
Sunday, August 20, 2006
WinForm Themes with Mono
On the Mono-list, in a response to an email about WinForms apps under Linux and Mac, the use of themes to make WinForm apps look more platform specific was discussed. So if you want to get rid of those chunky buttons, just set the environment variable MONO_THEME to either clearlooks or nice.
Wednesday, August 09, 2006
Compiling CLI language x to x86 native code using Mono
In a short article by Miguel de Icaza about running Java code under Mono, he discusses how to convert a Java program via IKVM to a CLI executable. And then with some mono magic turn it into native x86 code. This means if program in a language that generates CLI executables, you to generate a native x86 version.
For example, in my series of blog posts I created a GDATA reader with IronPython. You can create a executable from using the following command:
This creates a gdatareader.exe. You will still need the gdata, IronPython and IronMath dll's but there is no longer the delay of IronPython loading the Python program and converting it to IL. To convert it to native x86 code, run the following command:
This creates a gdatareader.exe.so which contains the native x86 code. The gdatareader.exe is still used to start the program but the JIT compiler is not required, so some more CPU cycles are saved.
For example, in my series of blog posts I created a GDATA reader with IronPython. You can create a executable from using the following command:
mono ipy.exe -X:SaveAssemblies gdatareader.py
This creates a gdatareader.exe. You will still need the gdata, IronPython and IronMath dll's but there is no longer the delay of IronPython loading the Python program and converting it to IL. To convert it to native x86 code, run the following command:
mono --aot gdatareader.exe
This creates a gdatareader.exe.so which contains the native x86 code. The gdatareader.exe is still used to start the program but the JIT compiler is not required, so some more CPU cycles are saved.
Friday, July 07, 2006
Another step closer to Mono 1.2
The Mono project has just released Mono 1.1.16. This is the third beta release of what will be Mono 1.2, and it runs IronPython beta 8 so no more need to compile from svn for me.
Sunday, July 02, 2006
Can you grok the CLI?
It is very unlikely that anyone can "achieve complete intuitive understanding" of the Common Language Infrastructure, but this blog will follow my journey of discovery.
Subscribe to:
Posts (Atom)