There's a strong sense in which performance comparisons between C/C++ and Rust, without any other constraints, are meaningless, in that you can create the same LLVM IR in both and the backends are the same (assuming you're using clang).
-
-
This.
Differences in languages is all about idioms. Reminds me ofhttps://stackoverflow.com/a/12379830/379897 …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Also how well you can preserve the performance gains from a low-level optimization in a high-level abstraction.
-
This is something Rust excels at, but also weirdly JS. Like the perf cliff seems like it'd be sharp, but it's surprisingly shallow enough you have to have poor design to hit a major cliff nowadays. Even iterators are reasonably fast.
- 1 more reply
New conversation -
-
-
I reckon good info is when each language is suboptimal when you keep your code at the canonical high level. Say qsort in C, cout with ios::sync_with_stdio(1), etc.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
*C++ code is always forced to use unsafe.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.