News for hackers. Stuff that matters.
Re:The Curious Case of the Longevity of C by colechristensen on Tuesday October 03, 2017 @05:34AM (#15391221)
I have serious doubts that anybody would actually create such a language. The basic problem with C is the ease in which you're allowed to shoot yourself in the foot or in other words the great pedantic lengths you have to go to in order to not do so.

A language that avoided it would have to be very close to C while making it only mildly more difficult to foot shoot. Everyone who is trying is overshooting and therefore not really writing an adequate replacement low level systems language. Even if they did, it would be so close to C that adoption pickup would be low, awkward, and the language would fail outright. (Think Python 3 but worse)

>But I bet they would criticize programs for being written in assembly, if they didn't need to be.

Certainly. If you're writing your web app in assembly you are very likely a crazy person unless your goal is to do something ridiculous. If you're writing some assembly in a critical path in a web server to precisely control the network stack, you might not be a crazy person (see Netflix tech blogs).

Re:The Curious Case of the Longevity of C by edmccard on Tuesday October 03, 2017 @06:20AM (#15391367)
>A language that avoided it would have to be very close to C while making it only mildly more difficult to foot shoot.

Says who? A language where every single memory access did NOT have the potential to be a buffer overflow would be much more difficult to foot-shoot with, even if it allowed you to sometimes access memory with raw pointers. Just having the ability, as in Rust, to mark code as either safe or unsafe goes a long way towards preventing footguns.

>Everyone who is trying is overshooting and therefore not really writing an adequate replacement low level systems language.

Using Rust as an example again, I don't think there's anything about being able to say "this code right here cannot cause memory unsafety" that precludes "low-level systems" programming.

Re:The Curious Case of the Longevity of C by cyphar on Tuesday October 03, 2017 @06:26AM (#15391388)
Rust delivers on many of the use-cases, so much so that there is a full operating system (kernel and userland) implemented in Rust called Redox[1]. I understand being critical of hype, but Rust is legitimately a very interesting and exciting language.

[1]: https://www.redox-os.org/

Re:The Curious Case of the Longevity of C by pjmlp on Tuesday October 03, 2017 @10:32AM (#15392647)
Ada, Modula-2, Mesa, PL/8, ESPOL, Object Pascal and many others come to mind.