Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Why Linux Lovers Jilt Java

Posted by CmdrTaco on Fri Dec 01, 2000 10:08 AM
from the oh-let-me-list-the-ways dept.
BrightIce writes: "The Java Developer Journal has an interesting article about Java in the Linux world. It tries to explain why the Linux folks dislike Java, what the future might bring regarding M$, C# and Java, about Sun and Microsoft, and Java and Embedded Linux." I know why I hate it: it takes too.long.to.get.to.my.method(half, of, the, time); and then there's the fact that when Java was new and exciting I wrote a video game in it, only to have Sun cease-and-desist me for calling it "Java Invaders." (oh, and have you ever noticed that our logo isn't the sun logo? They cease-and-desisted us for using their logo here too, even tho that is definitely fair use). Other than that, my only problem with Java is that the VM in Netscape is crap. Oh, and their licensing. And the fact that it's bloated. And the fact that I don't have enough time to type in all the reasons it irritated me *grin*
This discussion has been archived. No new comments can be posted.
Why Linux Lovers Jilt Java | Log In/Create an Account | Top | 766 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11
  • Re:Hacker Mentality by Matthew Austern (Score:1) Friday December 01 2000, @11:54AM
  • Re:That's the biggest pile of crap I've ever heard by jovlinger (Score:1) Friday December 01 2000, @09:13AM
  • by macpeep (36699) on Friday December 01 2000, @11:56AM (#588528)
    The bloat he was referring to has NOTHING to do with the size of the runtime download, nor with the size of the developer files. He was referring to the memory overhead that java puts on programs.

    Before you say "Use JNI, it's the VM not java", let me explain to you why you have your head up your ass.

    I'm not saying "use JNI" because then I would be sacrificing portability so YOU take your head out of YOUR ass and stop putting words in my mouth and then giving counter claims to stuff I've never said. Very poor manners!

    I'm pretty sure he was refering to API bloat, which you *could* argue is there.. Memory overhead is not really an issue, however, and you can get memory much cheaper than you can get coders to write the same stuff in C so that it would save a couple of megs of ram. Besides, you can optimize very well for size in Java too by not using heavy weight stuff like String objects for everything. If you plan on using a lot of strings, roll your own 8-bit string containers and write a separate handler class for it to minimize overhead for methods in the string container class. Just because you're not programming in assembly doesn't mean you have to - to quote you - have your head up your ass when you make design decisions.

    It is a "True OO" language. It's is a "High Level" language. The higher level the language, and the more OO the language, the slower it runs and the more memory it takes up. That's a FACT.

    Yes, you are very right there. There doesn't have to be a huge overhead in OO (as opposed to using structs with function pointers for instance) but the way you write an OO app usually means that you have a lot of method calls going on from object to object. If you want to write a very fast and also size optimized Java app, you can do it the same way you would in C. Yes it will be slower. Yes it will eat more RAM. But it will most probably also be fast and small enough, unless you're coding an OS, a game or a web browser.

    As an obvious starting point, garbage collection. It's very nice and you can be lazy about keeping track of your objects, but it causes overhead.

    Ah, you might think it's obvious and a big overhead, but it's not. First of all, garbage collection happens much more rarely than people think and it doesn't take nearly as long as people often think. In a large application, gc is more efficient than manual malloc & free. Why? Because complex apps have complex object life cycles that you have to track yourself if you have no gc. You might have references to memory from several places in an app with several threads and it's not easy to know when something can be freed. Having a *good* gc implementation do the work for you allows you to focus more on your own code. In many systems, you will find very gc-like structures for stuff like exception handling, with pointers pushed on a stack that is then cleaned up when you leave a method early due to an exception. Gc is much more convenient and not a big overhead at all. By re-using objects, you can also minimize (almost to zero in many cases) how often gc is called. That is, unless you have your head up your ass.

  • Java is dead while Netscape Java is dead by Morgaine (Score:2) Friday December 01 2000, @09:13AM
  • Sorry, some over-statement by ^Z (Score:1) Friday December 01 2000, @11:56AM
  • an interesting alternative: Limbo (+ demos!) by rpeppe (Score:1) Friday December 01 2000, @09:15AM
  • Re:A Java-coding Linux supporter by Bob Uhl (Score:2) Friday December 01 2000, @10:24AM
  • Re:Taco, Chill. by Heretik (Score:1) Friday December 01 2000, @11:57AM
  • Re:Why I dislike Java by RedWizzard (Score:2) Friday December 01 2000, @11:58AM
  • IBM's Embedded Java Solutions by GeorgieBoy (Score:1) Friday December 01 2000, @09:17AM
  • Re:Hacker Mentality by uradu (Score:2) Friday December 01 2000, @10:24AM
  • Re:Simply annoying... by maraist (Score:2) Friday December 01 2000, @10:25AM
  • Re:I can't stand Java, but maybe that's just me... by jandrese (Score:2) Friday December 01 2000, @09:18AM
  • 650 comments and counting! by Delirium Tremens (Score:2) Friday December 01 2000, @10:26AM
  • Number crunching under C/C++ by kallisti (Score:1) Friday December 01 2000, @09:19AM
  • Re:Java.isAHoax( ) by jovlinger (Score:1) Friday December 01 2000, @09:19AM
  • HelloLine.java by stubob (Score:1) Friday December 01 2000, @09:19AM
  • Re:Java Hating Linux People Listen Up by Diskore (Score:1) Friday December 01 2000, @09:20AM
  • by X (1235) <x@xman.org> on Friday December 01 2000, @11:59AM (#588544) Homepage Journal
    A have to say I don't think you know what you are talking about.

    First off, you are mixing up the notions of OO and "High-Level". I presume by "High-Level" you mean a "High-Level" of abstraction. It is quite possible to have an OO language which provides very little abstraction (you could take a subset of C++ and call it an OO language, and it's certainly not that high level).

    "Garbage Collection" is probably not the right term to use either. What you're talking about here is automatic memory management. There is not necessarily overhead in automatic memory management, and certain techniques for automatic memory manage can reduce overhead substancially.

    Good OO programming can actually significantly reduce the size of a program. Java has been used in embedded environments for this precise reason. By reusing code you save a lot of space.

    Sure, assembler code can achieve essentially anything that is possible in software because it is a form of expressing the exact instructions you are sending to the processor. That being said, in the real world, you don't have an infinite amount of time to optimize your code. You have a fixed amount of time, and as a consequence your assembler programming team is usually going to get it's butt kicked. C compilers have been outperforming hand assembly for quite a while now, and Java is certainly capable of the same feat. It's just a matter of time.

    Java's real overhead comes from the VM. There's a signifcant amount of overhead in that. Now, in some projects, the relative overhead of the VM is puny, and so Java proves to be an exceptionally efficient language. In others, the VM is 10x the size of what you'd expect the whole program to consume. There you are screwed.

    For specific tasks, C (which is considered pretty low level by most) has been beaten by APL, Lisp, Self, Smalltalk, and yes... even Java. It just depends on how well the people writing the software for these different languages tuned it for specific operations. If you are working at a low enough level, you can do that for yourself, which is a nice advantage in some situations. Unfortunately, the price you pay the rest of the time consumes more than enough of your time that you'll never have a chance to do that optimization.
  • Re:I can't stand Java, but maybe that's just me... by joto (Score:1) Friday December 01 2000, @12:04PM
  • Re:I can't stand Java, but maybe that's just me... by pb (Score:1) Friday December 01 2000, @12:06PM
  • Re:Ex. of evilness: order of includes matter... by pb (Score:1) Friday December 01 2000, @12:08PM
  • Re:those are your reasons? by jtdubs (Score:1) Friday December 01 2000, @12:11PM
  • Re:Don't confuse the language with the IDE by clary (Score:1) Friday December 01 2000, @09:24AM
  • Re:Hacker Mentality by kervin (Score:1) Friday December 01 2000, @10:30AM
  • setLayout(null) by Pseudonymus Bosch (Score:1) Friday December 01 2000, @09:24AM
  • Re:I can't stand Java, but maybe that's just me... by joto (Score:1) Friday December 01 2000, @12:14PM
  • game title by brad3378 (Score:1) Friday December 01 2000, @09:26AM
  • Re:Simply annoying... by Xerithane (Score:1) Friday December 01 2000, @12:14PM
  • Use the Java plugin by Matt Lee (Score:1) Friday December 01 2000, @09:28AM
  • good call by denshi (Score:1) Friday December 01 2000, @10:31AM
  • by Trinition (114758) on Friday December 01 2000, @10:31AM (#588557) Homepage
    I think one thing to keep in mind here is the progression of things.

    Years ago, people programed computers by rearraning pluggable wire connections.

    Years later, we had machine code, them ASM, then started to get more functional languages like Fortran, Cobal, C, etc. Now we seem to be moving into OO languages with Java, Smalltalk, C++, etc. (let's forget how *pure* they are).

    The same thing has happened with OS's and programs. People are becoming removed from the hardware. More layers are being inserted inbetween.

    Both of those things are OK because memory keeps getting cheaper and computers keep getting faster. This enables us to force the computer to do more work so the numan has to do less. That goes for using the computer, programming the computer, assembling the computer (anyone remember the pre-PnP days?)

    So, I argue that the fact that Java is slower isn't a bad thing. It's faster development at the cost of runtime speed, just like Justin Dubs said. The older technologies will probably never die out (Lego Mindstorms uses pluggable wires of sorts), but they will no longer be mainstream.

    Who knows what the future holds?

  • Re:I can't stand Java, but maybe that's just me... by Doctor Memory (Score:1) Friday December 01 2000, @10:31AM
  • clean network interfaces by rpeppe (Score:1) Friday December 01 2000, @09:32AM
  • Re:Fighting the Logo Removal by while (Score:1) Friday December 01 2000, @09:32AM
  • java? by SouperMike (Score:2) Friday December 01 2000, @05:11AM
  • That is unfair by Sanchi (Score:1) Friday December 01 2000, @05:11AM
  • Quote from JavaPro magazine by gruntvald (Score:1) Friday December 01 2000, @05:14AM
  • Oh? You mean I can actually turn Java on? by Utoxin (Score:1) Friday December 01 2000, @05:14AM
  • Re:That is unfair by pallex (Score:1) Friday December 01 2000, @05:14AM
  • Then there's Sun's support of the community by brassrat77 (Score:1) Friday December 01 2000, @05:14AM
  • Re:massively wrong by gid-foo (Score:1) Friday December 01 2000, @02:57PM
  • There's so much wrong with this posting... by jjupin (Score:1) Friday December 01 2000, @02:59PM
  • Small & Portable by Chris Siegler (Score:2) Friday December 01 2000, @12:17PM
  • Python replaced Java by heroine (Score:2) Friday December 01 2000, @12:19PM
  • Theme support for java by sabbo (Score:1) Friday December 01 2000, @03:02PM
  • Re:Simply annoying... by marick (Score:1) Friday December 01 2000, @12:26PM
  • Re:New slogan by Cederic (Score:1) Friday December 01 2000, @03:02PM
  • Re:Hacker Mentality by bgalehouse (Score:1) Friday December 01 2000, @10:32AM
  • Re:Simply annoying... by marick (Score:1) Friday December 01 2000, @12:28PM
  • Re:Simply annoying... by gh (Score:1) Friday December 01 2000, @03:06PM
  • Re:He who likes Java does not know other languages by lostguy (Score:1) Friday December 01 2000, @10:33AM
  • Re:Is that compliment or an insult ? by Camel Pilot (Score:1) Friday December 01 2000, @12:33PM
  • Java lacks non-blocking network I/O by nestler (Score:1) Friday December 01 2000, @09:35AM
  • Re:Hacker Mentality by Cederic (Score:1) Friday December 01 2000, @03:06PM
  • Re:Why I dislike Java by PureFiction (Score:2) Friday December 01 2000, @12:36PM
  • Re:Hacker Mentality by The Milkman (Score:1) Friday December 01 2000, @03:07PM
  • Re:Hacker Mentality by uradu (Score:2) Friday December 01 2000, @09:35AM
  • Re:C++ attracts the wrong kind of programmer by bluesummers (Score:2) Friday December 01 2000, @12:36PM
  • Re:History repeating itself? by mistah_monkey (Score:1) Friday December 01 2000, @12:39PM
  • Re:Why I dislike Java by PureFiction (Score:2) Friday December 01 2000, @09:38AM
  • Re:He who likes Java does not know other languages by Bob Ince (Score:1) Friday December 01 2000, @10:37AM
  • Re:java by stubob (Score:1) Friday December 01 2000, @09:39AM
  • Re:Why I dislike Java by PureFiction (Score:2) Friday December 01 2000, @12:40PM
  • Re:Java is the Enterprize Solution by Mr. Piccolo (Score:1) Friday December 01 2000, @09:39AM
  • Re:A Java-coding Linux supporter by jonabbey (Score:2) Friday December 01 2000, @10:40AM
  • Re:Simply annoying... by kevlar (Score:1) Friday December 01 2000, @09:44AM
  • Re:Taco, Chill. by Bob Uhl (Score:2) Friday December 01 2000, @10:41AM
  • Java VM is excellent by q000921 (Score:2) Friday December 01 2000, @09:44AM
  • Re:Don't confuse the language with the IDE by RevAaron (Score:2) Friday December 01 2000, @09:46AM
  • Java is modular and portable! by Bushwacker (Score:1) Friday December 01 2000, @03:15PM
  • Re:I can't stand Java, but maybe that's just me... by Cederic (Score:1) Friday December 01 2000, @03:19PM
  • Re:Why I love Java and why I hate java by harmonica (Score:2) Friday December 01 2000, @03:19PM
  • Re:Why I dislike Java by marick (Score:1) Friday December 01 2000, @12:41PM
  • Re:Ex. of evilness: order of includes matter... by ondelette (Score:1) Friday December 01 2000, @03:20PM
  • Re:Why I love Java and why I hate java by harmonica (Score:1) Friday December 01 2000, @03:25PM
  • Re:The Instructor's fault ??????????? by akintayo (Score:1) Friday December 01 2000, @12:44PM
  • Re:Perl and VBScript don't scale well..... by UnknownSoldier (Score:2) Friday December 01 2000, @03:27PM
  • the article is pretty off the wall... by samantha (Score:1) Friday December 01 2000, @12:48PM
  • Re:Hacker Mentality by uradu (Score:2) Friday December 01 2000, @10:43AM
  • Re:Taco, Chill. by RobNich (Score:1) Friday December 01 2000, @12:53PM
  • Not quite, inheritance is more complex by ondelette (Score:1) Friday December 01 2000, @03:34PM
  • Re:Simply annoying... by prac_regex (Score:1) Friday December 01 2000, @10:44AM
  • Re:IDE?!? by 0xdeadbeef (Score:1) Friday December 01 2000, @12:54PM
  • Ada faster than assembly? by cpeterso (Score:2) Friday December 01 2000, @03:40PM
  • Java Threads Get Their Collective Asses Kicked by Baldrson (Score:2) Friday December 01 2000, @10:44AM
  • Re:Simply annoying... by Frums (Score:1) Friday December 01 2000, @12:56PM
  • Re:C++ attracts the wrong kind of programmer by RevAaron (Score:2) Friday December 01 2000, @10:49AM
  • Re:Simply annoying... by Petrophile (Score:1) Friday December 01 2000, @12:58PM
  • Re:New slogan by CyberGarp (Score:1) Friday December 01 2000, @10:49AM
  • Re:HelloLine.java by pb (Score:1) Friday December 01 2000, @10:50AM
  • Re:Why I dislike Java by droleary (Score:1) Friday December 01 2000, @10:54AM
  • Re:Ex. of evilness: order of includes matter... by pb (Score:1) Friday December 01 2000, @03:44PM
  • ML Server Pages by cpeterso (Score:2) Friday December 01 2000, @03:51PM
  • Re:Java isn't going anywhere? by DanGreen (Score:1) Friday December 01 2000, @01:02PM
  • Re:Why I dislike Java by X (Score:2) Friday December 01 2000, @01:02PM
  • Re:Java Exceptions by BitwizeGHC (Score:1) Friday December 01 2000, @03:56PM
  • You ment linux kernel vs windows kernel? by Otis_INF (Score:1) Friday December 01 2000, @01:03PM
  • Re:those are your reasons? by ajs (Score:2) Friday December 01 2000, @01:06PM
  • Re:Java is the Enterprize Solution by aardvarkjoe (Score:1) Friday December 01 2000, @11:03AM
  • Re:Quit yer bitching! by SpryGuy (Score:1) Friday December 01 2000, @01:08PM
  • Re:java? by rockwalrus (Score:2) Friday December 01 2000, @11:03AM
  • Re:Hacker Mentality by RickHunter (Score:1) Friday December 01 2000, @01:12PM
  • Re:java? by McPierce (Score:1) Friday December 01 2000, @11:05AM
  • Re:Why I love Java and why I hate java by X (Score:2) Friday December 01 2000, @01:12PM
  • Re:Java Exceptions by Bob Ince (Score:1) Friday December 01 2000, @11:09AM
  • Re:Why I dislike Java by PureFiction (Score:2) Friday December 01 2000, @11:14AM
  • Re:C++ attracts the wrong kind of programmer by jallen02 (Score:1) Friday December 01 2000, @09:01PM
  • Re:I can't stand Java, but maybe that's just me... by pb (Score:2) Friday December 01 2000, @09:20PM
  • Re:Servlets and Java Server Pages by DarkProphet (Score:1) Friday December 01 2000, @09:26PM
  • Re:massively wrong by cyoon (Score:1) Friday December 01 2000, @04:24PM
  • Re:Python replaced Java by invalid email (Score:1) Friday December 01 2000, @09:33PM
  • Re:He who likes Java does not know other languages by cpeterso (Score:2) Friday December 01 2000, @04:34PM
  • Re:Why I dislike Java by qabi (Score:1) Friday December 01 2000, @09:34PM
  • Re:Corrected. by domc (Score:1) Friday December 01 2000, @01:14PM
  • Re:Coulda, Woulda, Shoulda by demon (Score:1) Friday December 01 2000, @09:35PM
  • Re:Simply annoying... by droleary (Score:1) Friday December 01 2000, @04:39PM
  • Re:Quit yer bitching! by SpryGuy (Score:1) Friday December 01 2000, @01:17PM
  • Re:C++ attracts the wrong kind of programmer by IkeTo (Score:1) Friday December 01 2000, @04:40PM
  • Re:Different needs by baka_boy (Score:2) Friday December 01 2000, @09:36PM
  • Re:perl for the swine by DarkProphet (Score:1) Friday December 01 2000, @09:36PM
  • Re:C++ attracts the wrong kind of programmer by IkeTo (Score:1) Friday December 01 2000, @04:44PM
  • Re:Taco, Chill. by RevAaron (Score:2) Friday December 01 2000, @11:15AM
  • Tis not so much the language, but the teachers... by leroy152 (Score:1) Friday December 01 2000, @04:56PM
  • Re:Java Threads Get Their Collective Asses Kicked by Baldrson (Score:2) Friday December 01 2000, @09:37PM
  • MI: sucks for modeling, cool for implementation by tmoertel (Score:1) Friday December 01 2000, @01:26PM
  • Re:Why I dislike Java by SpryGuy (Score:1) Friday December 01 2000, @01:30PM
  • Re:I can't stand Java, but maybe that's just me... by rpeppe (Score:1) Friday December 01 2000, @11:18AM
  • Re:Simply annoying... by TummyX (Score:1) Friday December 01 2000, @01:35PM
  • Re:Simply annoying... by droleary (Score:1) Friday December 01 2000, @11:25AM
  • Re:Java attracts the wrong kind of programmer by smack.addict (Score:1) Friday December 01 2000, @05:07PM
  • Re:He who likes Java does not know other languages by IkeTo (Score:1) Friday December 01 2000, @05:07PM
  • Re:massively wrong by Poligraf (Score:1) Friday December 01 2000, @01:39PM
  • Re:those are your reasons? by linuxmop (Score:1) Friday December 01 2000, @01:46PM
  • lots of libs? by fuckface (Score:1) Friday December 01 2000, @01:49PM
  • Re:Java Exceptions by semios (Score:1) Friday December 01 2000, @11:27AM
  • Re:Do 'Linux Lovers' WANT to be left behind? by msobkow (Score:1) Friday December 01 2000, @01:56PM
  • by catseye_95051 (102231) on Friday December 01 2000, @11:28AM (#588663)
    For the record,

    "Fair use" is a copyright conmcept, not a trademark concept.

    As usual, Cmdr Taco displays his "amazing grasp" of intellectual property law.
  • Some syntax by catseye_95051 (Score:2) Friday December 01 2000, @11:30AM
  • Re:Hacker Mentality by jwy (Score:1) Friday December 01 2000, @11:31AM
  • Re:Different needs by DarkProphet (Score:1) Friday December 01 2000, @09:39PM
  • Re:He who likes Java does not know other languages by invalid email (Score:1) Friday December 01 2000, @10:04PM
  • Re:Server side is its strength by mightbeadog (Score:1) Friday December 01 2000, @05:09PM
  • Re:Moderators by revengance (Score:1) Friday December 01 2000, @10:12PM
  • Re:MS VM by Fervent (Score:2) Friday December 01 2000, @10:14PM
  • I'm quite offended: I use Linux, and I like Java by darkeye (Score:1) Friday December 01 2000, @10:29PM
  • What I hate about Java by catseye_95051 (Score:2) Friday December 01 2000, @05:18PM
  • Re:Don't confuse the language with the IDE by msobkow (Score:1) Friday December 01 2000, @02:00PM
  • Re:Simply annoying... by lpontiac (Score:2) Friday December 01 2000, @10:34PM
  • Re:Why I dislike Java by IkeTo (Score:1) Friday December 01 2000, @05:22PM
  • Re:MI: sucks for modeling, cool for implementation by pb (Score:1) Friday December 01 2000, @10:36PM
  • Re:Who jilted whom? by Poligraf (Score:1) Friday December 01 2000, @02:01PM
  • Re:CmdrTaco is an idiot by gabbarsingh (Score:1) Friday December 01 2000, @02:03PM
  • Re:Not quite, inheritance is more complex by IkeTo (Score:1) Friday December 01 2000, @05:30PM
  • Re:Don't confuse the language with the IDE by SpryGuy (Score:1) Friday December 01 2000, @02:06PM
  • Re:Why I dislike Java by IkeTo (Score:1) Friday December 01 2000, @05:42PM
  • 4 kinds of ppl who hates Java by taocita (Score:1) Friday December 01 2000, @05:52PM
  • Re:those are your reasons? by pb (Score:1) Friday December 01 2000, @10:43PM
  • Re:Who jilted whom? by Poligraf (Score:1) Friday December 01 2000, @10:50PM
  • Re:The Instructor's fault ??????????? by pb (Score:1) Friday December 01 2000, @10:50PM
  • Re:Actually... by pb (Score:1) Friday December 01 2000, @10:54PM
  • PYTHON INVADERS!!! by Abreu (Score:1) Friday December 01 2000, @05:58PM
  • Re:Apache/Jserv/Postgres yes; Java language no by pb (Score:1) Friday December 01 2000, @10:55PM
  • Re:those are your reasons? by macpeep (Score:2) Friday December 01 2000, @11:07PM
  • Re:Oh? You mean I can actually turn Java on? by Mad Browser (Score:1) Friday December 01 2000, @02:17PM
  • Re:perl for the swine by jilles (Score:2) Friday December 01 2000, @11:50PM
  • Re:I can't stand Java, but maybe that's just me... by Tralfamadorian (Score:1) Friday December 01 2000, @02:18PM
  • Re:Simply annoying... by divec (Score:1) Friday December 01 2000, @02:19PM
  • Re:Simply annoying... by carlfish (Score:2) Friday December 01 2000, @06:36PM
  • I'm a Linux lover, I love Java... by stain ain (Score:1) Friday December 01 2000, @06:43PM
  • Re:Simply annoying... by divec (Score:1) Friday December 01 2000, @02:21PM
  • Re:Simply annoying... by divec (Score:1) Friday December 01 2000, @02:24PM
  • Re:I can't stand Java, but maybe that's just me... by andr0meda (Score:1) Friday December 01 2000, @02:25PM
  • Re:those are your reasons? by zensonic (Score:1) Saturday December 02 2000, @12:01AM
  • What's the point to all of this by gss (Score:1) Friday December 01 2000, @06:47PM
  • Re:Who jilted whom? by rusti999 (Score:1) Friday December 01 2000, @06:54PM
  • Re:You don't have a clue by boarderboy (Score:1) Friday December 01 2000, @02:27PM
  • Re:C++ attracts the wrong kind of programmer by pod (Score:1) Saturday December 02 2000, @03:28AM
  • Re:Taco, Chill. by ectizen (Score:1) Saturday December 02 2000, @03:57AM
  • Re:Taco, Chill. by UmpaLoompa (Score:1) Friday December 01 2000, @02:35PM
  • Re:Oh? You mean I can actually turn Java on? by jsmaby (Score:1) Friday December 01 2000, @07:11PM
  • Re:massively wrong by Cederic (Score:1) Friday December 01 2000, @02:42PM
  • Re:those are your reasons? by Heretic2 (Score:1) Friday December 01 2000, @02:43PM
  • Re:Simply annoying... by Cederic (Score:1) Friday December 01 2000, @02:49PM
  • There are more by pantherace (Score:1) Saturday December 02 2000, @04:02AM
  • Re:Childish... by ectizen (Score:1) Saturday December 02 2000, @04:14AM
  • Re:Server side is its strength by Ian Bicking (Score:2) Friday December 01 2000, @07:15PM
  • Re:those are your reasons? by rpeppe (Score:1) Saturday December 02 2000, @04:58AM
  • Re:C++ attracts the wrong kind of programmer by CorporateProgrammerD (Score:1) Saturday December 02 2000, @05:14AM
  • VM Too Slow? What About Java Chips? by FrankDrebin (Score:1) Friday December 01 2000, @07:21PM
  • Re:Server side is its strength by Tom (Score:1) Saturday December 02 2000, @05:39AM
  • Not a fully functional CORBA orb by Gerund (Score:1) Saturday December 02 2000, @05:49AM
  • Ignore that... by Gerund (Score:1) Saturday December 02 2000, @05:51AM
  • Re:Why I dislike Java by toriver (Score:1) Saturday December 02 2000, @05:54AM
  • Re:Childish... by Nonexistent (Score:1) Saturday December 02 2000, @06:22AM
  • Re:My thoughts on why java is not good by nagora (Score:2) Saturday December 02 2000, @07:02AM
  • Re:java? by crazylinux (Score:1) Saturday December 02 2000, @07:11AM
  • Re:Corrected. by vanza (Score:1) Saturday December 02 2000, @07:20AM
  • Why I dislike Java (and C++) by namlhaz (Score:1) Saturday December 02 2000, @07:23AM
  • Amen, brother. by alarmo (Score:1) Saturday December 02 2000, @07:57AM
  • Re:Why would anyone want portable code on servers? by Big Jojo (Score:2) Saturday December 02 2000, @08:25AM
  • Re:Java.isAHoax( ) by blue trane (Score:1) Friday December 01 2000, @07:45PM
  • Re:Oh? You mean I can actually turn Java on? by ncc74656 (Score:1) Friday December 01 2000, @07:47PM
  • Re:I can't stand Java, but maybe that's just me... by kcrca (Score:1) Friday December 01 2000, @07:47PM
  • Re:It's been done for a while by blue trane (Score:1) Friday December 01 2000, @07:53PM
  • Re:Corrected. by domc (Score:1) Friday December 01 2000, @08:02PM
  • Re:Not everyone... by rob lihou (Score:1) Saturday December 02 2000, @08:38AM
  • GCJ: GNU Compiler for Java by Big Jojo (Score:2) Saturday December 02 2000, @08:42AM
  • Re:READ THIS!!! SHAME ON YOU ALL!!!! by Camel Pilot (Score:1) Saturday December 02 2000, @09:50AM
  • Re:He who likes Java does not know other languages by stu_coates (Score:1) Saturday December 02 2000, @09:50AM
  • by Ars-Fartsica (166957) on Friday December 01 2000, @08:27PM (#588736)
    If I buy a $70k whiz-bang machine, I want to exploit all of the cool platform-dependent hardware on that machine.

    Damn straight I want to address the actual devices I plonked down all that money for.

  • duh by denshi (Score:1) Saturday December 02 2000, @09:55AM
  • Java is slow? by CordorMTL (Score:1) Saturday December 02 2000, @10:00AM
  • Re:Taco, Chill. by 0xdeadbeef (Score:1) Friday December 01 2000, @08:38PM
  • Re:Java Development by Nissyen (Score:1) Saturday December 02 2000, @10:29AM
  • Re:C++ attracts the wrong kind of programmer by baka_boy (Score:2) Friday December 01 2000, @08:39PM
  • Re:Java attracts the wrong kind of programmer by jallen02 (Score:1) Friday December 01 2000, @08:49PM
  • Re:C++ attracts the wrong kind of programmer by jallen02 (Score:1) Friday December 01 2000, @08:59PM
  • Re:Taco, Chill. by 0xdeadbeef (Score:1) Friday December 01 2000, @09:00PM
  • Too many people associate Java with the Web by DickBreath (Score:2) Friday December 01 2000, @05:37AM
  • Re:Java bad by Shadowlion (Score:1) Friday December 01 2000, @05:38AM
  • Re:I can't stand Java, but maybe that's just me... by Abcd1234 (Score:2) Friday December 01 2000, @05:38AM
  • Re:Java bad by pivo (Score:1) Friday December 01 2000, @05:38AM
  • Re:Quit yer bitching! by NonSequor (Score:1) Friday December 01 2000, @05:38AM
  • by crovira (10242) on Friday December 01 2000, @05:38AM (#588750) Homepage
    Java the language is adequate.

    Java' VM is very immature (the could take a page or five from the Smalltalk people who've been improving theirs since 1980,) and it shows.

    Java the suite of libraries is in the same state as the VM and again could learn from the folks who've been at it a lot longer.

    Java the IDE is pathetic except for IBM's VisualAge for Java which is almost as good as Smalltalk's IDE (VisualWorks, VisualAge for Smalltalk, Dolphin or even the late, lamented VisualWorksSmalltalk.)

    Basically C++, C#, Java and Smalltalk (even Perl, CLOS and php,) as languages are roughly equivalent and its possible to write translators between them.

    The IDEs are what make the difference and if you want a look at the best, check out Squeak [squeak.org] to see just what you can get for free.

    Don't let the syntax defeat you. Its actually the correct one for an object-oriented expression. If you can understand RPN calculators, you have the mental equipment to grok Smalltalk.
  • Re:I can't stand Java, but maybe that's just me... by charper (Score:1) Friday December 01 2000, @05:38AM
  • Re:Java bad (Score:4)

    by _underSCORE (128392) on Friday December 01 2000, @05:39AM (#588752) Homepage Journal
    I just thought I'd correct some of your misconceptions about Java. Are you absolutely sure none of the pages use java? Most java usage now is on the server side using Beans or JSPs. The JSP pages generate the HTML code your browser reads. While there might not be any applets on any sites you visit, java might be generating the content that you are reading.

    Now to counter your java bashing:
    I have never seen a cleaner network/socket interface than I have seen in java. I know C,C++ and perl. Java's interface for networks is incredible. There's no way you could implement something that uses any networked functionality in less code than you'd use in java. It's very abstracted, and clean.

    Java is not a 'buzzword' any more than linux is. I work at a large web company, and I only code in java...under linux. The java API (with a few exceptions) is truly excellent.

    I'm no die hard sun supporter either. Java does have serious problems. Because of the VM architecture, another layer of possible bugs can creep in to your applications. I had an instance a while back where a buggy VM was causing serious problems in one of my applications. Thank heavens I was using linux where a quick network sniff (ethereal is golden) determined the problem was indeed with the VM. Then I called sun, and they refused to admit they had a problem. However, because of the extremely clean network implementation, I was able to re-code some low level modules in about three days.

    To sum it up, java has its problems, but I really think you're missing the point here.
  • Re:Why I love Java and why I hate java by X (Score:2) Saturday December 02 2000, @10:45AM
  • by radish (98371) on Friday December 01 2000, @05:39AM (#588754) Homepage

    Jeez - someone needs to get down off their soapbox.

    Yes Java is more wordy than some languages, personally I like that. I like the fact that it looks more like english than C. It makes it more readable. But if you don't agree then fine don't write stuff in Java.

    As for your comments on the IDE, you seem a little confused. If you didn't like VisualAge (I assume thats what you used as you mentioned IBM) then use something else. JBuilder is great, Cafe is supposed to be good, emacs is fine, hell use vi if you like. I actually did a fair amount of my early java coding with nothing more than vi and jdk. You then go on to rant about JavaBeans and the API without really explaining why you don't like them. The two are entirely unrelated - the API is simply a set of default classes. Again, if you don't like them don't use them, but in my experiences there is some great stuff in there (like the Collection classes for one example). JavaBeans is a standard which your classes may _choose_ to comply with, which means they can be freely dropped into any other JavaBeans aware application. Yes you lose a little flexibility if you use beans, but the power you gain is significant. Being able to code up, for instance, an extension to your preferred IDE and have it seamlessly appear in the menu/toolbars is great. Surely that kind of thing is just what open source is supposed to be about??

    You mention data-hiding. You don't need to have get and set methods for every field you idiot - just the ones you want to be accessable!! Of course you can have true private members and just have no accessors - totally legal. If you want it to implement serialisable/beans then there are a couple of issues but it's no big deal.

    Naming conventions...nothing that important. The convention is that methods look like "thisIsAMethod" and classes look like "ThisIsAClass". But it will still compile if you call it "this_is_a_class" so don't worry.

    C++ is a messy, dangerous part-OO, part-declarative travesty built on top of C, which is a generally decent language if you really need to hit the metal. For writing large scale business oriented apps I'd recommend Java in almost all cases.

  • Apache/Jserv/Postgres yes; Java language no by brlewis (Score:1) Friday December 01 2000, @05:39AM
  • Re:Java Development by Pizza (Score:1) Friday December 01 2000, @05:39AM
  • He who hates Java.... by DickBreath (Score:2) Friday December 01 2000, @05:40AM
  • Re:I can't stand Java, but maybe that's just me... by pb (Score:1) Friday December 01 2000, @05:40AM
  • You go Taco! by The Pim (Score:2) Friday December 01 2000, @05:40AM
  • Re:Taco, Chill. by Cramer (Score:2) Saturday December 02 2000, @11:22AM
  • Re:Moderators by kevlar (Score:1) Friday December 01 2000, @05:40AM
  • Re:C++ attracts the wrong kind of programmer by horza (Score:1) Saturday December 02 2000, @11:44AM
  • Re:I can't stand Java, but maybe that's just me... by pb (Score:1) Saturday December 02 2000, @11:47AM
  • Java is Good. Python Might be Better. by costas (Score:2) Friday December 01 2000, @05:40AM
  • Re:I can't stand Java, but maybe that's just me... by Doctor Memory (Score:1) Friday December 01 2000, @05:41AM
  • Re:Java, it could have been good... by lgraba (Score:1) Friday December 01 2000, @05:41AM
  • Java is a decent concept, but... by ten thirty (Score:1) Friday December 01 2000, @05:41AM
  • University by Plinth (Score:1) Friday December 01 2000, @05:42AM
  • How do I love Java, let me count the ways by mjisgod (Score:1) Friday December 01 2000, @05:42AM
  • Re:Simply annoying... by kevlar (Score:2) Saturday December 02 2000, @01:32PM
  • Re:I can't stand Java, but maybe that's just me... by lpontiac (Score:2) Friday December 01 2000, @05:42AM
  • Re:I can't stand Java, but maybe that's just me... by An Ominous Coward (Score:1) Saturday December 02 2000, @01:51PM
  • Re:Oh? You mean I can actually turn Java on? by Utoxin (Score:1) Friday December 01 2000, @05:58AM
  • I've some more by Christopher Craig (Score:1) Friday December 01 2000, @05:58AM
  • Crunching is not really much better in JNI by binkless (Score:1) Friday December 01 2000, @05:58AM
  • There is no connection.

    I think there is a connection, though kalifa didn't state it: functional programming. ML-based languages are functional, and Python has some very useful functional-ish constructs, especially in 2.0.

    Both make it natural to pass around strings, lists, other structured data, and function references around, but in Java you're limited to simple types and objects.

    Want a method to call you back to do some calculation? In Java, you can't tell it your own method or lambda function, you have to make a new object which implements the interface the external method expects to be able to call. Major PITA. Want an (int, string, boolean) tuple? Have fun creating a whole new class to describe it, or surrounding a Vector with ugly (Cast)s.

    (unrelated rant) And is it just me, or are Java exceptions completely useless? I thought the whole idea of exceptions was to bubble error conditions up to the nearest level of execution that knows how to handle them, but Java requires you to include what possible exceptions can be thrown in the method interface, so it's impractical to not handle exceptions as soon as they occur. It's no better than checking the return code from a function call in C. Actually it's worse since you don't even have the option of *not* checking it; if you don't catch (...), it won't compile, even for exceptions that will never ever happen.


    --
    This comment was brought to you by And Clover.
  • Re:I can't stand Java, but maybe that's just me... by rebelcool (Score:1) Friday December 01 2000, @05:42AM
  • Re:I can't stand Java, but maybe that's just me... by ZeroConcept (Score:1) Friday December 01 2000, @05:42AM
  • Re:A macro system is a hack! by pb (Score:1) Friday December 01 2000, @05:59AM
  • Re:Java is the Enterprize Solution by aardvarkjoe (Score:1) Friday December 01 2000, @05:59AM
  • A macro system is a hack! by ondelette (Score:1) Friday December 01 2000, @05:42AM
  • by macpeep (36699) on Friday December 01 2000, @05:59AM (#588782)

    it takes to.long.to.get.to.my.method(half, of, the, time);

    Huh? And how is this any different from if you have a pointer to a struct with a pointer to a struct with a pointer to a struct in C? If you feel like it, you can have everything declared global and even write code outside of methods. Yes, you actually can do that in Java even though most people don't know it:

    public class TryMe {
    static {
    System.out.println("i am not in a method");
    }
    public static void main(String[] args) {
    System.out.println("i am in main()");
    }
    }

    And of course in a properly designed app you don't HAVE to type long stuff like that because the complexity is hidden in the objects. All that point shows, Taco, is that you can't code object oriented languages properly. Read up on your design patterns...

    and then there's the fact that when Java was new and exciting I wrote a video game in it, only to have Sun cease-and-desist me for calling it "Java Invaders".

    What does that have to do with Java? That has to do with *SUN*.

    (oh, and have you ever noticed that our logo isn't the sun logo? They cease-and-desisted us for using their logo here to, even tho that is definitely fair use).

    And again.. SUN - not Java.

    Other then that, my only problem with Java is that the VM in Netscape is crap.

    And now Netscape instead of Java.. This is actually a reason many people think Java is inheritly unstable and slow tho so it's a little sad. The company I work for has several large scale sites running Java in business critical functions and have uptimes of months and months. No crashes, no speed issues, no Netscape VM's.

    Oh, and their licensing.

    J2SE is free for anyone to use. It's source code is downloadable so you can see how everything works. Granted J2EE has a pretty lame licensing scheme, as do J2ME but most "Linux people" don't know what J2EE *IS* and that most of it can be downloaded separately without the lame licenses.

    And the fact that its bloated.

    Yes, that really is a problem isn't it? A Java 2 SE runtime download is about 5 MB.. That's terrible! Takes 30 seconds on a decent network connection.. and who has hard drive space for that anyway?

    And the fact that I don't have enough time to type in all the reasons it irritated me *grin*

    I think you don't have any good reasons really. If those were your two cents, I'd be asking for change...

  • Re:Oh? You mean I can actually turn Java on? by Utoxin (Score:1) Friday December 01 2000, @05:43AM
  • Re:Why I dislike Java by cob2k25 (Score:1) Friday December 01 2000, @06:00AM
  • C# and Linux by ajlaw (Score:1) Friday December 01 2000, @05:43AM
  • Re:Simply annoying... by evvk (Score:1) Friday December 01 2000, @05:43AM
  • Re:Was the logo really removed? by Col. Klink (retired) (Score:2) Friday December 01 2000, @05:43AM
  • Re:I can't stand Java, but maybe that's just me... by DickBreath (Score:2) Friday December 01 2000, @06:00AM
  • Re:Oh? You mean I can actually turn Java on? by rob_ert (Score:2) Friday December 01 2000, @06:01AM
  • Someone already did. Check out... by mtDNA (Score:1) Friday December 01 2000, @06:01AM
  • Why Jamie Zawinski loves/hates Java. by mtDNA (Score:1) Friday December 01 2000, @05:43AM
  • Re:Simply annoying... by ALG (Score:2) Friday December 01 2000, @05:43AM
  • That's b*ll by ondelette (Score:1) Friday December 01 2000, @06:02AM
  • Re:I can't stand Java, but maybe that's just me... by porkchop_d_clown (Score:1) Friday December 01 2000, @05:44AM
  • Re:Java bad by Solaristrum (Score:1) Friday December 01 2000, @06:03AM
  • Corrected. by Frijoles (Score:1) Friday December 01 2000, @05:44AM
  • Flamebait in article by brokeninside (Score:2) Friday December 01 2000, @06:03AM
  • Re:Oh? You mean I can actually turn Java on? by CoolVibe (Score:1) Friday December 01 2000, @05:44AM
  • not why Linux Lovers hate Java by firewort (Score:2) Friday December 01 2000, @06:04AM
  • Re:Quit yer bitching! by ReconRich (Score:1) Friday December 01 2000, @05:44AM
  • Re:Oh? You mean I can actually turn Java on? by Utoxin (Score:1) Friday December 01 2000, @05:44AM
  • Why a browser? by droleary (Score:1) Friday December 01 2000, @05:45AM
  • Re:Taco, Chill. by RedShodan (Score:1) Friday December 01 2000, @05:45AM
  • Even the FSF likes Java by -kyz (Score:1) Friday December 01 2000, @06:04AM
  • Re:I can't stand Java, but maybe that's just me... by Decado (Score:1) Friday December 01 2000, @06:04AM
  • Re:Quote from JavaPro magazine by rodgerd (Score:1) Friday December 01 2000, @06:05AM
  • *real* C-style /*comments*/ by DickBreath (Score:2) Friday December 01 2000, @05:46AM
  • Don't count out scripting too soon by The Pim (Score:2) Friday December 01 2000, @05:46AM
  • Re:I can't stand Java, but maybe that's just me... by pb (Score:1) Friday December 01 2000, @06:05AM
  • Re:Simply annoying... by lpontiac (Score:2) Friday December 01 2000, @05:47AM
  • Re:Taco, Chill. (Score:3)

    by RevAaron (125240) <revaaron@@@hotmail...com> on Friday December 01 2000, @06:05AM (#588811) Homepage
    That's where I've always thought Java was slow- with GUIs. Not a little "Hello World" or currency converter app, but in actual applications, Java is slow as molasses, IMHO. Java is pretty fast for straight numbers, but it seems to drop the ball for real world apps. Which is not surprising- Java wasn't meant to scale so high.

    There are a lot of other options (that aren't so slow) for cross-platform apps, including GUIs. Some are more cross-platform than others.

    Speaking of GUI api, have you ever heard of OpenStep, er, rather YellowBox, I mean Cocoa [apple.com]?
  • If you need wizards to get by... by ondelette (Score:1) Friday December 01 2000, @05:47AM
  • Re:Java bad by Amokscience (Score:1) Friday December 01 2000, @05:47AM
  • Java attracts the wrong kind of programmer by Baki (Score:1) Friday December 01 2000, @06:05AM
  • Re:Taco, Chill. by kevlar (Score:2) Friday December 01 2000, @06:06AM
  • M$ does make good products. by kel-tor (Score:1) Friday December 01 2000, @05:47AM
  • Re:Why I dislike Java by radja (Score:2) Friday December 01 2000, @05:47AM
  • by Carnage4Life (106069) on Friday December 01 2000, @05:47AM (#588818) Homepage Journal
    Java was a great idea let down by a flawed implementation and a flawed corporate strategy IMHO. What I think is that whilst the language itself isn't really going anywhere fast, the idea behind it will live on.

    Java is used by almost every major player in every major industry in the U.S. and beyond [sun.com]. Personal Java runs on the myriad embedded systems with their own JVM [ibutton.com] and even American Express credit cards [sun.com]. Java servlets and JSP run myriad websites from mail.com [mail.com] to First Union [firstunion.com]. Enterprise Java Beans [sun.com] and it's associate web server platforms has spawned a cottage industry of server platform developers that include IBM, Bea, Allaire and more. Java ships with a free fully functional CORBA orb [sun.com] which allows for rapid development of robust, multi-tiered distributed applications.

    Simply because all the C hackers and Perl users on Slashdot aren't using Java does not mean that it isn't going anywhere fast. I haven't seen a new Linux app coded in Lisp or Smalltalk in a while, this doesn't mean they are dead.

    And it seems as though Microsoft have learned the lesson from this that Sun didn't, so I expect C# to go places Java never will.

    C# will be a Microsoft only language which already puts it behind Java in places it can go. Standardization of the syntax of the language is useless if all the underlying DCOM/COM+/.NET infrastructure exists only on Windows.

    On the other hand, I recently wrote a testing tool for a multibillion dollar corporation that sells SCM software to several Fortune five hundred companies, over the summer and noticed that Java is almost Write Once Run Anywhere as originally promised by Sun. The company I worked for supports six different platforms and is considering supporting Linux as a seventh. Their languages of choice for building tools for cross-platform development were Perl and Java. The chances of them switching all that to C# and losing over 50 per cent of their customers? ZERO

    Of course the actual apps were written in Motif/MFC depending on the platform



    Grabel's Law
  • Re:Taco, Chill. by dbarclay10 (Score:2) Friday December 01 2000, @06:27AM
  • by Fjord (99230) on Friday December 01 2000, @06:06AM (#588820) Homepage Journal

    I originally wasn't going to write a response to this, thinking that the whole premise was ludicrous. There doesn't have to be linux support for Java, you just write java and it runs on any platform. There is a large amount of Open Source support for Java, from the Giant Java Tree [gjt.org], to the Java [apache.org], Jakarta [apache.org], and XML [apache.org] Apache projects. There is even an Open Source application server called Enhyra [enhydra.org] that supports pretty much everything you would expect from an enterprise class J2EE server. And if you don't like open source, then BEA's WebLogic server runs fine on Linux.

    So why is there an impression that the Linux community doesn't support Java? One thing I will say is that if you are a Java supporter, you probably aren't a strong Linux supporter. That is because Java is platform independent. A Java developer doesn't care what platform they are on. Before people respond to this with the typical FUD that Java isn't cross, platform, bear in mind that all of the open source projects above run on all the platforms I've ever used them on, without any recompilation. Xerces worked on Win2K and linux. Tomcat worked on Win2K, linux, and Solaris. I don't know about weblogic, since I haven't tries moving the binaries over (I just used the rpm on linux, install on Win2K). Development in Java is development in Java. If you do it right (meaning don't setLayout(null)), it'll work. If you're server side, you have no worries.

    That being said, Blackdown supports JDK1.3, the latest release of the JDK on any other platform. It seems that the majority of the OS developers I know from the projects I listed use linux as their development machine. And let's face it, Java is giving linux a lot of credibility in the server side market because it's sinking in that spending 20,000 on a single Sparc if better spent on a cluster of linux machines running (insert appserver du jour here).

    Finally, you can go ahead and say that it isn't making any headway on the desktop. Well, that's true, but it isn't making headway on any platform's desktop. Linux is no exception.

    You can try to say that it isn't making headway in the embedded market, but with the KVM for larger embedded devices (>40K RAM), and real-time specification [sun.com] fromt the community development, you'd be wrong.

    I'm surprised that JDJ would print such tripe. I'm not surprised that Slashdot twisted it even farther and threw in a bunch of FUD.

  • Re:Oh? You mean I can actually turn Java on? by pivo (Score:1) Friday December 01 2000, @06:28AM
  • Re:Quit yer bitching! by nate.sammons (Score:1) Friday December 01 2000, @06:06AM
  • How can we use Java for Windows TSR apps? by PGillingwater (Score:1) Friday December 01 2000, @06:29AM
  • Childish... by ondelette (Score:1) Friday December 01 2000, @06:07AM
  • Too many reasons to list by Angst Badger (Score:2) Friday December 01 2000, @06:29AM
  • The Java Logo by SpaceBoy (Score:1) Friday December 01 2000, @06:07AM
  • Re:I can't stand Java, but maybe that's just me... by pb (Score:1) Friday December 01 2000, @05:47AM
  • Haiku by TOTKChief (Score:1) Friday December 01 2000, @06:29AM
  • by blw (121502) on Friday December 01 2000, @06:07AM (#588829)

    This is slightly offtopic, but there are lots of Java misconceptions by people who either haven't worked with it, or who have played with it for a day or two without really understanding what it's all about. I see a few mentioned here in user comments:

    Common Java misconceptions
    • Java is slow - for most apps (client AND server-side), Java is pretty damn fast. I've seen lots of cases where developers were so much more productive in Java than C++ so that they were able to write sophisticated caching algorithms to speed things up much faster than they could have done in other languages. Early implementations of applet classloaders (Netscape, Microsoft) were pretty dumb and hit the network for every class (yuk) but there are better ways to do that nowadays. JITs and HotSpot bring raw Java to C/C++ speed. Period.
    • Linux and Java don't mix - this is bs. I've been developing on Java/Linux for years now, and while there have been quirks and generally things take longer to get ported, it runs just fine. Once we started getting the IBM VM on Linux things really picked up, and now Linux is pretty close in terms of getting the newer APIs near when they come out (look at JDK1.3 and JMF performance pack as examples)
    • Java must be opensourced - I'm going to get crucified for this, but I like Sun having control over Java. The source code is there, so I can always look at the library and VM code whenever I want. Sure, there are a number of bugs that have been outstanding for a bit too long, but I think Sun is getting better at fixing the more annoying ones. Sun has been pretty good at coming out with timely enhancements and I don't want that process slowed down to the point of being Mozilla-esqe (years to release a product).
    • crossplatform doesn't work - this misconception is brought to you by the same people who generally claim Java is slow--people who loaded one or two applets and think that represents what Java is all about. Sure, browsers had (and still have I'm sure, though I don't code applets nowadays) major issues with GUI events and widget painting, but Swing helps out here quite a bit and I believe browsers are at least a little better. In any case, GUI apps and server-side apps are great cross-platform. I have a number of both that I regularly write under Linux and run under NT/Solaris, and my cross-platform issues are very, very, very few.

    ...and too many other misconceptions to mention.

  • by Tower (37395) on Friday December 01 2000, @05:48AM (#588830)
    Using the Sun logo when showing a Sun story doesn't leave any ambiguity (heck, it says SUN all over it), but the swirly cup used on a generic (non-Sun specific) Java discussion waters down their trademark... kind of the whole Kleenex/Band-Aid sort of thing (though I still don't usually think of Sun when I hear 'Java', like I don't think of Kimberly Clark when I hear Kleenex - just any old tissue substance).

    --
  • Re:Taco, Chill. by dbarclay10 (Score:2) Friday December 01 2000, @06:29AM
  • Re:Java Development by Tom Rini (Score:1) Friday December 01 2000, @06:07AM
  • Re:I can't stand Java, but maybe that's just me... by pb (Score:2) Friday December 01 2000, @06:07AM
  • Typical Slashdotters(include the almighty Taco) by darthaya (Score:1) Friday December 01 2000, @06:08AM
  • Ah, No by big-giant-head (Score:1) Friday December 01 2000, @06:08AM
  • Re:Quit yer bitching! by GMontag451 (Score:1) Friday December 01 2000, @05:48AM
  • You won't convince me by pfc (Score:2) Friday December 01 2000, @05:49AM
  • Math the same in all languages? Hardly. by Chris Burke (Score:1) Friday December 01 2000, @06:29AM
  • Exception: org.slashdot.LackOfObjectivityException by thoth01 (Score:1) Friday December 01 2000, @06:30AM
  • Re:Taco, Chill. by cyber-vandal (Score:2) Friday December 01 2000, @06:30AM
  • Re:Oh? You mean I can actually turn Java on? by Utoxin (Score:1) Friday December 01 2000, @06:31AM
  • Re:Taco, Chill. by DickBreath (Score:2) Friday December 01 2000, @06:08AM
  • Re:Simply annoying... by vanza (Score:1) Friday December 01 2000, @06:09AM
  • Re:Simply annoying... by cylab (Score:1) Friday December 01 2000, @06:31AM
  • Re:Server side is its strength by kurowski (Score:1) Friday December 01 2000, @06:31AM
  • Re:Java bad by ZeroConcept (Score:1) Friday December 01 2000, @05:49AM
  • Re:Fsck Java... by Anonymous Coward (Score:1) Friday December 01 2000, @06:10AM
  • by SimonK (7722) on Friday December 01 2000, @06:32AM (#588848)
    Its not "lazy" to worry about performance later. Its best practice. The first pass at a product should get the functionality right, get the bugs out, and keep the design clean. The second pass - possibly before the initial release - should involve testing for the acceptability of performance, profiling to locate the problems, and changes to the design to remove these.
    In my experience Java tends to attract people who want their code to reflect what its intended to do, whereas C++ tends to attract people who like to write obscure code for "performance reasons" because it makes them feel clever. The pleasant thing about Java is that issues with the language do not get in the way of expressing what you want to do.

    Now, as to your example, doing a linear search or a bubble sort is sometimes acceptable. Linear search, for instance, is OK if the data set is small, the operation rare and the data structure you've got does not support something better because it was optimised for some other case. Similarly, recalling "get" methods rather than caching the result is not usually a real performance problem: the VM optimises the fetch away to nothing.

    However, what you report is disturbing. I don't consider overuse of linear search, refetching of already fetched data, and so on, to be performance problems. They're sheer carelessness, and they mess up the structure and expressiveness of the code. They reflect a lack of thought in the design. As you say, laziness. I must say, however, that I've seen this kind of thing in C and C++ much more than in Java, as their lack of class libraries tempts people to do things in stupid ways to avoid having to write the code needed to do it properly.

  • Re:Who jilted whom? by harmonica (Score:2) Friday December 01 2000, @06:32AM
  • Re:Java Development by Tom Rini (Score:1) Friday December 01 2000, @06:10AM
  • Re:Java is the Enterprize Solution by Anoriymous Coward (Score:2) Friday December 01 2000, @05:51AM
  • java by The Milkman (Score:2) Friday December 01 2000, @06:32AM
  • Re:Oh? You mean I can actually turn Java on? by pivo (Score:1) Friday December 01 2000, @05:52AM
  • Re:Actually... by TomRitchford (Score:1) Friday December 01 2000, @06:11AM
  • Java on Linux by F.O.Dobbs (Score:1) Friday December 01 2000, @05:52AM
  • shortsighted hacker whiners by cbernard (Score:1) Friday December 01 2000, @05:52AM
  • Re:Taco, Chill. by DickBreath (Score:2) Friday December 01 2000, @06:12AM
  • Re:Taco, Chill. by kevlar (Score:1) Friday December 01 2000, @06:12AM
  • Re:I can't stand Java, but maybe that's just me... by cheezus (Score:1) Friday December 01 2000, @05:52AM
  • Re:Taco, Chill. by kevlar (Score:2) Friday December 01 2000, @05:52AM
  • Java scales better as a language by ondelette (Score:1) Friday December 01 2000, @05:52AM
  • Why are java and linux mutex? by rickerbr (Score:1) Friday December 01 2000, @06:33AM
  • Re:Simply annoying... by ThomK (Score:1) Friday December 01 2000, @06:34AM
  • Re:I can't stand Java, but maybe that's just me... by Spasemunki (Score:2) Friday December 01 2000, @06:34AM
  • Re:We all know that real men program in C by bcrowell (Score:2) Friday December 01 2000, @06:12AM