2 ms·
> 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
by 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.