<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/rt/task.rs, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-01-02T17:19:00+00:00</updated>
<entry>
<title>rollup merge of #20315: alexcrichton/std-sync</title>
<updated>2015-01-02T17:19:00+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-01-02T17:19:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=009ec5d2b0c4ab0e7dc7ab2f6b15754b4da14caf'/>
<id>urn:sha1:009ec5d2b0c4ab0e7dc7ab2f6b15754b4da14caf</id>
<content type='text'>
Conflicts:
	src/libstd/rt/exclusive.rs
	src/libstd/sync/barrier.rs
	src/libstd/sys/unix/pipe.rs
	src/test/bench/shootout-binarytrees.rs
	src/test/bench/shootout-fannkuch-redux.rs
</content>
</entry>
<entry>
<title>std: Stabilize the prelude module</title>
<updated>2015-01-02T16:54:06+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-12-22T17:04:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=56290a004493a5d2e211f056601533253497df60'/>
<id>urn:sha1:56290a004493a5d2e211f056601533253497df60</id>
<content type='text'>
This commit is an implementation of [RFC 503][rfc] which is a stabilization
story for the prelude. Most of the RFC was directly applied, removing reexports.
Some reexports are kept around, however:

* `range` remains until range syntax has landed to reduce churn.
* `Path` and `GenericPath` remain until path reform lands. This is done to
  prevent many imports of `GenericPath` which will soon be removed.
* All `io` traits remain until I/O reform lands so imports can be rewritten all
  at once to `std::io::prelude::*`.

This is a breaking change because many prelude reexports have been removed, and
the RFC can be consulted for the exact list of removed reexports, as well as to
find the locations of where to import them.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
[breaking-change]

Closes #20068
</content>
</entry>
<entry>
<title>std: unbox closures used in function arguments</title>
<updated>2015-01-01T03:50:25+00:00</updated>
<author>
<name>Jorge Aparicio</name>
<email>japaricious@gmail.com</email>
</author>
<published>2014-12-30T23:05:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=371f04d4330f70cfab5fa2a5fdb65df7ccd0604c'/>
<id>urn:sha1:371f04d4330f70cfab5fa2a5fdb65df7ccd0604c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>s/task/thread/g</title>
<updated>2014-12-26T21:04:27+00:00</updated>
<author>
<name>Steve Klabnik</name>
<email>steve@steveklabnik.com</email>
</author>
<published>2014-12-26T21:04:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b8ffad5964e328340de0c03779577eb14caa16fc'/>
<id>urn:sha1:b8ffad5964e328340de0c03779577eb14caa16fc</id>
<content type='text'>
A part of #20038
</content>
</entry>
<entry>
<title>Remove rt::bookkeeping</title>
<updated>2014-12-19T07:31:35+00:00</updated>
<author>
<name>Aaron Turon</name>
<email>aturon@mozilla.com</email>
</author>
<published>2014-11-25T01:33:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9b03b72d7fb82f07d35e7dcda02754c6da90ae58'/>
<id>urn:sha1:9b03b72d7fb82f07d35e7dcda02754c6da90ae58</id>
<content type='text'>
This commit removes the runtime bookkeeping previously used to ensure
that all Rust tasks were joined before the runtime was shut down.

This functionality will be replaced by an RAII style `Thread` API, that
will also offer a detached mode.

Since this changes the semantics of shutdown, it is a:

[breaking-change]
</content>
</entry>
<entry>
<title>libs: merge librustrt into libstd</title>
<updated>2014-12-19T07:31:34+00:00</updated>
<author>
<name>Aaron Turon</name>
<email>aturon@mozilla.com</email>
</author>
<published>2014-11-24T03:21:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2b3477d373603527d23cc578f3737857b7b253d7'/>
<id>urn:sha1:2b3477d373603527d23cc578f3737857b7b253d7</id>
<content type='text'>
This commit merges the `rustrt` crate into `std`, undoing part of the
facade. This merger continues the paring down of the runtime system.

Code relying on the public API of `rustrt` will break; some of this API
is now available through `std::rt`, but is likely to change and/or be
removed very soon.

[breaking-change]
</content>
</entry>
<entry>
<title>std: Extract librustrt out of libstd</title>
<updated>2014-06-07T05:19:41+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-06-04T02:11:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5ec36c358f74fe83332231e774ea20a21d165120'/>
<id>urn:sha1:5ec36c358f74fe83332231e774ea20a21d165120</id>
<content type='text'>
As part of the libstd facade efforts, this commit extracts the runtime interface
out of the standard library into a standalone crate, librustrt. This crate will
provide the following services:

* Definition of the rtio interface
* Definition of the Runtime interface
* Implementation of the Task structure
* Implementation of task-local-data
* Implementation of task failure via unwinding via libunwind
* Implementation of runtime initialization and shutdown
* Implementation of thread-local-storage for the local rust Task

Notably, this crate avoids the following services:

* Thread creation and destruction. The crate does not require the knowledge of
  an OS threading system, and as a result it seemed best to leave out the
  `rt::thread` module from librustrt. The librustrt module does depend on
  mutexes, however.
* Implementation of backtraces. There is no inherent requirement for the runtime
  to be able to generate backtraces. As will be discussed later, this
  functionality continues to live in libstd rather than librustrt.

As usual, a number of architectural changes were required to make this crate
possible. Users of "stable" functionality will not be impacted by this change,
but users of the `std::rt` module will likely note the changes. A list of
architectural changes made is:

* The stdout/stderr handles no longer live directly inside of the `Task`
  structure. This is a consequence of librustrt not knowing about `std::io`.
  These two handles are now stored inside of task-local-data.

  The handles were originally stored inside of the `Task` for perf reasons, and
  TLD is not currently as fast as it could be. For comparison, 100k prints goes
  from 59ms to 68ms (a 15% slowdown). This appeared to me to be an acceptable
  perf loss for the successful extraction of a librustrt crate.

* The `rtio` module was forced to duplicate more functionality of `std::io`. As
  the module no longer depends on `std::io`, `rtio` now defines structures such
  as socket addresses, addrinfo fiddly bits, etc. The primary change made was
  that `rtio` now defines its own `IoError` type. This type is distinct from
  `std::io::IoError` in that it does not have an enum for what error occurred,
  but rather a platform-specific error code.

  The native and green libraries will be updated in later commits for this
  change, and the bulk of this effort was put behind updating the two libraries
  for this change (with `rtio`).

* Printing a message on task failure (along with the backtrace) continues to
  live in libstd, not in librustrt. This is a consequence of the above decision
  to move the stdout/stderr handles to TLD rather than inside the `Task` itself.
  The unwinding API now supports registration of global callback functions which
  will be invoked when a task fails, allowing for libstd to register a function
  to print a message and a backtrace.

  The API for registering a callback is experimental and unsafe, as the
  ramifications of running code on unwinding is pretty hairy.

* The `std::unstable::mutex` module has moved to `std::rt::mutex`.

* The `std::unstable::sync` module has been moved to `std::rt::exclusive` and
  the type has been rewritten to not internally have an Arc and to have an RAII
  guard structure when locking. Old code should stop using `Exclusive` in favor
  of the primitives in `libsync`, but if necessary, old code should port to
  `Arc&lt;Exclusive&lt;T&gt;&gt;`.

* The local heap has been stripped down to have fewer debugging options. None of
  these were tested, and none of these have been used in a very long time.

[breaking-change]
</content>
</entry>
<entry>
<title>std: Rename strbuf operations to string</title>
<updated>2014-05-27T19:59:31+00:00</updated>
<author>
<name>Richo Healey</name>
<email>richo@psych0tik.net</email>
</author>
<published>2014-05-25T10:17:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f1b2e42d76ba1cd884adc49922636a6c2ac1b2f'/>
<id>urn:sha1:1f1b2e42d76ba1cd884adc49922636a6c2ac1b2f</id>
<content type='text'>
[breaking-change]
</content>
</entry>
<entry>
<title>core: rename strbuf::StrBuf to string::String</title>
<updated>2014-05-25T04:48:10+00:00</updated>
<author>
<name>Richo Healey</name>
<email>richo@psych0tik.net</email>
</author>
<published>2014-05-22T23:57:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=553074506ecd139eb961fb91eb33ad9fd0183acb'/>
<id>urn:sha1:553074506ecd139eb961fb91eb33ad9fd0183acb</id>
<content type='text'>
[breaking-change]
</content>
</entry>
<entry>
<title>std: Move unstable::finally to std::finally. #1457</title>
<updated>2014-05-23T22:28:27+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2014-05-21T05:27:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8e58ec5b9d5c473b28124692ee8aa77e2e835b33'/>
<id>urn:sha1:8e58ec5b9d5c473b28124692ee8aa77e2e835b33</id>
<content type='text'>
[breaking-change]
</content>
</entry>
</feed>
