2 ms·
> Python+PyPy beats Java hands down. . Every single argument applies to Python vs. Java or Python vs. C/C++ more than it does to Java vs. C/C++ Not at all. Py
by pron 13y ago
> Python+PyPy beats Java hands down. . Every single argument applies to Python vs. Java or Python vs. C/C++ more than it does to Java vs. C/C++
Not at all. Python does not even begin to apply a minuscule portion of the optimizations the JVM performs. Also, I wasn't talking theory, I was talking practice: I've worked on porting two multi-million LOC soft real-time applications from C++ to Java, and a few smaller programs; big performance improvements in all cases. I was simply explaining why Java performs better in practice, not speculating why it would. But if you haven't seen that with your own eyes, all that's left for me is to explain why this is so.
> Personally, I've never met nice readable Java code.
This has no relevance to the discussion, though there's plenty of nice, readable Java code. Anyway, I was talking about the JVM, not specifically Java the language.
> I'm sure Notch writes better code. But as far as I can tell he's the only one.
Right... and as far as I can tell, you're not really into Java :) That's okay. Millions of developers are.
- beagle3 13y ago> Not at all. Python does not even begin to apply a minuscule portion of the optimizations the JVM performs Are you familiar with PyPy? It doesn't go as far as the JVM, but "minuscule" is definitely wrong. > I was talking practice: I've worked on porting two multi-million LOC soft real-time applications from C++ to Java, and a few smaller programs; big performance improvements in all cases. My experience is the opposite. Not two million lines - just a few tens of thousands, but still. > This has no relevance to the discussion, though there's plenty of nice, readable Java code. Anyway, I was talking about the JVM, not specifically Java the language. One of the previous posts (to which I was replying) claimed that Java is faster in practice because (paraphrasing) it is nicer to read and write, and that was a response to that. > Right... and as far as I can tell, you're not really into Java :) That's okay. Millions of developers are. That's good, that guarantees I'll always be in demand :)
- pron 13y ago> My experience is the opposite. Not two million lines - just a few tens of thousands, but still. But that's the whole point. I could probably write a C++ program of that size that beats a Java program of that size, provided that they're single threaded. But programs of that size are usually written by a single developer or a very small team. Many programs aren't that small. But even at this size, unless the problem is embarrassingly parallel, a multi-threaded Java program would often perform better, mostly due to concurrent data structures that require (or greatly benefit from) GC.