Boo!November 29, 2007 at 9:41 am | Posted in GIMP, Programming | 4 Comments
There seems to be no end to the .NET languages that can run on top of GIMP#. Yesterday I implemented my first plug-in in the Boo programming language. According to the homepage: “Boo is a new object oriented statically typed programming language for the Common Language Infrastructure with a python inspired syntax and a special focus on language and compiler extensibility.”The plug-in is the usual average color filter. I had some minor struggles linking the plug-in against GTK#. However you can use -pkg:gtk-sharp-2.0 as a command line option to the Boo compiler (booc), although this is not documented.
And the performance of the plug-in? Well, it’s exactly the same as the Nemerle and C# version. I suspect that the overhead of the actual calculation of the average color is minor compared to iterating through all the pixels of an image. I will try to verify this later. It still surprises me that the IronPython version is a lot slower. One thing I noticed is that this plug-in does ‘something’ at startup that takes quite a lot of time. Once it starts calculating the progress bar shown in GIMP increases about as fast as in the other languages.
To summarize: on top of GIMP# I know have C#, Java (IKVM), Python (IronPython), Boo and Nemerle running. Next targets are IronRuby and Visual Basic. You can still vote for your favorite GIMP programming language here.
To be continued…