940 karma · joined May 12, 2012 (14y ago) · 212 submissions
comment 9y ago · link · parent
comment 9y ago · link · parent
[1]: https://github.com/killercup/wasm-experiments/blob/bf3b30eed...
[2]: https://github.com/killercup/wasm-experiments/blob/bf3b30eed...
comment 9y ago · link · parent
You should note that it's not as simple as that, though. Depending on the context you want to run WASM you might need to do additional steps. E.g., when running this in a browser, you might not be able to use the std lib to spawn threads just yet.
comment 9y ago · link · parent
Also, incremental compilation is making very good progress. More fuzzy numbers: I'm currently working on a mid-size Rust project, where the app crate has around 10k lines. `env CARGO_INCREMENTAL=1 cargo run --release` takes 2-3 seconds depending on what I changed.
comment 9y ago · link · parent
[1]: http://smallcultfollowing.com/babysteps/blog/2016/11/02/asso...
[2]: https://github.com/rust-lang/rfcs/pull/1598
[3]: http://smallcultfollowing.com/babysteps/blog/2017/01/26/lowe...
comment 9y ago · link · parent
comment 9y ago · link · parent
> In contrast to NTP implementations such as chrony or the NTP reference server [systemd-timesyncd] only implements a client side, and does not bother with the full NTP complexity, focusing only on querying time from one remote server and synchronizing the local clock to it.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
error_chain! {
foreign_links {
Io(io::Error);
Parse(ParseIntError);
}
}
and it'll even generate an aliased `Result` type as well as fancy chaining support.comment 9y ago · link · parent
> Zero-copy deserialization
> […] The semantics of Rust guarantee that the input data outlives the period during which the output struct is in scope, meaning it is impossible to have dangling pointer errors as a result of losing the input data while the output struct still refers to it.