News for hackers. Stuff that matters.
Re:Teaching C (2016) by nwmcsween on Tuesday October 30, 2018 @12:24PM (#18338320)
There are no current languages that can displace C, none, zero. If you want a language that _will_ displace C it needs to be designed and features mapped, interactions, pros, cons, etc so others can understand it and __why__ choices were made.
Re:Teaching C (2016) by pjmlp on Tuesday October 30, 2018 @01:14PM (#18338937)
Except that C++ is already doing that, even if slower than desired.

AUTOSAR now requires C++14 compliance on software certification.

Android, ChromeOS, Windows, Apple OSes native components are mostly written in C++.

Finally, all major C compilers are written in C++ nowadays.

The only places where C++ is failing to replace C, is among developers unwilling to move beyond C89 on embedded space, or UNIX clones.

Re:Teaching C (2016) by nwmcsween on Tuesday October 30, 2018 @03:14PM (#18340341)
C++ is evolved not designed from the start. A properly (IMO) designed language would have a pro, con wiki/ graph map and features would have _all_ interactions mapped. C isn't this either but it doesn't try to paint over bad feature interactions by adding more.
Re:Teaching C (2016) by blub on Thursday November 01, 2018 @04:13AM (#18352080)
I've already pointed another person to the book "The design and evolution of C++" which I believe puts the not designed argument to rest.

But it is impossible to create a beautiful, "properly designed" programming language that's also backwards compatible with C. I mean look at Objective-C :)

Re:Teaching C (2016) by pjmlp on Tuesday October 30, 2018 @04:09PM (#18340848)
Yes, because C99 was such a design success with mistakes being made optional in C11.
Re:Teaching C (2016) by nwmcsween on Tuesday October 30, 2018 @04:59PM (#18341228)
I'm not advocating for C, I'm just describing a language that could displace C while having some good features. C takes features to the extreme by having few and being somewhat simple, a language designed as I stated could have features and still remain simple.