Slashdot Mirror


Will Sun's Java Go Open Source?

Ritalin16 writes "CNet report that Sun Microsystems wants to send Java closer to the open-source world, yet keep it safe from harm. "Project Peabody" adds two licenses that make it easier for outsiders to see the code. But Sun stops short of embracing open-source. Sun's licensing practices for Java are closely watched. Proponents of making Java open-source argue that a different license and development process will help accelerate usage of Java, which faces ongoing competition from Web open-source scripting tools, such as PHP, and Microsoft's .Net line of tools."

16 of 519 comments (clear)

  1. off-topic-a-roony by aendeuryu · · Score: 5, Interesting

    Hey, is anybody using the gnu java compiler much? How's the performance on java programs made with it? Obviously there'd be some positive side effects, but exactly how much could the community benefit from having Sun's compiler open-sourced?

    1. Re:off-topic-a-roony by iamacat · · Score: 5, Interesting
      The community would benifit from having a Open Source java implimentation

      Well, there are already at least a couple - Kaffe and GCJ, why not just contribute? Sun already did the hard part - theoretical research, design, marketing - for free. Actual coding of well-researched projects is not that difficult. You can even study Sun's source code to learn general concepts for your own project as opposed to just "lifting" it.

      See, there is no shortage of C/C++ compilers and nobody is grumbling about AT&T not releasing their stuff under GPL.

      ...because it would allow distributions to distribute java runtime enviroments...

      SUSE and gentoo already do, I would guess someone (Debian?) made their own decision not to ship Java rather than being disallowed by Sun.

      Like you could begin writing Java-based GUI applications and then distibute them yourself without requiring your audiance to agree to restrictive licenses and download and install Java on their own.

      Enjoy a license-free download! And the winner is:

      Probably a bit to late for all that, unfortunately. Sun had it's chance and now Linux has managed code in the form of Mono (open source .NET implimentation) and C#. So sun has much more stiffer compitition then it would of had in the OSS world if they released a java runtime enviroment without restrictive licenses a few years ago.

      Do you mean Microsoft released their own .Net implementation under GPL?? I would say Java platform is far more open than MS stuff. Gnome developers just have some unexplainable love for Windows.Forms as opposed to Swing.

  2. Already ditched by skomes · · Score: 5, Funny

    I already ditched java a long time ago. After trying some .net, settled on python, who wants to write 10 lines of code, and have to pass through 2 layers of variables to open a file? Python: open(filename,r/w,0) Java: JSKALDAHSJKDHLSA; ASDJH(ASLDHJKLASH); ASJHDJAKSHDJHASD(); REALLYLONGBUFFERNAME();

    1. Re:Already ditched by crummynz · · Score: 5, Funny

      After close examination of your Java code, I think I've found the reason you were having some problems.

      --
      ~ Crummy
    2. Re:Already ditched by mabinogi · · Score: 5, Informative

      OutputStream out = new FileOutputStream(filename);

      next?

      (yes, I know it's still more typing than python, and I know you were tying to be funny, but Java really isn't that much work)

      --
      Advanced users are users too!
    3. Re:Already ditched by linguae · · Score: 5, Insightful

      For small programs, Java can get very wordy and very verbose, especially if you coming directly from C/C++, or from a language like Perl or Python. It does get annoying at first, typing in public in front of nearly every class/method and having to type in System.out.println when a simple printf() or cout or print would do suffieiently in another language. However, once you start making larger programs, Java isn't that bad, and all of those words are there for a reason. It starts making sense after a while, and it really is a nice language, once you grasp the OO concepts and get past some of the annoying differences between Java and C/C++/Python/whatever. It gets really convenient when playing around with Swing.

      Put it like this, I'll bet you that you'll want to code in Java long before you want to code in Visual Basic, or even worse, COBOL. If you thought Java was verbose, Visual Basic is even more verbose, and COBOL takes verbose to another level....

    4. Re:Already ditched by say · · Score: 5, Insightful

      You know, that is an annoyance just because you do not use object orientation much. Java is strongly typed, and it has a lot of advantages. A quite usual way of creating a new variable is:

      Car redCar = new Porsche();

      Or the more familiar:

      List list = new ArrayList();

      This does also enable stuff like:

      Person p = list.get(1); // even if all objects in list are Man and Woman objects!

      If you don't understand the advantages of this kind of casting, you don't understand object orientation, and therefore, you don't need Java.

      --
      Roses are #FF0000, violets are #0000FF, all my base are belong to you
  3. No, they want to keep their integrity. by CompotatoJ · · Score: 5, Interesting

    "Sun has elected not to use an open-source license at this time because its commercial customers are concerned with "forking," or the creation of incompatible editions of the base Java software" Currently, Java seems to be close to, if not the lead in cross-compatibility. They do not seem like they want to lose their integrity as a stable cross-platform language.

    1. Re:No, they want to keep their integrity. by killjoe · · Score: 5, Interesting

      MS did fork java, they called it C# and .NET.

      Ms no longer cares about java now that they have their own version of it.

      --
      evil is as evil does
  4. Mono viability by grahamsz · · Score: 5, Insightful

    While i haven't done much research, a little casual testing suggests that opensource JREs run a lot more java software than mono runs .net software.

    1. Re:Mono viability by lupus-slash · · Score: 5, Interesting

      Given than mono can run basically the same java programs as the free java VMs (since they all use GNU classpath and the lib implementation is the limiting factor) and it runs many .net programs out of the box, mono is much more viable than any free software java implementation.

  5. Re:zerg by Anonymous Coward · · Score: 5, Insightful

    "Open" means not merely "affording unobstructed view", but also "unrestricted as to participants", "available for use", "obtainable", and "without restrictions".

    So, your objection is that the "open" in "open source" can be interpreted to mean merely available to be viewed, despite the other meanings of the word open. Which is no worse than the problem "free" has, in "free software", since gratis software is quite common.

    Here's the thing -- a random member of the public, hearing the word "free software", will immediately jump to the conclusion that it doesn't cost anything. Especially since the way the word is most often used in the media as "gratis", and since the Windows world is full of "freeware" -- most of it low quality software that supports the proposition "you get what you pay for".

    The same person will not have any idea what "open source" means, since he is unlikely to even know what source code is. Instead of being misinformed by the term, he will notice there is something here he doesn't understand.

    Which is better, from a public-education point of view? The term that immediately misleads your audience from what is meant, or the term that is a semantic nullity, in which you can pour meaning?

    Hint: they're less likely to listen if you tell them their first conclusion was wrong than if you don't have to tell them they were wrong.

  6. Distribute JRE with Linux distro by Ranx · · Score: 5, Insightful

    Until now, you are only allowed to distribute the JRE with Java software. This has always been an problem for creators of Linux distributions who like to include Java in their distribution.

    I seems Sun is gonna change their license at this point so every Linux distribution can distribute the JRE and support Java out of the box.

    This is probably the most important part of the license change and I hear nobody about it.

    --

    Me
  7. GJC by lokedhs · · Score: 5, Informative
    Well, the compiler itself it quite good, and actually manages to create code that runs faster than Sun's VM on occations. Last I looked, however, the Sun VM is faster overall, since it can do stuff like inlining virtual methods, which a static compiler is unable to do.

    However, the biggest problem with the GNU compiler is the lack of compliant class libraries. The GNU Classpath project, which aims at creating an open source cleanroom implementation of the Sun class libraries are severely behind. My optimistic guesstimate would place them at being about 3 years from full 1.5 compatibility, at which time we're probably using the beta of 1.7.

    However, GNU Classpath has an easier job ahead of them than the Mono folks, which begs the question as to why they chose to go with the Microsoft technology in the first place.

  8. Re:gcj is nice by k98sven · · Score: 5, Informative

    I'm curious - does the new Fedora actually ship with gcj and gij as 'Java'? That will be an interesting development to watch.

    Actually, yes. Red Hat has actually aliased 'java' to them in the default install for quite some time now.

    The more interesting thing is that FC4 will for the first time include natively-compiled Java packages. And not just any packages, but Eclipse and Apache Tomcat.

  9. You can't study Sun's code to learn from it by DaliborTopic · · Score: 5, Informative
    You can even study Sun's source code to learn general concepts for your own project as opposed to just "lifting" it.
    No you can't. Read the fine license, in particular the definition of Modifications in SCSL 2.3. Sun claims copyright on any code independently implementing any portion of the SCSL-licensed technology *if* you agree to their license. So please don't look at their code if you intend to contribute to free runtimes in the future. It's the same as Microsoft's Shared Source in a different wrapping. cheers, dalibor topic