3 ms·
Isn't C a sweet spot of portability and minimalism ? no matter the defects .. the previous qualities seemed to matter more. I mean there were attempts at replac
by agumonkey 6y ago
Isn't C a sweet spot of portability and minimalism ? no matter the defects .. the previous qualities seemed to matter more. I mean there were attempts at replacing C but nothing came close to remove it right ?
- pjmlp 6y agoC only got there, because UNIX just like the Browser did to JavaScript, has placed it everywhere. This happened only because Bell Labs/AT&T were forbidden to sell UNIX, hence its source code spread across the industry, with a symbolic price that made it by comparison with other OS vendors feel almost as quite cheap beer. During the 80's and early 90's, C only mattered in universities and companies that had access to some kind of UNIX flavour. Everywhere else we had Assembly, Modula-2, Pascal and Basic flavours, BLISS and some PL/I variants like PL/M on CP/M. So when you happen to have UNIX, and a C compiler around, trying to bring people to use something else, it is the same as trying to replace JavaScript on the browser. So we come up with our CoffeScript and Typescript likes for systems programming, but C (even in C++, Objective-C) is always there.
- agumonkey 6y agoWe're all well aware of the unix/c coupling. What I'm saying is that for low level memory mangling and primitive operations over the set of register based machines.. you don't get any benefits from using another language it seems. I.. just a dude but some people doing HPC said that you can even reach FORTRAN speed on numerics if you fiddle with the right keywords to avoid aliasing. Again I'm not a C fan.. but what would pascal or basic give you that is a critical factor in making a better system with it ? modula I can't say. Asm is too coupled to the underlying cpu it's out of the window already.
- pjmlp 6y agoSafer with less memory corruption exploits to start with. Fixing C is so beyond hope that Apple, Oracle, Google, Microsoft, ARM are all driving hardware based solutions for memory tagging and pointer validation, while at the same time reducing the use cases for it across their OS stacks.
- agumonkey 6y ago> Safer with less memory corruption exploits to start with. ok I admit defeat on this. I can't barely believe I forgot that u_u;
- pjmlp 6y agoHere some updates on hardware memory tagging from Google regarding future Android hardware. https://youtu.be/zkoOD4hmiGE https://youtu.be/zkoOD4hmiGE Microsoft, FreeBSD, ARM collaboration on CHERI https://msrc-blog.microsoft.com/2020/10/14/security-analysis-of-cheri-isa/ https://msrc-blog.microsoft.com/2020/10/14/security-analysis... https://youtu.be/yrk5FfjHDCo https://youtu.be/yrk5FfjHDCo Oracle with ADI https://docs.oracle.com/cd/E37838_01/html/E61059/gqajs.html https://docs.oracle.com/cd/E37838_01/html/E61059/gqajs.html Apple with pointer authentication, https://developer.apple.com/documentation/security/preparing_your_app_to_work_with_pointer_authentication https://developer.apple.com/documentation/security/preparing...