News for hackers. Stuff that matters.
Re:D as a C Replacement by edwintorok on Tuesday July 02, 2019 @06:42PM (#20340061)
Improvements in tooling like address sanitizer, valgrind, afl also help a lot in improving code quality, especially if you make them part of your CI. However it should possible to have a language that gives you both the speed and safety guarantees. There are many languages that contend for that category: Go (not on speed though), Rust, etc. Might be worth looking at some of the Rust projects like ripgrep that are really focused on performance and faster than C implementations like grep.
Re:D as a C Replacement by DeathArrow on Wednesday July 03, 2019 @01:15AM (#20341783)
Go would never replace C because of speed and lack of direct memory access. Rust syntax is very ugly, Rust is more complex than C and harder to read. is very simple.
Re:D as a C Replacement by pjmlp on Wednesday July 03, 2019 @01:38AM (#20341886)
Go can do the same direct memory access as C does via unsafe.Pointer.

If you mean real hardware access, not even C can do that unless it is running bare metal without an underlying OS or MMU controlling the access, both situation outside of ISO C specification.

Re:D as a C Replacement by makapuf on Wednesday July 03, 2019 @03:46AM (#20342426)
I wouldn't say baremetal is more outside of spec than MMU/ OS virtual memory is outside of spec.