News for hackers. Stuff that matters.
Re:Selecting a programming language can be a form of prematu... by taylodl on Monday November 15, 2021 @10:44AM (#29228693)
C++ is C. We used to optimize with assembly but nowadays with a processor's superpipelined architecture and the compiler's global register optimizations and so forth your inlined assembly is more likely to throw a monkey wrench into the whole works and make everything run slower. It's a better use of your time to look for a better algorithm.
Re:Selecting a programming language can be a form of prematu... by khoobid_shoma on Monday November 15, 2021 @05:57PM (#29234057)
Not really. C++ is not C, nor faster than C. e.g. TCO in C++ is awful due to ctor/dtor (could be mitigated by some compiler hints if available).