News for hackers. Stuff that matters.
Re:State of Rust 0.11.0 by sriku on Wednesday July 16, 2014 @06:21AM (#8041365)
Newbie taking a serious look at Rust here.

Any notes about non-blocking I/O in rust? Iron [1] is mentioned, but am not sure how I/O is handled in Iron yet .. or how it would be written to be non-blocking [2]. I hear "read the source luke" echoing in the chambers of HN and will do that, but some higher level info would be nice.

[1] http://ironframework.io/

[2] http://www.reddit.com/r/rust/comments/1v2ptr/is_nonblocking_...

edit: This (http://doc.rust-lang.org/native/io/) seems to suggest that the norm is non-blocking I/O which is automatically handled by the scheduler.

Re:State of Rust 0.11.0 by ben0x539 on Wednesday July 16, 2014 @06:50AM (#8041428)
If you explicitly use the "green" runtime that ships with rust instead of the "native" runtime, you get green threads where the built-in blocking IO only blocks the green thread but lets the OS-level thread carry on executing other green threads.

Internally that is built on top of libuv for async IO, but as far as I know, Rust currently doesn't expose any interface for manually doing async or nonblocking IO.

Re:State of Rust 0.11.0 by sriku on Wednesday July 16, 2014 @01:21PM (#8043213)
It seems this issue was only recently closed (May 9) [1] .. and it seems a websocket library with full duplex support is still in the works.

[1] https://github.com/rust-lang/rust/issues/11165

Re:State of Rust 0.11.0 by sriku on Wednesday July 16, 2014 @07:58AM (#8041581)
Thanks for this clarification.