News for hackers. Stuff that matters.
Re:Zig cc: A drop-in replacement for GCC/Clang by smolder on Wednesday March 25, 2020 @03:37AM (#22682677)
This is a strange sentiment. I think 99/100 people who know rust would not categorize it as "for beginners"
Re:Zig cc: A drop-in replacement for GCC/Clang by otabdeveloper2 on Wednesday March 25, 2020 @03:44AM (#22682703)
It's pretty much irrelevant what people feel emotionally about Rust.

The real-world fact is that Rust is, as of March 2020 at least, an entry-level systems programming language. It's used as a stepping stone by former PHP/Python/Go programmers, who are very intimidated by C++, to get into performance-oriented coding.

Nobody actually writing embedded or sensitive code (airplanes, nuclear power stations, etc.) is doing it in Rust.

Re:Zig cc: A drop-in replacement for GCC/Clang by dystroy on Wednesday March 25, 2020 @04:46AM (#22682949)
This makes zero sense and it's not about emotion.

The language is young and you don't certify a software solution every two days or don't rewrite your nuclear power station code every day.

Very experienced programmers switched to Rust because it makes it possible to build large scale industrial programs both efficient and reliable. They won't switch to C++ just because they think they're good enough to live dangerously.

(btw I work on plant control and yes I write parts in Rust)

Re:Zig cc: A drop-in replacement for GCC/Clang by otabdeveloper2 on Thursday March 26, 2020 @03:08PM (#22696777)
> Very experienced programmers switched to Rust because it makes it possible to build large scale industrial programs both efficient and reliable.

This never happens in the real world; not unless the 'very experienced' bit is experience only in languages like PHP or Python.

Re:Zig cc: A drop-in replacement for GCC/Clang by nicoburns on Wednesday March 25, 2020 @10:02AM (#22684578)
It's true that a lot of PHP/Python/Go programmers look to Rust rather than C++ when getting into performance-oriented code. But it's not really a stepping stone, because you never have to leave.

It's true that not a lot of people are using Rust for embedded software. That's a much harder nut to crack because so many of the toolchains are proprietary (and embedded support in Rust is still missing quite a few things).

Re:Zig cc: A drop-in replacement for GCC/Clang by otabdeveloper2 on Thursday March 26, 2020 @03:09PM (#22696788)
> ...because you never have to leave.

You kind of do if you ever want to work on anything other than pet personal one-man projects.

Re:Zig cc: A drop-in replacement for GCC/Clang by nicoburns on Thursday March 26, 2020 @03:52PM (#22697233)
Not for technical reasons though.

Also: I've used Rust at work. In fact, I learnt Rust because I was processing a lot of data at work, and needed a fast language to do so in a reasonable amount of time.