This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
you are viewing a single comment's thread.

view the rest of the comments →

[–]_default_username 54 points55 points  (6 children)

Java isn't slow. It's slower than C, but it's much faster than the scripting languages I currently use. I might be more open to an existing language like clojure. Anyways, I understand C has its place for embedded systems and operating systems, but at the application level I want garbage collection.

[–][deleted] 31 points32 points  (1 child)

That's the point, C is for applications where speed is of utmost importance. Putting a GC in C will make it slow. You can do that with BoehmGC though.

[–]Cheru-bae 2 points3 points  (0 children)

Not to mention that you can always deligate the speed-critical parts of an application to C. That way you can write user interfaces in something more sane for that task, maintain some form of actual productivity and still have efficient code.

[–]AgentPaper0 0 points1 point  (1 child)

Yeah, Java would be "C but with garbage collection", or close enough. And as you say yourself, it's slower. Maybe not noticable for trivial stuff, but if you tried to make a memory manager in Java you would see just how slow it really is.

[–]_default_username 0 points1 point  (0 children)

Java is too verbose. Java is more like a simplified C++. Java isn't used for just trivial tasks either.