<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/str.rs, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<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: Drop Total from Total{Eq,Ord}</title>
<updated>2014-06-01T17:31:27+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-05-31T17:43:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bba701c59d84eac4e20d0796ec06db8d1cdd39cf'/>
<id>urn:sha1:bba701c59d84eac4e20d0796ec06db8d1cdd39cf</id>
<content type='text'>
This completes the last stage of the renaming of the comparison hierarchy of
traits. This change renames TotalEq to Eq and TotalOrd to Ord.

In the future the new Eq/Ord will be filled out with their appropriate methods,
but for now this change is purely a renaming change.

[breaking-change]
</content>
</entry>
<entry>
<title>rustdoc: Create anchor pages for primitive types</title>
<updated>2014-06-01T04:59:50+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-05-29T02:53:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2e3aa37daedf698072b4aadbc420f24505b2b2d'/>
<id>urn:sha1:c2e3aa37daedf698072b4aadbc420f24505b2b2d</id>
<content type='text'>
This commit adds support in rustdoc to recognize the `#[doc(primitive = "foo")]`
attribute. This attribute indicates that the current module is the "owner" of
the primitive type `foo`. For rustdoc, this means that the doc-comment for the
module is the doc-comment for the primitive type, plus a signal to all
downstream crates that hyperlinks for primitive types will be directed at the
crate containing the `#[doc]` directive.

Additionally, rustdoc will favor crates closest to the one being documented
which "implements the primitive type". For example, documentation of libcore
links to libcore for primitive types, but documentation for libstd and beyond
all links to libstd for primitive types.

This change involves no compiler modifications, it is purely a rustdoc change.
The landing pages for the primitive types primarily serve to show a list of
implemented traits for the primitive type itself.

The primitive types documented includes both strings and slices in a semi-ad-hoc
way, but in a way that should provide at least somewhat meaningful
documentation.

Closes #14474
</content>
</entry>
<entry>
<title>std: Rename {Eq,Ord} to Partial{Eq,Ord}</title>
<updated>2014-05-30T22:52:24+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-05-30T00:45:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=748bc3ca49de8ab0b890726120c40567094e43fc'/>
<id>urn:sha1:748bc3ca49de8ab0b890726120c40567094e43fc</id>
<content type='text'>
This is part of the ongoing renaming of the equality traits. See #12517 for more
details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord}
or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}.

cc #12517

[breaking-change]
</content>
</entry>
<entry>
<title>auto merge of #14510 : kballard/rust/rename_strallocating_into_owned, r=alexcrichton</title>
<updated>2014-05-30T02:31:42+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2014-05-30T02:31:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6510527e153b32b1006aee358d30ea8f62e7e02a'/>
<id>urn:sha1:6510527e153b32b1006aee358d30ea8f62e7e02a</id>
<content type='text'>
We already have into_string(), but it was implemented in terms of
into_owned(). Flip it around and deprecate into_owned().

Remove a few spurious calls to .into_owned() that existed in libregex
and librustdoc.
</content>
</entry>
<entry>
<title>auto merge of #14481 : alexcrichton/rust/no-format-strbuf, r=sfackler</title>
<updated>2014-05-29T10:31:39+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2014-05-29T10:31:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768'/>
<id>urn:sha1:ff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768</id>
<content type='text'>
* Removes `format_strbuf!()`
</content>
</entry>
<entry>
<title>Replace StrAllocating.into_owned() with .into_string()</title>
<updated>2014-05-29T04:31:19+00:00</updated>
<author>
<name>Kevin Ballard</name>
<email>kevin@sb.org</email>
</author>
<published>2014-05-29T03:45:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eb98c9eeaa6d1054c4d27611a3cf2d26b0708705'/>
<id>urn:sha1:eb98c9eeaa6d1054c4d27611a3cf2d26b0708705</id>
<content type='text'>
We already have into_string(), but it was implemented in terms of
into_owned(). Flip it around and deprecate into_owned().

Remove a few spurious calls to .into_owned() that existed in libregex
and librustdoc.
</content>
</entry>
<entry>
<title>std: Remove format_strbuf!()</title>
<updated>2014-05-28T15:35:41+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-05-28T03:44:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42aed6bde2fb05a262e21334656cdf91f51744dd'/>
<id>urn:sha1:42aed6bde2fb05a262e21334656cdf91f51744dd</id>
<content type='text'>
This was only ever a transitionary macro.
</content>
</entry>
<entry>
<title>Rename UTF16Item[s] to Utf16Item[s]</title>
<updated>2014-05-28T09:31:21+00:00</updated>
<author>
<name>Piotr Jawniak</name>
<email>sawyer47@gmail.com</email>
</author>
<published>2014-05-25T15:35:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8c5a8e10b25fdd2e12de78f04d2f538a22776024'/>
<id>urn:sha1:8c5a8e10b25fdd2e12de78f04d2f538a22776024</id>
<content type='text'>
According to Rust's style guide acronyms should be CamelCase.

[breaking-change]
</content>
</entry>
<entry>
<title>auto merge of #14414 : richo/rust/features/nerf_unused_string_fns, r=alexcrichton</title>
<updated>2014-05-28T00:46:48+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2014-05-28T00:46:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=911cc9c35234ab12a4b9a6fc1cb35b52556f242d'/>
<id>urn:sha1:911cc9c35234ab12a4b9a6fc1cb35b52556f242d</id>
<content type='text'>
This should block on #14323
</content>
</entry>
</feed>
