News for hackers. Stuff that matters.
Re:Roc rewrites the compiler in Zig by zozbot234 on Tuesday February 04, 2025 @05:07PM (#42939628)
> But Rust has tons of extra features that C doesn't have, just like C++.

C++ has tons of extra features over C because it's a kitchen sink language. Rust has some extra features over C because in order to support static analysis for memory safety in a practically usable manner, you need those features. In practice, there are lots of C++ features that Rust doesn't bother with, especially around templates. (Rust just has a more general macro feature instead. The C++ folks are now on track to adding a clunky "metaclass" feature which is a lot like Rust macros.)

Re:Roc rewrites the compiler in Zig by pjmlp on Wednesday February 05, 2025 @01:44AM (#42944776)
Every language becomes a kitchen sink with enough time on the market, even C, people really should learn about the standard and the myriad of compiler extensions, K&R C was almost 60 years ago.

C++ already has almost Rust macros, with a mix of compile time execution, concepts and traits, without requiring another mini-language, or an external crate (syn).

Re:Roc rewrites the compiler in Zig by bmacho on Wednesday February 05, 2025 @10:22AM (#42949713)
> Every language becomes a kitchen sink with enough time on the market,

Sometimes they remove stuff, and then everything written before a specific date stop working.

Re:Roc rewrites the compiler in Zig by anacrolix on Wednesday February 05, 2025 @09:05PM (#42958113)
I've used Rust quite a bit now and there are too many features. It can't claim to be tidy anymore. Sure it's a better situation than C++, but it is getting worse and unlikely to get better.