Article View: news.software.nntp
Article #75505Re: Help me!! Why java is so popular
From: Gay Queer Weightlifter
Date: Mon, 12 Mar 2007 02:16
Date: Mon, 12 Mar 2007 02:16
299 lines
14293 bytes
14293 bytes
In article <1171222837.319331.174040@p10g2000cwp.googlegroups.com>, "raddog58c" <raddog@kc.rr.com> wrote: >> >> My point is that those who use Windows already accept bloatware and the >> concomitant hit on performance. It may not be such an impediment to platform >> effectiveness as some may think. >> >> - Lew > >That's an excellent point. > >To the spirit of the thread, and from my experience working in >reasonably diverse range of languages, I still don't believe Java's >popularity has in any way, shape or form been a byproduct of its >legendary performance. I think in many cases the overhead incurred to >run a JVM is acceptable because of the functionality the code base >provides. > >So winding back a bit, the reason that functionality can exist with >Java has much to do with the language/environment which frees >programmers from a lot of resource management and allows them to focus >more on plugging together components. Time to market and all that >jazz. > >Like a lot of interpreted languages, Java's development cycle is >pretty excellent I think. A programmer can get a fairly complicated >application off the ground quickly due to a number of things brought >about both by the interp-language development paradigm that allows for >immediate detection of errors and compile-and-test-as-you-code >sessions. > >I think those are the kinds of things which has made Java popular. >The performance issues are the trade off -- I find most Java-only >coders will explain away any performance issues by pointing out all >the great things you get in return, or how in controlled or specific >circumstances modern JVMs can use environment-specific knowledge to >coerce code into a better behaving form. And don't forget about the very fact that with JVM, you have to load the entire JVM to run a 2+2 program and that magnifies the size of a 1 meg program by the factors of magnitude. Before your main() is hit, it already swallowed at least 10 megs, and for what? Secondly, there is no mechanism allowing users to run the application in native mode, so, to deliver a 1 megs app, you need to include at least 5 more megs of JVM and convince users that they MUST install that JVM, otherwise they won't even be able to run your app. I wish there was a native mode support, where java app is compiled without JVM, which is also a bloatware. You should be able to deliver you app in .exe format where user simply souble clicks on it and it runs, and there is no need to carry another 10 megs of its fat. Vast majority of systems out there are windows based. Third, java has too many layers of abstraction, which, in turn, translates into pointer pointing to pointers, pointing to yet more pointers, which can not possibly translate into the equivalent performance. All these layers are also a load on the developer as you can not possibly do the simpliest things in a most direct way. Especially for the people that are new to java, it becomes just a royal pain on the neck. If you hit that help key expecting to get a simple answer on your simple problem, you'd have to go thru several layers of abstraction and, therefore, learn a lot of those things, you don't need at the moment. And this is so pervasive, that there is basically exists no aspect of java where things are kept simple. Yes, it does provide for more universality, but some things look like an overkill by factors of magnitude. Another thing is the very lexicon of language. Those things that people know for many years and clearly understand the meaning of, are all renamed. GUI elements are called components and containers, and just about everywhere you look, you'd have to deal with pretty non-intuitive concepts. First of all, components and containers have no association in human mind with GUI elements or structures. Both of these rather associate with database type of ideas, storage mechanisms, etc. When I first heard of "components" and "containers", I had goose bumps, as I though they are going to bring up the same thing as windows does, a 5 layered set of complexities and an overkill by the factors of magnitude. And this goes to just about any common sense programming issue. It is literally everywhere. Another issue is this obscession with obsoleting things. When you get the next version, you are pretty much guaranteed that some things in your old code would have to be rewritten to use the never version of the same thing. I never heard of such issues with C/C++ code. I like to compile code on the most detailed level of warnings and, when program compiles with warnings, I don't like it. When I hit that "build" key, just about ALL I want to see, is a one line message: Success. As to graphical aspects of GUI design, to see people telling you that about the best way to do it, is to write a GUI code by hand is simply insane! WHAT? By HAND is the BEST way of writing a GUI code? In Java? I understand if it is an assembler, it is a different story. In my entire experience with windows and C/C++, I never even heard such a concept as writing gui with my hex calculator. And we are not talking about all the various versions of layout managers. For what? And about the most powerful of them, the gridbag, is screwed up in the most profound sense of the word. Why? Finally, just about every single "new" concept in java, is what already existed in object oriented programming, be it exceptions, events, file streams, stacks and just about everything you can put your finger on. Just about the only difference is that it is all wrapped in a different package and named in just about the most unintuitive way conceivable. So... For you to write just about any realistically complex app, you'd have to learn the entire thing, and that can take years because of all those layers upon layers upon layers of abstraction, that promise you the way to a wonder world at the end. Meanwhile, you'd have to sweat and waste days on the simpliest concepts conceivable. So, the learning curve is on the par with bloatware. Another lil thing: can anyone imagine that standard C/C++ code will become OBSOLETE with a new version of compiler? Never heard of such a thing. File is a file and gui is just gui, knob is a knob and text field is a text field. Why should I abandon AWT? It is just like abandoning some assembly level instructions in your CPU. The reason Intel and Microsoft gained a monster part of the market is because even today, you can pull a program, written a generation ago, and it will perfectly run on the latest and gratest version of your bloatware, be it in a DOS box. The whole issue JVM needs to be looked at. The fact that you need to load the whole thing every time you run ANY app, is a monster size overkill. It is like loading an operating system just to output "hello" string on your terminal. >I'm fluent in a decent array of languages, compiled and interpreted, >as well as a good number of assembler languages. If it does nothing >else, it helps me to avoid falling madly in love with any one language >and making everything about it okay. The JVM and its mitigation >strategies are great, but it's not about that -- it's about Java's >ease of coding that's made it popular. Coding Java is like traveling >in a Winnebago, where coding C is like traveling on a dirt bike. >There are tradeoffs to both.... > > >One other point related to Java on the downside IMO is a side effect >of exactly what's good about Java: ease of code reuse. > >I have seen a lot of inefficiently written components used in a lot of >applications. Because Java encourages the programmer to let the JVM >handle a lot of details it seems to me -- and I welcome other opinion >on this -- that many Java coders get "lazy" about what's really going >on inside the code. If it's slow, they write it off as "there's a lot >going on." They seldom dig much below the surface, because that's >what Java seems to be trying to free you from having to do. It's >valuable in Java to make sure the appropriate techniques and objects >are used and to understand the implications of a bad choice -- refer >back to my 1st Java program, the "grep" implementation, to see what >wrong use/type of objects can do to runtime performance. > >Java is popular partly (largely?) due to the ease with which you can >get an app going, but unless one is disciplined that very speed can >lead to less than optimal solutions. I'm certainly not suggesting >easier programming languages are bad, just thinking outloud with >respect to human nature. > >Thoughts/experiences? I wish the megawars between Sun, Microsoft and other major players will eventually lead to a commonly accepted set of standards, instead of sitting here, concerned that with next version, you may not even have legal rights to include the next version of their super-sexy version of JVM or whatever they call it in the next version of their bloatware. The very fact that Microsoft does not support anything beyond AWT, is about the worst news for the entire java world. I predict that in 2-3 years, Microsoft will obliterate the whole java philosophy and mechanisms, and people would not even see the word Java in documentation. And they have ALL sorts of technologies developed, time tested, and working perfectly well. Never mind, it is called bloatware, or even monsterware, as far as i can see. It is ALL bloatware, no matter how you look at it. You either incur it this way, or that. That is the whole difference. When I read some articles regading the performance issues and Java freaks even going as far as to claim that java could be even MORE efficient that the native mode programs, I could not believe my eyes. What happened to their brains? Have they all gone mad? How this could POSSIBLY be, even in theory? It is EXACTLY the same argument as to claim that interpreter is more efficient than the compiled code, just because it has some optimized primitives. I, personally, do not even want to hear about things like JVM. To me, it should be all hidden and flexible enough not to carry factors of magnitude more fat than I need. How can anyone in his clear mind claim that C++ code is less efficient? Then what is JVM? How come for a program just to come up, you need to wait for so long? How come my code carries the whole universe of Java with the simpliest program, where 90% of it is never even executed and simply sits there eating your memory like a packman? As I said before, and repeat it again, unless java is wired into your hardware, which is probably a generation in the future, I just don't see it becoming that brick out of which any building is built. Way too much overhead, WAY too much of unnecessary complexity, way too many layers of abstration. The things they wired into very language, could be easily provided with off the shelf libraries and efficiently compiled so that you only carry those things your program refers to, and, in run time, only those things you actually need, are loaded, and loaded on demand. To me, any good program should come up instantly. It is a royal pain on the neck to even attempt to start just about any major program out there as you have to wait for minutes till you see the main screen. By the time you see it, look at your process monitor. You lost tens and even hundreds of megs of memory, and you didn't even BEGIN to do anything. Bloatware? Bloatware is a compliment. It is rather a lunacyware. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "If it were not for the strong support of the Jewish community for this war with Iraq, we would not be doing this. The leaders of the Jewish community are influential enough that they could change the direction of where this is going, and I think they should." "Charges of 'dual loyalty' and countercharges of anti-Semitism have become common in the feud, with some war opponents even asserting that Mr. Bush's most hawkish advisers "many of them Jewish" are putting Israel's interests ahead of those of the United States in provoking a war with Iraq to topple Saddam Hussein," says the Washington Times.
Technical Details
Message-ID:
<u21didd4ol8ssgtqkhijsr4thth1z@4ax.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!novia!feeder.news-service.com!newsfeed.freenet.de!news.ett.com.ua!news.te.net.ua!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny04.POSTED!760c3fd9!hotmail.com!anorexicReferences:
<1170433991.897057.314200@h3g2000cwc.googlegroups.com> <epvshj$d16$1@news2.netins.net> <1170798352.496181.57320@v33g2000cwv.googlegroups.com> <6u7yh.4673$Fm2.930@newsfe1-gui.ntli.net> <1170806615.534513.307140@l53g2000cwa.googlegroups.com> <1170873873.43161@news1nwk> <1170878312.255778.127390@v33g2000cwv.googlegroups.com> <45CA418E.1080808@nospam.lewscanon.com> <1171134790.223819.163160@l53g2000cwa.googlegroups.com> <PradnaFt-YwRK1PYnZ2dnUVZ_g-dnZ2d@comcast.com> <1171222837.319331.174040@p10g2000cwp.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <u21didd4ol8ssgtqkhijsr4thth1z@4ax.com> Subject: Re: Help me!! Why java is so popular Date: Mon, 12 Mar 2007 02:16:48 GMT From: Gay Queer Weightlifter <anorexic@hotmail.com> References: <1170433991.897057.314200@h3g2000cwc.googlegroups.com> <epvshj$d16$1@news2.netins.net> <1170798352.496181.57320@v33g2000cwv.googlegroups.com> <6u7yh.4673$Fm2.930@newsfe1-gui.ntli.net> <1170806615.534513.307140@l53g2000cwa.googlegroups.com> <1170873873.43161@news1nwk> <1170878312.255778.127390@v33g2000cwv.googlegroups.com> <45CA418E.1080808@nospam.lewscanon.com> <1171134790.223819.163160@l53g2000cwa.googlegroups.com> <PradnaFt-YwRK1PYnZ2dnUVZ_g-dnZ2d@comcast.com> <1171222837.319331.174040@p10g2000cwp.googlegroups.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!novia!feeder.news-service.com!newsfeed.freenet.de!news.ett.com.ua!news.te.net.ua!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny04.POSTED!760c3fd9!hotmail.com!anorexic Newsgroups: news.groups, alt.slack, alt.config, news.software.nntp, alt.usenet.kooks alt.usenet.kooks Organization: News Admins Against News.Admin.Moderation Group Lines: 299 NNTP-Posting-Host: d50-75.tenet.odessa.ua X-Trace: toster.te.net.ua 1173679273 27928 195.138.75.50 (12 Mar 2007 06:01:13 GMT) X-Complaints-To: abuse@te.net.ua NNTP-Posting-Date: Mon, 12 Mar 2007 06:01:13 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 4.72.3110.1