Skip to content

Commit

Permalink
Merge pull request #1 from dlang/master
Browse files Browse the repository at this point in the history
Updating with upstream
  • Loading branch information
jasonSchroeder89 authored Jun 13, 2019
2 parents eb38e8e + 5a4918e commit 54e4a74
Show file tree
Hide file tree
Showing 56 changed files with 1,856 additions and 621 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
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
10 changes: 10 additions & 0 deletions changelog/asciicontroltable.dd
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");
-------
6 changes: 0 additions & 6 deletions changelog/comparison_bug.dd

This file was deleted.

10 changes: 10 additions & 0 deletions changelog/count_processors_via_sched_affinity_on_linux.dd
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`
-------
12 changes: 12 additions & 0 deletions changelog/new_schwartzSort_overload.dd
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);
-------
7 changes: 7 additions & 0 deletions changelog/phobos-dip1000.dd
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).
43 changes: 0 additions & 43 deletions changelog/std-all.dd

This file was deleted.

Loading

0 comments on commit 54e4a74

Please sign in to comment.