News for hackers. Stuff that matters.
Re:PLOS2021: ISO-C became unusable for operating systems by qsort on Thursday October 07, 2021 @07:11AM (#28784744)
Why would that put C at a disadvantage performance-wise? Array decay is, with hindsight, an unfortunate feature, but optimizing access to contiguous memory is very low-hanging fruit as far as compiler optimizations go.
Re:PLOS2021: ISO-C became unusable for operating systems by rini17 on Thursday October 07, 2021 @07:14AM (#28784773)
Some optimizations are low-hanging fruit only if you know length of the array. Which C avoids by design at all costs.
Re:PLOS2021: ISO-C became unusable for operating systems by Gibbon1 on Thursday October 07, 2021 @03:28PM (#28791001)
If you want better safety, runtime and compile time performance the lowest hanging fruit would be to fire the C standards committee and hard fork C++/C into C++ and C only ecosystems.