<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/rand/os.rs, branch 0.11.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=0.11.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=0.11.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2014-06-25T00:18:48+00:00</updated>
<entry>
<title>librustc: Remove the fallback to `int` from typechecking.</title>
<updated>2014-06-25T00:18:48+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2014-04-21T21:58:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e3d0b002a5c2e81d43351c9b8550a3f4ccfb8f9'/>
<id>urn:sha1:9e3d0b002a5c2e81d43351c9b8550a3f4ccfb8f9</id>
<content type='text'>
This breaks a fair amount of code. The typical patterns are:

* `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`;

* `println!("{}", 3)`: change to `println!("{}", 3i)`;

* `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`.

RFC #30. Closes #6023.

[breaking-change]
</content>
</entry>
<entry>
<title>Basic iOS support</title>
<updated>2014-06-12T18:15:14+00:00</updated>
<author>
<name>Valerii Hiora</name>
<email>valerii.hiora@gmail.com</email>
</author>
<published>2014-05-05T07:07:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a49b765f9a5b5926e338da30fcaae59ff1ae5c02'/>
<id>urn:sha1:a49b765f9a5b5926e338da30fcaae59ff1ae5c02</id>
<content type='text'>
</content>
</entry>
<entry>
<title>core: Move the collections traits to libcollections</title>
<updated>2014-06-09T07:38:46+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-06-06T23:33:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=da0703973af921626d7235131d14847b1aacffc2'/>
<id>urn:sha1:da0703973af921626d7235131d14847b1aacffc2</id>
<content type='text'>
This commit moves Mutable, Map, MutableMap, Set, and MutableSet from
`core::collections` to the `collections` crate at the top-level. Additionally,
this removes the `deque` module and moves the `Deque` trait to only being
available at the top-level of the collections crate.

All functionality continues to be reexported through `std::collections`.

[breaking-change]
</content>
</entry>
<entry>
<title>windows: Allow snake_case errors for now.</title>
<updated>2014-05-30T16:59:41+00:00</updated>
<author>
<name>Kevin Butler</name>
<email>haqkrs@gmail.com</email>
</author>
<published>2014-05-30T16:07:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=030b3a2499a73a6d3b4629ad676d2d9cd6a79df0'/>
<id>urn:sha1:030b3a2499a73a6d3b4629ad676d2d9cd6a79df0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename OSRng to OsRng</title>
<updated>2014-05-30T04:37:31+00:00</updated>
<author>
<name>Piotr Jawniak</name>
<email>sawyer47@gmail.com</email>
</author>
<published>2014-05-30T04:37:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aa7b215f04962b307b86b2160da4899a64ea35a0'/>
<id>urn:sha1:aa7b215f04962b307b86b2160da4899a64ea35a0</id>
<content type='text'>
According to Rust's style guide acronyms in type names should be
CamelCase.

[breaking-change]
</content>
</entry>
<entry>
<title>std: Recreate a `rand` module</title>
<updated>2014-05-29T23:18:26+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-05-25T08:39:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=925ff6511887d917c09c61cb9d41f97ce7eab942'/>
<id>urn:sha1:925ff6511887d917c09c61cb9d41f97ce7eab942</id>
<content type='text'>
This commit shuffles around some of the `rand` code, along with some
reorganization. The new state of the world is as follows:

* The librand crate now only depends on libcore. This interface is experimental.
* The standard library has a new module, `std::rand`. This interface will
  eventually become stable.

Unfortunately, this entailed more of a breaking change than just shuffling some
names around. The following breaking changes were made to the rand library:

* Rng::gen_vec() was removed. This has been replaced with Rng::gen_iter() which
  will return an infinite stream of random values. Previous behavior can be
  regained with `rng.gen_iter().take(n).collect()`

* Rng::gen_ascii_str() was removed. This has been replaced with
  Rng::gen_ascii_chars() which will return an infinite stream of random ascii
  characters. Similarly to gen_iter(), previous behavior can be emulated with
  `rng.gen_ascii_chars().take(n).collect()`

* {IsaacRng, Isaac64Rng, XorShiftRng}::new() have all been removed. These all
  relied on being able to use an OSRng for seeding, but this is no longer
  available in librand (where these types are defined). To retain the same
  functionality, these types now implement the `Rand` trait so they can be
  generated with a random seed from another random number generator. This allows
  the stdlib to use an OSRng to create seeded instances of these RNGs.

* Rand implementations for `Box&lt;T&gt;` and `@T` were removed. These seemed to be
  pretty rare in the codebase, and it allows for librand to not depend on
  liballoc.  Additionally, other pointer types like Rc&lt;T&gt; and Arc&lt;T&gt; were not
  supported.  If this is undesirable, librand can depend on liballoc and regain
  these implementations.

* The WeightedChoice structure is no longer built with a `Vec&lt;Weighted&lt;T&gt;&gt;`,
  but rather a `&amp;mut [Weighted&lt;T&gt;]`. This means that the WeightedChoice
  structure now has a lifetime associated with it.

* The `sample` method on `Rng` has been moved to a top-level function in the
  `rand` module due to its dependence on `Vec`.

cc #13851

[breaking-change]
</content>
</entry>
<entry>
<title>std: Move rand to librand.</title>
<updated>2014-03-12T00:31:05+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2014-03-02T00:23:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6fa4bbeed425ae99d15322fbaa05d1abeae6547f'/>
<id>urn:sha1:6fa4bbeed425ae99d15322fbaa05d1abeae6547f</id>
<content type='text'>
This functionality is not super-core and so doesn't need to be included
in std. It's possible that std may need rand (it does a little bit now,
for io::test) in which case the functionality required could be moved to
a secret hidden module and reexposed by librand.

Unfortunately, using #[deprecated] here is hard: there's too much to
mock to make it feasible, since we have to ensure that programs still
typecheck to reach the linting phase.
</content>
</entry>
<entry>
<title>std: Remove io::io_error</title>
<updated>2014-02-03T17:32:33+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-01-30T00:33:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ece8a8f520697be50cbe543bebe065c5198dae4d'/>
<id>urn:sha1:ece8a8f520697be50cbe543bebe065c5198dae4d</id>
<content type='text'>
* All I/O now returns IoResult&lt;T&gt; = Result&lt;T, IoError&gt;
* All formatting traits now return fmt::Result = IoResult&lt;()&gt;
* The if_ok!() macro was added to libstd
</content>
</entry>
<entry>
<title>Removing do keyword from libstd and librustc</title>
<updated>2014-01-29T14:15:41+00:00</updated>
<author>
<name>Scott Lawrence</name>
<email>bytbox@gmail.com</email>
</author>
<published>2014-01-27T03:42:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=25e7e7f8076d879f824f013faa6f7470e69c818b'/>
<id>urn:sha1:25e7e7f8076d879f824f013faa6f7470e69c818b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix remaining cases of leaking imports</title>
<updated>2014-01-08T07:51:38+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-01-07T03:05:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c4d36b85a0181575319168ab080989c71b935b20'/>
<id>urn:sha1:c4d36b85a0181575319168ab080989c71b935b20</id>
<content type='text'>
</content>
</entry>
</feed>
