You are not logged in.

#26 2005-07-17 02:08:33

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 489

Re: Sick of Java

I like how well java handles threads, as well as the whole object oriented thing (then again, I'm a fairly new programmer). I don't like the JRE. I wrote an extremely simple program - 64 KB for the entire JAR, including the commapi stuff from Sun. It takes 17MB of to run, and the thing does about zero processing. All the program does is store a (miniscule) matrix of ramps, about about 100-200KB of gathered data. I should guess the program shouldn't take more than 400KB of RAM to run.

Also, I wrote two programs - one in C (pure ANSI) and one in Java, to do exactly the same thing. The C program and the Java program executed at more or less the same speed. The C program took almost no RAM, and the Java program took 16MB. All it did was repetitive polling of a serial device. The C program could run on anything from a graphing calculator on up. The Java program would need a beefy machine to run.

Offline

#27 2005-07-17 02:55:20

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Sick of Java

max_sipos wrote:

And theoretically, there could be an XML gui editor with some nice layout handling - I don't if there is something like that? I would definitely love it for docbook..

XML-Mind is one that I know of.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#28 2005-07-17 21:11:38

Euphoric Nightmare
Member
From: Kentucky
Registered: 2005-05-02
Posts: 283

Re: Sick of Java

Back to your original post, I agree with you about how it java can be quite complicated, and very hard to maintain the KISS philosophy.  I think thats one of the reasons I left it after studying it for two years at a tech college.

And about it running slow.  I've seen java programs run slowly comparitively speaking, but i think its all been caused sloppy code.  At work, we support this java program that does pretty much everything they need to do.  The project was rushed because they were pressured by GM, and therefore its the buggiest software ever written (That i have ever seen), and it runs quite slow.

Offline

#29 2005-07-17 22:18:01

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 489

Re: Sick of Java

Where in Kentucky are you?

Offline

#30 2005-07-18 01:14:54

Euphoric Nightmare
Member
From: Kentucky
Registered: 2005-05-02
Posts: 283

Re: Sick of Java

Right in the middle...just south of lexington

Offline

#31 2005-07-18 08:45:39

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: Sick of Java

I don't understand how you managed to code in Java for so many years and still hate XML because it contains too much text smile

I've tried to learn how to code in Java - it didn't seem too complex but it sure was a lot of writing. It's way too protective of the coder, as if the coder hardly knows what s/he's doing.

The slowness of Java is GUI related. Because its GUI toolkit is written in Java itself it ends up being slow. Python can make use of existing C/C++ libraries. That's a very good thing. I'm not sure wether Java can do so as well or not. If it can, maybe it should.

Offline

#32 2005-07-18 09:14:48

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: Sick of Java

sweiss wrote:

The slowness of Java is GUI related. Because its GUI toolkit is written in Java itself it ends up being slow. Python can make use of existing C/C++ libraries. That's a very good thing. I'm not sure wether Java can do so as well or not. If it can, maybe it should.

Java can interface native libs via JNI. This is how the SWT lib can provide heavyweight GUI components for different platforms.

Java GUIs used to be slow but I really don't think that's the case any more.

Offline

#33 2005-07-18 14:37:04

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sick of Java

Yeah... its kind of funny. All the old myths about Java being slow or bloated I disagree with (although bloat is becoming an issue with each new JRE). My problems with Java are for other reasons...

I think sweiss is right. I never thought of it that way, but Java is too protective... many years ago I got fed up with basic and moved to Java for something more powerful. Now the same is happening, I guess.

This also explains why Java is so popular in business. The coders in businsess tend to be methodical types.

Here's an odd note. I moved away from Basic cause it was interpretted (or more specifically, VB required you to pay for a compiler)... I moved to Java which is half interpretted, half compiled. Now I'm moving onto Python... back to interpretters.

Go figure.

Dusty

Offline

#34 2005-07-18 15:02:45

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: Sick of Java

how much memory does javas interpreter take?
does it really take 17mb like kleptophobiac said?

pythons interpreter takes around 800kb and luas 100kb,
that's not much to me,


arch + gentoo + initng + python = enlisy

Offline

#35 2005-07-18 16:39:36

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: Sick of Java

Dusty wrote:

Now I'm moving onto Python... back to interpretters.

Also, you can compile Python code into bytecode using a module included in the official package.

Offline

#36 2005-07-18 16:45:38

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sick of Java

sweiss wrote:
Dusty wrote:

Now I'm moving onto Python... back to interpretters.

Also, you can compile Python code into bytecode using a module included in the official package.

True, but Python bytecode isn't very... bytecody.

Offline

#37 2005-07-18 17:01:08

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: Sick of Java

Hmm yes, I've just googled a little and stumbled on a thing called decompyle, looks like you can recreate the original python source from the bytecode.

Offline

#38 2005-07-18 17:20:36

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Sick of Java

Dusty wrote:
sweiss wrote:
Dusty wrote:

Now I'm moving onto Python... back to interpretters.

Also, you can compile Python code into bytecode using a module included in the official package.

True, but Python bytecode isn't very... bytecody.

Pyrex! Psyco!

Offline

#39 2005-07-19 08:47:44

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sick of Java

whenever you run a python program, or setup.py install, it automatically compiles to a pyc, which it uses next time.

all hte pyc really does is speed up the loading of modules, it doesnt provide any improvements in speed afterwards.

all being said, python is pretty quick anyway, if the program is well written, just like java is good unless poorly written.

iphitus

Offline

#40 2005-07-20 16:09:12

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sick of Java

Out of curiosity, can anybody come up with a programming task for which Java is definately better suited than Python?

I'm guessing maybe an enterprise server. But Python supports sockets and multithreading just as cleanly as Java or better, so I can't really justify that. To be honest, I don't even know exactly what an enterprise server actually does. :-D

Dusty

Offline

#41 2005-07-20 16:21:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Sick of Java

Dusty wrote:

I'm guessing maybe an enterprise server. But Python supports sockets and multithreading just as cleanly as Java or better, so I can't really justify that. To be honest, I don't even know exactly what an enterprise server actually does.

That's what everyone always says "java is made for enterprise level stuff" - oh yeah? well, I challenge you to find me an "enterprise level" task which is unique to the fact that you are working in the context of an enterprise... i.e. "we need to send financial data from a unix machine to a windows server" - hmmm I transfer data from my linux machine to windows all the time... tcp, udp, jabber, http - the protocol/transport doesn't matter, it can be done anywhere.... "we need an app that runs on solaris AND random-unix-flavor-X" - again, this is nothing...

"java is for the enterprise" is just as much a buzz word as AJAX and XML and "extensible"... nothing is "for the enterprise" - hell, I can write you an app in *javascript* to send financial data from one machine to the other...

Offline

#42 2005-07-20 16:25:55

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Sick of Java

I think you interpret the phrase "java is made for enterprise level stuff" incorrectly.

What it means is, enterprise level stuff has to *look* like it was hard, or your boss won't think you're worth your wages. So Java is really good for obfuscating these details...

Dusty

Offline

#43 2005-07-20 17:08:53

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: Sick of Java

Maybe it's good for the enterprise because of its protection mechanism - forces you to do actual designing and thinking before writing.

Maybe it's good for building projects, again, for its self-defence mechanism.

I've yet to work in an enterprise, so these are just speculations. Still I think that in most situations it is just a massive overhead, which can easily distract you from the task you are trying to do.

Seems to be more layout than actual coding.

Offline

#44 2005-07-27 02:34:15

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,296
Website

Re: Sick of Java

Dusty wrote:

I guess Java is to programming languages as Red Hat is to Linux Distributions.

Now when you said it, that's what I felt when heard first time about Java. The person who presented told about its huge popularity and how unwise if not studied. What the mass thinks whats good for them, may not be good for Archers who love KISS. smile


Markku

Offline

#45 2005-07-27 04:08:37

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sick of Java

sweiss wrote:

Maybe it's good for the enterprise because of its protection mechanism - forces you to do actual designing and thinking before writing.

Maybe it's good for building projects, again, for its self-defence mechanism.

what's that? java knows kung foo?

Offline

#46 2005-07-27 05:47:31

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: Sick of Java

I bet J2EE 1.5 does.

Anyway I was referring to the huge statements you have to make in Java before you can do the actual coding, all that public static void etc.

Offline

#47 2005-07-27 12:12:03

demonus
Member
Registered: 2005-01-31
Posts: 62

Re: Sick of Java

IMNSHO, People that still code Perl should be eligible for early retirement

don't get it what's wrong with perl?

Offline

#48 2005-07-27 12:30:13

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: Sick of Java

demonus wrote:

IMNSHO, People that still code Perl should be eligible for early retirement

don't get it what's wrong with perl?

Phrak's point IIRC was that it's just darn ugly. From my experience, when I wrote a Perl script, should I look at the code the day after, I couldn't tell what it was doing! It's syntax is surprisingly cryptic.

Python is much nicer. Haven't tried Ruby but I'm sure it's similarly lucid.

Offline

#49 2005-07-27 12:36:53

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Sick of Java

/. wrote:

XML is like violence. If it doesn't solve the problem, use more.

hehe, enjoy wink

Offline

Board footer

Powered by FluxBB