1,214 karma · joined Nov 9, 2014 (12y ago) · 140 submissions
comment 4mo ago · link · parent
comment 4mo ago · link · parent
comment 4mo ago · link · parent
comment 4mo ago · link · parent
12.
Implementing OpenMP for Zig to enable its use in HPC context(arxiv.org ↗)
7 points · by cyber1 · 1y ago · discuss
comment 1y ago · link · parent
I use C++ daily, and it’s an overcomplicated language. The really good thing about Rust or Zig is that (mostly) everything is explicit, and that’s a big win in my opinion.
In defense of C++, I can only say that lots of interesting projects in the world are written in it.
comment 1y ago · link · parent
15.
Go SIMD dev branch(github.com ↗)
2 points · by cyber1 · 1y ago · discuss
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
On the opposite, "Unsafe" Rust is not simple at all, but without it, we can't write many programs. It's comparable to C, maybe even worse in some ways. It's easy to break rules (aliasing for exmaple). Raw pointer manipulation is less ergonomic than in C, C++, Zig, or Go. But raw pointers are one of the most important concepts in CS. This part is very important for learning; we can't just close our eyes to it.
And I'm not even talking about Rust's open problems, such as: thread_local (still questionable), custom allocators (still nightly), Polonius (nightly, hope it succeeds), panic handling (not acceptable in kernel-level code), and "pin", which seems like a workaround (hack) for async and self-referential issues caused by a lack of proper language design early on — many learners struggle with it.
Rust is a good language, no doubt. But it feels like a temporary step. The learning curve heavily depends on the kind of task you're trying to solve. Some things are super easy and straightforward, while others are very hard, and the eventual solutions are not as simple, intuitive or understandable compared to, for example, C++, C, Zig, etc.
Languages like Mojo, Carbon (I hope it succeeds), and maybe Zig (not sure yet) are learning from Rust and other languages. One of them might become the next major general-purpose systems language for the coming decades with a much more pleasant learning curve.
26.
C-Language.org(c-language.org ↗)
6 points · by cyber1 · 1y ago · discuss
27.
C++, Complexity, and Compiler Bugs(azeemba.com ↗)
3 points · by cyber1 · 2y ago · discuss
28.
7 points · by cyber1 · 2y ago · discuss