r/Python • • Nov 13 '20

News Python swallows Java to become second-most popular programming language

https://www.theregister.com/2020/11/12/python_swallows_java_to_become/
2.3k Upvotes

205 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Nov 13 '20

Isn't Java used over C/C++ precisely because of it's stability?

8

u/x3r0x_x3n0n Nov 13 '20

We had a contest among us friends to write the best version of a breadth first search to solve a maze of 5000x5000 now i dont know about the capabilities of my peers they chose java i chose pure C. both ran it and I can tell you we gave up on the java programs and went out to have coffee. Legend has it they are still running to this day :D

0

u/[deleted] Nov 13 '20

[deleted]

11

u/panderingPenguin Nov 13 '20

All you've proved is that a language that's good for writing huge business systems isn't great for writing super tight, highly performant, implementations of search algorithms.

It doesn't even prove that. It shows that his friends probably screwed up and wrote something really slow or possibly even an infinite loop seeing as he suggests it may have never terminated.

-1

u/x3r0x_x3n0n Nov 14 '20 edited Nov 14 '20

Wait you didnt think we just ran it at a 5000x5000 maze right we tried a 30x30 maze too and all progams passed that one. Me and my friends may have negative IQ but we can handle a breadth first search.

5

u/panderingPenguin Nov 14 '20

That still doesn't mean your friends wrote remotely efficient code. It doesn't prove anything about Java, it just proves their code was slow.

2

u/benargee Nov 14 '20

If only the source code was here to do the talking.

1

u/panderingPenguin Nov 14 '20

I'm not trying to be argumentative. It's just that a couple programs written by random people are pretty meaningless as far as comparing language performance. It's certainly possible that you guys all are professionals, experts in your chosen languages, maybe work in the area of performance, profiled and optimized your code and wrote really efficient stuff. And that doesn't even get into questions like whether the fairest comparison is the fastest possible program in each language, the fastest idiomatic program in each language, a good faith attempt to write equivalent programs in each language, or something else entirely. But frankly, I doubt you guys thought through any of that. It sounds more like you wrote some code for fun to see whose was faster, and that's fine! But as a result, that's all it really proves: your program ran faster than your friends'.

1

u/x3r0x_x3n0n Nov 14 '20

Yeah we did it for fun. I told you what we observed granted i poked a little bit of fun. But i dont remember saying that this is rigorus scientific proof of A is better than B. No, if we wanted that we would have run a benchmark suite. (In which the results clearly speak for themselves)

→ More replies (0)