Re: [swift-dev] Random() in the standard library

2016-07-04 Thread Gwynne Raskind via swift-dev
C++11 defines PRNGs in the STL, but even then the API is fairly complex thanks to the need for so many different options for source, distribution, seeds, security... - and it *still* doesn’t cover all of what I consider the obvious cases (YMMV). I agree with Robert here, Swift isn’t ready to ha

[swift-dev] Set of "no less than one" member enforced by the compiler

2016-06-25 Thread Gwynne Raskind via swift-dev
I’ve been spinning my wheels on this one for a couple of hours and can’t come up with a way to do it which doesn’t require checking for at least one potential data inconsistency at runtime with precondition() or assert(), so I’m wondering if anyone else has a solution. I have a data type which

Re: [swift-dev] Build script and archival steps for the toolchain

2016-06-21 Thread Gwynne Raskind via swift-dev
On Linux I got rid of the tarball by yanking `installable-package=/blah/blah/blah` (appearing after a `dash-dash` of course) out of my build preset while leaving the `install-*` flags specified (incl. `install-destdir=/blah`), everything else seemed to still happen - does that work for macOS as