phobos
phobos copied to clipboard
The standard library of the D programming language
This patch adds some restrictions if the library is compiled with LDC compiler targeting MSVC C runtime. Partially cherry picked from: ldc-developers/phobos --- We need this if we want to...
This PR introduces a very limited v2 of the standard under the name `std.v2`. There are only very few artifacts in there. Essentially, this PR just showcases how `mismatch` can...
Added the shared version of `AllocatorList`. This will be very useful together with `SharedAscendingPageAllocator`. Instead of mapping a huge chunk of virtual memory when constructing the allocator, we can now...
This, for instance, reduces memory usage of unittest-checking `std.format.write` as ```sh dmd -o- -vcolumns -wi -debug -unittest -dip25 -dip1000 -version\=StdUnittest -I/home/per/Work/phobos/ /home/per/Work/phobos/std/format/write.d ``` from 386 MB to 356 MB. 1....
This still needs a changelog entry and ddoc'ed style unittests.
See relevant NG discussion: https://forum.dlang.org/thread/[email protected] D currently allows functions to be pure even though they are not strictly pure. To be strictly pure, a function must satisfy the following: *...
Reviews definitely required here. I thought it through and I *think* this is memory safe. I tried to do nasty things with `-preview=dip1000` and the compiler prevented me, so that's...
For allocators that implement their own `allocate` method, this should be a `pure nothrow @safe` function. Allocators that are building on top of such allocators should infer the function attributes...
A byproduct of the recent bugfixes.
Check this idea. Probably the name is not the best, suggest the others.