Live data from Hacker News

Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

forbes.com

11–18 of 18 posts

Re: Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

#11
post #9

Earlier quoted context omitted.

I think that quote was about performance. Full context: > While it performs pretty well nowadays, it still isn’t competitive with C or C++ and, with a little love, Haskell and OCaml can or will eclipse it in that domain. But don't underestimate C and C++. They're still widely used; by some measures, moreso than Java.

I don't love java. Not at all. All my out of work coding is in other languages - primarily clojure since I can make use of the java I write at work. However, my company has a risk management system that was written in C++. It's a system of large matrix operations that uses a lot of CPU and memory. Being one of the few neck beards at my company who had ever written C++, I was tasked with translating it to java. In ord…

There really isn't much difference when comparing code that does the same thing in roughly the same way. As you noticed, you can even get some performance freebies in managed world for a variety of reasons. However, that's not the point. You can tune your C or C++ to a much higher degree than you can managed code, and that's where they win.

Re: Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

#13
post #8

Earlier quoted context omitted.

Programs written in C and C++ are certainly much, much, much more widely used than programs written in Java.

Yeah, people forget that the operating systems that run the world are written in C/C++. C underlies everything .

Are you serious ? There are what a dozen operating systems in the world.

There are probably tens of thousands of companies who are using Java for business applications. Java and to a lesser extent .Net run pretty much everything in the enterprise.

Re: Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

#14
post #11
post #9

Earlier quoted context omitted.

I don't love java. Not at all. All my out of work coding is in other languages - primarily clojure since I can make use of the java I write at work. However, my company has a risk management system that was written in C++. It's a system of large matrix operations that uses a lot of CPU and memory. Being one of the few neck beards at my company who had ever written C++, I was tasked with translating it to java. In ord…

There really isn't much difference when comparing code that does the same thing in roughly the same way. As you noticed, you can even get some performance freebies in managed world for a variety of reasons. However, that's not the point. You can tune your C or C++ to a much higher degree than you can managed code, and that's where they win.

This has been covered ad naueseum. There are plenty of situations where both the C/C++ and Java sides of the fence will beat each other in benchmarks. Especially if you have average developers programming both platforms.

Re: Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

#15
post #11

Earlier quoted context omitted.

There really isn't much difference when comparing code that does the same thing in roughly the same way. As you noticed, you can even get some performance freebies in managed world for a variety of reasons. However, that's not the point. You can tune your C or C++ to a much higher degree than you can managed code, and that's where they win.

This has been covered ad naueseum. There are plenty of situations where both the C/C++ and Java sides of the fence will beat each other in benchmarks. Especially if you have average developers programming both platforms.

Yes, that "average developers" part is the important bit. Not sure what your point is here. The parent was talking about their experience in porting C++ code to Java, noting a performance improvement. In terms of performance, you don't use a language like C++ because it is going to be faster than everything else out there in all cases, you use it because you can eek out more performance than you can in using a language such as Java.

Re: Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

#16
post #8

Earlier quoted context omitted.

Yeah, people forget that the operating systems that run the world are written in C/C++. C underlies everything .

Are you serious ? There are what a dozen operating systems in the world. There are probably tens of thousands of companies who are using Java for business applications. Java and to a lesser extent .Net run pretty much everything in the enterprise.

Yep, even Google use it, but they are trying not to, and you should too.

Enterprise software is a cess pool of crappy software written by underachieving engineers and dominated by consultants who literally make money through failure.

If you deny this then we probably need to talk about Evolution and Climate Change next!

Re: Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

#17

Earlier quoted context omitted.

I think that quote was about performance. Full context: > While it performs pretty well nowadays, it still isn’t competitive with C or C++ and, with a little love, Haskell and OCaml can or will eclipse it in that domain. But don't underestimate C and C++. They're still widely used; by some measures, moreso than Java.

I'm using Java to process over a trillion files under 3 days. Sometimes its the programmer skills, not the language itself that should be blamed about performance.

And that data is meaningless without hardware specs.

Re: Java Makes Programmers Want to Do Absolutely Anything Else with Their Time

#18
post #11
post #9

Earlier quoted context omitted.

I don't love java. Not at all. All my out of work coding is in other languages - primarily clojure since I can make use of the java I write at work. However, my company has a risk management system that was written in C++. It's a system of large matrix operations that uses a lot of CPU and memory. Being one of the few neck beards at my company who had ever written C++, I was tasked with translating it to java. In ord…

There really isn't much difference when comparing code that does the same thing in roughly the same way. As you noticed, you can even get some performance freebies in managed world for a variety of reasons. However, that's not the point. You can tune your C or C++ to a much higher degree than you can managed code, and that's where they win.

My point was that the C++ version had been tuned over several years to get as much performance as it could. Replicating the C++ code in java wasn't the optimal strategy for performance in java, but it was the optimal strategy for getting the correct results. There are many optimizations I could have gotten by rewriting the java code in a manner that took better advantage of java's strengths, but alas the project is in other hands now....
Post reply on HN