forked from dlang/phobos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dlang/master
Updating with upstream
- Loading branch information
Showing
56 changed files
with
1,856 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# https://help.github.com/en/articles/displaying-a-sponsor-button-in-your-repository | ||
|
||
open_collective: dlang | ||
custom: https://dlang.org/foundation/donate.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Added a table of control characters in ASCII table | ||
|
||
There is a new enumerated type $(REF ControlChar, std, ascii). It has | ||
values for every control character in ASCII table and has a base type | ||
of `char`, allowing for alternative markup of strings with control | ||
characters: | ||
------- | ||
import std.ascii, std.conv; | ||
with (ControlChar) assert(text("Phobos", us, "Deimos", us, "Tango", rs) == "Phobos\x1FDeimos\x1FTango\x1E"); | ||
------- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Count processors via sched_getaffinity on Linux | ||
|
||
On GNU/Linux usable number of processors may be restricted if a process runs in containers. | ||
In case it's better to use sched_getaffinity(2). | ||
------- | ||
import std.parallelism; | ||
|
||
writeln(totalCPUs); // 4 | ||
writeln(totalCPUs); // 1: runs on `taskset -c 0` | ||
------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Add overload `std.algorithm.sorting.schwartzSort!(alias transform, SwapStrategy ss, R)` | ||
|
||
$(REF schwartzSort, std,algorithm,sorting) now has an overloaded version that can be | ||
used to provide a `SwapStrategy` without also explicitly specifying the predicate to | ||
sort by. | ||
|
||
------- | ||
auto s1 = a.schwartzSort!(abs, SwapStrategy.stable); | ||
|
||
// The old syntax still works. | ||
auto s2 = a.schwartzSort!(abs, "a < b", SwapStrategy.stable); | ||
------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Phobos is now compiled with -preview=dip1000 | ||
|
||
Phobos and Druntime are now compiled with -preview=dip1000. | ||
|
||
This is a major milestone in the transition to $(LINK2 https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md, DIP1000). Hence, end users can now start using `-preview=dip1000` in their own code bases. | ||
|
||
As always, any encountered issue should be reported to the $(LINK2 https://issues.dlang.org, issue tracker). |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.