4 ms·
That's a two year old, closed, issue, from when rust had a runtime, probably doesn't apply anymore. I don't think signal handlers are a big deal because global
by Manishearth 10y ago
That's a two year old, closed, issue, from when rust had a runtime, probably doesn't apply anymore.
I don't think signal handlers are a big deal because global mutable state in rust is rare; and when it exists it probably is immune to the issues -- global mutable state in rust is required to be thread safe (since rust doesn't know if you are using threads), which should make it signal -safe too.
- bogomipz 10y agoNot sure what you mean, doesn't Rust have a runtime now?
- Manishearth 10y agoEverything has a runtime, except perhaps hand-rolled assembly. Rust today has a C-like runtime, which is bare minimum and makes it possible to FFI easily. For the most part you can pretend it doesn't exist; it doesn't affect programs. In the past, Rust did have a bulkier runtime with a green thread scheduler and libuv; a runtime that "mattered".
- nemaar 10y agoIt has a runtime comparable to C. Back in those days, it had a much larger one.
- bogomipz 10y agoOk, that's what I thought : ) It interesting that they stripped down the runtime from previous(larger) iterations. Are those discussion discussed anywhere that you know about? It seems like that would be an interesting read.
- Manishearth 10y agohttps://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md https://github.com/rust-lang/rfcs/blob/master/text/0230-remo... and the PR/issue linked there. There are also old mailing list discussions on rust-dev somewhere which discuss this IIRC.