<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/unicode.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2014-06-05T20:55:10+00:00</updated>
<entry>
<title>std: Recreate a `collections` module</title>
<updated>2014-06-05T20:55:10+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-05-30T01:50:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6a585375a01b7c6b52ad93f764220bcb18027ef6'/>
<id>urn:sha1:6a585375a01b7c6b52ad93f764220bcb18027ef6</id>
<content type='text'>
As with the previous commit with `librand`, this commit shuffles around some
`collections` code. The new state of the world is similar to that of librand:

* The libcollections crate now only depends on libcore and liballoc.
* The standard library has a new module, `std::collections`. All functionality
  of libcollections is reexported through this module.

I would like to stress that this change is purely cosmetic. There are very few
alterations to these primitives.

There are a number of notable points about the new organization:

* std::{str, slice, string, vec} all moved to libcollections. There is no reason
  that these primitives shouldn't be necessarily usable in a freestanding
  context that has allocation. These are all reexported in their usual places in
  the standard library.

* The `hashmap`, and transitively the `lru_cache`, modules no longer reside in
  `libcollections`, but rather in libstd. The reason for this is because the
  `HashMap::new` contructor requires access to the OSRng for initially seeding
  the hash map. Beyond this requirement, there is no reason that the hashmap
  could not move to libcollections.

  I do, however, have a plan to move the hash map to the collections module. The
  `HashMap::new` function could be altered to require that the `H` hasher
  parameter ascribe to the `Default` trait, allowing the entire `hashmap` module
  to live in libcollections. The key idea would be that the default hasher would
  be different in libstd. Something along the lines of:

      // src/libstd/collections/mod.rs

      pub type HashMap&lt;K, V, H = RandomizedSipHasher&gt; =
            core_collections::HashMap&lt;K, V, H&gt;;

  This is not possible today because you cannot invoke static methods through
  type aliases. If we modified the compiler, however, to allow invocation of
  static methods through type aliases, then this type definition would
  essentially be switching the default hasher from `SipHasher` in libcollections
  to a libstd-defined `RandomizedSipHasher` type. This type's `Default`
  implementation would randomly seed the `SipHasher` instance, and otherwise
  perform the same as `SipHasher`.

  This future state doesn't seem incredibly far off, but until that time comes,
  the hashmap module will live in libstd to not compromise on functionality.

* In preparation for the hashmap moving to libcollections, the `hash` module has
  moved from libstd to libcollections. A previously snapshotted commit enables a
  distinct `Writer` trait to live in the `hash` module which `Hash`
  implementations are now parameterized over.

  Due to using a custom trait, the `SipHasher` implementation has lost its
  specialized methods for writing integers. These can be re-added
  backwards-compatibly in the future via default methods if necessary, but the
  FNV hashing should satisfy much of the need for speedier hashing.

A list of breaking changes:

* HashMap::{get, get_mut} no longer fails with the key formatted into the error
  message with `{:?}`, instead, a generic message is printed. With backtraces,
  it should still be not-too-hard to track down errors.

* The HashMap, HashSet, and LruCache types are now available through
  std::collections instead of the collections crate.

* Manual implementations of hash should be parameterized over `hash::Writer`
  instead of just `Writer`.

[breaking-change]
</content>
</entry>
<entry>
<title>std: Rename str::Normalizations to str::Decompositions</title>
<updated>2014-05-14T00:24:07+00:00</updated>
<author>
<name>Florian Zeitz</name>
<email>florob@babelmonkeys.de</email>
</author>
<published>2014-05-12T20:44:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=df802a2754a5d536bbec264136a08d166d3bb81a'/>
<id>urn:sha1:df802a2754a5d536bbec264136a08d166d3bb81a</id>
<content type='text'>
The Normalizations iterator has been renamed to Decompositions.
It does not currently include all forms of Unicode normalization,
but only encompasses decompositions.
If implemented recomposition would likely be a separate iterator
which works on the result of this one.

[breaking-change]
</content>
</entry>
<entry>
<title>std, core: Generate unicode.rs using unicode.py</title>
<updated>2014-05-14T00:24:07+00:00</updated>
<author>
<name>Florian Zeitz</name>
<email>florob@babelmonkeys.de</email>
</author>
<published>2014-05-12T17:56:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=74ad0236747469f9646916d1916dee2598076161'/>
<id>urn:sha1:74ad0236747469f9646916d1916dee2598076161</id>
<content type='text'>
</content>
</entry>
<entry>
<title>core: Inherit necessary unicode functionality</title>
<updated>2014-05-07T15:15:58+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-05-01T06:02:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=544d90940166a9a83194801437dd37c0b1872c86'/>
<id>urn:sha1:544d90940166a9a83194801437dd37c0b1872c86</id>
<content type='text'>
The unicode module remains private, but the normalization iterators require an
allocation, so some functionality needs to remain in libstd
</content>
</entry>
<entry>
<title>Convert most code to new inner attribute syntax.</title>
<updated>2014-03-29T00:12:21+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2014-03-22T01:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=451e8c1c6178750a4c1789f40749562164a980b7'/>
<id>urn:sha1:451e8c1c6178750a4c1789f40749562164a980b7</id>
<content type='text'>
Closes #2569
</content>
</entry>
<entry>
<title>rename std::vec -&gt; std::slice</title>
<updated>2014-03-20T05:30:27+00:00</updated>
<author>
<name>Daniel Micay</name>
<email>danielmicay@gmail.com</email>
</author>
<published>2014-03-08T23:11:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ce620320a20baa1428e679c751b1b4a8d8556ca1'/>
<id>urn:sha1:ce620320a20baa1428e679c751b1b4a8d8556ca1</id>
<content type='text'>
Closes #12702
</content>
</entry>
<entry>
<title>Remove code duplication</title>
<updated>2014-03-13T11:23:24+00:00</updated>
<author>
<name>Piotr Zolnierek</name>
<email>pz@anixe.pl</email>
</author>
<published>2014-03-01T06:40:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dba5625cb8e8b0d7463f23c8ec9ba5f373707ef5'/>
<id>urn:sha1:dba5625cb8e8b0d7463f23c8ec9ba5f373707ef5</id>
<content type='text'>
Remove whitespace

Update documentation for to_uppercase, to_lowercase
</content>
</entry>
<entry>
<title>Implement lower, upper case conversion for char</title>
<updated>2014-03-13T08:32:05+00:00</updated>
<author>
<name>Piotr Zolnierek</name>
<email>pz@anixe.pl</email>
</author>
<published>2014-02-26T12:49:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04170b0a4166de0612d24bb3a22a133dbe99cc15'/>
<id>urn:sha1:04170b0a4166de0612d24bb3a22a133dbe99cc15</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std::unicode: remove unused category tables</title>
<updated>2014-03-13T08:32:05+00:00</updated>
<author>
<name>Piotr Zolnierek</name>
<email>pz@anixe.pl</email>
</author>
<published>2014-02-26T08:36:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4a00211916b963b26958f74edce16547e519f361'/>
<id>urn:sha1:4a00211916b963b26958f74edce16547e519f361</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove dead codes</title>
<updated>2013-12-08T07:55:28+00:00</updated>
<author>
<name>Kiet Tran</name>
<email>ktt3ja@gmail.com</email>
</author>
<published>2013-12-08T07:55:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1755408d1a58684b6c9bce11aeceb18a1ec2d66e'/>
<id>urn:sha1:1755408d1a58684b6c9bce11aeceb18a1ec2d66e</id>
<content type='text'>
</content>
</entry>
</feed>
