News for hackers. Stuff that matters.
Re:Vue Native (2018) by agumonkey on Wednesday January 27, 2021 @10:30AM (#25929378)
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 ?
Re:Vue Native (2018) by pjmlp on Wednesday January 27, 2021 @10:53AM (#25929740)
C 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.

Re:Vue Native (2018) by agumonkey on Wednesday January 27, 2021 @11:13AM (#25930007)
We'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.

Re:Vue Native (2018) by pjmlp on Wednesday January 27, 2021 @12:16PM (#25930807)
Safer 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.

Re:Vue Native (2018) by agumonkey on Wednesday January 27, 2021 @12:18PM (#25930846)
> 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;

Re:Vue Native (2018) by pjmlp on Wednesday January 27, 2021 @01:47PM (#25932150)
Here some updates on hardware memory tagging from Google regarding future Android hardware.

https://youtu.be/zkoOD4hmiGE

Microsoft, FreeBSD, ARM collaboration on CHERI

https://msrc-blog.microsoft.com/2020/10/14/security-analysis...

https://youtu.be/yrk5FfjHDCo

Oracle with ADI

https://docs.oracle.com/cd/E37838_01/html/E61059/gqajs.html

Apple with pointer authentication,

https://developer.apple.com/documentation/security/preparing...