Will Sun Open Source Java?
capt turnpike writes "According to eWEEK.com, there's an internal debate going on at Sun whether to open-source Java. (Insert typical response: "It's about time!") Company spokespersons have no official comment, as might be expected, but perhaps we could hear confirmation or denial as early as May 16, at the JavaOne conference. One commentator said, "Sun should endorse PHP and go one step forward and make sure the 'P' languages run great on the JVM [Java virtual machine] by open-sourcing Java." Would this move Java up the desirability scale in your eyes? Could this be a way to help improve what's lacking in Java?"
Open sourcing Java? Are you kidding me? Chaos would reign. Every month new features would crop up and we have to keep learning and learning and learning. Look at Ruby on Rails, new features every couple of days. Nobody can keep up.
No no no. Let Sun handle Java.
Yeah, because what the world needs is more php.
Oh please, no one would do that in Java. You need to have control of the character encoding. A real example would be:
... and later ...
/* handle this? */ }
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
try { Reader in = new BufferedReader(new InputStreamReader(new FileInputStream("input.file"), "utf8")); } catch (IOException ioe) {
See - nice and terse.
(Of course if you think that's bad, you should see how many wrapped objects Swing uses!)
I fear, some smart ass Java programmer will fork off the Java OpenSource and give some crackpot name like "Javalava" or "JavaJ" or "JuJu Bean" or "Grande Capacino"
I am scared...
"Don't let fools fool you. They are the clever ones."
The next time I look at another configured by altering it's code, hard tied to MySQL, non-tiered POS LAMP application, I'm going to cry.
Of course, any equivalent app in Java would have more lines of opaque XML configuration than the "POS LAMP application" has code. It will also be slower, eat several times as much memory, and depend on specific versions of two dozen frameworks.
The Rails version, OTOH, would be about 4 lines long and deployed before the Java guys managed to fire up their Eclipse bloatware. It would, however, be about the same speed as the Java app.
The Lisp version would never fail, would have source code in the form of a haiku, could tell the future and control the weather. It will never be written because all those parentheses look funny.
Java does not scale down well to smaller webapps, and even the smallest thing seems to end up with a half-dozen third party frameworks.
One of the funniest and truest things I've read on Slashdot, sorry to the author that I lost the attribution, was the observation that "Java programmers have a morbid fascination with complexity."
Wow, that is remarkably accurate *AND* has a nice acronym.
:)
I'm very impressed.
Next time there's an outage, we'll say we ran out of COAL
Only three things are certain; death, taxes, and apocryphal quotations - Ben Franklin.
I don't know if it would replace Java, but it would definitely empty many cups of it.
"You're everywhere. You're omnivorous."
"especially being able to run an app in Swedish while still being able to input Japanese"
Well, in that case, I have to agree, for most people then, Java will be entirely unusable. Why just yesterday I was attempting to use a Russian keyboard, on a middle eastern version of Windows, running a Hebrew language Java application, and it just wouldn't allow me to input Chinese. Useless.
New NIO--is that like a PIN number for an ATM machine?
Media that can be recorded and distributed can be recorded and distributed.
-kfg
I just realized that in my entire life I've never once knowingly avoided the plague.
If you can' figure out why java croaks, you are completely fucking out of your league. I mean, jesus christ, it's a virtual machine. IT CREATES IT'S OWN MEMORY SPACE.
Want it to not crash with an OOM? Start your app with the right X flag:
java -jar Xmx512M yourApp.jar.
To find all the flags and what they mean, type:
java -?
Not so hard, now is it?
Linux is not a virtual machine.
And just because you are a fucking tool, doesn't mean that portable languages suck. No, rather it means that you do.