Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Will Sun Open Source Java?

Posted by samzenpus on Mon May 01, 2006 10:10 PM
from the free-coffee dept.
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?"

Related Stories

[+] Java to be Open Sourced in October 267 comments
thePowerOfGrayskull writes "Sun is now stating that the Hotspot JVM and javac will be open-sourced in October of this year, with the rest to follow by the end of 2007. There is still no word as to which license it will be released under. For those who haven't seen it yet, Sun has previously opened a public developer community site for soliciting feedback and providing updates about the process."
[+] Java To Be Opened For Christmas? 243 comments
MBCook writes "At the Oracle OpenWorld conference, Sun's CEO Jonathan Schwartz announced on Wednesday morning that Java would be opened within 30-60 days, which would would mean about Christmas Day at the latest. Sun first announced they would do this back in May at JavaOne but didn't give a date. We've seen rumblings before on this topic. Schwartz also commented on the companies Sun Fire servers, Sun's relationship with Oracle, and general trends."
This discussion has been archived. No new comments can be posted.
Will Sun Open Source Java? | Log In/Create an Account | Top | 700 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2
  • by khasim (1285) <brandioch.conner@gmail.com> on Monday May 01 2006, @10:13PM (#15242662)
    "Open Source" covers a LOT of licenses.

    What changes and how would depend upon which license was chosen.
  • This would help by k8to (Score:1) Monday May 01 2006, @10:13PM
    • Re:This would help by aliquis (Score:1) Monday May 01 2006, @10:24PM
    • Java != fat by EmbeddedJanitor (Score:2) Monday May 01 2006, @11:37PM
    • Re:This would help (Score:5, Informative)

      by icebattle (638355) on Tuesday May 02 2006, @12:51AM (#15243336)
      "1. Restrictive licenses make it more difficult to reasonably deploy than any competing technology in a linux environment."

      Pretty meaningless comment, unless you can supply some examples. I've done consulting and development for a number of large, lawyer heavy organizations, and none of them had a problem deploying Java solutions on linux. None.

      "2. JVM is fat fat fat, it uses way more RAM than is reasonable."

      Sadly uninformed, probably due to severe lack of experience with large applications. Per example, a couple of years ago I worked in a team that bid on and developed an application that, in a nutshell, receives up to 20Megs per sec of market data, breaks it up into itty-bitty messages, and then makes it available to any number of subscribing clients. Call it a proxy, if you will. We developed the app in pure Java, using the new NIO functionality. We competed with another team who started out in C, moved to C++ midway through, and were barely in a position to go alplha when we were ready to deploy. The client, since they were paying and had a lot of anti-Java staff, insisted on waiting, even though the delivery date had long since passed. When they finally had something to show, the apps were launched on identical hardware, and allowed to run 24/7. Our app ran smoothly, uninterrupted (except for a blown network interface) for the duration of the test. The other team had to restart their app several times a day, resulting in unnacceptable outages. Their restart time was, likewise, poor. Their app required 2Gigs to run. Ours ran happily under a Gig.

      The client paid both teams for their efforts, then licensed our solution.

      So, my quesion then is, where's the fat?

      [ Parent ]
      • Re:This would help by k8to (Score:3) Tuesday May 02 2006, @01:11AM
      • Re:This would help by Anonymous Coward (Score:2) Tuesday May 02 2006, @02:12AM
      • Re:This would help (Score:5, Insightful)

        by Anonymous Coward on Tuesday May 02 2006, @02:49AM (#15243670)

        Programmer time is much more expensive than processor time these days. Therefore, many current programming languages are optimised to save programmer time first. C and C++ were designed in a time when processor cycles were extremely expensive, and therefore are optimised to save time at runtime instead.

        As you have seen, java typically gets you results more quickly than C. In this case, since you simply took less time to get to your basic functionality, you could take more time to think about how to code more efficiently, and ended up actually writing faster code in the end.

        However, java is not the only modern programming language out there. People have designed several new languages in the past decade. It seems reasonable to assume that some of those people deliberately set out to improve on java. Compared to such languages, java might appear to be very inefficient.

        I'll leave it up to you to compare and decide. For instance, here's a comparison for web applications, done at JPL. (YMMV):

        http://oodt.jpl.nasa.gov/better-web-app.mov [nasa.gov]
        [ Parent ]
      • Re:This would help by HaydnH (Score:2) Tuesday May 02 2006, @03:44AM
      • Oh alright I will bite by SmallFurryCreature (Score:3) Tuesday May 02 2006, @04:57AM
      • Re:This would help by mgblst (Score:2) Tuesday May 02 2006, @07:36AM
      • Re:This would help by adavies42 (Score:3) Tuesday May 02 2006, @07:50AM
      • Re:This would help by abdulla (Score:3) Tuesday May 02 2006, @08:38AM
      • 3 replies beneath your current threshold.
    • Re:This would help (Score:5, Interesting)

      by TrekCycling (468080) on Tuesday May 02 2006, @12:53AM (#15243349)
      (http://www.evilspock.net/)
      All of this is terribly ironic to me. I've worked with Java for about 6 years now. It's considered the Enterprise Open Source solution (because admin types typically confuse open source with "free and runs on lots of platforms) usually. So it's either Java or Microsoft in every shop I've ever worked for. No PHP. No Ruby. And often Java is paired up with Linux, MySQL, etc. So I find it funny (although I understand the point, but it's still funny) that people consider Java to be so difficult because it's closed source. In every shop where Microsoft is the choice, the decision is usually made because the stack is predictable. It's predictable because Microsoft controls every aspect of it from the database to the app server to the language you use to code on it. So open sourcing Java would probably have the unintended consequence of giving Java a perception problem in the eyes of manager types. It would become risky on the same level as Linux and MySQL and so instead of being the safe, "adult" part of that crazy open source stack, it would just become one more piece of it. Albeit a powerful one, but it would probably push more people into the arms of Microsoft. Sorry, but that's been my experience, given what I've witnessed in the industry lately.
      [ Parent ]
    • Re:This would help by Lehk228 (Score:2) Tuesday May 02 2006, @01:55AM
    • Re:This would help (Score:4, Informative)

      by LarsWestergren (9033) on Tuesday May 02 2006, @02:20AM (#15243586)
      (http://www.ki.se/ | Last Journal: Tuesday August 28, @07:06AM)
      2. JVM is fat fat fat, it uses way more RAM than is reasonable.

      1) You do know that tools such as top and ps report a lot more memory than is really used? This has been adressed in the upcoming Java 6, which will more accurately report the memory used, you will likely see a decrease of 25-55% [java.net] reported memory use on Linux/Unix, and at least 11% of real memory used.
      2) You can use jvm startup parameters to limit memory usage and still get acceptable performance [rifers.org].
      [ Parent ]
    • Re:This would help (Score:4, Informative)

      by IDontLinkMondays (923350) on Tuesday May 02 2006, @02:38AM (#15243631)
      Can't speak on the licensing, I'd say that the technology itself however is the complication in deployment. Java has a tremendous number of rough edges and that is was is the problem.

      Now, before I take a moment to rag on your ridiculous RAM comment, let me assure you that I hate Java from that ground up. I find it to be little more than a virus.

      JVM is thin thin thin. The fact is that most non-Sun implementations of the JVM are tight and small. In fact, from a performance perspective, Java is typically superior to compiled languages because of how it handles RAM. Before you blow me off, let me justify my comment. Thanks to the Java license and NDA agreements, I in fact can not say where I learned this information, but I have extensive experience in this topic since I was forced for extended periods to suffer the Java VM on embedded devices.

      Java is a relatively simplistic (though strangley complete to the point of OVER KILL!!!) architecture/language/etc... It provides a language matched to a virtual machine matched to a set of somewhat poorly written libraries.

      What makes Java superior to compiled languages is that it compensates for several key factors. First I'll refine my definition of a compiled language to clearly specify C/C++/Pascal/other non-garbage collected languages.

      1) Application Developers are not System Developers
      Using C++ as an example, most application developers use the standard implementation of new and delete. This is fine, but the first thing to keep in mind is that memory allocation for a C++ application that makes use of a lot of small objects tend to pay a huge performance price. C developers regularly shoot down the performance of C++ without realizing that it's the limitation in the C allocation routines.

      Object oriented programming is typically very heap intensive. In many cases, developers insist on iterating through strings and lists far too much. Students are even taught in the university that data structures should be used absolutely everywhere. Of course they are taught Big-O and Little-O, but unless you're actually implementing the data structure classes and types, very little importance is placed on performance of these classes.

      Strings are abused regularly since even though the allocation unit size of the heap allocator is limited to blocks of 16 bytes (for example), programmers will actually reallocate the buffer for a string to resize it from 8 to 9 bytes in length. By reallocating, I mean they will in fact allocate a new 9 byte string, then copy the original to the new buffer and delete the original buffer.

      Application developers pay very little attention to the actual internal mechanics of the classes and functions which they use. To a certain extent, I can forgive them since an application developer is expected to think differently than a system developer. When we depend on system developers to write applications, they're often extremely fast, but relatively unusable.

      So here's where Java shines, because of the garbage collection system and because of the relocatable memory architecture, memory is managed in such a way which decreases the cycles spent in allocation and deallocation of buffers. A well written JVM actually will actually either when necessary or when time is available compress the heap to maximize performance and minimize heap consumption.

      So although Java seems like a memory hog, it's actually not that bad given the number of allocations and deallocations being performed by the developers. Sadly, the extreme memory use you're talking about is related to the poor system level development skills of application developers stacked on the additional layer which abstracts even more from the developer therefore making it less practical for the developer to understand the internals of the system.

      2) System Developers make Terrible Applications
      A system developer is typically biased towards raw high level languages such as C (not C++) because their used to making use of the stack whereever po
      [ Parent ]
      • Re:This would help by k8to (Score:3) Tuesday May 02 2006, @08:35AM
        • Re:This would help (Score:4, Insightful)

          by Decaff (42676) on Tuesday May 02 2006, @12:48PM (#15247102)
          There is _no_ common denomonator to these languages. Some have virtual machines as sophisticated as the jvm. Some have simple hand-hacked runtimes. Some are compiled. Some have features and dynamicism Java cannot hope to touch. Some are terse. Some are verbose. Some are forgotten and old. Some are quite new. Java uses more memory than every single one, and that is a major weakness of java in practical terms at this time.

          I know. This is a real weakness in Java. It would have been great if it was a far more memory efficient languages, because then it could have been used in a wide range of low-memory situations like embedded devices, PDAs or mobile phones....

          Er - something wrong with this argument, perhaps?
          [ Parent ]
        • Re:This would help by jonabbey (Score:2) Tuesday May 02 2006, @01:24PM
      • Sacrificing Mod Points - please elaborate. by mosel-saar-ruwer (Score:2) Tuesday May 02 2006, @10:31AM
      • 1 reply beneath your current threshold.
    • Re:This would help by nwbvt (Score:2) Tuesday May 02 2006, @06:42AM
    • Re:This would help by Nikker (Score:2) Tuesday May 02 2006, @07:19AM
    • Re:This would help by thePowerOfGrayskull (Score:1) Tuesday May 02 2006, @10:28AM
  • too little too late by mycall (Score:2) Monday May 01 2006, @10:13PM
  • Third-Party JVM by GetSource (Score:2) Monday May 01 2006, @10:16PM
    • Re:Third-Party JVM by aliquis (Score:2) Monday May 01 2006, @10:26PM
      • Re:Third-Party JVM (Score:5, Informative)

        by IntlHarvester (11985) on Monday May 01 2006, @10:49PM (#15242831)
        Microsoft's JVM was actually one of the fastest in the day and had extentions for a native GUI similar to eclipse. (Of course those extentions relied on illegal JVM tricks.) It was certainly much better than Netscape Java or early releases of Sun Java.

        The main reason Java has a terrible reputation (IMO) is/was it's tendancy to hang/lockup/freeze your browser when an applet loads, and general clunkyness with Swing.
        [ Parent ]
      • Re:Third-Party JVM by TummyX (Score:1) Monday May 01 2006, @11:35PM
      • Re:Third-Party JVM by feijai (Score:3) Tuesday May 02 2006, @12:02AM
      • Re:Third-Party JVM by dubl-u (Score:1) Tuesday May 02 2006, @12:14AM
      • You don't know what you're talking about by ag0ny (Score:2) Tuesday May 02 2006, @12:47AM
      • Re:Third-Party JVM (Score:5, Informative)

        by Call Me Black Cloud (616282) on Tuesday May 02 2006, @12:50AM (#15243332)
        People must be tired to mod you up. Performance isn't really an issue anymore and hasn't been for a couple of years. Blaming any perceived slowness on Swing is like saying C++ is slow because of Windows overhead. Most Java code doesn't make use of Swing (think server-side). As for the "122 ms", well, you just made that up.

        Other problems with your post: Eclipse is an application; Swing is a language feature. A Smalltalk derivative (Squeak) is not a suitable replacement for Java. I'd go so far as to say Ruby and Python aren't either, though both are very powerful and are better suited to some tasks than Java.

        Nice try at a troll...subtly nonsensical.
        [ Parent ]
      • Re:Third-Party JVM (Score:5, Insightful)

        by LarsWestergren (9033) on Tuesday May 02 2006, @01:26AM (#15243436)
        (http://www.ki.se/ | Last Journal: Tuesday August 28, @07:06AM)
        The other main problem is Checked Exceptions, which force a programmer to write "try{" before the body of every method and "} catch (Exception e) {}"

        No, not EVERY method. Just methods that that can reasonably fail (for instance I/O related operations), and that doesn't "know" how to handle the problem themselves. This helps you create well defined APIs, which in my opinion is one major reason there are so many frameworks and open source projects for Java.

        Although relatively useless (if not harmful), these checked exceptions lead to a minimum of 122 extra CPU cycles per method invocation.

        Evidence of this? Besides, it has been said so many times, but appearently it has to be said again. Processing cycles keep getting cheaper. Programmer hours keep getting more expensive. Trading a few cycles for a feature that helps you create more stable and transparent code is sensible.

        catch (Exception e) {}

        That is just about the worst thing you can write. Ok, maybe catch(Throwable t) {} is worse. That the first editions of Bruce Eckels Thinking in Java books were littered with those is evidence he just doesn't get checked exceptions.
        [ Parent ]
      • Re:Third-Party JVM by squiggleslash (Score:2) Tuesday May 02 2006, @07:39AM
      • Re:Third-Party JVM by tool_sharpener (Score:1) Tuesday May 02 2006, @02:52PM
      • 1 reply beneath your current threshold.
    • Re:Third-Party JVM by Forbman (Score:2) Monday May 01 2006, @10:38PM
    • Re:Third-Party JVM by twiddlingbits (Score:3) Monday May 01 2006, @10:57PM
    • Re:Third-Party JVM by east coast (Score:2) Monday May 01 2006, @11:05PM
    • Re:Third-Party JVM by owlstead (Score:2) Tuesday May 02 2006, @04:22AM
  • No (Score:5, Insightful)

    "Will Sun Open Source Java?"
    No, haven't they already said that? Like hundreds of times? And does it really matter?

    "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."
    "No", who would run PHP on Java anyway? Why? Why would open-sourcing it help?

    "Would this move Java up the desirability scale in your eyes?"
    No, Java is already desirable in my eyes.

    "Could this be a way to help improve what's lacking in Java?"
    No, what is lacking?

    People who complain that Java is slow, should be open-sourced, and so on have never seemed to had a clue.
    • Re:No (Score:5, Insightful)

      by Enonu (129798) on Monday May 01 2006, @10:32PM (#15242740)
      (http://www.glpwd.com/)
      Hear Hear!

      Will people stop trying to move Java towards a culture that won't keep Java up to the same standards Sun has? There's a reason why the top two server side platform these days are .NET and Java, and it's because a there's a quality standard and completeness not found elsewhere. 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.

      The only place I ever see Java going is perhaps to be bought by another bigger company who has a similar path. My only hope is that it's IBM because their Java apps are of a higher quality than Sun's, and they've done such good work with the Eclipse platform.
      [ Parent ]
      • Re:No by IntlHarvester (Score:2) Monday May 01 2006, @10:57PM
      • Re:No (Score:5, Funny)

        by Anonymous Coward on Tuesday May 02 2006, @12:38AM (#15243288)
        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.
        [ Parent ]
        • Re:No by owlstead (Score:2) Tuesday May 02 2006, @04:36AM
          • Re:No by owlstead (Score:2) Wednesday May 03 2006, @07:02PM
          • 1 reply beneath your current threshold.
        • Re:No by Britz (Score:1) Tuesday May 02 2006, @10:39AM
        • Re:No by x_codingmonkey_x (Score:1) Tuesday May 02 2006, @11:26AM
        • 1 reply beneath your current threshold.
      • Re:No by penguin-collective (Score:1) Tuesday May 02 2006, @05:27AM
        • 1 reply beneath your current threshold.
      • Re:No by kurtdg (Score:1) Tuesday May 02 2006, @03:16PM
      • 1 reply beneath your current threshold.
    • Re:No (Score:5, Insightful)

      by JanneM (7445) on Monday May 01 2006, @10:34PM (#15242751)
      (http://janneinosaka.blogspot.com/)
      People who complain that Java is slow, should be open-sourced, and so on have never seemed to had a clue.

      Irrespective of any ideological issues, there are a few reasons the current situation hurts Java a bit.

      Foremost for quite a few readers of slashdot is that free Linux distributions can't include Java in their default install. That means Java-based apps are not going to be included either. And since users need to jump through quite a few hoops to get Java installed (don't say "it's easy" - for most people anything beyond using their package manager is too high a hurdle), you can't assume it will be available on desktops in general.

      The second issue is that Java does not really play well with the desktop. I have set up my desktop to run fine using three languages - English, Swedish and Japanese - and made sure everything from localization to character input works smoothly. But Java does not cooperate; it has its own way of dealing with CJK characters and needs its own fonts and separate setup to work. I have fiddled a little with it, but have never gotten it to work properly (especially being able to run an app in Swedish while still being able to input Japanese). And since it uses its own input method, it does not share the local dictionary so typing becomes frustratingly different from any other application I use. And since the code is not open, distributions can't fix these interoperability issues.

      Both of these issues serve as disincentives from using Java apps and from writing them in the first place.
      [ Parent ]
    • Yes by zx-15 (Score:1) Monday May 01 2006, @10:47PM
      • Re:Yes by Anonymous Coward (Score:1) Monday May 01 2006, @11:05PM
      • Re:Yes by roman_mir (Score:2) Tuesday May 02 2006, @12:05AM
    • Re:No (Score:5, Interesting)

      by Surt (22457) on Monday May 01 2006, @10:57PM (#15242883)
      (http://ptth.net/squish/ | Last Journal: Monday October 01, @11:26AM)
      "Will Sun Open Source Java?"
      No, haven't they already said that? Like hundreds of times? And does it really matter?


      Sure it matters. A lot of people have issues with it because of the license. It would clearly expand the number of potential adopters to go open source. More adopters will mean better tools.

      "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."
      "No", who would run PHP on Java anyway? Why? Why would open-sourcing it help?


      Well, I agree with the first part. But presumably integration will get better/faster in open source.

      "Would this move Java up the desirability scale in your eyes?"
      No, Java is already desirable in my eyes.


      But a lot of people would find it more desireable. You can trust that java won't go away in open source, whereas you can't really say the same as long as SUN is at the helm.

      "Could this be a way to help improve what's lacking in Java?"
      No, what is lacking?


      Mostly modernizing. The pace of java development is glacial, compared to say what is going on in C# or Ruby. People with specific integration issues that can't get sun to address compatibility problems are stuck.

      People who complain that Java is slow, should be open-sourced, and so on have never seemed to had a clue.
      There's no doubt java is still slow in a number of contexts. There are also obvious opportunities for performance enhancement that could be addressed in an open source process. I recently benchmarked ten of my applications in c++ and java, java is about 2x slower for most of the cases I tried, and never faster. To me, that's perfectly acceptable, but java could make more inroads into other areas of computing if it was more competitive in performance. More inroads means more developers, and that means better tools, which is what I yearn for.

      [ Parent ]
      • Re:No (Score:5, Interesting)

        by iabervon (1971) on Tuesday May 02 2006, @12:09AM (#15243190)
        (http://iabervon.org/~barkalow/ | Last Journal: Saturday May 31 2003, @02:01AM)
        I'm not sure if you're complaining about development of the language and standard library API, or development of Sun's implementation. The language evolves about as fast as is prudent, because they're committed to having the language not have badly-designed features that need to either be incompatibly dropped or painfully maintained. So Java gets features essentially as soon as C++ has made all the mistakes related to those features.

        On the other hand, Sun's Java compiler has always had broken dependancy tracking (at least since I started using it heavily in 1999). (If a build has an error, the set of output class files may be such that the next run of the compiler skips a source file which needs to be compiled; this is mainly that it can generate the public class without generating other classes in the same file.) I think it's likely that, if Sun does open source the JDK, they'll get fixes for a number of annoying flaws of that sort pretty quickly, and things that are clearly wrong but aren't considered worth working on will be improved substantially.

        Of course, there's essentially no chance that they'll relax their grip on the language standard, and they probably shouldn't, unless they turn it over to a standards body due to no longer being able to employ good language designers.