OK, I'm not really what you can call a Microsoft fan. Not really... But everyday I encounter new evidences that I'm right. What bothers me is that some people have a tendency to take MS marketing "as it is", and it is often not completely accurate, to say the least.
A new example: The Dynamic Language Runtime.
It is an ongoing effort to ease implementation of dynamic languages (like Python, Ruby, ...) on top of the .NET Framework. When you read articles on the web (for example, see here), you are under the impression that it is up and running, but... the code currently lives in the IronPython repository and the developers plan to release the first 1.0 version by the end of the year. I'm not saying that this project is not exciting (hmm, i'm not excited...), but people should wait a little before writing things like Microsoft developers have already been able to build implementations of Python, Ruby, Javascript, and Visual Basic that can run on the DLR, when these are planned for the end of the year (IronPython), currently in the pre-alpha stage (IronRuby), or planned for the future (VBx).
Update February 10: After a discussion with fuzzyman, I feel I need to update this a little. I said that I needed to see successful non-Microsoft projects built on top of DLR to say that DLR have succeeded. He pointed that there were more than Microsoft projects on the go, for example IronLUA, or IronScheme. I must agree that people are expecting a lot from the DLR, and starting to use it in their projects, but neither IronLUA or IronScheme are close to completion yet (which is normal, considering that they still have a lot to do to implement their respective languages, and also that the DLR API is still far from stable).
This is not only a formal discussion for me, because the idea behind the DLR is that it is possible to abstract AST to be able to use them in ANY dynamic language. I am very coutious because this very same assumption was made before with the CLR, which was said to be really language-agnostic, and (contrary to the JVM) could be used to implement ANY language. It turned out that it was no more the case for .NET than for Java (and no less, I agree), and languages built on top of CLR were often slightly different from their reference. So, just one last word for DLR: Wait and see... I can be wrong, but if we go back to the beginning, we are far from saying that it's done.
Saturday, 9 February 2008
Saturday, 19 January 2008
News news
OK, my PC is repaired now and kick ass (since December). I had to replace the defunct hard drive by new one, in perfect shape, and with 160 GB instead of just 60 for the old malfunctioning one ;-). Plus I added some memory. So this is all right now thanks. Except that I had to reinstall all my apps, and tried to find copies (even old ones) of things I had only on this PC...
As for development news, I will shortly upload the version 0.2 my Application Framework library. OK, maybe you think that it values very little in front of Sun's appframework an you may be true, but I developed this library before we heard of appframework, it helped me to not reinvent the wheel for my own applications every time, and now it would be some work to adapt all my apps to this new framework, even if it is better. However, I will surely do that at the end, but for now I have no reason not to maintain my own library. And that's what is great about Java, you have the liberty to choose amongst several ready-made solutions for any of your needs ;-) Even if you are not interested, you should know that the actual version of this library is working well, I'm using it in approx. 7 to 10 of my own apps... OK, no more advertising.
What I would like to do (in the area of development) for the new year (and probably I will never do) is:
What interests me in Java ports of big libraries like ODE or POV-Ray, apart from the "because it's fun" reason, is the fact that it should be interesting to have an idea of the performance difference between the original C or C++ app performance and Java ;-)
But as you can see, these are mainly dreams for the new year. Not that it is not possible to do, but because I have a lot of other things to do, and this would involve a lot of work...
As for development news, I will shortly upload the version 0.2 my Application Framework library. OK, maybe you think that it values very little in front of Sun's appframework an you may be true, but I developed this library before we heard of appframework, it helped me to not reinvent the wheel for my own applications every time, and now it would be some work to adapt all my apps to this new framework, even if it is better. However, I will surely do that at the end, but for now I have no reason not to maintain my own library. And that's what is great about Java, you have the liberty to choose amongst several ready-made solutions for any of your needs ;-) Even if you are not interested, you should know that the actual version of this library is working well, I'm using it in approx. 7 to 10 of my own apps... OK, no more advertising.
What I would like to do (in the area of development) for the new year (and probably I will never do) is:
- A Perl interpreter coded in Java, going from the Sleep language
- A POV-Ray port in Java. No need for now to bother about license, because I will probably never have something good or complete enough to be able to C compiler or interpreter coded in Java, would be great to be able to debug C applications with the Java debugger
- A pure-Java port of the Open Dynamics Engine
- A SVG to WMF converter built on top of Batik, the pure-Java SVG library. I have almost something working now, so this one could be done for this year
What interests me in Java ports of big libraries like ODE or POV-Ray, apart from the "because it's fun" reason, is the fact that it should be interesting to have an idea of the performance difference between the original C or C++ app performance and Java ;-)
But as you can see, these are mainly dreams for the new year. Not that it is not possible to do, but because I have a lot of other things to do, and this would involve a lot of work...
Sunday, 11 November 2007
Windows Install : Bad news
hmm, it seems that my Hardrive is sort of dead. It now says "S.M.A.R.T status BAD", and exit the boot sequence, even when I try to boot on the CD... No good at all...
I tried to boot on the Windows install CD, and copy the Hard Drive to an external disk, but at first the Drive was not even recognized. I then tried to disable (temporarily) SMART in the BIOS, and it boots, but when it seems to never enter into Recovery, the CD seems to not work at all anymore..
There is a high chance that I will not even be able to backup my files to my external removable drive. Even if there are few files I have only on this hard drive, I'm sure there's some...
Plus I worked part of the Week-end to finish some very important programming work, I have almost finished, but it's on the Hard drive...
Update (23:00) : After numerous attempts, I found a fantastic utility program called UBCD. It's a Linux tool (a Windows version is available, but is not up-to-date), but it's not a problem when even your OS can't boot... So I booted on a CD created with UBCD's ISO image. Their is a collection of utilities, and some of them are able to recover hard disks failures... (like with late floppy disks). Using it, I was able to reformat the hard drive (quick reformat, I hope to be able to get back some datas after all this mayhem), and launch the XP installation program. Only time will tell if it will work at the end.
However, I will try another tool (called gdbfn) after that. This tool is seemingly able to recover datas on a hard disk, even after a quick reformat... hmm, and after all that, even if it works, I think I will need to change my laptop... I'm still on SMART option disabled, after all, this is not very good, don't you think ?
I'm doomed !!
I tried to boot on the Windows install CD, and copy the Hard Drive to an external disk, but at first the Drive was not even recognized. I then tried to disable (temporarily) SMART in the BIOS, and it boots, but when it seems to never enter into Recovery, the CD seems to not work at all anymore..
There is a high chance that I will not even be able to backup my files to my external removable drive. Even if there are few files I have only on this hard drive, I'm sure there's some...
Plus I worked part of the Week-end to finish some very important programming work, I have almost finished, but it's on the Hard drive...
Update (23:00) : After numerous attempts, I found a fantastic utility program called UBCD. It's a Linux tool (a Windows version is available, but is not up-to-date), but it's not a problem when even your OS can't boot... So I booted on a CD created with UBCD's ISO image. Their is a collection of utilities, and some of them are able to recover hard disks failures... (like with late floppy disks). Using it, I was able to reformat the hard drive (quick reformat, I hope to be able to get back some datas after all this mayhem), and launch the XP installation program. Only time will tell if it will work at the end.
However, I will try another tool (called gdbfn) after that. This tool is seemingly able to recover datas on a hard disk, even after a quick reformat... hmm, and after all that, even if it works, I think I will need to change my laptop... I'm still on SMART option disabled, after all, this is not very good, don't you think ?
I'm doomed !!
Windows XP reinstall
Hmm, it is the second time I have to repair the Windows XP installation on my laptop (I'm blogging on my old, old old Windows ME PC).
The first time it was a problem with the file performing the boot (I don't remember its name). It suddenly appeared as a user file directly under C:\ (it was NOT considered by Windows as a system file, nor was it masked) Sure it was a problem with my Windows installation, because it should never be there, and never be visible by default.And But once I made a BIG BIG mistake, I deleted it... Of course, I could not boot anymore. The reinstalling process was not so simple, because when you phone to the Microsoft help center, which is on the XP box, they just tell you to look on Internet. Hmm, how do you do that if your PC does not want to boot (I was in my mother's appartment, and did not have access to internet) ? Typical of MS$ attitude toward customers :-(
OK I could fix that at the end (by myself, no help at all from Microsoft).
This time the PC (which is almost never connected, I'm using my older PC for that) crashed while doing nothing in particular, and crashed again repeatedly after that (hello happy blue screen, and hello again, and again, and again...). After a while, Windows changed the boot sequence itself (while not, isn't it funny ?), trying to boot on the USB device (seems to happen a lot with XP, my cousins had exactly the same problem with their PC).
You probably would tell me that at this point, a reinstallation was the only thing to do... You are right, of course. But reinstalling Windows is not always simple. First you must be aware that you have to type ENTER as new Install, and not R as Repairing, even if you only want to repair the previous installation (tell me if you understand anything).
OK, and after that Windows try to install on \WINDOWS, yes, not C:\WINDOWS, but just \WINDOWS, a directory which does not exist. So you have to change manually the installation directory...
I'm just at this point now :-(. Windows sucks a lot !!!
The first time it was a problem with the file performing the boot (I don't remember its name). It suddenly appeared as a user file directly under C:\ (it was NOT considered by Windows as a system file, nor was it masked) Sure it was a problem with my Windows installation, because it should never be there, and never be visible by default.And But once I made a BIG BIG mistake, I deleted it... Of course, I could not boot anymore. The reinstalling process was not so simple, because when you phone to the Microsoft help center, which is on the XP box, they just tell you to look on Internet. Hmm, how do you do that if your PC does not want to boot (I was in my mother's appartment, and did not have access to internet) ? Typical of MS$ attitude toward customers :-(
OK I could fix that at the end (by myself, no help at all from Microsoft).
This time the PC (which is almost never connected, I'm using my older PC for that) crashed while doing nothing in particular, and crashed again repeatedly after that (hello happy blue screen, and hello again, and again, and again...). After a while, Windows changed the boot sequence itself (while not, isn't it funny ?), trying to boot on the USB device (seems to happen a lot with XP, my cousins had exactly the same problem with their PC).
You probably would tell me that at this point, a reinstallation was the only thing to do... You are right, of course. But reinstalling Windows is not always simple. First you must be aware that you have to type ENTER as new Install, and not R as Repairing, even if you only want to repair the previous installation (tell me if you understand anything).
OK, and after that Windows try to install on \WINDOWS, yes, not C:\WINDOWS, but just \WINDOWS, a directory which does not exist. So you have to change manually the installation directory...
I'm just at this point now :-(. Windows sucks a lot !!!
Saturday, 27 October 2007
On .NET
OK, I personally prefer Java over .NET, maybe because I used it for some time now, so it's easier for me to understand it.
But I don't understand this hype (mainly on the net) about all these new Microsoft technologies. For example .NET is almost described as cross-platform and freely available. But think about it twice, guys:
This list could go on an on... And in the same time, people are saying that Java is not free because 4% of the encumbered JVM code has still to be freed by Sun...
As for me, I will still stay away from all these specific technologies...
But I don't understand this hype (mainly on the net) about all these new Microsoft technologies. For example .NET is almost described as cross-platform and freely available. But think about it twice, guys:
- Only the core part of .NET is an ECMA standard, free from Microsoft patents. Much of the "cool" parts (and much of the base class library) are patented Microsoft technologies, that can not be implemented freely. Mono implements much more than only the core part of this technology (you can do nothing with only the core), but according to the Microsoft - Novell agreement, you can use Mono freely only on Suse.
- People say that .NET is now available on Linux as well as Windows because of Mono, but the Mono team (even if they did some great work) have not implemented all .NET 2.0 yet. .NET 3.0 is available since end of 2006, and .NET 3.5 will ship beginning of 2008. So much for the cross-platform stance...
- Silverlight is a new runtime to build rich-internet client applications... but it is bound to a specific Microsoft technology. I don't like flash very much for the same reason...
- And as for XAML, it does what SVG and XUL already did, but it is another specific (they even defined different keywords for the same concepts). And try to find the XAML specification in the Web, you will find it very hard, because there is none.
This list could go on an on... And in the same time, people are saying that Java is not free because 4% of the encumbered JVM code has still to be freed by Sun...
As for me, I will still stay away from all these specific technologies...
Saturday, 21 July 2007
Web 2.0 considered harmful
Shocking title. It's just that we have begun at work to develop a web 2.0-ish app, mostly to experiment technologies for a particular type of application.
Well, I agree that Ajax + DHTML + Javascript can be powerful, and deliver a great user-experience, but I must also say that these technologies are not easy to implement:
I really don't understand why people always say that Web 2.0 is so much the future that it will kill fat clients. OK, you can achieve great UI results, but saying that it is simple to do is a lie, and one can not say that browsers are thin apps. The only thing that is simple, compared with languages like Java for example, is the fact that you never have to compile anything.
OK, you will say: try Apollo, or Silverlight, this is the next move in internet programming. Humm, I will try these some days, but I would say :
Well, I agree that Ajax + DHTML + Javascript can be powerful, and deliver a great user-experience, but I must also say that these technologies are not easy to implement:
- html + Javascript does not work the same on different browsers (at all !!). We were lucky to have only to support Firefox, but supporting also IE6 + IE7 can be a nightmare. When you want to do dynamic html, never, NEVER expect behaviors to work as you expected at first (you will end with a long, long litany of if-then-else depending on the browser).
- there is no simple ways to add simple widgets that work out of the box. Even if you want to add such basic things as scrolling, sliders, etc.. you need to use third parties Javascript libraries. There are not so many free ones out on the web, they are not so easy to implement, and when they are not working as expected, it is not so simple to debug (even with wonderful add-ons like Firebug).
- Javascript is a limited language, and its behavior depends on the browser. For example, hastables in Javascript are extremely limited, and their behavior depends on the browser too.
I really don't understand why people always say that Web 2.0 is so much the future that it will kill fat clients. OK, you can achieve great UI results, but saying that it is simple to do is a lie, and one can not say that browsers are thin apps. The only thing that is simple, compared with languages like Java for example, is the fact that you never have to compile anything.
OK, you will say: try Apollo, or Silverlight, this is the next move in internet programming. Humm, I will try these some days, but I would say :
- all these frameworks are still Beta, so I think it can be better for the moment to experiment, but wait a little for something more stable
- these frameworks are relying on some proprietary technologies (Apollo relies Flash, a proprietary technology from Adobe, and Silverlight is Microsoft-proprietary
- there is already Java (+ Web Start), and XUL, why not using what is already working for some time now ?
Monday, 28 May 2007
Performance of Batik under Java 6.0
As I use it a lot, I tried to measure the possible boost of performance of Batik, the pure Java library which handle SVG files, under Java SE 6.0, compared to Java 5.0. I decide to create a small benchmark, similar to the one Dave Gilbert, the creator and maintainer of JFreeChart, did, some times ago.
To make it simple, I decided to benchmark the time spent by Batik from the parsing of the SVG file, to the rendering of the associated image on a JFrame. To measure the performance, I call the method 100 times (yes, maybe not enough times), and measure the elapsed time.
Finding good SVG images is not so simple, because time is not only linked to the size of the file, but also to what it contains (for example, complex renderings like gradients take much more time to compute).
And of course, I used Batik 1.7 Beta 1 and rebuilt it for Java 5.0, then 6.0, before doing all this.
Here are the results on my XP box:

Average performance boost is approx. 20%, this is good !!
For some more informations about the different SVG files that were used, they are all coming from the Batik samples library. You can get these samples either by downloading the snapshot here, or much simpler by getting them from the SVN viewer on the trunk here. For more informations about them:
If we skip those which use gradients, and the big mapWaadt image, the boost is closer to 35%. Not bad...
To make it simple, I decided to benchmark the time spent by Batik from the parsing of the SVG file, to the rendering of the associated image on a JFrame. To measure the performance, I call the method 100 times (yes, maybe not enough times), and measure the elapsed time.
Finding good SVG images is not so simple, because time is not only linked to the size of the file, but also to what it contains (for example, complex renderings like gradients take much more time to compute).
And of course, I used Batik 1.7 Beta 1 and rebuilt it for Java 5.0, then 6.0, before doing all this.
Here are the results on my XP box:

Average performance boost is approx. 20%, this is good !!
For some more informations about the different SVG files that were used, they are all coming from the Batik samples library. You can get these samples either by downloading the snapshot here, or much simpler by getting them from the SVN viewer on the trunk here. For more informations about them:
- asf-logo size is 100 Ko, and it uses a lot of gradients
- batik3D size is 104 Ko
- anne size is 86 Ko
- strokeFont size is 70 Ko
- moonPhases is 95 Ko, and uses a lot of gradients
- sunRise is 67 Ko, and uses a lot of gradients
- mapWaadt is 260 Ko
If we skip those which use gradients, and the big mapWaadt image, the boost is closer to 35%. Not bad...
Subscribe to:
Posts (Atom)