Weird
Weird
Posted Aug 17, 2016 23:40 UTC (Wed) by lsl (subscriber, #86508)In reply to: Weird by Cyberax
Parent article: Better types in C using sparse and smatch
Posted Aug 17, 2016 23:54 UTC (Wed)
by Cyberax (✭ supporter ✭, #52523)
[Link] (3 responses)
Posted Aug 18, 2016 2:02 UTC (Thu)
by lsl (subscriber, #86508)
[Link] (2 responses)
So while the new Rust with mostly-excised runtime itself might be used in forking programs, touching the standard library is still considered to result in nasal demons by its developers.
Posted Aug 18, 2016 3:32 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link]
Standard library does NOT run any background threads and RNG duplication might be an expected outcome.
I can't find any recent admonitions to not use libstd in forking programs and having actually used it, I kinda doubt that there are any serious issues.
Posted Aug 23, 2016 20:43 UTC (Tue)
by mathstuf (subscriber, #69389)
[Link]
Posted Aug 18, 2016 8:55 UTC (Thu)
by farnz (subscriber, #17727)
[Link] (1 responses)
I can't find any such limitation in versions of Rust post the decision to not use a green-threading model. In prerelease versions, the userspace thread manager could get confused by fork(), but the thread manager has gone away.
Posted Aug 18, 2016 9:46 UTC (Thu)
by micka (subscriber, #38720)
[Link]
Especially from comment
which states (if I understand correctly) that it was unsafe to fork when rust used a runtime, but when the runtime was removed, the only problem left was the hashmap implementation using a rng with a shared seed (the rng being used to prevent DOS by hashmap collision).
Weird
Weird
Weird
Really? How? Borrow checker is entirely compile time and after forking the new copy will go on independently.
Weird
Weird
Weird
https://github.com/rust-lang/rust/issues/16799
https://github.com/rust-lang/rust/issues/16799#issuecomme...