To read all comments associated with this story, please click here.
Or you could do it in six lines of Jython maybe? At the moment the Java platform is exciting - not only from the open source point of view - but also because of the push for dynamic languages - namely Ruby, Python, Groovy, Javascript. So now you hava a choice of language to target what is still an excellent platform and sophisticated VM.
There are many extension of Python that need to be compiled from C code and linked with source code of other libraries and extensions. Imagine that you need to deploy an application on server at customers premises running Windows server. There is no C compiler, and no one would let you install one on production machine, which is quite sane. You have no control over dynamic libraries resident on the machine and they will not let you add and remove existing, which is very sane, too.
Imagine that you need to access LDAP from Python application, and LDAP server is no OpenLDAP. Or you have to connect to a database which is not MySQL or Postgres.
The strength of Java is that it is rather isolated from the rest of the machine and almost all extensions are written in Java. One can add additional driver or library by simply dropping a file in a particular directory. Developer can deploy an application without interfering with other functions of the host machine.
DG






Member since:
2006-07-26
I learned python recently and love it. Going back and having to touch Java code that I wrote is really sad. I look at some things and I say, man... I could do those 30 lines of java code in 6 lines of python and it would be easier to understand.
At some point I should look into jython.