Slashdot Mirror


Java: One Step Closer To Open Source

Ritalin16 writes "Sun Microsystems on Monday intends to celebrate the 10th anniversary of its Java programming language by sharing the proprietary source code for several key Java applications used by corporate customers. Sun officials believe that by making the source codes open to developers, they will spur more involvement and use of Java-based applications."

23 of 318 comments (clear)

  1. Too late Java is not cool anymore by FriedTurkey · · Score: 5, Insightful

    This doesn't really matter to Java detractors. IT types, usually not programmers, will bring up the same old tired clichés.

    Somewhere around the year 2000 Java became uncool especially with younger programmers. I guess because it became an institution taught in high schools everywhere. Maybe programmers feel Java is rammed down their throats so they champion less established languages even something by Microsoft.

    Java really is the best thing out there for a lot of things. Sun can give away everything and detractors will be like: "OK but what about your first born child?"

    1. Re:Too late Java is not cool anymore by Anonymous Coward · · Score: 1, Insightful

      As a Java-skeptic, what strikes me is that Java can't seem to make it's mind up about what it wants to be. Is a general purpose applications language? Is it a server-side glue? Is it a VM based "Compile once, run anywhere" language?

      I was always under the impression that the last item on that list was the reason for Javas existence, yet it is the most problematic and underutilised feature-set of them all. So Java becomes some sort of over-blown (C++)++ without the maturity or standards support. I don't see the attraction.

      From a user perspective it's even worse. When you add the fact that after a decade of development, Sun still have not solved the problem of incompatible JRE's. A typical image we roll out for our users here has at least two JRE's installed. A developers image can have anything upto five, depending on which development group they're in. You have to have the exact versions installed in the right places and be in an exact order in your path, or shit just stops working. I could do without that sort of dependency juggling, frankly.

    2. Re:Too late Java is not cool anymore by cyngus · · Score: 3, Insightful

      Maybe Java isn't cool on the client side, but its sure is used widely on the backend. I see many, many posting each day for Java programmers, as I'm looking for a way out of this hell hole I work in. When I first started writing Java I scoffed at it, my background educationally is in systems, so C and maybe C++ are my domain. But, if you need to throw something together quickly Java is a great language, not so much for the language features, but rather the API that comes along with it. I live by "make it work, make it right, make it fast" philosophy, and you can do the first two with Java very well. With some time you can even do the last one, but half the time development deadlines don't allow me to optimize things.

    3. Re:Too late Java is not cool anymore by duncanIdaho.clone() · · Score: 3, Insightful

      I mean, I can spot a Java application light years away.

      Perhaps Java's widget defaults aren't set to please everyone, but if someone releases a program that looks like ass it's their fault, not Sun's.

      --

      feints within feints, wheels within wheels

    4. Re:Too late Java is not cool anymore by fimbulvetr · · Score: 1, Insightful

      P.S.: You're obviously bullshitting if you say "I don't find any java app to be slow".

      Either that you've never installed Oracle, or used Suns Patch management tools, or used the java solaris installer, or used eclipse...or any number of other applications...

    5. Re:Too late Java is not cool anymore by Decaff · · Score: 4, Insightful

      Oh hahahaha... yes, if your app doesn't look completely native it's the developers fault. Fuck me, I have to wonder what planet you live on.

      This one. Your average user won't notice much difference between Swing and native on Windows, and will not see any difference at all on MacOS/X.

      Speaking as someone who has tried Swing under Linux and Windows, I have come to the following conclusions... and this is based on actual usage, not theoretical bullshit and Sun marketing (like your reply):

      Actually, I am a Java developer, who has had substantial practical experience of it since it started. It has been my main development language for about 5 years.

      1. Swing sucks balls under Linux. It's very very slow (and believe me, looking slow compared to GTK is quite an achievement) and ugly... even with the gtk plaf it stands out like a builder wearing a pink tutu to work.

      Swing works fine under Linux. It is fast and very user-friendly (I find novice users have no problems with it at all).

      2. Swing sucks balls under Windows... even though Sun have put a huge amount of effort into speeding it up by using all kinds of directX acceleration to hide just how slow it is.

      On the contrary, Swing is pretty good under Windows. It has good desktop integration and is very fast. The DirectX application means it is at least as fast as native apps.

      3. Sun's entire Java package for Linux sucks... and it's only going to get worse. Sun's Linux support is grudging and half-assed at best.

      Sun's package for Linux is first-rate. Not only have they directly supported it for years, they now ship Linux with Java installed as a product.

      Why do you think so many people hate Java on slashdot? It's partly a license thing... and partly that Java is a corporate quagmire and on Linux it is seriously shite.

      On the contrary, its a combination 'not invented here', geek culture not liking 'safe' languages where you can't hack everything and a dislike of everything that isn't open source.

      Linux is one of the main deployment platforms for server-side Java, and Java is very widelyused this way for high-performance critical applications.

      So I am afraid the evidence is strongly against your 'seriously shite' claim!

      The fact that you can claim Java is in *any* way a serious system for cross-platform desktop development betrays a complete and total break with reality. You might try using it in the real world.

      I do, and have for years. It's cross-platform ability is superb. I have written substantial (hundreds of thousands of lines) Swing and Web applications and these have ported between Windows and Linux with no changes.

    6. Re:Too late Java is not cool anymore by dnoyeb · · Score: 2, Insightful

      Then you missed the point. The JVM itself optimizes for you. I still fail to understand how people think they can write faster code in less time in c/c++ when java itself is just another c/c++ program that is handling many other tasks for you.

      If you would say in the long run you can manually optimize a c/c++ program to give you more speed, then I would say ok. But for me, I have a team of engineers working to make my program faster for me. They are called JVM developers.

      Java is simply a c/c++ program that does a lot of things for you and is written and maintained by someone else.

    7. Re:Too late Java is not cool anymore by TheRaven64 · · Score: 2, Insightful
      Why in GODS NAME does Java NOT USE Native Widgets?

      Because Java apps are not native apps. If they look like native apps then you have lost the visual clue that they are not native apps. The correct way to implement a Java app is:

      1. Write the core logic and a Swing GUI, which will run everywhere.
      2. Test everywhere.
      3. Fix bugs.
      4. Hand over to UI specialists who will write platform specific front ends using things like the Java/Cocoa bridge on OS X or the GNOME Java bindings.
      5. Test and fix bugs again.
      Just because you can run your code on a platform doesn't mean it's a native application on that platform. Cross platform toolkits are a good for first approximations of a native port, but they should never be treated as if they are actually native.
      --
      I am TheRaven on Soylent News
    8. Re:Too late Java is not cool anymore by Anonymous Coward · · Score: 1, Insightful

      Sounds like your app is poorly written:

      It depends on a certain sub-version of 1.4
      Very bad. Bad bad bad bad. There is no reason to do this, other than bad.

      we're porting everything over to javascript and CSS
      If your app can be done in javascript and css, it doesn't even sound like an app. Maybe you should submit it for worst-app-of-the-year!

    9. Re:Too late Java is not cool anymore by njcoder · · Score: 2, Insightful
      " Then you missed the point. The JVM itself optimizes for you. I still fail to understand how people think they can write faster code in less time in c/c++ when java itself is just another c/c++ program that is handling many other tasks for you."

      I'm not going to disagree with you that the JIT compiler provides a lot of useful optimizations during runtime and is a great thing.... but it's not the be all end all of performance.

      I think the original poster was talking more along the lines of more design issues where profiling an application can help out. The JIT compiler may see you're making 1000 calls to the same method and is able to inline it, but it can't let you know you only really need to make that call once.

  2. ...Not gonna happen by Donniedarkness · · Score: 2, Insightful

    Sun will not go completely open-source. They already have JBoss, which is open-source... too bad that no one I know of uses it. Also, I doubt anyone would have used Platform Edition 9...unless they made it Open Source and promoted the hell out of it, which is why they are doing this. Everything will remain closed-source. *shrugs* just my 2 cents, though.

    --
    Earn a % of cash back from Newegg, Tiger Direct, Walmart.com, and more: http://www.mrrebates.com?refid=458505
  3. problems with Java by brontus3927 · · Score: 1, Insightful

    Of course any discussion of Java isn't complete without someone bringing up that it's slow and bloated. I don't mind the speed, because I don't use any java applications that need to be all that fast. IANA programmer, but java seems to have a horrible leak in it. I have to shut down my freenet node and restart it about once per day because javaw.exe slowly nibbles away at the available memory and will routinely eat up 99% of the CPU usage. The highest the memory usage has gotten before I restarted is ~ 181MB. Over 10% of my total memory!

    1. Re:problems with Java by CodeMonkey4Hire · · Score: 2, Insightful

      If a program is written poorly it is possible for it to hold on to a lot of its objects (memory) because Java thinks the program is still using them. I think the easiest way to screw up (but not sure) is to keep a hash around with all of your objects in it. As long as the hash still references the objects, even if nothing else does, the memory will not be freed up. Have you tried killing off specific aplications that are using Java to see if you can find which program is hoarding all of the memory or are you pointing your finger at the Java VM?

      --

      Let's go Hurricanes!!! 2006 Stanley Cup Champions!!!
    2. Re:problems with Java by Anonymous Coward · · Score: 1, Insightful

      IANA programmer, but java seems to have a horrible leak in it

      Obviously not. Because if you were a programmer, you'd know Java has garbage collection, which means you have to screw things up pretty badly to leak memory.

      That is far, FAR more likely to be a bug in Freenet.

    3. Re:problems with Java by mcc · · Score: 3, Insightful

      This sounds like a problem with Freenet, not with Java. You can write code with memory leaks in any language. Java makes memory leaks a little harder, but it in no way makes memory leaks impossible. If you had a C program where the author forgot to call free() would you complain about the "leak" in C?

  4. Java is ALREADY opensource, you monkeys by bigbinc · · Score: 0, Insightful
    Java has been opensource since early on. You can see the source of almost every application in the suite through the mustang dev project.

    Get the wording right. If you mean Java might get a more open license or Apache/BSD style license say that.

    --
    ---- Berlin Brown http://www.newspiritcompany.
  5. Re:And Again by Anonymous Coward · · Score: 1, Insightful

    neither have they been too keen on helping out projects who bite their hands. As a result, the project to watch is the Apache Harmony Project. Given that Apache maintains a close relationship with Sun, hasn't burned their bridges,

    The fact that ability to work with Java is based on how politically friendly your organization is to Sun seems, to me, to be the primary problem with the Java licensing situation. Look at Perl or Python or any number of "open source" languages, and your ability to work with, package, resell embed etc the langauge is in no way restricted by your ability to get along with Larry Wall or whoever. Now notice how those languages are flourishing in a lot of situations where Java is right now having problems.

    This is, in fact, probably the primary advantage of open source, that the success of the product is not dependent on the behavior of the vendor, and the more I see situations like this (Java being held back in some situation because of something Sun did) the more I begin to see what the fanatic GNU hippies were talking about in the first place.

    As a developer, I don't give a shit whose bridges with Sun are and aren't burned. I expect Sun to do whatever is necessary to make their product useful to me and Sun's other customers. That includes maximizing the ubiquity, growth and flexibility of the language. If that involves having *gasp* to actually work with organizations they're unfriendly with, then they either better well damn either do it or choose a licensing model which allows other organizations to grow the Java platform without Sun's help. If Sun can't do what is necessary to make their product the best one available, then at some point I'm going to have to look into the fact that I have other alternatives.

    Anyway the license you cite is listed as being

    as subject matter for learning and research

    That's nice, but it isn't very useful for those of us who eventually have to get things done in the real world.

    - Posted as anonymous coward because as a developer I have a business relationship with Sun, and I've seen what happens to people who "burn their bridges"!

  6. Re:Great timing... by FidelCatsro · · Score: 3, Insightful

    " As if Java isn't slow enough, they open source it just in time as .NET is 100x better and faster."
    Wow , i had no idea that .net was that much faster than natively compiled C binaries, considering Java is anywhere between 75-95% percent of the speed of C (Statistics pulled out of nowhere, i remember last time i checked Java was expected to be around 90% of the speed of Compiled C i was guessing that improved)
    That would make .net considerably faster than C ;)

    --
    The only things certain in war are Propaganda and Death. You can never be sure which is which though
  7. Too late Java is not cool anymore by expro · · Score: 4, Insightful

    This doesn't really matter to Java detractors. IT types, usually not programmers, will bring up the same old tired clichés.

    Same tired old cliches. I can tell you first hand that lots of major developers of Java and early advocates have been turned off directly by issues that could have been addressed by open sourcing it. But that won't stop you from your tired cliches that it doesn't matter, just because you don't want it to matter.

    I was developing major applications with it before it reached 1.0, and still work with it quite a bit, but it becomes more and more irrelevant despite my best work because Sun wills it to be irrelevant. Even as a major early licensee of Java, basic problems were not considered important enough for Sun to solve, and it hasn't changed much.

    Somewhere around the year 2000 Java became uncool especially with younger programmers. I guess because it became an institution taught in high schools everywhere. Maybe programmers feel Java is rammed down their throats so they champion less established languages even something by Microsoft.

    Again, strong on cliche, very weak on technical understanding or demographic fact, but at least you contradict your prior nonsense that it is not programmers turning away.

    Java really is the best thing out there for a lot of things. Sun can give away everything and detractors will be like: "OK but what about your first born child?"

    Go whine somewhere else. You think you should dictate what is useful to us without giving us adequate control to meet our needs? We will continue to use Java less and less as other tools continue come forward that are more responsive to our needs. The stuff we run today in Java doesn't benefit from the JVM and will be ported away as performance becomes more important and other features we need to build in are still not available in Java, since it is not open.

    The whole attitude that somehow open source is wanting more from Sun than it would contribute back is ignorant, uninformed, short sighted, etc. Sun and their apologists should get a clue. Open source would make it responsive to a much wider range of developers and would produce developments Sun was too blind to pursue or pursued way too late and too little. Any harm has already been done to a great extent by Sun's pig-headedness. They should go off in a corner and use it by themselves if they don't want to open it up.

    Waiting for Java has become a dead issue. No one expects Sun to get a clue, so why are you still whining that some in the past thought they might.

  8. Closer? by Anonymous Coward · · Score: 1, Insightful

    How many steps are there?

  9. Re:Won't Stop Java's Slide by Anonymous Coward · · Score: 1, Insightful

    excellent work

    +5 jibberish

    Javascript != Java
    Outsourcing has what to do with this?

  10. Re:Read the "fine" article, please by bmarklein · · Score: 3, Insightful

    "If a company wants to run a giant professional website and has money to throw at it, they'll get WebLogic or WebSphere to run it."

    Or they'll forego bloated commercial app servers and EJB and go with a lightweight open-source framework. These aren't toys - in fact the EJB 3 standard being developed now is largely based on ideas copied from these frameworks, as well as the Hibernate open-source persistence service.

  11. Re:Read the "fine" article, please by DAldredge · · Score: 5, Insightful

    The GPL isn't the only definition of Freedom or Free.