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.
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.