News for hackers. Stuff that matters.
Re:A Universal I/O Abstraction for C++ (2020) by flukus on Sunday April 18, 2021 @07:15PM (#26857460)
> One cannot let the user play with the addresses, and use procedures, and play with pointers--which is pointing to the data--and be able to understand how one can transform the program to run more optimally."

Well 50 years on we still haven't seen any of these "sufficiently smart compilers", at best they can outsmart C compilers in a few cases with things like generics, so the idea that higher level languages would be faster has been wrong for at least 5 decades. At least you can forgive them for thinking they would 50 years ago, but now it's just ignoring 50 years of reality.

Re:A Universal I/O Abstraction for C++ (2020) by oldmanhorton on Monday April 19, 2021 @09:57AM (#26862807)
Unfortunately, this assumes everyone is a master at C and that we are comparing straight line speed. In the real world, higher level languages have a much better comparison since everyone's C program has their own slow, buggy "standard" library instead of the hyper optimized ones of higher level languages. One of the major reasons why that is the case is because C, at a language design level, makes building those kinds of high level, interesting, performant, and safe APIs hard
Re:A Universal I/O Abstraction for C++ (2020) by flukus on Monday April 19, 2021 @07:03PM (#26868829)
> In the real world, higher level languages have a much better comparison since everyone's C program has their own slow, buggy "standard" library instead of the hyper optimized ones of higher level languages.

In the real world we've pissed away 30 years of hardware improvements primarily through switching to higher level languages. In the real world higher level languages are still not used we're performance counts (like games). In the real world low level languages like c and C++ are still powering our most important and fundamental projects.

Re:A Universal I/O Abstraction for C++ (2020) by pjmlp on Tuesday April 20, 2021 @02:07AM (#26871228)
In real world politics also count higher than techinical capabilities.

Source, replacing GUI and distributed applications written in C and C++ with managed languages (AOT and JIT) for the last 20 years.

Re:A Universal I/O Abstraction for C++ (2020) by pjmlp on Monday April 19, 2021 @02:28AM (#26859651)
Funny, I remember when there were books like The Zen of Assembly programming, because C compilers just generated junk code.

I also happen to remember languages like Fortran and Ada do exist.