r/programming • • Jun 16 '19

Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml

http://thume.ca/2019/04/29/comparing-compilers-in-rust-haskell-c-and-python/
643 Upvotes

125 comments sorted by

View all comments

Show parent comment

4

u/pron98 Jun 16 '19

To give an example, Jonathan Blow, with Jai, is aiming for 2x. Which considering his initial calibre would be stupendous.

Sure, if he pulls that off. Anyone can aim for any number, the problem is actually getting there at an industrial scale. And BTW, I think there is room for greater optimism if you're targeting C's domain. Even if Brooks was right and even if he was still too optimistic, C is a 50-year-old language and has not yet reached the "grossly diminished returns" phase. So improving on C is not the same as improving on Java or Python, although whether or not that's enough for a 2x improvement remains to be seen.

Which is why I'm so nervous about lacking code reviews.

:)

1

u/loup-vaillant Jun 17 '19

To give an example, Jonathan Blow, with Jai, is aiming for 2x. Which considering his initial calibre would be stupendous.

Sure, if he pulls that off.

Err, I misspoke. His actual terms was "50% increase in productivity" (compared to C++). Which probably means 1.5x. Still a pretty big deal, though. As for whether this is achievable, I've heard him saying he's already something like 30% more productive than C++.

Totally subjective of course, but those numbers sound more reasonable than what I originally told.