5 ms·
> Python was the slowest language in the benchmark, and yet at the same time it’s the most used language on Github as of October 2024. Interesting that there s
by resonious 2y ago
> Python was the slowest language in the benchmark, and yet at the same time it’s the most used language on Github as of October 2024.
Interesting that there seems to be a correlation between a language being slow and it being popular.
- remedan 2y agoDoes that correlation hold if you look at let's say the top 20 popular languages?
- sigzero 2y agoNo, because Java is #2, C++ is #4, C# is #7. People just really like Python for what it brings to the table.
- jb1991 2y agoSlower languages are higher level thus easier to use.
- igouy 2y agohttps://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/java-javaxint.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Program performance is associated with the specific programming language implementation and the specific program implementation.
- jb1991 2y agoNo one takes that site too seriously when judging real world programming, for a variety of reasons.
- igouy 2y agoDo you really not understand that the exact same Java programs are likely to be 10x slower without JIT? Different language implementation, so different performance. > too seriously Take those measurements just seriously enough.
- _kb 2y agoNow do it again, but include compile time and amortise across the number of executions expected for that specific build. I say this as a pretty deep rust fanatic. All languages (and runtimes, interpreters, and compilers) are tools. Different problems and approaches to solving them benefit from having a good set at your disposal. If you're building something that may only run a handful of times (which a lot of python, R, et al programs include) slow execution doesn't matter.
- VeejayRampay 2y agoit's like food, people like it way more when you put sugar on top by and large, Ruby is slow, but damn is it nice to code with, which is more appealing for newcomers
- Alifatisk 2y agoI think, for being a interpreted language, Ruby is quite fast now.
- pjmlp 2y agoBecause now a JIT is part of the picture, as it should be in any dynamic language that isn't only meant for basic scripting tasks.
- KerrAvon 2y agoRuby was always faster than people gave it credit for.
- igouy 2y agoNot really. Work has been done to make faster Ruby language implementations. https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/ruby-mri.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- VeejayRampay 2y agoof course sorry, you're right, what I meant is that it's rather slow _in the grand scheme of things_