Slashdot Mirror


Java 2 & Hotspot on Linux in 2000

djKing wrote to us with the news that Sun will be releasing a "Java2-compliant JVM for Linux that brings the performance, functions, and Java HotSpot features of the latest Java specifications to the Linux community", which will be announced at the Java Developers' Conference. As well, IBM will be announcing the free general availability of a JSDK 1.18-compliant JVM, with performance better then that of Windows NT JVMs.

239 comments

  1. Java Middleware => CLOSED Middleware by Anonymous Coward · · Score: 0
    The direction middleware (such as application servers, transaction monitors, messaging servers, etc) is going is Java, like it or not (I happen to like it quite a bit). Enterprise Java is getting even more hype in these areas than Linux itself *grin*.

    Not only don't I like it, I dispute your general point.

    Java support among most companies is a mile wide and an inch thick. They all talk the talk (caught up in the tornado of hype), but many companies are holding back on real deployments.

    I suppose people just didn't learn enough from Microsoft that closed development platforms are ultimately harmful. Until Java is truly open, its just another Visual Basic to me.

    1. Re:Java Middleware => CLOSED Middleware by Anonymous Coward · · Score: 0

      Probably in that Sun is not required to accept and incorporate contributions to the Java spec from organizations that want to see it fail.

    2. Re:Java Middleware => CLOSED Middleware by MassacrE · · Score: 1

      how is java not truely open?

    3. Re:Java Middleware => CLOSED Middleware by greenrd · · Score: 1
      It's quite near to being open, in fact. The source code is not Open Source (TM), but you can at least download it for free and find bugs when they are in the platform itself rather than in your own code. The documentation for the profiler and debugger interface is part of the standard documentation - you could write an entire fully featured Java IDE without having to pay Sun a penny. Lots of companies are producing JVMs - if you don't like Sun's VM, you can go with someone else's. There is choice of platform, choice of VM vendor (if you're on a popular platform), a "community specification" process, free access to the Sun bug+feature database, completely open API with no undocumented calls (well, actually there were a few in 1.x but these will probably cease to work in future if they haven't already). Lots and lots of choice. Open standards.

      Anyway, I don't think having an Open Source (TM) implementation of Java 2 (there is already one of Java 1.1, Kaffe) would help very much anyway. Any bugs/features fixed/added to say the Classpath project couldn't be guarunteed in the other VMs. Mucking with the implementation takes away the advantages of Write Once, Run Anywhere. This is one area where Open Source (TM) isn't much more helpful (gasp!! Heresy!!) than Community Source.

      Of course, Open Source toolkits and Beans written in Pure Java are very worthwhile being done as open source, but I'm talking about the language itself and the core packages.

  2. Re:Is there a need for Java? by stomm · · Score: 1
    Concerning the application part, here are some interesting links. I'm not saying that these are a good representation of anything, but just to show you that you CAN do other things with Java than dopey applets. These are some I came across at Jars which I think were interesting and/or useful.

    --
    >(8< ~ we come in peace
  3. Yes by snorks · · Score: 1

    My company has been developing/deploying linux/java systems for 3 years now, and it's a winning combo. More attention to java on linux from Sun and IBM is a good thing.

  4. Re:Is there a need for Java? by greenrd · · Score: 1
    I also believe that the hardware is so changing so quickly that language decisions made on the basis of performance are generally meaningless within a couple of years.

    Bravo! Absolutely. In some cases, though, maybe four or five years. My (recently deceased) AMD K6-2 PR300 (real clock 233Mhz I think) wasn't that much faster than an AMD K6 75Mhz at running Java. 4x clock speed won't necessarily translate into 4x execution speed because of other bottlenecks.

  5. IBM JDK 1.1.8 for Linux works great by msobkow · · Score: 1

    I've had no problems with JDBC or JFC using IBM JDK 1.1.8. I do cross-version tests using Borland's 1.1.6 on NT, IBM JDK 1.1.8 on NT, IBM JDK 1.1.8 on Linux, and had also been using a JavaSoft JDK 1.1.8 on NT. The 1.1.6 JDKs periodically behave oddly with JFC, but that isn't surprising as it's technically downlevel from what JFC requires (I was actually surprised it worked at all with 1.1.6.)

    I have had a lot of problems with JFC under Gnome, but it works properly with KDE and fvwm2. I found issues with the Triteal CDE itself with my latest kernel upgrades, but that affected everything -- not just the JDKs.

    The only "bug" I found with IBM's JDK is present on both the NT and Linux versions: it gave me warnings/errors on code that had been compiling clean for months. When I looked into the errors, I found out the IBM compilers were correct, and Sun's and Borland's hadn't been detecting and reporting the problem properly.

    My only complaint with IBM JDK 1.1.8 for Linux is that it's performance is comparable to Borland's 1.1.6 on NT, taking about 3-4 times as long as their NT version to run the same application code. My guess is that the problem is my use of CPU-intensive long-running threads -- there might be an issue with the way threads are managed on Linux.

    Speaking of CPU-intensive threads, I found I had to drop the thread priority to minimum in order to keep the GUI responsive under NT, but under Linux the GUI remains responsive even if I bump up the priority higher than default.

    --
    I do not fail; I succeed at finding out what does not work.
  6. Re:Is there a need for Java? by greenrd · · Score: 1
    Then, as the other poster says, still use Java but get the best of both worlds - use Java for most of it for maximum portability, but use JNI for system programming tweaks. The idea that Java can't interface with other languages is simply not true.

  7. Re:Wow, thats admirable.... by greenrd · · Score: 1
    With JavaVM startup overhead, it's 2.7 seconds real.

    Ah, as I suspected. A very big difference. As I said in another post, real-world Java processes usually last more than 9 seconds, so start up time is insignificant. Also, to repeat myself, if you wrap the whole code in a for loop with 200 iterations the JIT should kick in more, especially if it's Hotspot, and it should get much closer to C's speed for 200 iterations.

  8. Re:Dear Clueless by mistabobdobalina · · Score: 1

    dear idiot, until there is a SOLID 1.2 JVM and ther is generally a VM release at the same time that windows and solaris get it, java is behind. in case you havent noticed 90% of the middleware, ecommerce servers, etc. are using java.

    sun is a business. they have shareholders and quarterly profits to make. generally speaking they are ok in my book - java is cool, its _relatively_ open (see IBM) and it will never reach teh level of ubiquity of ms. keep your eyes on reality...

    --
    -- your knees hurt, don't they?
  9. Re:Wow, thats admirable.... by SuperKendall · · Score: 1

    I was too lazy to try replacing the StreamTokenizer - interesting to see how much it helped. I also tried replacing the ArrayList with a LinkedList, but didn't see much improvement at the time... good work!

    Again, it goes to show that with a minimal amount of profiling and a decent knowledge of the libraries you can really speed up slow Java code quite a bit.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  10. Re:Where is fscking JIT? I've been waiting 3 years by Stan+Chesnutt · · Score: 1

    I think that the Blackdown 1.2 pre-release contains the Solaris x86 JIT, which is OK but gets beaten badly by the IBM, Microsoft, and Symantec compilers. Sun even has a better JIT: their compiler for the Windows JVM is much better than the Solaris x86 compiler.

    You gotta figure that the recent turnover in Sun Java management is probably part of the recent decision to support Linux. Until the 1.2 pre-releases, the Blackdown VM didn't even include a compiler!

    Overall, having Hotspot on Linux, backed by Sun, is a very positive step.

  11. Re:Don't blame Microsoft about CORBA by zigzag · · Score: 1

    CORBA was just the first example that jumped into my mind. And I agree with you. CORBA's too heavy. But that doesn't justify DCOM's existance.

  12. Re:Is there a need for Java? by Anonymous Coward · · Score: 0

    One of the reasons that I prefer to use Java is that it provides useful information when it dies; if you need to run a genetic algorithm for three weeks and it keeps freezing at random times, it's awefully nice to know exactly what's causing the problem. I've also found that it's easier to produce bug free code in Java. A lot of Sun's talk about how hard it is to make mistakes in Java is hype, but there is a little truth to it. (Got rid of pointers, my #$$)

    I can also e-mail code to people at other colleges and they can run it with a minimum of fuss. That's very handy when you're working with someone who uses a different operating system and your program uses a GUI.

    As for speed, it's a small slow down. Wait 18 months and the hardware will catch up. I think that the reliability and portability make up for being a little behind the bleeding edge of speed. And if you need performance that badly, buy a compiler that can produce native code. Right now I'm using genetic algorithms to predict the tertiary structure of proteins from their amino acid sequence (or trying to). I don't care if my GA takes one week or three weeks; it would take several billion years to do it by brute force - either of the first two cases is great.

    Obviously Java isn't the right language for Quake 4, but most applications don't depend on eeking the last few cycles out of the CPU.

  13. Re: Tim Bray by Matts · · Score: 2

    Tim is an avid fan of Perl. When he teaches XML to his classes he teaches to parse it in Perl first, and maybe Java later.

    James Clark writes about 50/50 in C and Java.

    When you say "[Java] certainly isn't slower than Perl/PHP/CFML/etc" you are actually saying "[Java] certain is faster than Perl/PHP/CFML/etc" (just reverse the "isn't slower" into "is faster"). That's not the experience I and a lot of companies I've consulted for have had. YMMV.


    perl -e 'print scalar reverse q(\)-: ,hacker Perl another Just)'

    --

    Matt. Want XML + Apache + Stylesheets? Get AxKit.
  14. Re:Talk is cheap - perl is faster than Java by Anonymous Coward · · Score: 0
    At the very least I have the stats I posted earlier - from Kernighan and Pike. Oh, I guess you'll say now that Kernighan, Pike, and Addison Wesley are just spreading FUD and synthesized the data.

    Java is slow - deal with it. If you look at the designs of Java and Perl, its obvious why. Perl uses a few built-in types that are highly optimized. Java is based entirely on the notion of a hierarchy of types from the standard classes, or user defined classes. They may look pretty, but they have a lot of overhead. Thats also why the C++ is slow in the stats I gave.

  15. Re:Just a quick note ... by Anonymous Coward · · Score: 0

    We are using Java for rewritting a server from C++ to Java. Why ? Because it's easier to run it in other platforms now (like Linux, and a PC), it's more flexible and has even better performance than the C++ version due to some design changes that are easier to implement and maintain in Java. At least promote Java for things it is good at... 1. Sun's Marketting (a close second to MS) 2. Threading 3. Type Safety 4. Exception handling 5. Memory Management none of these are perfect, but as a language it does solve some of the problems. Then again with decent libraries C++ is effective in these areas also. Programming is really about trade-offs. Then again I don't really care language wise outside of the generalization about speed of Java over C++, which is not even backed up with proof. portal sites == usenet with ads

  16. Re:Uhh. What efforts? by AugstWest · · Score: 1

    I've been running the 1.2 JRE on Linux for a couple of months now. Must be some effort in there somewhere, eh?

    Microsoft's "Java 2" VM is only 1.1.4 compliant. Apple's best release so far I believe is 1.1.6 -- so while I 'm glad Sun is making announcements, I'm even more thankful that there are people like those at Blackdown who are working to make Linux a more viable platform. Java 2 servlet support has been a big boost to the Apache team as well.

  17. Re:He chose a SUN OS to run JAVA by Anonymous Coward · · Score: 0
    >>Finally, it is not Sun's responsibility to provide a Java implementation for other operating systems

    But Sun provides Java implementations for Windows NT/9x...

  18. Re:No benchmark covers all cases... by Anonymous Coward · · Score: 0
    Take a look at the real world for one second. Why do so many C programmers also use PERL, even though it's slower?

    Probably because it beats the pants off of java for rapid development.

  19. Re:Talk is cheap - perl is faster than Java by Nabuchodonosor · · Score: 1

    You can't write big applications with Perl. You are not able to understand your own code in perl one week after you wrote it, if it has more than 30 lines. Perl can be faster and smaller than Java, but it is not perfect either.

    --
    ---> Did you know Linux stands for Linux Is Not UniX ?
  20. Re:Wonderful by Anonymous Coward · · Score: 0

    this port was done by Sun, and given to Blackdown to 'productize'. Now Sun is picking it up again. I doubt it will be the same VM (HotSpot should be *the* VM), but it's a good start.

  21. Java Advocacy by HRbnjR · · Score: 3

    First, to those who think Java is closed, let's get it straight, Java is open...Suns _implementation_ of Java is closed! Anyone can download and implement the Java spec...as several have. And Sun is at least attempting to achieve some consensus and standardization for what they create, which is a hell of a lot better than most other companies (how many people did MS ask for input on, say, DCOM???).

    Sun's implementation of the spec may be closed, but it is still more open than a lot of other closed software. Their community source licence, if not that great, is at least a step in the right direction, and if other companies took this step, we would be decidedly better off. It takes time for the corporate world to embrace, understand, and experiment with open software...Sun is heading it the right direction. Keep in mind, they have to make money to survive. Eventually, given the same time C/C++ has had, there will be many good open implementations.

    Java being an open specification, with independant, and open implementations, makes it as open as anything else in this world. Just because there are closed implementations, doesn't make Java closed. If Sun started charging $10,000 for their Java implementation tomorrow...what would happen? The whole community would start working on Kaffe, and you can bet IBM (with all they have invested) would do a cleanroom and open source it, but basically, life would go on without Sun. What would all the Visual Basic programmers do if MS started charging $10,000 for VB? Look at how many people use VB! (Don't even get me started on comparing them)

    As for Java changing "every five minutes" as some people like to quote, or about it being unstable and buggy. Well, that's true, or at least it has been in the past. But Java is a really new language!!!! I'll say it again...it's new! Java, like Linux in some ways, has been pushed into the spotlight before it's time, because it fills the need better than any of the alternatives. I think Sun has done a great job of moving the languages features forward quickly enough that MS can't hijack it by adding missing/needed features that will in turn tie Java to Windows. Being a full time Java developer, I could never go back to C++/Win32, despite the bugs, and a _few_ missing bits here and there, Java is a _great_ language to work with. Stability and speed, and more open implementations, these will all come with time. Actually, Swing is becoming useable, and the new JIT's are actually quite fast on "reasonable" hardware.

    Java is just now really starting to become a viable platform. Linux is in the same vote, it's a relatively new operating system, and is still evolving at a pace at least as quickly (or more) than Java in areas such as multimedia, multitrack digital recording, DVD, USB, component architectures (KOM/Open Parts), etc.

    Most importantly, Java is the only real chance Linux has of putting down windows in the enterprise. Even once all the productivity apps are in place on Linux, and the interface (Gnome/KDE) blows away Windows, and it's easy enough for grandma to install, the MS installed base is going to be the problem. Java gives companies a way to easily migrate from Windows to Linux. Java is the link that will let this happen. Normally, convincing a MS based company to develop their inhouse software on Linux would be impossible. But Java is a good language for _MANY_ other reasons than being cross platform, which will get companies to use it, even if it's only on top of Windows. Then one day, when they discover Linux, they will find that they can slowly (or quickly) throw away their Windows boxes without spending a trillion dollars migrating a myriad of software all at once. Without Java, it will never happen.

    That is why Linux and Java are a good match.

  22. Re:IBM is likely the motivating force here... by mistabobdobalina · · Score: 1

    i've heard that linux is getting a fast tcp/ip stack someday...and a journaling filesystem too.

    --
    -- your knees hurt, don't they?
  23. Re:whining by Anonymous Coward · · Score: 0
    Sun is just blowing smoke here. I don't think Sun will ever start releasing the latest Java SDK for Linux. As for the evidence of Sun making vapor anouncements, go see

    http://www.javasoft.com/pr/1998/11/pr981102-01.htm l

    This is from Nov 2, 1998! Almost one year later, Sun has still not released a Java 2 SDK for Linux! This is just Sun's annual "We are going to suppot Linux, really, we are" vapor statement.

  24. IBM JDK Stability by Ledge+Kindred · · Score: 2
    Hmm, I've been successfully using the IBM JDK in places where both the Blackdown 1.1.7 and 1.2 JDKs barf thread dumps all over the place. This is even using the IBM JDK with native threads and the JIT on multiprocessor machines. The only thing I've seen it not do is be a Java2 JDK.

    I know there are some serious problems with native threads on anything less than kernel 2.2 and glibc 2.1.

    -=-=-=-=-

    --

    -=-=-=-=-
    My mom's going to kick you in the face!

    1. Re:IBM JDK Stability by Will+Lockhart · · Score: 1

      Odd, I've found the Blackdown port of 1.1.7 to be rock solid, but 1.2 is very fragile (possibly due to AWT problems?).

  25. Re:Is there a need for Java? by Anonymous Coward · · Score: 0
    The cross-platform-ability also makes it easy to develop on Windows or Linux boxes, then take the same code and drop it on your Sun E10000 to deploy.

    Except you are always programing for the lowest common denominator instead of actually exploiting that expensive E10000. On the server side, you want platform DEPENDENCE, not independence. You might as well get something out of an E10000 running Solaris once you've spent the money on it - you WANT to use all the neato performance tweaks that only SYSTEM PROGRAMMING can expose.

  26. Re:Is there a need for Java? by Anonymous Coward · · Score: 1

    >I'm wondering if anyone out there uses Java for
    >something useful. Perhaps I sound naive, but I've
    >never seen it deployed beyond annoying applets or
    >slow as molasses games in COS246 (Java Programming)

    Well, the company I work for has a rather large internet app (read millions of users) that is run entirely with Java and Oracle. While much of the development is done in linux, all of the servers are solaris, primarily because of the superior jvm. A great jvm would go along way to further our arguments to try out linux on the production side.

    chris

  27. GUI performance by Anonymous Coward · · Score: 0

    I hope they do something about GUI performance. Until they get rid of the toolkits the Java GUI performance on unix will just suck compared to Windows and OS/2. Xlib->Xt->Xm->AWT->Swing... Too many layers. Also: in the long term we need to improve X graphics API (OpenGL?), because doing Java2D purely on the app side makes things slow and restricted to mostly software implementation.

  28. Re:Uhh. What efforts? by drig · · Score: 1

    Blackdown has had a Java 2 release for a while now. They have put a lot of effort into this and previous releases. They have put up with being at the bottom of Sun's list and generally being ignore, and they have been able to keep within a few months of Sun's releases anyway. Sun has been promising to keep them better informed for years now, with no change of policy. Blackdown has been doing an excellent job.

    --
    Citizens Against Plate Tectonics
  29. I dunno by aheitner · · Score: 2

    My issue with the Blackdown port is that, beautifully compliant as it is, it lacks a JIT compiler. My benchmarks make the Kaffe JITC about three times as fast as the Blackdown JDK's interpreter. I consider interpreted Java unusable -- making my computer three times slower (at least) than it should be is not acceptable.

    I'm withholding judgement on JITC'd Java as I haven't found at JITC that will run everything. Kaffe will run my little toy tests, but it dies when trying to run a real app like NetBeans (which is apparently pretty evil, they recommend not running with a JITC). NetBeans under the interpreter runs like it was on a 386. I just downloaded the IBM JDK 1.18. I'd really like to port some Java stuff to C++ and compare for speed. Anyone know of any similar benchmarks that have already been done?

  30. You bet your sweet a** there is by zizzo · · Score: 2

    As I am currently employed in my second job involving a large scale java server application, I can say without a doubt, yes, yes, most emphatically yes, people write real software in Java.

    Sometimes we have regrets, but I had those in C and C++ too. On the whole, java has been a great step forward. It could be a heck of a lot better but it is more than usable right now.

  31. Re:Is there a need for Java? by Ledge+Kindred · · Score: 2
    Except you are always programing for the lowest common denominator ... you WANT to use all the neato performance tweaks that only SYSTEM PROGRAMMING can expose.

    Such as ... ? You are now going to list all the things you can only get from "SYSTEM PROGRAMMING" that Java doesn't offer, aren't you? Or are you?

    Didn't think so...

    Seems to me that multithreaded Java apps seem to scale pretty well just from throwing more and faster processors at them as long as you're actively using multiple threads, from a single-processor laptop for development to a dual-processor Linux box for testing to a multiprocessor Sun for deployment it's pretty linear.

    -=-=-=-=-

    --

    -=-=-=-=-
    My mom's going to kick you in the face!

  32. Re:Where is fscking JIT? I've been waiting 3 years by jmoshakis · · Score: 1

    Borland are also previewing a Java 2 JIT

    http://www.borland.com/about/press/1999/jitlinux 1.html

    which can be downloaded

  33. Re:Excellent news... by Overt+Coward · · Score: 1
    From the article referenced:

    Information on a fix should be available on Microsoft's Java Web site.

    So, ZDNet Labs, this would be that central repository of patches you were looking for? Oh, wait, let me jump to the Office page to get those patches, then the IE 5 page...


    --

  34. Re:Yes - you missed a couple... - I can beat that by iapetus · · Score: 1

    If you really want the URL of a Java application of relative complexity, try:

    FreeBuilder - An IDE in Java.
    Argo/UML - A UML editor with cognitive support

    --
    ++ Say to Elrond "Hello.".
    Elrond says "No.". Elrond gives you some lunch.
  35. Re:Can we stop the feud now? by Nabuchodonosor · · Score: 1

    He says "usually",not "always" and I agree.

    And dont come mentioning names of programmers, do you think Joy and Gosling are idiots?

    --
    ---> Did you know Linux stands for Linux Is Not UniX ?
  36. Re:Dear Clueless by Anonymous Coward · · Score: 0

    now, now kit, where can you obtain a fully compliant JVM from Transvirtual?

  37. Re:But what's wrong with that? by zigzag · · Score: 1

    I can appreciate Transvirtual's need to make a buck just like the rest of us. However, Microsoft's prime objective was to sabotage Java. It is unfortunate that the otherwise decent folks at Transvirtual were sucked into Microsoft's game. (Analogies could include black actors playing stereotyped roles or Soviet-puppet leaders in east Europe.) The unfortunate result is the spread of Microsoft's pollution in the world of Java programming.

    Sun also has to make a buck. However, as I see it, Sun has a history of making a buck by giving the world new and useful technologies. This is in contrast to Microsoft's history of disabling and destroying new and useful technologies, like CORBA. (This is why Microsoft is the devil.)

    Sun has to walk a fine line between too open and too closed regarding Java. If too open, Java fragments. If too closed, Java withers. It is certainly debatable as to whether or not Sun is following the right path. Many, such as HP and yourself, portray Sun as Java control freaks. And I admit, you are in a better position to judge than I am.

    But to me, it looks like they have done a reasonably good job shepherding Java. The rate of progress in terms of functionality, stability, and performance has been tremendous over the past four years. The documentation is comprehensive, the tools are free, and the source is available.

    Maybe I'm naive, but I wouldn't be surprised at all if, when Java stabilizes over the next few years, that Sun hands off the responsibility for Java to some standards body like ANSI. Let's not forget some of Sun's other contributions like NFS. Let's also not forget that Sun is primarily a hardware company.

  38. Re:Speed by Overt+Coward · · Score: 1
    One point you forget to raise is that for most purposes, UI code doesn't have to be very fast.

    Which is in line with what I said (a couple of posts above) about most prgrams being I/O bound more often than CPU bound -- most GUIs spend the majority of their time waiting for input. Of course, fast or no, I'd still like to see cleaner redrawing -- I often have windows that aren't redrawn because some action is being performed. (Yeah, I know I could start the action off in its own thread, but sometimes that's overkill...)


    --

  39. Re:He chose a SUN OS to run JAVA by mistabobdobalina · · Score: 1

    okay but they havel ike 90% marketshare on the client - not supporting that would be suicide (you think sun LIKES windows???)

    --
    -- your knees hurt, don't they?
  40. Re:Japhar by cbj · · Score: 1

    Both Japhar and GNU Classpath are active projects. Japhar could use more really good active developers, but the same is probably true for Classpath.

  41. Incorrect. Sun copyrighted the J2EE APIs. by Anonymous Coward · · Score: 0

    Read Sun's Java licenses the next time you download J2EE. The act of making a java library that has, say, the EJB API infringes on their intellectual copyrights. Sun will have to test this in court eventually. If Java ever does succeed financially - I suspect they will.

  42. Re:Can we stop the feud now? by Anonymous Coward · · Score: 0

    since when was Bjarne a Linux user?

  43. whining by mistabobdobalina · · Score: 1

    okay so now can you anti-sun bigots quit whining? obviously sun is nervous about linux threatening solaris but this is a good step, especially in light of jarkarta being released recently. linux and java should be friends - its a good match and hopefully this is just the first step in their collaboration.

    --
    -- your knees hurt, don't they?
  44. Don't blame Microsoft about CORBA by Anonymous Coward · · Score: 0

    Listen to yourself:

    (This is why Microsoft is the devil.)

    CORBA will implode under its own weight without Microsoft's help.

  45. Re:Can we stop the feud now? by Anonymous Coward · · Score: 0

    I didn't know that Bjarne Stroustrup was a Linux developer.

  46. Where is fscking JIT? I've been waiting 3 years. by Anonymous Coward · · Score: 0


    No wonder Java has been so underwhelming... the
    only Linux JIT was released for the PPC only...

  47. copyrighted != closed by HRbnjR · · Score: 1

    Just because they stipulate that they own the spec, which they do, by copyrighting it, doesn't mean they don't make it freely available for anyone to use and implement. You can copyright something you GPL, just as you can release something that is yours under multiple different licences.

  48. Re:Kaffe is fast? Back up your statements, please by Frank+Sullivan · · Score: 2

    Technically, the Volano tests were conducted on Kaffe 1.0b4, not 1.05. Among the release notes, Kaffe claims the new JIT "improves raw execution speed by a factor of up to 3". It also uses native Linux pthreads, which should be beneficial to real-world multithreading. And then benchmarks are benchmarks... "benchmarketing" should be avoided on both sides.

    At any rate, given significant changes to the JVM and threading model, the Volano results aren't totally applicable.

    ---
    Maybe that's just the price you pay for the chains that you refuse.

    --
    Hand me that airplane glue and I'll tell you another story.
  49. finally by snorks · · Score: 1

    It's been a sick joke that the best java platform was windoze. Time to bring it on home.

  50. The free market will decide, my friend. by Anonymous Coward · · Score: 0

    Ultimately market forces will decide if people want Sun's implementation of Java, or a Java superset offered by Transvirtual. That's the beauty of free enterprise.

    1. Re:The free market will decide, my friend. by Anonymous Coward · · Score: 0
      Yep.

      And so far developers are more than happy to go with Sun's evil proprietary solutions than Open Source hybrid little 1.1/some Java 2 Kaffe solution that absolutely sucks goat balls on server side benchmark (Volano) tests.

      Mr. Perens starts blowing the Kaffe horn every time there's a Java discussion on Slashdot. As nice as Open Source Software is, to date it has offered no benefits to Java developers.

      To claim that Kaffe is something like 300% faster than any other Java product out there without providing ANY information to back it up, is dubious at best. I for one won't believe it until I've seen it. In the past, I've had no success with Kaffe when trying to do anything but a most simplistic applications.

      But maybe Mr. Perens thinks OSS is such a good thing its worth it to go the extent of spreading misinformation.

  51. Quake V written in JAVA?!? by weo · · Score: 1

    John's views on this is expressed in his .plan. If it is fast enough he'll do it. Check out the Java 3D/2D/advanced imageing.

    --
    #=-weo-=#
  52. IBM pressure pays off by Anonymous Coward · · Score: 0
    Sun must have finally realizedthat IBM was going to steal their thunder completely on the linux platform unless they got their act together.

    Yet one more motivation for opening up Java for real.

  53. Re:IBM is likely the motivating force here... NOT! by Jerenk · · Score: 1

    I believe that IBM's support of Java is highly unlikely becuase I recently spent the summer at a large IBM shop (CICS and COBOL-based) doing Java-based programming. We wanted to take some of the CICS-based processing and change them to a Java EJB architecture. Whenever we tried to get a straight answer out of IBM, they dragged their feet and gave us the run-around.

    They first said that it was easy to use Java on the OS/390 (err, MVS...) and CICS. Understand that there were thousands of legacy COBOL programs and CICS transactions that we could not afford to break in switching over to a new architecture. The Java implementation would also have to talk to our databases (ancient VTAM) in order to maintain legacy conversion. But, we asked IBM for an example on how to do this. They could not provide one. We then asked for when Java would even be available as a CICS language (write the Java base and have a CICS-transaction wrapper). Well, in order to do this, IBM said that we needed to write a C-wrapper around the Java code so that our legacy COBOL code could continue to talk to the functions (i.e. COBOLJava is not supported). Not an acceptable answer. We went around and around while we got shuffled from division to division. No concrete answer ever appeared from IBM. We finally came to the realization that IBM wants nothing to do with Java... Any solutions would have to be off-the-shelf (and not IBM).

    The poor guy who was talking with IBM kept trying and got the run around. One day, he'd tell his bosses that we can do it, the next, he'd have to report that IBM said it couldn't be done.

    That said, I would not be shocked to see IBM support it in their lower-level servers, but from my experience this summer, they do not want anything to do with Java on their enterprise-class mainframes.

    Justin

    --
    Mu. P.S. The address you see is real. =)
  54. Re:Is there a need for Java? by Anonymous Coward · · Score: 0

    VNC has a client written in Java: http://www.uk.research.att.com/vnc/

  55. Hmmm.... by forehead · · Score: 1

    What with Sun releasing a Java2 compliant JDK for Linux, what will happen to the Blackdown efforts in this area?

    --
    --
    1. Re:Hmmm.... by Foogle · · Score: 2
      The article seemed to indicate that they would be working together.

      "Sun is also working with the Blackdown Porting Group to bring Java2 to Linux."

      -----------

      "You can't shake the Devil's hand and say you're only kidding."

    2. Re:Hmmm.... by Anonymous Coward · · Score: 0

      Sun and Blackdown have been friends for a while now. I'm not sure how close of friends, but I wouldn't be supprised if the blackdown port, wasn't used in part or in full as Sun's Official JVM. Or Sun may just aquire the Blackdown team to use as their Java Linux portal.

  56. Re:Can we stop the feud now? by Anonymous Coward · · Score: 0

    like Bjarne Stroustrup? like Alex Stepanov? Your response is ridiculous, just like all your others. Guess thats why you're at ufl.

  57. Wonderful by Foogle · · Score: 2
    The IBM port of the JDK for Linux had compatibility issues, which made it worthless as a java compiler. Blackdown's Java 1.2 for Linux is actually really really good. I've played around with it and there are a few bugs to work out, but otherwise it's wonderful. If this is the base that Sun will be working off of, they're in good hands.

    Oh, and - It's about freakin' time :)

    -----------

    "You can't shake the Devil's hand and say you're only kidding."

    1. Re:Wonderful by Anonymous Coward · · Score: 0

      The IBM 1.1.8 JVM/JDK for Linux/x86 pass the JCK (at its latest level)

    2. Re:Wonderful by Simon+Brooke · · Score: 1

      I've been doing commercial development - earning my living - on Blackdown 1.2 for months now. Very, very occasionally it does something odd. 99% of the time it's rock solid. Yes, it would be nice if it were better, but there are a hell of a lot of things more fragile and in more urgent need of fixing. The Blackdown guys need a lot of congratulations, not the grudging faint praise they too often get on /.

      --
      I'm old enough to remember when discussions on Slashdot were well informed.
    3. Re:Wonderful by greenrd · · Score: 1
      What does 'productize' mean?

    4. Re:Wonderful by Foogle · · Score: 1
      That may be true in theory, however my practical use of it says otherwise. And heck, maybe I was doing something wrong - I'd be the first to admit it if that were the case. Anyway, I don't really care who's compiler I use, as long as it's freely available and fully functional.

      -----------

      "You can't shake the Devil's hand and say you're only kidding."

  58. Re:Can we stop the feud now? by Anonymous Coward · · Score: 0
    seriously, the amount of FUD-age that someone puts out about java sucking is usually a direct indicator of how much programming experience they have. I.e., inversely proportional.

    That statement in itself is quite demonstrative of your own skill level.

    Or maybe you know more about programming than Bjarne Stroustrup, who has been an active critic of Java (or is he a "FUDMesiter"?)

  59. This would be nice. by trcooper · · Score: 1

    This would be very nice if it's true. Unfortunately, about 50% of the promises we hear about Java turn out to be greatly exaggerated, or vapor. (I say this as a Java programmer, and strong advocate) I'd really like to see Linux become a strong Java platform, as this would make writing software for Linux much less of a "?" Imagine writing a piece of software that runs both on Windows and Linux, and the same code runs better on Linux, and is kludgy on Windows... Wouldn't that be a thrill! :)

  60. "Honestly Closed" is better than "Falsely Open" by Anonymous Coward · · Score: 1
    Sun's implementation of the spec may be closed, but it is still more open than a lot of other closed software. Their community source licence, if not that great, is at least a step in the right direction,

    I have to disagree - I would rather have Java closed without comprimises than open with such glaring, crippling comprimises.

    When it comes to licenses, I'm a stickler - it has to jive with the open source model certification.

    Otherwise, you get on a slippery slope...with virtually closed licenses proclaiming to be open.

  61. Embedded systems? by rde · · Score: 1

    It seems to me that this setup -- Linux and Java2 -- is ideal for embedded systems and variegated non-computery apps. No mench was made of this in the report, though; so either the didn't bother or I'm deeply misinformed. Which is it, I wonder?
    I was also surprised by the anti-NT stance the story takes; it's and IDG story after all. Have I been misjudging them?
    Okay, so that was questions rather than statements. Sorry. Won't happen again.

  62. Re:Yes! - Re:Is there a need for Java? by Anonymous Coward · · Score: 0
    Check out the buzz around EJB, CORBA using Java and (gasp!) DCOM using Java.

    That's typically what people in here decry - the fact that there is so much hype for so little delivery.

    We don't just jump on Java because applets have failed (although thats an obvious one) - but more because Sun is repositioning Java in a new direction every other day. XML, Middleware, my dishwasher (Jini)...no tool can satisfy all these diverse needs as easily as Sun would have you believe.

  63. Can we stop the feud now? by Anonymous Coward · · Score: 0

    Can Linux developers and Java developers stop fighting now?

    1. Re:Can we stop the feud now? by MassacrE · · Score: 1

      hell no! :)

      seriously, the amount of FUD-age that someone puts out about java sucking is usually a direct indicator of how much programming experience they have. I.e., inversely proportional.

  64. We have an Open Source one. Who cares about Sun? by Bruce+Perens · · Score: 4
    This appeared today on Technocrat. I hold the copyright of the article, so I can paste it in here.

    Transvirtual and the Kaffe Core Team have released Kaffe 1.0.5 (finally!). It's got a new JIT, new processor ports, a clean-room RMI implementation, kernel threads, and much more. For more information see http://www.kaffe.org/

    Transvirtual Technologies, Inc. today released Kaffe OpenVM 1.0.5, the only complete Java implementation available with a true Open Source license.

    The release heralds a major improvement in the reliability and performance of open source Java implementations. Tests conducted with various Open Source server side Java applications, including the popular Apache/JServ webserver and the Enydra Java/XML Application Server, demonstrate Kaffe out performs its Java Linux rivals by as much as 300%. Kaffe also proves more reliable than other Java implementations which simply hang when running under heavy load.

    Transvirtual targets Linux as their primary server-side, desktop and embedded environments. Kaffe, developed using the Open Source model, once again demonstrates how Open Source can offer a better, cheaper, faster and more reliable product than proprietary alternatives.

    This new release of Kaffe also offers a number of new features, including:

    * Bundling of the KJC Java compiler from Decision Management Systems (http://www.dms.at/kopi) - a complete JDK 1.2 Open Source compiler suite.

    * A complete Remote Method Invocation implementation written in collaboration with the GNU Classpath project (http://www.classpath.org).

    * Support for the the popular Cobalt Network Web Servers.

    * Support for the MIPS and StrongARM processors (Kaffe already supports Pentiums, Sparcs, Alphas and Motorola processors).

    For more details on Transvirtual Technologies see their web site.

    For more details on the Kaffe Open Source Project see The Kaffe Project Web Site.

    All names and trademarks are the property of their respective owners.

  65. That's nice, but Sun's reference is still CLOSED by Anonymous Coward · · Score: 0

    The groups you mention will always be playing catch up with bogus reverse engineering efforts.

  66. Speed by Overt+Coward · · Score: 1
    Just-in-time (JIT) compiling at run-time allows frequently called routines to run at the same speed as native code, after the initial performance hit. This has shown a huge positive impact on server side applications, where programs run for long stretches of time.

    Java can also be natively compiled, though there are few available compilers (commercial or otherwise). As a compiled (or JIT-compiled) language, the major speed bottleneck is garbage collection -- performance is comprable to C/C++ with a garbage collection package.

    Of course, the AWT package (for graphics) is not particularly impressive, either in speed or in basic window management such as redrawing.

    Also, remeber that execution speed is not the only measure of a program. Java is easier to write and maintain than the C variants (from anecdotal evidence). From personal experience I tend to agree -- I know C++ better, but I'm still faster to develop and debug in Java. Most programs do not use the CPU 100% of the time anyway; there is often some I/O bottleneck.


    --

    1. Re:Speed by Xthlc · · Score: 1

      > Of course, the AWT package (for graphics) is not
      > particularly impressive, either in speed or in
      > basic window management such as redrawing.

      The AWT may be slow, but it's a beautifully designed API. Our company does a lot of UI prototyping (UIs that need to be driven by massive amounts of actual data); each of our UI toolkits is built for rapid development, flexibility, and visual snazziness. These toolkits go through several iterations every year as they are tuned and refined -- without the simplicity and elegance of the AWT's rendering model, we'd be pretty screwed.

      Granted, none of this stuff is intended for massive deployment on anything other than an intranet that's within the tight grip of a professional IT manager. The clumsy manner in which the JVM must be invoked under most OS's (mucking about with classpaths, command line invocation, the crappiness of netscrape- and ie's JVM) and, yes, the abysmal speed of more complex Java UIs severely hampers the wide distribution of Java user interface applications to Joe User.
      Just YAAWSHSTP (Yet Another Area Where Sun Has Screwed The Pooch).

    2. Re:Speed by josepha48 · · Score: 1
      "remeber that execution speed is not the only measure of a program"

      tell that to an end user that is waiting. They don't care about that. They just wonder why is that so slow.

      I have done a little Java programming, and think that it is a really nice language to program in. IHave you tried Tcl/Tk thou? It is a scripting language that is similar to the Java programming language, only not with as many methods available.

      --

      Only 'flamers' flame!

    3. Re:Speed by Anonymous Coward · · Score: 0

      One point you forget to raise is that for most purposes, UI code doesn't have to be very fast.

      The one serious problem with Sun's UI code (IMNSHO) is the 'minor' bug that prevents any program using Swing from shutting down when all threads die (as listed in bug 4030718 on the JDC). Vote now to see it fixed!

  67. Re:Is there a need for Java? by Ledge+Kindred · · Score: 2
    You don't know anything about Java do you?

    End-of-Thread

    -=-=-=-=-

    --

    -=-=-=-=-
    My mom's going to kick you in the face!

  68. Dear Clueless by ratman · · Score: 1

    This is just vapor. Guess what? IBM, Inprise, and Transvirtual have DELIVERED java on linux. OK, Inprise is really just a JIT for Blackdown. But it's something, and it's commercial. Sun is blowing smoke in the hopes of taking the wind out of their sails. Disgusting. Sun becomes more like Microsoft every day. And why not? What business would not want success like that? Keep your eye on the sparrow...




    --
    How can they feel the rain but not know of the flood?
  69. Re:Where is fscking JIT? I've been waiting 3 years by ZioPino · · Score: 1

    You can download the Borland JIT, free, here. We measure it to be 30% faster than then JIT included in the current JDK 1.2 for Linux.

  70. Re:Is there a need for Java? by Anonymous Coward · · Score: 0
    Hmmm...maybe like native threads?

    Huh? Java can use either native threads or green threads. It depends on your JVM (or in some cases how you start the JVM). It sounds like you haven't researched threads under Java--posting without knowing the facts can be a dangerous proposition.

    For Solaris, Sun has a web page describing the threading options at http://java. sun.com/products//jdk/1.3/docs/tooldocs/solaris/th reads.html that could be helpful. I haven't looked for pages about threads on other operating systems.

  71. Re:This is good news. by fornix · · Score: 1
    Why would Sun, who have done so well in differentiating themselves on the server side with the best compilers, best RAS, most scaleability want to flatten out the software landscape? It just doesn't make sense from the standpoint of strategy.

    My guess would be that they are probably counting on having the best Java tools. Also, with a flattened software landscape that they essentially control, it will be easy for all of the shops using NT to move on over to SUN hardware for better performance.

  72. Re:Is there a need for Java? by fornix · · Score: 1
    On the server side, you want platform DEPENDENCE, not independence. You might as well get something out of an E10000 running Solaris once you've spent the money on it - you WANT to use all the neato performance tweaks that only SYSTEM PROGRAMMING can expose.

    It would be better to keep the platform dependence part of things hidden inside the JVM/JIT. Sun, the people who build the machine and are intimately familiar with its capabilities, should do the performance tweaking for you inside of the JVM.

  73. then by Trojan · · Score: 1

    I suppose people won't mind too much if I use this place to point out that 'better than' is the correct spelling.

  74. Re:Why should Sun care about Linux anyway? by fornix · · Score: 1
    Because Sun wants to be the high end solution. Linux/Intel is a low cost solution that small shops can get started with. Sun wants those shops to be able to ramp up easily to Solaris on Sun hardware when the load gets to be high and the IPO has brought them plenty of $$$ for new iron. Java on Linux is one way to make sure customers will be walking down Sun's road when it's time to grow. No Java on Linux might mean that the business starts out with Linux OSS solutions (Perl, Zope, etc.) or NT/Intel using VB/COM or Microsoft Java with Windows specific features and will be forever trapped into that technology. Then Sun gets nothing. At least with Java, Sun gets to inject a little bit of itself into everyone's world and get a little leverage.

    It makes sense for Sun to push Java on all the low end platforms. Since there are invariably parts of the business that do not run on Java, it is clear that people could migrate to Sun hardware/Solaris/Java more easily from Linux/Java than from NT/Java simply because Linux shares a common Unix denominator with Solaris.

  75. Re:Yes - you missed a couple... - I can beat that by Anonymous Coward · · Score: 0
    "Java runs slow as hell" - translation: I'm still using an interpreted 1.0.2 VM on a P60.

    I wish Java (with IBM's latest JIT technology) running on a Pentium III with 256 Megs of RAM could run as fast as compiled C code on a Pentium 60. But, I guess I'm just talking crazy talk. Please refute this by posting a URL of a Java wordprocessor or spreadsheet or any application of comparable complexity - something I can actually run - not some in-house mythical application. (Also, spare us the "my in-house Java servlet does so and so")

  76. Re:Talk is cheap - perl is faster than Java by Anonymous Coward · · Score: 0

    Well, you are certainly free to do that.

    You do realize, however, that now that you let the cat out of the bag, we'll never need any benchmarks again. I mean, geez, we've got Kernighan and company writing this one algorithm that'll tell us all about what language is fast and what is not.

    I'll have to remember to send a thank you note to Brian.

  77. Re:Question: Cross platform compiled Java? by Anonymous Coward · · Score: 0

    TowerJ also appears to be proprietary; at least there's no mention of any sort of source licensing. And without JDK 1.2 support (especially java.security.*), I don't see the point.

  78. Re: Tim Bray by Anonymous Coward · · Score: 0

    The reverse of "isn't slower" is "is slower"; "isn't slower" is equivalent to "equally fast or faster". Boolean Logic 101.

  79. HE STARTED IT!! by Anonymous Coward · · Score: 0

    I tried to be friends with Sun.

    But Sun doesn't share his toys with me.
    I share my toys with him.

    I Thought we should get together, so big bully bill doesn't kick our butts.

    But Sun has ignored my requests. In fact, with some of his toys like java, he shares with the bully(who Sun claims to hate), but not with me.
    That hurt.

    -Linux

  80. Re:He chose a SUN OS to run JAVA by TummyX · · Score: 1

    True, that's the only thing i hate about it. But then, if all you develop is components, it doesn't really matter.

    I'm generally using Java as a replacement to VC++/MFC and VB, so I'm not particularly worried about Swing. WFC is quite fast (considering it's just wrapped ActiveX controls).

    I'm betting that MS won't include a Swing form builder in VJ++ 7, but will rather including AFC (Application foundation classes), which IMHO look and work much better than swing. They're also written in 100% java, and have all the windows type functionality that swing lacks. (someone needs to teach sun about GUI design).

  81. Inefficient code (easy to spot the problems) by rcromwell2 · · Score: 2


    Can you post the input data too? And the perl version? It's trivial to make modifications to this Java code to speed it up by 5-10 times.

    This code doesn't prove anything about Java's execution speed. It just proves that buffered I/O is more efficient than reading a byte at a time.

    Any Java programmer who has more than a few months experience will immediately spot the
    problems.

    1) Doesn't use buffered I/O at all. A trivial one line fix adding either BufferedReader or BufferedInputStream would boost speed tremendously.

    2) Usage of StreamTokenizer on an interactive stream. A bug in JDK1.0-1.2.1
    http://developer.java.sun.com/developer/bugParad e/bugs/4150737.html

    3) Usage of synchronized Vector and Hashtable operations instead of ArrayList and HashMap.

    4) Usage of StreamTokenizer! Use BufferedReader and indexOf() or StringTokenizer instead.


    Like Linux vs NT, let's not post "cooked" or "biased" benchmarks. The only real way to run these sorts of benchmarks is to have a contest between C++, Java, Pyhton, Perl, and C coders, and have the final result judged on speed of execution, speed of development, clairity, and ease of reuse and maintainability.



  82. not longer in java, not c++ by Stu+Charlton · · Score: 1

    Actually, I think most experienced server programmers are already well versed in COBOL, RPG, or Smalltalk.

    C++ on the business enterprise server? Sure, it exists, but, uh, it didn't really work out too well. That is why this Java thing is pretty popular... it's the successor to the server-side languages that DID work. [Though i'd argue that the successor to Java should ironically be Smalltalk , but, that's for another time]

    --
    -Stu
  83. Re:No benchmark covers all cases... by Anonymous Coward · · Score: 0

    Java makes so many idioms so much easier I find this very hard to believe. Between debugging dangling references (and myriad other forms of "undefined behavior" that may or may not become obvious), coping with undeclared exceptions, figuring out how much of the ISO spec your vendors bothered to support, rolling your own garbage collection and serialization and finalization and reflection, having to shackle yourself to proprietary interfaces for threading and GUI and databases and crypto and messaging, and a total inability to run untrusted code, I don't see how you could possibly come out ahead.

  84. Re:He chose a SUN OS to run JAVA by Anonymous Coward · · Score: 0

    And Microsoft makes MSIE for MacOS. What's your point? (I'm looking forward to J++ for Linux and BeOS).

  85. NetBeans by Stu+Charlton · · Score: 1

    try NetBeans running the IBM JDK 1.1.8.

    It's a decent speed.

    for compiled Java code, try Borland JBuilder... it's a memory hog, unfortunately.

    --
    -Stu
  86. Re:Is there a need for Java? by Anonymous Coward · · Score: 0

    ...you can swap out that Solaris or HPUX or AIX EJB server for a Linux box if it meets your criteria...

    Or, more likely in Sun's mind, start off on a linux box and move to Sun hardware in a year or two...

  87. Re:Talk is cheap - perl is faster than Java by Anonymous Coward · · Score: 0

    Which numbers? Again, the ones on that same page showing Java faster than C++? If you accept that test as a definitive test of Perl vs. Java in every and all cases, then you also accept those C++ vs. Java numbers for any and all cases? Enough hot air, show us some more numbers, real numbers.

  88. Re:Just a quick note ... by Anonymous Coward · · Score: 0

    But C++ doesn't define those libraries! You get libc, iostreams, and STL, and that's it. Assuming your compiler vendor even managed to keep up with the Standard. Everything else is proprietary and probably expensive, and you have to hope your vendor feels like supporting all the platforms (and compilers!) you'll ever want.

  89. Re:Talk is cheap - perl is faster than Java by Anonymous Coward · · Score: 0

    You mean the one where a C++ implementation on a Pentium II ran the test 2 seconds slower than Java on a Pentium II? C'mon. The book is, as much as anything, about applying intelligence to the practice of programming, about making informed choices, about choosing the right tool for the job. The chapter is about how one goes about factoring performance issues into the choice of language, and so on, for a given task. As for the Markov run you cite, read the "Lessons" section again, and then again. (As for the run's value as any kind of meaningful benchmark, note that specific details of the implementations used are not provided.) If this is all you have then you're correct, talk really is cheap.

  90. Re:There's a reason Hotmail is slower... by Anonymous Coward · · Score: 0

    DOM? Available via IBM, Sun, Docuverse, Oracle, etc. All Java. Only C++ DOM implementation I know of is in Mozilla

    What about MSXML and MSHTML? Microsoft had a DOM out long before java implementations...IE4, IE5.

    I think you'll find MS are very quick implementing various technologies - and yes, all in C++.

    All that aside, I think Java is a wonderfully elegant language. As soon as I get my hands on a nice free native compiler for NT, it's my language.

  91. Re:This is good news. by Roundeye · · Score: 1
    The "official Sun blessing" was given back in August 1998, and did next to nothing with regard to speeding the emergence of a Java2 environment on Linux. The fact that IBM is going to soon release a good JDK on Linux in a few months has spurred Sun to _finally_ give in and release an official (and, IMHO probably (intentionally) buggy) Java for Linux port, so as not to completely lose face. You can bet your bottom one that 1.2.3 will be out for most other platforms shortly thereafter, again leaving Linux a few revisions behind.

    Why? Because, while Sun wants people to be able to leave M$-land, they want them to leave it for Sun-land, and that generally doesn't mean going to Linux.

    --
    "Cause there's 40 different shades of black, so many fortresses and ways to attack, so why you complainin'?"
  92. Re:IBM is likely the motivating force here... by cheese63 · · Score: 1

    maybe i'm clueless here (well probably), but i've heard about jdk1.3's performance being above the performance of 1.2, on the client side especially. The question I have is why don't they just skip porting 1.2 and port 1.3? And why doesn't IBM just skip a few versions too?

  93. Sun doesn't like linux by bobm · · Score: 1

    I don't think it will happen (I would like for it to happen), Sun hasn't really done anything for the linux community. The released a sorta free version of solaris and someone came up with an app that will run linux apps under solaris but they don't really seem to want to work in the linux world. Can anyone tell what they've released that is Linux based?

    Of course I could just be too paranoid but I doubt it. Lots of folks see MS as the big evil threat but I think that Sun is also doing stuff, just not as obvious...

    And remember that MS doesn't have the large system market, those are solaris machines we're going up against when Linux scales better. (And I can get a 16 processor AMD card :-> ).

    Now if I could just figure out IBMs motives..

    bobm

    1. Re:Sun doesn't like linux by VirtualAdept · · Score: 1

      They did release Star Office again. Then again, I'm not insanely crazy about Star Office it violates the paradigm that I came to linux for: a set of different applications that do *one* or *two* things very well. Its slow, bloated, and very, very ugly IMHO.

  94. Re:Is there a need for Java? by Roundeye · · Score: 1
    Fine, so long as the company you are working for (which has enough revenue to justify using the big iron) is happy with throwing away your code when they realize they want to move up to the next big piece of iron a year later, which may or may not be a Sun box, or capable of supporting your server-dependent tweaks.

    IMHE(xperience), the programmer resources are vastly more expensive than the iron (if they are not then your dollars are being spent in the wrong places -- or you have management which excels in getting great programmers for cheap prices (in which case they aren't getting as good a deal as they think)). Re-engineering code for a move to a new platform because you NEED to move to the new platform is very expensive.

    Good management will hire good people to do it right the first time (portable, with the right algorithms, and rock solid code) and deploy it on the right systems with an eye towards potential changes in platforms down the road.

    One might argue that isolating platform-dependent code into its own "module" (depending upon what a module is in your language of choice) is the solution -- your server-dependent tweaks go there, and that's what changes in the future. Point taken, but then why are we arguing about not using Java then: that's exactly what JNI was designed for.

    --
    "Cause there's 40 different shades of black, so many fortresses and ways to attack, so why you complainin'?"
  95. Java and linux = Bring me the enterprise baby! by cybrthng · · Score: 1
    This is exactly the news i *NEED* to hear. Now if only the Java Plugin for linux was out. There once was "activator" but that is nowhere to be found.

    Reason being, we deploy Oracle Applications Release 11.0, as do thousands of other enterprise companies, and thier is no way for clients to currently connect as there is no good java VM nor is there a working plugin.

    amazing alot of enterprise features need java, a pure java vm would make it easier for Veritas to port its file systems & management software over, oracle applications could work, and just a bunch of business reporting and system software could fall in.

    Can't wait! i'd say in the next 6 months, linux will have a system with all the features, and be able to innovate more instead of play catchup.

  96. whoops by cheese63 · · Score: 1

    ignore the last sentence. and i'm referring to ibm in the one before that.

  97. Re:I use it ;) by Anonymous Coward · · Score: 1

    I have been steadily converting my old code to java so that I can reach a greater audience. For most apps, LudicrousSpeed is a small trade for cross-compatibility. The process of writing once and running anywhere has worked flawlessly for me - I'm not a big developer but the niche seems to be growing - check out jars.com

  98. just ignore everything i've said by cheese63 · · Score: 1

    too much caffine. sorry.

  99. Java used almost everywhere for new development by rcromwell2 · · Score: 3


    In terms of academia and research, if you look at the IETF and W3C, almost all "new" protocols start out with Java prototype implementations. This is particularly true of the W3C. Jigsaw, XML, XSL, P3P, SVG, ...

    If you look at commercial websites, E-Trade and Datek come to mind, you'll see Java on the backend.

    My own free pop/webmail/antispam service msgto.com) uses Java for everything, JSP, servlets, SMTP, POP server, etc. It's also
    faster and more responsive than Hotmail.

    Yesterday, two spammers took "revenge" on our site by redirecting spam bounces to my site. In a
    10 hour period, about 1 million bounced messages were received and discarded on a lowly dual-processor Solarisx86 box. Even now, we are getting about 10 messages per second but 'top' shows only 10% CPU utilization for the JavaVM and 30M memory used. Java definately scales.

    Solarisx86 was used for only two reasons. One, when development was started, JDK1.2 wasn't available on Linux, and our servers use JDK1.2 heavily for its new garbage collection/memory management features and fine grained security.

    Second, Solaris can scale to thousands of threads across multiple processors. Only TowerJ on Linux allows massive numbers of threads (by not using kernel threads), and Java's I/O mechanism relies on launching large numbers of threads. But TowerJ is not JDK1.2 compliant: bummer! Otherwise, I would love to have a bunch of rackmounted VA Research boxes.


    The only place Java really failed was on the desktop application area. But I'm of the opinion that the general trend is that we are moving away from desktop applications and more towards web-based applications. So in a sense, most new desktop apps will fail, regardless of the programming language they are written in, and especially those that try to compete with areas Microsoft dominates. When was the last "killer-gotta-have-it-client-side app created" I can't think of many besides games, browsers, and other multimedia related utilities.

    In the past, if you wanted to manage an address book, or a database, someone would ship you a VB or some other 4GL based app, that displays forms on your desktop and inserts them into the DB. Nowadays, most of these apps can be done on the network. This covers most business uses.

    What's left for the desktop apps is multimedia. Music, Games, animation, art.


    This Sun/IBM announcement is great news. I only wish that IBM would come out with a JDK1.2 compliant VM, because IBM seems to be alot better at optimizing VMs.

    -Ray

  100. Re:Is it IBM vs. Sun?? Does Netbeans work? by benmhall · · Score: 1

    Can you get NetBeans to load?

    I installed the 1.1.8 final for win32 and Linux. The win version runs Netbean 2.1.1 fine, but the Linux version won't.

    Have I installed wrong? Help.

  101. Re:Write once, debug everywhere by Anonymous Coward · · Score: 0

    Most non-trivial apps that use Swing will probably have to go through some contortions to avoid bugs in certain platforms' implementations (I know we did), but that doesn't make them platform-dependent.

  102. Re:Just a quick note ... by Anonymous Coward · · Score: 0

    Java can run untrusted code. IMHO this is far and away the most important idea to come along in years, more so than objects, and hardly anyone else is even trying to pull it off (I've heard Perl is, but how in the world would you verify that mess?)

  103. Re:He chose a SUN OS to run JAVA by TummyX · · Score: 1

    I don't think it'll ever happen, but J++ just rocks :D~~~~.

    Instant compiling...takes 2 seconds, not 20 seconds to compile tens of classes.
    Intellisense, detects installed packages and lists methods and properties as you type etc etc.
    Hell, intellisense even extends to javadoc blocks in java, so you type @ and it'll like @param @comment etc etc.

  104. Re:Is there a need for Java? by Anonymous Coward · · Score: 0

    By "got rid of pointers" they really mean pointer arithmetic and type punning. Most of the undefined behavior, in other words.

  105. Code fixed - new timing results... by SuperKendall · · Score: 1

    I fixed up the code a bit (I assume that there were supposed to be a less-than sign in all the for loop comparisons?), then compiled it and converted it to use the new Collections code and fixed the problems with deprecations. I fed an English-Latin dictionary I had on hand (wc says it's 8340 lines and 41178 words). The revised code is posted at the end of this message, but to start with here are the timings (all on a P450 in Win98 using the Sun VM) all timed with the Cygnus "time" utility, which works pretty much like the unix time command. I took the average over a number of runs to get these numbers, but they are still rather rough.

    Jdk 1.1.8:
    Original Code - 7.30 seconds
    Revised Code - 9.23 seconds

    Jdk 1.2.2 (Current production release)
    Original Code - 5.05 seconds
    Revised Code (com.sun...collections) - 5.38 seconds
    Revised Code (java.util collections) - 5.0 seconds

    Jdk 1.3 (Beta release)
    Original Code - 3.79 seconds
    Revised Code (com.sun...collections) - 4.40 seconds
    Revised Code (java.util collections) - 4.20 seconds

    Analysis:
    This surprised me a bit. As seen above, my "enhancements" actually slowed down the program a bit! I think this might be partly due to my replacing the for loops and get(int) calls with iterators, which is easier on the coder but didn't lend itself much to JIT based enhancements. This goes to show that no matter how smart you think you've been, you should always run an optimizer over your code from time to time and figure out why it is slow in some areas you would not expect slowness...

    It also seems to show that syncronized calls are not really hurting us much, though that might be reading too much into the results.

    But what should be very obivous and exciting (nad even quite relevant to this article) is the DRAMATIC speedup from the 1.1.x VM to the 1.2 or 1.3 VM!! About a factor of two in this case. I think that should help demonstrate why we want a stable 1.2 VM on Linux quickly.

    Here's the code for those interested - note that to use the 1.1 collections package you just need to import com.sun.java.util.collections.* at the top of the code. That's how easy it is to switch upwards as well, everyone should start using the new collections package right away!

    ----------------------
    /* Copyright (C) 1999 Lucent Technologies */
    /* Excerpted from 'The Practice of Programming' */
    /* by Brian W. Kernighan and Rob Pike */

    import java.io.*;
    import java.util.*;

    class Chain3 {
    static final int NPREF = 2; // size of prefix
    static final String NONWORD = "\n";
    // "word" that can't appear
    HashMap statetab = new HashMap();
    // key = Prefix, value = suffix ArrayList
    Prefix3 prefix = new Prefix3(NPREF, NONWORD);
    // initial prefix
    Random rand = new Random();

    // Chain build: build State table from input stream
    void build(InputStream in) throws IOException
    {
    Reader r = new BufferedReader(new InputStreamReader(in));
    StreamTokenizer st = new StreamTokenizer(r);

    st.resetSyntax(); // remove default rules
    st.wordChars(0, Character.MAX_VALUE); // turn on all chars
    st.whitespaceChars(0, ' '); // except up to blank
    while (st.nextToken() != st.TT_EOF)
    add(st.sval);
    add(NONWORD);
    }

    // Chain add: add word to suffix list, update prefix
    void add(String word)
    {
    ArrayList suf = (ArrayList) statetab.get(prefix);
    if (suf == null) {
    suf = new ArrayList();
    statetab.put(new Prefix3(prefix), suf);
    }
    suf.add(word);
    prefix.pref.remove(0);
    prefix.pref.add(word);
    }

    // Chain generate: generate output words
    void generate(int nwords)
    {
    prefix = new Prefix3(NPREF, NONWORD);
    for (int i = 0; i nwords; i++) {
    ArrayList s = (ArrayList) statetab.get(prefix);
    if (s == null) {
    System.err.println("Markov: internal error: no state");
    System.exit(1);
    }
    int r = Math.abs(rand.nextInt()) % s.size();
    String suf = (String) s.get(r);
    if (suf.equals(NONWORD))
    break;
    System.out.println(suf);
    prefix.pref.remove(0);
    prefix.pref.add(suf);
    }
    }
    }

    class Prefix3 {
    public ArrayList pref; // NPREF adjacent words from input
    static final int MULTIPLIER = 31; // for hashCode()

    // Prefix constructor: duplicate existing prefix
    Prefix3(Prefix3 p)
    {
    pref = new ArrayList(p.pref);
    }

    // Prefix constructor: n copies of str
    Prefix3(int n, String str)
    {
    pref = new ArrayList();
    for (int i = 0; i n; i++)
    pref.add(str);
    }

    // Prefix hashCode: generate hash from all prefix words
    public int hashCode()
    {
    int h = 0;

    Iterator i = pref.iterator();
    while ( i.hasNext() )
    {
    h = MULTIPLIER * h + i.next().hashCode();
    }
    return h;
    }

    // Prefix equals: compare two prefixes for equal words
    public boolean equals(Object o)
    {
    Prefix3 p = (Prefix3) o;

    Iterator i = pref.iterator();
    Iterator i2 = p.pref.iterator();
    while ( i.hasNext() && i2.hasNext() )
    {
    if (!i.next().equals(i2.next()))
    return false;
    }
    return true;
    }

    }

    class Markov3 {
    static final int MAXGEN = 10000; // maximum words generated
    public static void main(String[] args) throws IOException
    {
    Chain3 chain = new Chain3();
    int nwords = MAXGEN;

    chain.build(System.in);
    chain.generate(nwords);
    }
    }

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  106. Re:But what's wrong with that? by Anonymous Coward · · Score: 1

    Sun publishes a freely-available spec for Java, with a trademark and certification ("100% Pure Java"). As far as I can tell, anyone is free to define and implement a variation as long as they don't call it Java. If you're thinking of the Microsoft suit, Sun is alleging they signed a contract agreeing to implement Java as specified and then broke that contract. That they may have used source licensed from Sun to do it (possibly against the terms of that license) clouds the water further.

  107. Re:Is there a need for Java? by SuperKendall · · Score: 1

    Of course, that is thier task to try and make Solaris the biggest baddest thing you can get, so at some point you say "I really have enough load on this box to need the reliability and pure hugeness of a sun E10^30 box". What's wrong with that? The fact is that you can also decide that that HPUX 10^30 box might be as good for you, and it will still work as an EJB solution. Or you might find IPlanet a nightmare to work with, and decide to switch to another web server... it doesn't matter as long as you've not strayed from the EJB standard.

    Where you might argue with more force (or at least as much force as an AC argument can have) is to say "Sun will try to always produce Java features quickly enough that only Solaris can have a good VM and thus people will want the Sun box". Now that might be closer to the truth, but there are enough other people producing good VM's (IBM, Kaffe) and working with Sun in specifying standards that I just don't buy that argument as working for Sun even if that is their plan.

    So I guess my stance on that would be that even if you are correct and Sun has an evil plan in mind, that it won't work anyway so it doesn't matter - the programmers always win in the end. I personally don't think Sun has an evil plan so much as it wants to promote UNIX in general.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  108. Re:This is good news. by JordanH · · Score: 2
    Sun seems like they are being dragged around by Java these day.

    It continued to be such a joke and a failure on the client side for so long that they had to play up this server side story for it. They've completely lost sight of what Java was going to do for them.

    There was once a coherent strategy in pushing Windows off the desktop in favor of thin-clients, but now, well, it's hard to imagine that you could field a thin-client that could compete with commodity thin-client hardware based on PC components. So, even if, and it's a HUGE if, you could displace Windows (and Linux) on the desktops, you'd still have to talk to PC hardware being used as thin-clients. Seems like a win for Intel or StrongArms maybe, but not for Sun.

    So, Sun turns toward the server and middleware for Java dominance. This seems like a move of desparation, to show SOMETHING for their Java investment. If they succeed at flattening the server side with write-once-run-anywhere Java applications, they will have succeeded in commoditizing the server side.

    In such an environment, you'll have IBM, HP, Windows NT and some large number of commodity server Java boxes (made in the far east) to compete against. Why would Sun, who have done so well in differentiating themselves on the server side with the best compilers, best RAS, most scaleability want to flatten out the software landscape? It just doesn't make sense from the standpoint of strategy.

    Sun is being pulled around by the nose by a Java Strategy that's taken on a life of it's own. They pay $500,000,000 for the world's most popular Java application (StarOffice, which BTW uses C/C++ on the server side) only to give it away apparently in a desparate attempt to legitimize Java on the desktop. They now have to support the development of Java on their biggest up-and-coming competitive environment, Linux, to make sure that the phenomenal growth of Linux doesn't marginalize their precious Java. It seems crazy.

    At the end of the day, what large server side applications will be written entirely in Java? All of those systems will have working C/C++ compilers, after all. With C/C++ you should be able to get much greater performance, stability, more immunity to environmental changes, less developmental headaches (no nervously watching evolving Java standards) and more qualified programmers (most good Java programmers are good C++ programmers, but not vice versa).

    I can see Java used like stored DB procedures, and for various kinds of utility programs, middleware glue, quick projects, you know, all those things that Perl does quite adequately already, but take over the server side? How? If anybody dares to field a commercial package written in Java, someone else could beat them up with one written in C/C++.

    This is the essential point that people don't seem to understand about C/C++. Your operating systems are written in them for a reason. Because your operating systems are written in them, they will always be the most stable and mature compilers available. Because this is true pretty much everywhere, they will be the standard in portability. Maybe not the kind of VM portability where you can compile it here and it will migrate over to execute somewhere else, but what does that buy you over just having good C/C++ compilers everywhere (which you already do, see above).

    Java is probably a better language than C++ because of garbage collection alone (and there are other significant advantages), but you need more than just better to displace a truly ubiquitous language like C/C++.

    From my perspective, I see far more developers using Java than users for the forseeable future.

    When some wide-eyed Java fanatic tries to tell me that everyone will be using Java next year, I'm reminded of the Amway guy who told me 10 years ago that I could be making $90,000/yr. in just 90 days with Amway, much more in 6 months. I told him to go away and come back in 90 days if he was making $90,000/yr. Needless to say, he wasn't. Java was supposed to be really big next year for the last 3 years now. It's getting tired.

    Weren't we supposed to be using Java for SOMETHING by now? People using the Hot Java browser, raise your hands! Let's see, it's not good for browsers, nobody would dream of writing an RDBMS like Oracle in it and in the middle, it competes with Perl, Python, C/C++ and Tcl/Tk. Seems like a squeeze to me.

    I see where Lotus got out of the Java client business just the other day. Corel got out awhile back too. StarOffice and their free product is not much of a showcase of a vibrant Java marketplace.

    Don't point me at Java support in Oracle or Java support in some ORB or another. All of those environments have quite stable and working C interfaces too, thank you. Show me large numbers of users using Java day in and day out. I bet those same users use about 20 times more C/C++ in their OS alone to support this one app. For every one user who is using a Java app today, I'll give you 50 VB/VBA users and 100 users of apps written in C/C++. There may be growth in Java today, but is it like the growth of Linux where almost no Java is used?

    I'm not a Sun hater, nor am I anti-Java. I really like Java as a language. I was turned off years ago by it because I didn't want to jump on while they were changing it so rapidly and it seems that it's just now starting to stabilize.

    Maybe Java will be really big someday, but I don't see that someday from where I stand.

  109. Re:No benchmark covers all cases... by SuperKendall · · Score: 2

    Before I switched over to all Java development, I was really well versed in C and C++. I once worked on a large product that had the same C codebase that compiled across eight different brands of UNIX systems as well as VAX, VMS, and MPE (Hp3000) systems.

    I got to be pretty familiar there with just about every sort of odd cross-platform compatibility problem one could run into.

    I also did a lot of C++ work as well, which was great... as long as you use RougeWave collections and DB packages, along with Great Circle or Purify (to make your program stable enough to run without Great Circle).

    But there is no way that even at my peak of use of any of these languages, even using Emacs as an editor, that I could approach the speed of Java development. It's not quite as fast as it might first appear as you have to spend a little more time optimizing for performance over other langauges, but you more than make up for the in the stability, portability, readability, and documentation gains you get. I go back to C or C++ when I have to (for instance to write a JNI wrapper for a C or C++ library) but I think you'd have to be mad to try and write some of the software I'm working on now in anything but Java.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  110. Cygnus GJC? SOAP/XML_RPC? by William+Tanksley · · Score: 2

    I haven't heard anything about GJC (the port of gcc to compile Java and/or Java bytecodes) recently -- isn't it an acceptable alternative to a JIT? On a different topic, has anyone integrated Java with SOAP or XML/RPC? (They're roughly the same thing -- XML/RPC handles RPC in a reasonably portable way, and SOAP extends that to objects in a quite nice way.) -Billy

    1. Re:Cygnus GJC? SOAP/XML_RPC? by MassacrE · · Score: 1

      AFAIK (I have not done any benchmarks myself), the TowerJ commercial java compiler that makes native executables was blown away in benchmarks by the IBM compiler (which is a very sophisticated JIT). I don't know how much work is being poured into GCJ, but I hope they are concentrating on speed and compatibility (since the IBM JIT has both)

  111. Re:Yes! - Re:Is there a need for Java? by Anonymous Coward · · Score: 1

    I have also heard that Java is excellent for generating very high billing rates for contractors and consultants who implement those server-side apps using EJB, CORBA, etc.

  112. Java (with JIT) performance poor - stats follow by Anonymous Coward · · Score: 1
    From "The Practice of Programming" by Kernighan and Pike:

    The test is based on a Markov chain algorithm - stats on p. 81.

    The results are on a 400Mhz PII

    C - 150 lines of code, 0.3 seconds to run

    Java - 105 lines of code, 9.2 seconds to run

    C++/STL/dequeue - 70 lines of code, 11.2 seconds to run

    C++/STL/list - 70 lines of code, 1.5 seconds to run

    Awk - 20 lines of code, 2.1 seconds to run

    Perl - 18 lines of code, 1.0 seconds to run.

    Note that Perl performs very well considering how few lines of code it has.

    The Java performance is not terribly encouraging (C++ is even worse, considering the pain it takes to write).

    1. Re:Java (with JIT) performance poor - stats follow by SuperKendall · · Score: 1

      I'd really like to see the Java code - I'm really curious how the Java code could have been longer than any of the other implementations besides C...

      Also, I note that the C++ versions of the tests specified two different containers while for the Java code it was not specified if the normal Vector class was used (synchronized, somewhat expensive) or if the new Collections List class was used (can be synchronized or unsyncronized, also availiabe for Java 1.1 or 2).

      --
      "There is more worth loving than we have strength to love." - Brian Jay Stanley
    2. Re:Java (with JIT) performance poor - stats follow by Anonymous Coward · · Score: 0

      There is lots of info in "proactice of Programming" about this test - source code for some implementations and discussion.

    3. Re:Java (with JIT) performance poor - stats follow by evguenii · · Score: 1

      Fully agree

    4. Re:Java (with JIT) performance poor - stats follow by Anonymous Coward · · Score: 0

      It is myth that C or C++ (shouldn't be placed together since they are, conceptionally, worlds apart) programming is harder than Java. Java as a language is almost like C++ (except for a few restrictions and a few extensions). Java as a platform is like the OS API + X Api + Math Libs API + 3D API + ... + .... put together. I assure you that writing a complex system in Java is just as hard as in any other language... it just so happens that the result is more stable (practically no memory leaks) , more portable and way more comfortable to write.

    5. Re:Java (with JIT) performance poor - stats follow by zigzag · · Score: 1

      Let's try collecting similar benchmarks for a multitiered, workflow application for a few hundred users. Now add benchmarks for HOW MUCH TIME DID IT TAKE TO WRITE THE STUPID THING AND GET IT STABLE! My guess would be that the C/C++ version will take from two to ten times longer. My guess would also be that the other languages you mention would be deemed completely inappropriate.

      Now, let's take the results of ALL the benchmarks to the big-time, decision-making boss and see who he is willing to make out a check to.

      There's also the not so small point that it takes a much higher caliber programming to write code in C++ than in Java, and that those higher caliber programmers are more expensive and harder to find.

    6. Re:Java (with JIT) performance poor - stats follow by greenrd · · Score: 2
      In the real world, you're not going to have Java processes that just run for 9.0 seconds and then stop (unless you run Java through CGI, which is idiotic if you care about speed). You'd have say an application server with a continuously-running Java process. The whole point about JITs (yes, they did this before HotSpot came along, contrary to Sun's advertising) is that (well, some of them, anyway) only compile bytecode to native code when it's getting used a lot. And then there's bootstrap class loading and initialisation which probably dwarfs the time taken by the main method itself (I don't know if that's included in your results!)

      What all that means is, if you wrap a for loop with say 200 iterations around each program, the Java code should be relatively faster per iteration, because after a while the optimisations will trip in - and the initial overheads will be constant, thus less significant.

  113. Kaffe reported to be 2X as fast as HotSpot by Anonymous Coward · · Score: 0

    Kaffe is small, lean and mean. It is also Open Source - and has immediate bug fixes as opposed to Sun's top-heavy organization.

    1. Re:Kaffe reported to be 2X as fast as HotSpot by MassacrE · · Score: 1

      2x as fast when running _what_? The only thing out there arguably faster than hotspot is IBM's JDK. Kaffe, last time I checked (which was two weeks ago) was slow and buggy, and didn't ship with a buggy java compiler and not enough of a java core class implementation to compile the code I needed.

      it has a _looooong_ way to go before it is as good as the 1.2 Blackdown JDK (which in turn is nowhere near as good as the 1.1.7 Blackdown JDK, which is in turn crap compared to the windows JDK). Kaffe is one of the lowest rungs on the totem-poll.

      Unless they have been keeping lots of cool changes out of their snapshots..

  114. Re:Excellent news... by Anonymous Coward · · Score: 0

    I followed the link to the cnn story, of course my browser paused for a few seconds with the "Starting Java" message at the bottom.

    At least I wasn't running IE.

  115. great for Java apps like jMax too by eries · · Score: 1

    This is really a sweet development. Currently, some really cool apps (like the jMax sound processing system) have been "ported to Linux" via Java. However, because the best they can do is include instructions for downloading the blackdown port of the JDK in the README, they are very difficult to get working. A decent port like this could pave the way for a Linux JRE which is exactly what we need for end-user applications. The JRE has done much to ease adoption of Java on Win32, for example.

  116. Use Kaffe instead: www.kaffe.org by Anonymous Coward · · Score: 0

    It's much better than blackdown's linux port.

    1. Re:Use Kaffe instead: www.kaffe.org by Anonymous Coward · · Score: 0

      Kaffe has no RMI, broken serialisation,... Don't call it Java.

  117. He chose a SUN OS to run JAVA by Anonymous Coward · · Score: 0

    Please note that this person chose to run Solaris so he could run JAVA. Suns write once run anywhere enviroment. This is, I am sure, 100% in line with SUNs plan, for total dominance. If they had wanted to do what they said, then you would be able to run your JAVA setup on any OS, like BeOS, Mac, Linux, WinNT, not have to choose their Solaris. Ppl who vote for JAVA, vote for a domination much worse than M$ could ever invension.

    1. Re:He chose a SUN OS to run JAVA by MassacrE · · Score: 1

      he chose sun OS over linux to run java. Because linux kicks ass, java kicks ass, and linux doesn't support java well. There is no reason that linux should not support java (kaffe is kinda crummy compatibility-wise, but that can be fixed easily, and it is already super-fast), other than the 'community' has their mind set that java sucks, and doesn't want to work on it.
      Sun's #1 product is not java, they make very little money on it, and put forth a horrendous amount of development effort just to keep solaris and windows afloat.

    2. Re:He chose a SUN OS to run JAVA by toriver · · Score: 1

      Yes, but the GUI designer uses WFC instead of Swing. That alone sucks smelly gym socks. Though WFC is a reasonably good component set, it's tied 100% to Win32.

      Until MS come to their senses (and make a Java 2 oriented "VJ++ 2000" or whatever), it cannot beat e.g. JBuilder 3, since JBuilder uses Swing.

      Micros~1's 1.1.x JVM and compiler are faster than Sun's, though.

    3. Re:He chose a SUN OS to run JAVA by Anonymous Coward · · Score: 0

      Um, read his post again. He developed under Linux and deployed under Solaris only because *at that time* the Java implementations for Linux were not suitable for deploying his application. Also note that while he used Solaris, he used it on an x86 box. Sun's money comes from it's *hardware*. Finally, it is not Sun's responsibility to provide a Java implementation for other operating systems. If BeOS wants a Java implementation, they're free to develop their own clean-room implementation or license Sun's.

  118. Re:That's nice, but Sun's reference is still CLOSE by Anonymous Coward · · Score: 0

    Kaffe is not reverse engineered: it's based on a specification. There is nothing preventing clean-room implementations of the specification.

  119. Re:Why are linux and java a good match? by Anonymous Coward · · Score: 0

    I often read this question, though i think the answer is obvious:
    Java is the most suitable language to write cross-platform Apps.
    A cool (& bugfree) implementation of the JVM (which is currently not available) would bring a lot of software to the linux platform.
    And even if this software might be commercial (some app's simply don't make fun to produce, so no OS-programmers do them), having a large number of applications is key to Linux's success.
    I can't see too much professional-class apps on Linux (though there are some). Development speed of many OS-projects sucks, since they are driven half day due to the lack of giving their creators financial value to live from.

  120. Javaisms by Anonymous Coward · · Score: 0

    Common Javaisms...

    "Java is scalable" - translation: "Java runs slow as hell, so you better have a huge cluster of machines to run your servers on"

    "Language X sucks - Java RULES" - translation: "I don't know how to use language X effectively. I am only familiar with Java."

    "It's not the Java way of doing things" - translation: "Sun never anticipated this circumstance, so either wait for a JVM bug fix or an official Java API change in a future undetermined release."

    Did I miss any?

  121. Re:Yes - you missed a couple... by MassacrE · · Score: 1

    or how about

    "Java is very badly designed, give me perl anyday" - translation - I have never written a program more than five lines long in my life.

    "I don't see the point of java when it is closed source, to me it is just like VB" - translation: I have never worked in the corporate world before. I also have never checked to see just what parts of the java specification can be downloaded no-strings-attached from sun's site. I have also never heard of kaffe

    "Java sucks, it is slow and crashes" - translation: I think that java and netscape navigator are the exact same thing.

  122. Re:Just a quick note ... by Augusto · · Score: 1

    Yes, I remember a discussion about that issue in www.javalobby.org . The C++ server connected to clients which were in turn applets using CORBA. This worked kind of good but had two major flaws.

    1) Firewalls

    2) ORB init time (at least orbix)

    3) Applet/client code was bloated due to CORBA libraries

    The new server still uses an ORB to connect to another server, but to talk to clients it uses serialization through servlets and HTTP. This works really well, but when you think about it, the cost of HTTP socket creation all the time could be bad. It turns out that for our application, it is just as good and we solved the firewall and init issues.

    In other words the thread per connection problem is not a big issue for us because we don't have "permanent" connection to our clients.

    Another advantage is since we are using servlets, thread pooling is done by the servlet engine (in this case Jigsaw) which takes another big head ache out of our hands. We just code "business" logic and it works fine. This is how I wish development was in my future projects :)

    Going back to the servlet/thread issue , I remember a talk at JavaOne about this with a huge game server. You might want to take a look over those slides.

    --

    - sigs are for wimps.
  123. Re:We have an Open Source one. Who cares about Sun by zigzag · · Score: 1

    My problem with the Transvirtual folks is that they sold their soul to the devil. Microsoft enbraced and extended Java with their own proprietary extensions to the language, including new keywords. Transvirtual accepted money from Microsoft to incorporate Microsoft's extensions into Kaffe. Need I say more?

  124. Re:We have an Open Source one. Who cares about Sun by Bruce+Perens · · Score: 2

    I don't know. Ask The Hungry Programmers.

  125. Re: Blackdown was killed by Microsoft anyway... by MassacrE · · Score: 1

    actually, randy chapman's work really wasn't that great. I mean, it was really nice of him to do it, but there has been a LOT of changes to java since what, 1.0.2 that he did back in '96?

  126. Re:No benchmark covers all cases... by Anonymous Coward · · Score: 0
    Firstly, you can buy garbage collection libraries for c/c++. Unlike the Java GC implementation - they work. Any intro Java book will tell you that your destructors may or may not be called...that Java GC is a crap shoot...

    Secondly, there are a number of compilers that support the full spec. GCC isn't one of them, but nonetheless they're out there. Kai, for example, is one.

    As for proprietary interfaces for GUIs, Qt and Gtk-- are quite open. I don't understand your critique here - Java has one GUI, c/c++ has many. I'd rather have choice.

    C/C++ aren't perfect, but if you want to write a serious platform - an OS, an RDBMS, your only other choice is assembler - Java isn't even anywhere near being an option.

    For people who alreayd know how to deal with c/c++, it would be silly for them to downgrade to a language with demonstrably poorer performance.

  127. Re:Talk is cheap - perl is faster than Java by Anonymous Coward · · Score: 0

    Thanks for the hot air. I'll stick with the numbers.

  128. Wow, thats admirable.... by Anonymous Coward · · Score: 0

    Hope you got some interest out of it, thats a lot of work....

    1. Re:Wow, thats admirable.... by rcromwell2 · · Score: 1


      Nah, I did the same thing in emacs. I just query-replaced Hashtable with Hashmap, Vector with ArrayList, elementAt with get, removeElementAt with remote, addElement with add, and a few other items. The iterators take alittle more work.

      If you run a profile, you see that most of the time is spent in following routines:

      add()
      Prefix.hashCode()
      Prefix() constructor
      StreamTokenizer

      I replaced StreamTokenizer with BufferedReader
      and StringTokenizer. I then changed ArrayList into LinkedList. Got about 25% speedup.

      Since most of the iteration is linear, and there are frequent removes/adds() from the beginning/end of the List, using the LinkedList is better. During the generate routine, random access is used, but the number of operations is generally smaller, and the size of the list is smaller.

      Also, if you subtract the Java VM startup time and just time the code execution (as you would have in a server environment), my execution time is 1.2 seconds on a large dictionary file on a P2-400 Solaris x86 box on JDK1.2. With JavaVM startup overhead, it's 2.7 seconds real.

      I bet with further optimizations running on IBM's JDK, you could get within 80% of C.



  129. Re:This is good news. by Anonymous Coward · · Score: 2
    All of those systems will have working C/C++ compilers, after all.

    K&R C, I can believe. But there are still proprietary OSes out there whose one-and-only compiler doesn't even grok exceptions, and I'd hardly call that impoverished language C++.

    With C/C++ you should be able to get much greater performance, stability,

    This is a troll, right? C and C++ are half-marked minefields, and the industry has spent the last decade or so proving that getting reasonable robustness with them requires such superhuman diligence that you actually get more money if you don't even bother to try.

    more immunity to environmental changes,

    Ah yes, the joys of DLL Hell.

    less developmental headaches (no nervously watching evolving Java standards)

    Instead you can wistfully watch the evolved C++ Standard and wonder which parts your vendors might bother to support.

    and more qualified programmers (most good Java programmers are good C++ programmers, but not vice versa).

    This is an artifact of C++ having arisen first. Most good C++ programmers have learned Java for the same reason they'd learned C++ - it's better than what they had before. Most Java programmers who didn't already know C++ are too inexperienced to be good (the rest were doing amazing things in Smalltalk instead).

    IMHO the notion of code that's married forever to one machine is the next piece of cultural baggage we're getting rid of, and Java (the first widely-deployed language that can safely receive and run untrusted code from elsewhere) will be the centerpiece.

  130. Kaffe is fast? Back up your statements, please by JohnZed · · Score: 2

    This is absolutely ridiculous. Mr. Perens is claiming that Kaffe is "300% faster" than some competitors without giving concrete benchmarks or even stating who those competitors are. Obviously you can create a loaded scenario by pitting Kaffe with JIT vs. Blackdown with JIT disabled. Even worse is the AC who claimed that Kaffe could be 2x as fsat as HotSpot.
    For real, 3rd party benchmarks, check out the Volano report at:
    http://www.javaworld.com/javaworld/jw-10-1999/jw -10-volano.html
    In terms of speed, Kaffe rated a 389, while IBM's JDK got a 1770. Yup, the IBM kit was more than 4 times as fast. On top of that, Transvirtual doesn't pass Java compatibility tests, so if you develop on their VM, you have no reason to believe that your code will work on a real JVM.
    Open source is not necessarily equal to best of breed.
    --JRZ

  131. Re:No benchmark covers all cases... by Anonymous Coward · · Score: 0

    Any good intro to Java that covers finalizers also mentions System.runFinalizersOnExit (it's deprecated, but it looks safe if you don't call it alongside System.exit). And the best you can do in C or C++ is conservative mark/sweep - you have to keep everything corresponding to any word that might be a pointer, and you can't move anything in case that wasn't a pointer - pitiful next to generational scavenging HotSpot just added to Java. And there's no portable way to enumerate your root set anyway so you have to hope the GC library vendor supports all your platforms. Oh, good luck finding C++ libraries that assume you're using any garbage collector, much less the one you picked.

    As for proprietary interfaces for GUIs, Qt and Gtk-- are quite open. I don't understand your critique here - Java has one GUI, c/c++ has many. I'd rather have choice.

    A glance at the spec shows that C++ has none. Some platforms have a few. If I can't pick one and use it everywhere, what do I get from the choice but trouble?

  132. Developers flock to linux, Java follows by Anonymous Coward · · Score: 1
    That's the recap of this year and next.

    Blackdown was never afforded the opportunity to let the community loose. IBM is banking on Java because it is the only viable long term language. Linux is doing things right and coming along nicely. Palm has a kvm. Ever seen the Java Expert System Shell (JESS), Java3D, Swing, or servlets? Anyone who doesn't see Java in their future is looking the other way because they're afraid to keep up with the tide. Regardless of how much SUN supports Linux, they realize Linux will not go away. In the end, it benefits them to have a large Java developer base. If SUN doesn't stabilize Java on Linux, somebody else surely will.

    As a developer, just learn it. As a designer, just go with it. I can virtually guarantee that you'll look back a year from now and be glad you're still with the tide. You may have been able to make excuses 3 months ago, but it will soon be too late to keep ahead. In this industry, a couple months of making excuses can concede much too much advantage.

  133. Re:Where is fscking JIT? I've been waiting 3 years by jilles · · Score: 2

    Is that with hotspot installed?

    --

    Jilles
  134. Re:There's a reason Hotmail is slower... by rcromwell2 · · Score: 1


    Microsoft didn't implement DOM, they implemented OM. (without the D) At the time IE4/5 came out, DOM wasn't a proposed or draft standard.

    Many things changed between DOM working drafts, such as the NodeIterator iterfaces.

    if you look at MSXML, it specifically calls it OM for ObjectModel and is different than DOM.

    Same thing goes for XML, XSL, etc. Microsoft is good keeping up with drafts, but they are still behind everyone else. The only "near 100%" compliant XSL/XSLT/X-Path processors for instance, are James Clark's.

  135. Re:Is there a need for Java? by SuperKendall · · Score: 2

    I've been doing all Java enterprise work for over three years - at first, it was more R&D work with graphical visualization, but for the past few years I've worked on a number of practical Java programs that were deployed to big telecom companies. One was a big application/applett (it ran as either) that was a replacement for and enhancement of of large Powerbuilder application (and don't tell me the world wasn't made more pleasant by the reduction of Powerbuilder apps in the world by one!). It was an MDI Swing app (using Jdk 1.2), and it had to run on P90's... I won't say it was all that fast on a P90, but on a P166 it ran pretty well. That did require some tuning of course, but in the end it ran pretty well and the client was very happy with the results. That just goes to show that people who talk of Java being useless for apps are living back in 1996.

    Now I am working on all server side Java stuff. The whole company is doing almost everything in Java, as are many others.

    This is not a flavour of the month kind of event, this has been slowly building for a long time and there looks to be no end in sight. A strong VM on Linux means that at any time, you can swap out that Solaris or HPUX or AIX EJB server for a Linux box if it meets your criteria for the hardware you need. It will be the force that finally shakes loose any doubt of Linux being an equal in the corperate world. It's a shame that Java VM development on Linux has been so slow, but at last we are seeing good progress...

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  136. Yes - you missed a couple... by Anonymous Coward · · Score: 0
    "Java is perfect for X", where X is the technology du jour, be it XML, middleware, or programming your toaster.

    "The next implementation if the JVM makes Java run faster than X", where X may be perl, C++, or anything short of microcode.

    1. Re:Yes - you missed a couple... by iapetus · · Score: 1

      You missed a few more:

      "Java runs slow as hell" - translation: I'm still using an interpreted 1.0.2 VM on a P60.

      "Java sucks - Language X RULES" - translation: "I don't know how to use Java effectively. I am only familiar with language X."

      Hope this helps.

      --
      ++ Say to Elrond "Hello.".
      Elrond says "No.". Elrond gives you some lunch.
  137. Write once, debug everywhere by Anonymous Coward · · Score: 0
    I think even Sun will quickly admit that Java's portability claims were exaggerated greatly, especially considering the disaster of early Java with the AWT.

    Most non-trivial programs will run into a platform dependence, especially if they involve applets.

    1. Re:Write once, debug everywhere by Anonymous Coward · · Score: 0

      I would venture to say that most non-trivial Java programs are not applets. The "early disaster" was just that. Take a look again; much has changed.

  138. Re:Is there a need for Java? by Anonymous Coward · · Score: 0

    /* Copyright (C) 1999 Lucent Technologies */
    /* Excerpted from 'The Practice of Programming' */
    /* by Brian W. Kernighan and Rob Pike */

    import java.io.*;
    import java.util.*;

    class Chain {
    static final int NPREF = 2; // size of prefix
    static final String NONWORD = "\n";
    // "word" that can't appear
    Hashtable statetab = new Hashtable();
    // key = Prefix, value = suffix Vector
    Prefix prefix = new Prefix(NPREF, NONWORD);
    // initial prefix
    Random rand = new Random();

    // Chain build: build State table from input stream
    void build(InputStream in) throws IOException
    {
    StreamTokenizer st = new StreamTokenizer(in);

    st.resetSyntax(); // remove default rules
    st.wordChars(0, Character.MAX_VALUE); // turn on all chars
    st.whitespaceChars(0, ' '); // except up to blank
    while (st.nextToken() != st.TT_EOF)
    add(st.sval);
    add(NONWORD);
    }

    // Chain add: add word to suffix list, update prefix
    void add(String word)
    {
    Vector suf = (Vector) statetab.get(prefix);
    if (suf == null) {
    suf = new Vector();
    statetab.put(new Prefix(prefix), suf);
    }
    suf.addElement(word);
    prefix.pref.removeElementAt(0);
    prefix.pref.addElement(word);
    }

    // Chain generate: generate output words
    void generate(int nwords)
    {
    prefix = new Prefix(NPREF, NONWORD);
    for (int i = 0; i nwords; i++) {
    Vector s = (Vector) statetab.get(prefix);
    if (s == null) {
    System.err.println("Markov: internal error: no state");
    System.exit(1);
    }
    int r = Math.abs(rand.nextInt()) % s.size();
    String suf = (String) s.elementAt(r);
    if (suf.equals(NONWORD))
    break;
    System.out.println(suf);
    prefix.pref.removeElementAt(0);
    prefix.pref.addElement(suf);
    }
    }
    }

    class Prefix {
    public Vector pref; // NPREF adjacent words from input
    static final int MULTIPLIER = 31; // for hashCode()

    // Prefix constructor: duplicate existing prefix
    Prefix(Prefix p)
    {
    pref = (Vector) p.pref.clone();
    }

    // Prefix constructor: n copies of str
    Prefix(int n, String str)
    {
    pref = new Vector();
    for (int i = 0; i n; i++)
    pref.addElement(str);
    }

    // Prefix hashCode: generate hash from all prefix words
    public int hashCode()
    {
    int h = 0;

    for (int i = 0; i pref.size(); i++)
    h = MULTIPLIER * h + pref.elementAt(i).hashCode();
    return h;
    }

    // Prefix equals: compare two prefixes for equal words
    public boolean equals(Object o)
    {
    Prefix p = (Prefix) o;

    for (int i = 0; i pref.size(); i++)
    if (!pref.elementAt(i).equals(p.pref.elementAt(i)))
    return false;
    return true;
    }

    }

    class Markov {
    static final int MAXGEN = 10000; // maximum words generated
    public static void main(String[] args) throws IOException
    {
    Chain chain = new Chain();
    int nwords = MAXGEN;

    chain.build(System.in);
    chain.generate(nwords);
    }
    }

  139. Re:Question: Cross platform compiled Java? by Chris+Siegler · · Score: 2

    Has anyone used native compiled Java (i.e. machine code - no JVM) to develop Linux/Win/Mac cross platform programs? Any problems using Swing, threads and sockets? What compiler did you use on each platform? Any compiler incompatability issues? Am I right in thinking that gjc only supports Linux of these there platforms?
    The Cygnus java compiler is actually called GCJ and compiles on all Unix variants, at least if you're using GCC. It has support for native threads and user threads and a full java.net implementation. Actually, the only thing missing is AWT and Swing.
  140. There's a reason Hotmail is slower... by Anonymous Coward · · Score: 0
    They have about fifty times the users your site does, if not more.

    Now, to debunk some of the other myths you've offered, it would be slightly misleading to say that the W3C is using Java as a first implementation language on new technology. Just go to their site and look around - you'll see thats not the case.

    I agree that Java is emerging in more and more places, but it still has serious performance problems, as many benchmarks indicate, and it certainly isn't "everywhere".

    1. Re:There's a reason Hotmail is slower... by Anonymous Coward · · Score: 0

      And we're running on 1/100th the amount of hardware that Hotmail is too. Nevertheless, you're right, it's no basis for comparison, the point is, Java is not slow. It's not "the fastest", but it certainly isn't slower than Perl/PHP/Cold Fusion/Python/ASP, and all the other languages that the vast majority of sites are running on. Java is "good enough" to run a serious web site, and no doubt it will get better. Let's look at the newest W3C standards: XML - far more parsers written in Java than any other language. XSL - again, there are about 5 maybe 6 XSL processors, and 1 that is written in C. DOM? Available via IBM, Sun, Docuverse, Oracle, etc. All Java. Only C++ DOM implementation I know of is in Mozilla. SMIL? First player was HELIO based on Java JMF. SVG? First implementations were Blakdirt and IBM's, both Java. P3P and RDF? Both started with Java implementations. HTTP/1.1 and HTTPNG? W3C's Jigsaw server. James Clark and Tim Bray, chairmen of a number of W3C committies and the force behind XML/XSL/DSSSL/RDF/etc write most of their free code in Java. See www.jclark.com/xml What are you trying to prove in your response? That major corporations aren't using Java? That it isn't being used by programmers? That no one has deployed it? Sorry, but that's clearly wrong.

    2. Re:There's a reason Hotmail is slower... by Anonymous Coward · · Score: 0

      (Hate HTML format)

      And we're running on 1/100th the amount of hardware that Hotmail is too. Nevertheless, you're right, it's no basis for comparison, the point is, Java is not slow.

      It's not "the fastest", but it certainly isn't slower than Perl/PHP/Cold Fusion/Python/ASP, and all the other languages that the vast majority of sites are running on.

      Java is "good enough" to run a serious web site, and no doubt it will get better.

      Let's look at the newest W3C standards:

      XML - far more parsers written in Java than any other language.

      XSL - again, there are about 5 maybe 6 XSL processors, and 1 that is written in C.

      DOM? Available via IBM, Sun, Docuverse, Oracle, etc. All Java. Only C++ DOM implementation I know of is in Mozilla.

      SMIL? First player was HELIO based on Java JMF.

      SVG? First implementations were Blakdirt and IBM's, both Java.

      P3P and RDF? Both started with Java implementations.

      HTTP/1.1 and HTTPNG? W3C's Jigsaw server.

      James Clark and Tim Bray, chairmen of a number of W3C committies and the force behind XML/XSL/DSSSL/RDF/etc write most of their free code in Java. See www.jclark.com/xml

      What are you trying to prove in your response? That major corporations aren't using Java? That it isn't being used by programmers? That no one has deployed it? Sorry, but that's clearly wrong.


    3. Re:There's a reason Hotmail is slower... by Anonymous Coward · · Score: 0

      Ok, I checked and the original poster seems to be correct. At a minimum, implementations of various specs. and proposed or experimental specs. seem to be available first or very early on in Java, judging by what's posted at the w3 site (whether or not developed by the w3 proper). I also see statements like "the Jigsaw server is a premier experimental platform for W3C".

  141. Re:Just a quick note ... by Jenova · · Score: 1

    >Going back to the servlet/thread issue , I >remember a talk at JavaOne about this with a >huge game server. You might want to take a look >over those slides.

    Yup , saw that article in Javalobby too, did that. I am just feeling rather nervous about it since I'm designing a server for my client.

    It is done in Java at the moment, but being wary of that issue and the lack of select() in Java, I was considering on reworking it in C/C++.

    I'll just remember to ask him not to run the server in Win98.... :)

  142. Real benchmarks by JohnZed · · Score: 2

    Check out this Java World article for real benchmarks for a variety of JDKs on Intel hardware. The scalability (page 2) is both interesting and disappointing. The numbers on the Blackdown and Kaffe JVMs really show how badly a new JVM is needed for Linux. --JRZ

  143. Re:whatever by Anonymous Coward · · Score: 0

    What core functionality has changed in the past six months that affects code you wrote six months ago?

  144. Re:We have an Open Source one. Who cares about Sun by Chris+Siegler · · Score: 1

    Has Japhar been given up for dead then?

  145. Just a quick note ... by Augusto · · Score: 1


    > I'm wondering if anyone out there uses Java for
    > something useful. Perhaps I sound naive, but
    > I've never seen it deployed beyond annoying
    > applets or slow as molasses games in COS246
    > (Java Programming) And java support in Netscape
    > seems to be lacking to put it nicely.


    You need to go out more often :)

    We are using Java for rewritting a server from C++ to Java. Why ? Because it's easier to run it in other platforms now (like Linux, and a PC), it's more flexible and has even better performance than the C++ version due to some design changes that are easier to implement and maintain in Java.


    > I've done some reading about servlets and
    > Jserver pages which seem quite interesting. Does
    > anyone have any experience with them or
    > experience with gnu-jsp?


    Is gnu-jsp still being developed, I tought that project was left in limbo.
    For servlets I've been doing a lot of that at work too using the Jigsaw webserver, a good little server that is written in Java and it's easy to embed it in your application.
    I might get stoned for saying this here but, we've also replaced a lot of perl code with java/servlet code and the results are really really interesting. Give it a try ...

    --

    - sigs are for wimps.
    1. Re:Just a quick note ... by Jenova · · Score: 1

      We are using Java for rewritting a server from C++ to Java. Why ? Because it's easier to run it in other platforms now (like Linux, and a PC), it's more flexible and has even better performance than the C++ version due to some design changes that are easier to implement and maintain in Java.
      [snip]

      Just curious, how scalable is a server written in Java anyway? I've heard that the thread per connection model doesn't really work too well.


  146. Talk is cheap - perl is faster than Java by Anonymous Coward · · Score: 0

    smaller programs that execute faster. Wow, what a concept....but then again, "MassaCre", you're the same guy who asked why Java wasn't open, so I'll take your remarks as the utterances of a sophomore.

    1. Re:Talk is cheap - perl is faster than Java by Anonymous Coward · · Score: 0

      For everything? All the time? Everywhere? You've got numbers? What kinds of tests have you run? Or have you just talk? (Sun's Java implementation is not open. You're free to do your own. Others have.)

  147. Re:Is there a need for Java? by evguenii · · Score: 1

    That what i wanted to hear
    I wonder why not anyone remember about such things like Python (which also fairly platform independent)

  148. Re:Where is fscking JIT? I've been waiting 3 years by MassacrE · · Score: 1

    look for sunwjit.so in the JDK 1.2 pre v2 install.

  149. Re:Is there a need for Java? by mark · · Score: 2
    One thing that java detractors seem to forget is that in many cases the systems being written would formerly have been written in some other "4GL" language such as Oracle or Unify Accell or Powerbuilder, etc. You just can't use system programming in these environments. The "4GL" environments are form/database environments first and real languages second; Java is a real language first but has excellent database and form access (with a little bit of work).

    This is largely in line with comments made by others; that programmer resources are more expensive than hardware in the long run. I also believe that the hardware is so changing so quickly that language decisions made on the basis of performance are generally meaningless within a couple of years.

    Few big companies are going to build large multi-user applications from scratch; Java is like the "4GLs" in that they have a huge respository of useful things that are just standard. It is better than the 4GLs in that it is faster and more generalised - and it works everywhere.

    It is great to be able to combine the two "obvious" (to me anyway) trends of the future, java and linux.

    Just MHO of course.

  150. Good thing for Mozilla by scumdamn · · Score: 1

    With Mozilla's "Open JVM Integration" we should finally have a good java platform with Linux. I hope this tech is released soon (both Java and Mozilla).

  151. This is good news. by SoftwareJanitor · · Score: 2

    Speaking as a programmer that has been doing a lot of Java development lately, this is very good news. The fact that 'official' Sun blessing has been given to a Java for Linux should help to make Linux more saleable to the PNB types as a Java development and/or deployment platform.

    1. Re:This is good news. by Anonymous Coward · · Score: 0
      IMHO probably (intentionally) buggy

      Yeah, and I heard Linus Torvalds has intentionally added features to the Linux kernel in order to use Linux to control the minds of thousands of people who are going to have a Transmeta chip implanted in their heads.

      Praise the paranoid.

    2. Re:This is good news. by Anonymous Coward · · Score: 0
      The fact that 'official' Sun blessing has been given to a Java for Linux should help to make Linux more saleable to the PNB types

      That's funny... I wasn't aware that the Pacific Northwest Ballet were such big Java users. Or perhaps PNB is Pointy Nosed Bosses, or....

  152. Question: Cross platform compiled Java? by SpinyNorman · · Score: 1

    Has anyone used native compiled Java (i.e. machine code - no JVM) to develop Linux/Win/Mac cross platform programs? Any problems using Swing, threads and sockets? What compiler did you use on each platform? Any compiler incompatability issues? Am I right in thinking that gjc only supports Linux of these there platforms?

    1. Re:Question: Cross platform compiled Java? by Ledge+Kindred · · Score: 2
      Check out TowerJ at www.towerj.com. They've got a link to the latest Volanomark (?) Java benchmarks that show natively-compiled TowerJ on Linux is the fastest deployment platform for Java. Works on many other platforms as well. As far as compatibility, dunno, I've never used it, but it has a great reputation among those who go for that sort of thing.

      Note that it is very much a commercial product and rather pricey IMHO.

      -=-=-=-=-

      --

      -=-=-=-=-
      My mom's going to kick you in the face!

  153. Uhh. What efforts? by Anonymous Coward · · Score: 0

    Don't they have to have made some effort for it to be affected?

  154. Re:No benchmark covers all cases... by toriver · · Score: 1

    It will take them one month to become really good at Java, less than the time taken with the extra work introduced by C++.

    Around here, more and more former C++ programmers are flocking to Java.

  155. Is there a need for Java? by ffatTony · · Score: 2

    The article really sounded as though there is a pressing need to support Java better on Linux machines, but for some reason I thought the general feeling among Linux users was that Java is slow and not really as useful as traditional programming languages.

    I'm wondering if anyone out there uses Java for something useful. Perhaps I sound naive, but I've never seen it deployed beyond annoying applets or slow as molasses games in COS246 (Java Programming) And java support in Netscape seems to be lacking to put it nicely.

    I've done some reading about servlets and Jserver pages which seem quite interesting. Does anyone have any experience with them or experience with gnu-jsp?

    1. Re:Is there a need for Java? by sklein · · Score: 2

      The article really sounded as though there is a pressing need to support Java better on Linux machines, but for some reason I thought the general feeling among Linux users was that Java is slow and not really as useful as traditional programming languages.

      The language itself has a conceptually very clean design placing it in the popular class of things that are easy to learn and do simple things with.

      The standard libraries support a disgusting number of things, so again, simple tasks are often a mere matter of programming.

      Java has decent support on various different platforms, especially those that are poor in programming tools.

      Hardware's "cheap".

      I personally thought Java was the greatest until I became familiar with Unix.

      sklein

    2. Re:Is there a need for Java? by Ledge+Kindred · · Score: 3
      You've touched on the place that Java is developing quite a following. Not too many people that I personally know of are working on building full-screen interactive applications, we're all working on using Java as a back-end, middleware app, application server, servlet engine, database gateway, what-have-you, which is where it really shines.

      Some of the things that I personally think make it ideal for server-side programming are: excellent database API (JDBC), native support for http and ftp xfers, multithreading, a very easy to use exception handling mechanism, and the object-oriented programming model can be mapped very well onto things like database and file objects. When you're not trying to do interactive graphical apps, speed is very good and only a few percent behind compiled apps with most things I've seen.

      The cross-platform-ability also makes it easy to develop on Windows or Linux boxes, then take the same code and drop it on your Sun E10000 to deploy. You just have to make sure your Windows-based developers aren't using MS J++ and writing incompatible code... :)

      -=-=-=-=-

      --

      -=-=-=-=-
      My mom's going to kick you in the face!

  156. Re:Yes! - Re:Is there a need for Java? by jilles · · Score: 2

    suns strategy has been pretty consistent since jdk 1.1. Its just that it takes bit longer than they originally expected.

    "That's typically what people in here decry - the fact that there is so much hype for so little delivery."

    Those people generally seem to be unaware of anything else but applets. One of the reasons there are so many Java products at this moment is because its a profitable business. I.e. people actually buy and use stuff like JBuilder, Visual Age, etc.

    You are right that SUN is repositioning Java all the time. They have to because there's a lot changing. A year ago XML was just a spec. Now it's the latest hype. Java is right in the centre providing tools, parsers etc. I don't think that's bad.
    Then Jini, I really like the ideas behind that. Its something truly innovative. It doesn't seem to hurt other things in Java so what's your problem with Jini?

    "...no tool can satisfy all these diverse needs as easily as Sun would have you believe"

    Sun doesn't want you to believe that. They're offering different versions of their JDK now. A standard version, an enterprise version, a micro edition (coming in five flavors if I remember correctly). Each is targeting a different portion of the market.

    I'm sorry the world is spinning too fast for you these days.

    --

    Jilles
  157. Re:Where is fscking JIT? I've been waiting 3 years by jester · · Score: 1

    There has been a JIT around for well over a year. Probably more like 2 years. It's on Blackdown's Java page - 'TYA' is its name.

  158. Why are linux and java a good match? by Anonymous Coward · · Score: 0
    Seriously - beyond the fact that both technologies are hyped beyond belief - what makes them intrinsically a good match?

    I would counter that linux is a better match for the multitude of open programming languages out there.

    Java is closed, and hence does not mesh well with the general promise of linux - a complete, truly open system.

    1. Re:Why are linux and java a good match? by Anonymous Coward · · Score: 0

      http://www.kaffe.org/ http://www.hungry.com/products/japhar/ http://www.freebuilder.org/

    2. Re:Why are linux and java a good match? by speek · · Score: 1

      In terms of open source-edness, they don't match, you are right. However, openness is a common goal in other areas. One of Java's goals is to make software independent of hardware/OS. This serves to make the field more open for alternate technologies. One of the reasons Linux had a tough road was because of proprietary standards. File formats, executable code, etc.... It was hard to migrate over to Linux from Windows. Java, or more accurately, the VM architecture, puts a buffer between the platform and the executable, and effectively decouples the two. Adoption of new technologies becomes easier. The Linux community should see the value of that, and in that sense, their goals do match up well.

      --
      First, make it work, then make it right, then make it fast, then, make it bloated!
  159. Why should Sun care about Linux anyway? by Anonymous Coward · · Score: 0

    Linux is focused mainly on Intel hardware, so pushing Linux is pushing Intel, and thats a no-no Why should they care, they have a superb OS and superb hardware that beats everything on the market right now. Linux is a joke compared to the latest and greates Solaris. No volume mangament, no meta devices, no support for more than 4 GB ram, no support for more than 8 processors, very poor SMP scalability, no inbuilt heartbeat/failover clustering, no user process managment, no system partioning (split the system with mem/cpu/disk in serval logical volumes), poor RAID support, no Hot Spare RAID technology, no real POSIX thread inplementation. user-space applications like 'ps' and 'top', etc does not support SMP, no user-space commands for system tuning/statistic managment, poor NFS inplementation. Well, and then you pay $100.000-150.000 for an Sun Enterprise box (like we do) you get the OS for free with the system ofcoz.

  160. This is a Good Thing (tm) by GnuGrendel · · Score: 4

    I know a lot of /. readers don't like Java for X, Y, or Z reasons, but this is a really REALLY Good Thing (tm).

    The direction middleware (such as application servers, transaction monitors, messaging servers, etc) is going is Java, like it or not (I happen to like it quite a bit). Enterprise Java is getting even more hype in these areas than Linux itself *grin*.

    As I've personally just been doing an overview of a systems architecture for a large (fortune 50 or so) company's internal functions, I can tell you that Java support is really holding back a lot of the enterprise middleware products that are available for NT, Solaris, AIX, etc. I had to recommend not using Linux because these enterprise applications are not available for Linux. Hopefully, this move from Sun and IBM's great work on Linux JVM's will help to remedy this situation.

    Plus, with the Apache Jakarta code finally having dropped (thanks again Sun!) it will be nice to have a fast, stable 1.2 JVM. I've heard that the Blackdown port is relatively stable, but the Volano benchmarks show it to be relatively slow.

  161. Re:Open source? by toriver · · Score: 1

    No, they are not. However, there are other implementations that are, such as Kaffe.

  162. IBM is likely the motivating force here... by russcoon · · Score: 3

    I have this sneaking suspicion that IBM was the motiviating factor in all of this. I work in/around an AS/400 shop (but I am a web designer) and it seems to me that IBM is pushing Java just as fast as it'll go. Additionally, it makes sense for IBM to pursue this route in terms of client independence. IBM really doesn't have a competitive client to push into the market at this point, so by pushing Java to every other platform, they hedge their bets and can sit back and watch the client wars play out while they focus on the Big Iron behind it all without having to worry quite so much about interoperability problems. My guess is that they will drag Sun kicking and screaming along with this plan through some kind of liscensing deal that we may/may not be privy too. Heaven knows that IBM's patent arsenal affects Sun _somehow_

    1. Re:IBM is likely the motivating force here... by zigzag · · Score: 1

      I've heard that Java 1.5 will run faster than the hardware its on.

  163. Open source? by coldfusion · · Score: 1

    Are Sun Virtual Machines released as open source? If not, shouldn't we encourage them to do so?

    --
    -cf
  164. Re:We have an Open Source one. Who cares about Sun by mistabobdobalina · · Score: 1

    ah i dunno they're ok guys - talked to one at javaone, and basically his position is that their vm is gpl's so what the hell? if ms wants to pay to have some api's added its not forcing anyone to use them.

    --
    -- your knees hurt, don't they?
  165. 300% ????? by mistabobdobalina · · Score: 1

    come on bruce, been spending too much time advocating...back to reality now.

    --
    -- your knees hurt, don't they?
  166. He He by Augusto · · Score: 0

    Hmmm ... maybe like get a clue.
    Boy, are you glad you posted anonymously or what ?

    --

    - sigs are for wimps.
  167. Re:We have an Open Source one. Who cares about Sun by Anonymous Coward · · Score: 1

    I congratulate the Kaffe team, but I have to ask what use is this?

    According to the Kaffe website "Kaffe mostly complies with JDK 1.1, except for a few missing parts. Parts of it are already JDK 1.2 (Java 2) compatible."

    So we are back where we started. There is no version of Java 2 for Linux (blackdown 1.2 is still beta), and the open source version of java 1.1 has missing parts which could cause unexplained behaviour in your java programs that run fine elsewhere.

    So until the open source version of Java can conform to at least Java 1.1, or better yet the far more relevant Java 2, it is not a viable option for real Java development.

    (as a side note, what use is a compiler written in Java that is 1.2 capable, but is crippled by the lack of a Java 2 virtual machine?)

  168. whatever by Anonymous Coward · · Score: 0

    One of *MY* main gripes with java is that the core functionality is so twisted. It keeps on changing every 6 months. Sure, languages develope over time, but the current java implementation seems to be a sort of ad-hoc implementation. That said, I'm still rooting for java as the (*cough, cough*) "internet" language. There's not much better stuff on the market, is there?

  169. Good point by Augusto · · Score: 1

    I (and I'm guessing most developers) have no interest in yet another "we implement whatever we want" JVM. It fairly stupid (to put it mildly) to use an VM that is not fully compliant, because it marries you to that implementation and limits you your ability to run in other platforms.


    I'm also left wondering about the use of a Java 1.2 capable compiler with a hybrid 1.1/1.2 VM. I must be missing something here ...

    --

    - sigs are for wimps.
    1. Re:Good point by SimonK · · Score: 1

      Well you're right that an incomplete implementation of the platform is pretty useless to most Java people.

      However, its not the VM thats the issue. The VM spec hasn't changed since 1.0 (though thankfully the performance has) and the language hasn't changed since 1.1. There's no sense in which a 1.2 compatible compiler differs from a 1.1 compatible one.

      The difference is the class libraries. Java's collection framework is no small peice of work. Neither is Java2D (which contains code from around 10 difference comapanies).

    2. Re:Good point by greenrd · · Score: 1
      Java's collection framework is no small piece of work

      I would dispute that. It's smaller than STL and a good college student could probably knock it out with a modern Algorithms and Data Structures textbook. What's more, nearly all the synchronization is centralised in the Collections class, so you don't even have to worry about locking most of the time.

      Java2D, on the other hand, absolutely. I can't say much because of the "confidential information" clause, but, woah, it's one complicated hulk of code! Probably they haven't got around to optimising it very much yet - I've got a program that takes around 30 seconds to display a few-hundred lines of source code - the word-wrapping is done by a Java class that calls some Java2D stuff to get font info, and that's what seems to slow it down.

      Ever wondered what happened to those "new operating system" projects by huge companies that never saw the light of day, a few years ago? Well at least one of them got partially reincarnated in Java2D.

  170. The self defeating JAVA hype by Anonymous Coward · · Score: 0

    This kinda illustrates how JAVA has a strong problem delivering its own promise. It is not intresting, nor good that JAVA can run really fast on one platform but not on others. Why then bother with the jvm sutff, and not just write a native compiler. If SUN takes this route to make various UNIXes the best platform for JAVA, the cross platform aspect of JAVA dies, and so will JAVA. If UNIX programmers shift from C/C++/Perl to JAVA for their programs ok, but it wont have the wide impact, dominating more than M$ ever could, unless they make it run equally fast on all platforms.

    1. Re:The self defeating JAVA hype by MassacrE · · Score: 1

      Sun's initial strategy for making money off of java was to charge for people who needed to 'customize' java to run on their platforms. I.e., need a port to strongarm for your set-top box? That will be $10k source code licensing fees, have fun with that 20 meg file we sent you.

      They are kinda lost in that respect, not deciding what they should be focusing on. I personally think they have memory issues they desparately need to clean up involving swing, then after that they need to get a linux port out (or at least a Mac port, sheesh. Apple is not going to support Java 1.2 because of the politics involving a certain Redmond-based shareholder. I _need_ Mac support.)

      all that being said, I really don't understand what is going on with the blackdown group. I check out their mail archives, and they are completely dead. no patches, no nothing. I swear they have a different list for developers they 'invite you to' after you have shown that you aren't an idiot or something. There is no talk of upgrading the current JDK to 1.2.1 or 1.2.2 (which were nearly completely bugfix releases), no talk about 1.3, nothing. If there was a project that I could help on to get things rolling, I would (unfortunately I am under an NDA with Sun that prevents me from working with an open-source project)

  171. Ugghh!! FreeBSD VM needs DRAMATIC improvements by Anonymous Coward · · Score: 0

    Argghh, I love FreeBSD, but these results are shameful...does anyone know anything that can improve performance on FreeBSD?

  172. But what's wrong with that? by Bruce+Perens · · Score: 2
    I thought it was a pretty good turn to use a commercial license sold to Microsoft to finance an Open Source product! Sun's policy was unworkable. I also don't think MS is the devil. In this case, Sun was worse.

    Sun didn't want anyone to change Java, so that it would be a "write once, run anywhere" language. OK, that's a reasonable goal. But they did that by prohbiting anyone but Sun from making changes in Java. They should have done it by establishing a Java standard, with trademarks attached to it and a certification program, instead of casting the software in concrete and prohibiting any innovation by people outside of Sun. And now, they've lost. Their big expensive lawsuit against Microsoft means nothing, because Microsoft simply bought their Java VM from someone other than Sun.

    1. Re:But what's wrong with that? by Anonymous Coward · · Score: 0

      It means that we get the same problems as C++, where the programmer has to guess as to what portion of the language will be available with the tools/platform targetted.

      One is certainly more than welcome to disagree with Sun regarding Java (though from a programmer's perspective they haven't been all that bad, and give away the tools for free to programmers for Windows and Solaris), but if you want to change the language then don't call it Java.

      If you want to proclaim compliance to a version of Sun's Java standard, then you comply with it. You don't add non-standard extensions while you still can't meet years old 1.1 specs

  173. Graft the Kaffe JITC onto Blackdown by SurfsUp · · Score: 2

    My issue with the Blackdown port is that, beautifully compliant as it is, it lacks a JIT compiler. My benchmarks make the Kaffe JITC about three times as fast as the Blackdown JDK's interpreter.

    With Java designed the way it is, it should be a truly no-brainer hack to graft the Kaffe JITC onto Blackdown. If a hack it would be at all. Perhaps the relative hooks in the JITC should be exposed with CORBA, if they aren't already, that is.

    --
    Life's a bitch but somebody's gotta do it.
  174. Re:Yes! - Re:Is there a need for Java? by zigzag · · Score: 1

    You are absolutely right, despite other replies being posted. No, Java is not good for writing operating systems and device drivers. No, Java is not good for creating realtime 3D games. But Java is great for business apps. Think of Java as the replacement for COBOL as well as VB. Enterprise Java Beans IS the future of business software.

    As far as the various flavors of mini-Java, I have no clue as to how they will fare. And Jini is cool, but it may be ahead of its time. But the importance of these are miniscule compared to the significance of Java in the business world.

    I programmed in Java for a couple of years but recently came back to C++. I switched not because I lost the faith, but because I really prefer systems programming to business apps. And while I love being back closer to the hardware, I really miss language. C++ is very powerful, but it's still a kludge. Java is clean and its extensive libraries are powerful, but its still slow and will never be suited to systems programming.

  175. TYA is a good JIT by cabbey · · Score: 1

    check out the latest tya at ftp://gonzalez.cyberus.ca/pub/Linux/java/ it isn't exactly a stelar performer, but it holds up reasonable well, and is OSS.

  176. [off topic] Are you kidding? by SurfsUp · · Score: 0

    Does any one out there really use Gnome or KDE?

    Well, I can't speak for everyone, but my PC boots straight into KDE every time I turn it on. I also use Gnome frequently, and especially I use Gnome applications (such as gnorpm and glade) under KDE. I also do it the other way around, i.e., run Gnome as my primary desktop and use KDE apps under gnome. When I want a console, I use one of the many excellent graphical terminal emulators. Only very infrequently do I go "slumming" in text-only mode - it's butt-ugly on my VIAO anyway, and it's scarcely longer to boot into graphics mode than text mode. Half the time is spent waiting for the stupid manufacturer's logo to disappear, anyway.

    (BTW, are you sure you should be asking that question in your sig? Too close to flamebait, and it will generate too many off-topic responses - like this one.)

    --
    Life's a bitch but somebody's gotta do it.
  177. will it jump straight to Kestrel? by stomm · · Score: 1

    I wonder if it will be Kestrel (aka JDK 1.3, see JDC's Early Access section. It might require a free registration.) which is AFAIK scheduled for delivery around January-February 2000. Well, the article did say "the latest".

    I also wonder who is the first to devise the most insidious and twisted conspiracy theory full of world-eating evil out of that piece of news. :p

    --
    >(8< ~ we come in peace
  178. cool I cannot wait by josepha48 · · Score: 1
    Java is a very cool language. It is very powerful, with a very extensive API. It is similar to tcl/tk in its naming convention, (get set) but with more power to it. Beans are also very cool. Creating thread and socket is easy and can be done in about 10 lines or so. If they can make a fast enough VM then it will make moving to Java less painful for most. The one complaint that i have heard most form anyone (including my self) about Java is that it is slow. My guess is that it is so slow because it has to go thru a transualtion layer the JVM.
    Java App -> JVM-> OS

    Also Java program are compiled 2 times. Once when they are turned in to cross platform byte code, then again when the byte code gets executed on the platform. I love programming in the language, as everything is an object and inherites from Object, it makes writing and reading streams easy. Just write or read the object and you have your data back.

    --

    Only 'flamers' flame!

  179. Re: Blackdown was killed by Microsoft anyway... by Anonymous Coward · · Score: 0


    Their Java efforts sank when Microsoft hired the
    main Java developer who ported the first SDK.

  180. Re:Where is fscking JIT? I've been waiting 3 years by Anonymous Coward · · Score: 0

    the IBM JIT for its JDK/JVM 1.1.6 for linux, and now 1.1.8 for linux, is an excellent JIT putting Java performance on Linux/x86 on par with the state of the industry JVMs that IBM has brought to Windows and OS/2 (see http://www.ibm.com/java/jdk/118/linux/index.html )

  181. InfoWorld problems and state-of-the-JVM by rjstanford · · Score: 2
    First, the story does not come from Sun, but rather from "sources close to Sun Microsystems". This is an immediate red-flag. Admittedly, Inprise's CTO seems to be convinced, but Sun's done some interesting things in the past.

    The current 1.2 JVMs for linux aren't really all that good. There are speed problems, functionality problems... a lot of problems. They're certainly not ready for a real deployment in anywhere near a mission critical situation. Fun to play with, but not business ready yet.

    Remember that many of the difficulties encountered when porting this around are due to the very SolarisThreading-centric 'reference' implementation provided by Sun -- unless they're willing to do something about that, they're in the same mess that Blackdown/IBM/HP/etc are.

    --
    You're special forces then? That's great! I just love your olympics!
  182. Is it IBM vs. Sun?? by Ledge+Kindred · · Score: 3
    I've been using IBM's JDK1.1.8 for some time now and have found it's extremely stable and extremely good performance - not what you'd expect at all from something labeled "Alpha version" - it hasn't crashed at all under some pretty severe situations, even using native threads and the JIT.

    The IBM JDK does need a kernel 2.2/glibc-2.1-based machine, but if you're "into" Java, you're going to want to be on those versions anyway for the improved native thread support. (read: "working native thread support.")

    We'll have to see how things turn out in a few months regarding a Java2 JDK, but I'd put my money on IBM. Sun's good at talking the talk, but IBM has proved themselves to also be good at walking the walk. (And it seems like the poor Blackdown guys have just been getting the shaft...)

    -=-=-=-=-

    --

    -=-=-=-=-
    My mom's going to kick you in the face!

    1. Re:Is it IBM vs. Sun?? by Matt2000 · · Score: 2


      Thats interesting that you've had success with the IBM JDK 1.1.8. I had lots of problems even running IBM tools for DB2 under their release, although they ran well under Blackdown 1.1.7v3.

      Weird. I hope they get all those revisions sorted out and everyone just gets behind a nice, solid v1.2.

      And a little more speed can't hurt.


      Hotnutz.com

      --

  183. Re:I use it ;) by zigzag · · Score: 1

    Java is very portable. period.

  184. It was developed on LINUX! by Anonymous Coward · · Score: 0

    Didn't you release my previous message at all? I clearly explained why it was deployed on Solaris. My personal development servers are Linux. I used Blackdown's port of the JDK. At the time I developed it, JDK1.2 nor IBM's JDK 1.1.8 wasn't available, I had no choice. Had I developed it 2-3 months later, I may have went with IBM JDK 1.1.8 or TowerJ. The problem was deployment. I couldn't get a great performing Linux VM 6 months ago, and after I moved to JDK1.2, it was still prerelease on Linux. The situation is totally different now. The higher performing VM is TowerJ on Linux. Linux is now the leader. Once it has the best performing JDK1.2, my next round of servers will deploy on Linux.

  185. Sun will give Java Linux to IBM by soldack · · Score: 1

    I suspect that not to far down the line, Sun will give the Linux Java market to IBM. They will push it on Solaris to help sell hardware and push it on Windows to help make licensing money but why would they spend time and money on Linux? Linux developers will not pay their software fees, nor are they likely to buy Sun hardware. This seems similar to Microsofts ignoring the Linux market for its software. I understand not bothering with Office but they are not even bothering with their Server software products. Why not? They see themselves as a Linux competitor. They only came back to supporting the Mac when they purchased a big chunck of the company. It seems that Sun still sees itself as a Linux competitor in the operating systems market.
    IBM seems to be embracing Linux and perhaps hopes to become a real player in this market. They seem to understand that it doesn't matter if every computing device on the planet is running Linux... as long as it is on IBM hardware running IBM solutions. I wouldn't be surprised if Big Blue purchased or partnered with a Linux seller and started making an adjusted Linux to replace or be offered instead of AIX, like SGI seems to be doing with Irix. They could shift the money earned from AIX software fees to the hardware cost and Linux support contracts and switch from AIX development on their own to Linux development with a million of their best friends. They are such good friends they work for free! I have no idea why Sun can not see this as IBM (and SGI) can. I don't know why they don't just take a quiet "what and see" stance like HP. Maybe it's because they are really so cocky that they can't fathom Linux ever catching up to Solaris. Pretty soon people will be complaining about the cost of Solaris when buying a Sun box when they are not intending on using it. Meanwhile, friendly sharing between IBM, SGI, and the Linux community will let IBM and SGI concentrate on hardware. This is where they really make money anyway (compared to software fees).

    --
    -- soldack
  186. Re:IBM is likely the motivating force here... NOT! by greenrd · · Score: 1
    IBM does have a strong push for Java in some areas. But, as with every large organization, often one arm doesn't know what the other arm is doing. IBM is HUGE, and very bureacratic.

  187. Re:No benchmark covers all cases... by greenrd · · Score: 1
    Any intro Java book will tell you that your destructors may or may not be called

    Duh, there's no such thing as a destructor in Java. You mean finalizers. Very, very few classes even need to use finalizers, so it's not a big problem.

    Java has one GUI

    That hasn't been true for a long time. Get a clue. How about Swing where you have a choice of 2 or 3 and can roll your own UI fairly easily? How about Open Source alternatives to Swing like Kawa or ICE?

    ... an OS, an RDBMS, your only other choice is assembler - Java isn't even anywhere near being an option.

    Few people should need to write OSs or RDBMSs, there are plenty out there already. Java has never claimed to be able to do everything, so this is a straw man argument. Java is not appropriate for everything, but it is technically superior to C/C++ in many ways - e.g. IMPOSSIBLE to corrupt memory (i.e. using same location for two different variables) using Pure Java code, by the very design of the language, but an easy mistake to make in C.

    For people who alreayd know how to deal with c/c++, it would be silly for them to downgrade to a language with demonstrably poorer performance.

    Take a look at the real world for one second. Why do so many C programmers also use PERL, even though it's slower?

  188. No benchmark covers all cases... by Anonymous Coward · · Score: 0
    ...so take it at face value.

    As it stands, experienced server programmers are already well versed in c/c++ - it would probably take them longer to do it in Java.

    Not everyone approaches a project as their first paid job out of school.

  189. Yes! - Re:Is there a need for Java? by irix · · Score: 1

    Yes.

    People around SlashDot seem to want to jump all over Java, somehow equating that the failure of applets (which is what you are talking about) means that Java is a bust.

    This is not true. Java is one of the hottest things going in client-server computing and n-tier architectures.

    Check out the buzz around EJB, CORBA using Java and (gasp!) DCOM using Java. Have a look at BEA Weblogic, IBM Websphere, etc. These have support for JSP/Servlets, as well as COM/CORBA, load balancing, transaction management, etc.

    Java is alive and very well in the post-applet world. Having additional support for Java on Linux (from Sun, IBM or whoever) just allows Linux to start to become a player in this world.


    --

    Do you even know anything about perl? -- AC Replying to Tom Christiansen post.
  190. Excellent news... by cswiii · · Score: 2

    ...and with this new announcement today of a security flaw in Microsoft's VM (haven't seen it posted yet today), it's all the better.