Hacker News new | ask | show | jobs
by winter_blue 26 days ago
I'd like to see a study that compares Python and Ruby, against (1) Rust, (2) C, (3) C++, (4) Zig, (5) Go, (6) a JVM language (like Scala or Kotlin or Clojure), and (7) the main CLR language (C#).

I would imagine that all 7 of them absolutely trounce Python and Ruby.

Python and Ruby have been an immense environmental (and type safety) disaster.

JS though (via V8 and other engines) has been surprisingly fast. I've always wondered why Python and others couldn't copy some of the tricks V8 uses to be fast...

4 comments

> Python and Ruby have been an immense environmental (and type safety) disaster.

The vast majority of code is not performance bottleknecked at the language level. I.e. Instagram still runs on an optimized version of Django as far as I know.

For most Web companies most of the optimization is at the query/ db/ storage/ network level.

Energy Efficiency across Programming Languages: How Does Energy, Time, and Memory Relate?

https://greenlab.di.uminho.pt/wp-content/uploads/2017/09/pap...

I think it’s a question of investment. Google had incentive to pour tons of cash into V8. In recent years Shopify have been more involved with Ruby directly with yjit and zjit. The former bringing a pretty substantial performance improvements to the language.
You won't realize but modern ruby is fast. Faster than python.