News for hackers. Stuff that matters.
Re:C-for-all: Extending C with modern safety and productivit... by kyeb on Wednesday December 04, 2019 @02:27AM (#21700292)
Could someone expand on why Rust "isn't a systems language"?
Re:C-for-all: Extending C with modern safety and productivit... by raphlinus on Wednesday December 04, 2019 @03:08AM (#21700441)
It's simply incorrect, and betrays a carelessness with facts. Now, if you wanted to argue that the fragment of Rust excluding "unsafe" is not a systems language, fine. But by that reasoning, I think you can make an even stronger argument that (standard) C is not a systems programming language, because in practice no kernel is written in a way that avoids all undefined behavior.
Re:C-for-all: Extending C with modern safety and productivit... by smt88 on Wednesday December 04, 2019 @02:35AM (#21700323)
I think that assertion muddles their argument.

Their key points seem to be that Rust (and other existing languages) lack backwards compatibility and have different memory management strategies. Lumping Rust in with GC languages is confusing.

Whether either of those things matter is another story. From using TypeScript, I'm personally inclined to believe that a superset of a difficult language can't solve all of the underlying problems, while a totally new language can.

Re:C-for-all: Extending C with modern safety and productivit... by fluffything on Wednesday December 04, 2019 @03:49AM (#21700644)
All memory allocations in Rust follow a `malloc`-like API that ends up calling `malloc` and similar at some point.
Re:C-for-all: Extending C with modern safety and productivit... by saagarjha on Wednesday December 04, 2019 @03:52AM (#21700658)
With memory management, the question is often when and how to release resources, not how to get untyped memory from the operating system.
Re:C-for-all: Extending C with modern safety and productivit... by fluffything on Wednesday December 04, 2019 @05:24PM (#21707881)
Sure, but in Rust, the programmer writes code that calls malloc manually, which is completely different from Java.
Re:C-for-all: Extending C with modern safety and productivit... by rustybolt on Wednesday December 04, 2019 @02:31AM (#21700305)
I think that, in their words, of its "restrictive memory management".
Re:C-for-all: Extending C with modern safety and productivit... by vardump on Wednesday December 04, 2019 @03:08AM (#21700440)
Interesting choice of words given you can do practically everything you can do in C also in (possibly unsafe) Rust.
Re:C-for-all: Extending C with modern safety and productivit... by 0xdead on Wednesday December 04, 2019 @12:38PM (#21704547)
The language itself is pretty good for systems programming. It's the lack of tooling (as compared to C) that renders it unsuitable for any real world systems programming projects.