<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/util.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-02-10T21:21:35+00:00</updated>
<entry>
<title>Move replace and swap to std::mem. Get rid of std::util</title>
<updated>2014-02-10T21:21:35+00:00</updated>
<author>
<name>Edward Wang</name>
<email>edward.yu.wang@gmail.com</email>
</author>
<published>2014-01-31T20:35:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9ff91e9beb6c92d9662242c1090c507b1611c59'/>
<id>urn:sha1:e9ff91e9beb6c92d9662242c1090c507b1611c59</id>
<content type='text'>
Also move Void to std::any, move drop to std::mem and reexport in
prelude.
</content>
</entry>
<entry>
<title>std: Clean up the swap function a little</title>
<updated>2014-02-10T00:23:39+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2014-02-09T22:05:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=07c5e5d81363b6cdbca64637832620ab4870d258'/>
<id>urn:sha1:07c5e5d81363b6cdbca64637832620ab4870d258</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Stop parameterizing some memcpy functions over RawPtr</title>
<updated>2014-02-10T00:23:10+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2014-01-31T22:01:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1b7733109d7b692c2ddd404f1bb6c751c3194750'/>
<id>urn:sha1:1b7733109d7b692c2ddd404f1bb6c751c3194750</id>
<content type='text'>
It unsafe assumptions that any impl of RawPtr is for actual pointers,
that they can be copied by memcpy. Removing it is easy, so I don't
think it's solving a real problem.
</content>
</entry>
<entry>
<title>std: Add init and uninit to mem. Replace direct intrinsic usage</title>
<updated>2014-02-09T08:17:40+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2014-02-08T10:46:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d433b80e026960b28ba660ebdb09175237e02e05'/>
<id>urn:sha1:d433b80e026960b28ba660ebdb09175237e02e05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement clone() for TCP/UDP/Unix sockets</title>
<updated>2014-02-05T19:43:49+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-01-23T03:32:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=56080c476712e478ffe4ef8d6d727c0e3d21cfd0'/>
<id>urn:sha1:56080c476712e478ffe4ef8d6d727c0e3d21cfd0</id>
<content type='text'>
This is part of the overall strategy I would like to take when approaching
issue #11165. The only two I/O objects that reasonably want to be "split" are
the network stream objects. Everything else can be "split" by just creating
another version.

The initial idea I had was the literally split the object into a reader and a
writer half, but that would just introduce lots of clutter with extra interfaces
that were a little unnnecssary, or it would return a ~Reader and a ~Writer which
means you couldn't access things like the remote peer name or local socket name.

The solution I found to be nicer was to just clone the stream itself. The clone
is just a clone of the handle, nothing fancy going on at the kernel level.
Conceptually I found this very easy to wrap my head around (everything else
supports clone()), and it solved the "split" problem at the same time.

The cloning support is pretty specific per platform/lib combination:

* native/win32 - uses some specific WSA apis to clone the SOCKET handle
* native/unix - uses dup() to get another file descriptor
* green/all - This is where things get interesting. When we support full clones
              of a handle, this implies that we're allowing simultaneous writes
              and reads to happen. It turns out that libuv doesn't support two
              simultaneous reads or writes of the same object. It does support
              *one* read and *one* write at the same time, however. Some extra
              infrastructure was added to just block concurrent writers/readers
              until the previous read/write operation was completed.

I've added tests to the tcp/unix modules to make sure that this functionality is
supported everywhere.
</content>
</entry>
<entry>
<title>Replace NonCopyable usage with NoPod</title>
<updated>2014-02-03T23:15:27+00:00</updated>
<author>
<name>Flavio Percoco</name>
<email>flaper87@gmail.com</email>
</author>
<published>2014-01-26T10:42:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c6b1bce96f25e785d22e976d1cc41cabdae5ea73'/>
<id>urn:sha1:c6b1bce96f25e785d22e976d1cc41cabdae5ea73</id>
<content type='text'>
cc #10834
</content>
</entry>
<entry>
<title>stdtest: Fix all leaked trait 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-07T06:33:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bcb1c381a38f8f36a71323bbf12d55afc8627d90'/>
<id>urn:sha1:bcb1c381a38f8f36a71323bbf12d55afc8627d90</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove std::either</title>
<updated>2014-01-03T18:25:23+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2013-12-26T05:55:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4bea679dbe3ba98049ac700d84ad48271753ce40'/>
<id>urn:sha1:4bea679dbe3ba98049ac700d84ad48271753ce40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: uniform modules titles for doc</title>
<updated>2013-12-27T08:49:11+00:00</updated>
<author>
<name>Luca Bruno</name>
<email>lucab@debian.org</email>
</author>
<published>2013-12-24T16:08:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a9a7a427a1f1a61497105283594d32b976d7559f'/>
<id>urn:sha1:a9a7a427a1f1a61497105283594d32b976d7559f</id>
<content type='text'>
This commit uniforms the short title of modules provided by libstd,
in order to make their roles more explicit when glancing at the index.

Signed-off-by: Luca Bruno &lt;lucab@debian.org&gt;
</content>
</entry>
<entry>
<title>Move std::util::ignore to std::prelude::drop</title>
<updated>2013-12-04T04:40:38+00:00</updated>
<author>
<name>Steven Fackler</name>
<email>sfackler@gmail.com</email>
</author>
<published>2013-12-03T06:37:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a243360401790476deea3d502f644783ed8d7563'/>
<id>urn:sha1:a243360401790476deea3d502f644783ed8d7563</id>
<content type='text'>
It's a more fitting name for the most common use case of this function.
</content>
</entry>
</feed>
