News for hackers. Stuff that matters.
Re:Rust for Linux redux by pjmlp on Saturday July 24, 2021 @01:17PM (#27942690)
Zig's syntax has nothing to do C, and overdoes it with @ everywhere.

Until it fixes use-after-free, better keep using C anyway.

Re:Rust for Linux redux by jorangreef on Saturday July 24, 2021 @04:27PM (#27944194)
What Zig shares with C is orthogonality, with a large power-to-weight ratio, meaning it's a small language grammar with powerful range.

But Zig also improves on C's safety in many ways, not least checked arithmetic enabled by default in safe release modes, along with bounds checked memory accesses, function return values that cannot be ignored, checked syscall error handling, explicit allocations, comptime over macros, a short learning curve and remarkable readability.

It's hard for systems programmers not to appreciate any of these qualities in isolation.

Re:Rust for Linux redux by pjmlp on Saturday July 24, 2021 @04:30PM (#27944214)
A brilliant language wouldn't stuffer from use-after-free in 2021, or use file import as module concept.
Re:Rust for Linux redux by diragon on Sunday July 25, 2021 @01:03AM (#27946858)
Syntax is almost completely irrelevant.
Re:Rust for Linux redux by pjmlp on Sunday July 25, 2021 @02:02AM (#27947075)
If syntax was irrelevant, ALGOL like systems programming languages would still dominate.
Re:Rust for Linux redux by diragon on Sunday July 25, 2021 @09:24AM (#27949004)
Not Lisp?
Re:Rust for Linux redux by pjmlp on Sunday July 25, 2021 @12:28PM (#27950443)
Lisp failure in mainstream market is more related to mismanagement, cheap UNIX workstations and AI Winter, than syntax.

But hey, its spirit lives on most managed languages, Julia, Closure, WebAssembly text files and plenty of other stuff Lisp based.