News for hackers. Stuff that matters.
Re:Using D to Create the World’s Fastest File System by WalterBright on Wednesday December 05, 2018 @03:02PM (#18611879)
> D is only memory-safe with its garbage collector enabled.

This is technically correct, but not pragmatically correct. D doesn't have every memory unsafe operation plugged, but it's pretty darned close, and does have the major ones covered (like array bounds checking, alternatives to pointers, RAII, etc.).

> library support

D has excellent library support.

Re:Using D to Create the World’s Fastest File System by kllrnohj on Wednesday December 05, 2018 @03:41PM (#18612308)
> (like array bounds checking, alternatives to pointers, RAII, etc.).

Yeah but C++ has all of that, too, as well as a vastly broader ecosystem in the space of non-GC'd, ultra-high-performance languages.

Re:Using D to Create the World’s Fastest File System by WalterBright on Wednesday December 05, 2018 @03:45PM (#18612348)
C++'s array bounds checking is there only if you use vector<>, not regular arrays.
Re:Using D to Create the World’s Fastest File System by kllrnohj on Wednesday December 05, 2018 @04:00PM (#18612482)
And D's bounds checking is only there if you don't use pointers or @trusted.

fyi std::array also has bounds checking, you're not limited to vector<> to have that.

Re:Using D to Create the World’s Fastest File System by WalterBright on Wednesday December 05, 2018 @04:22PM (#18612704)
D will give you compilation errors in @safe mode if you try to index off of a pointer.