5 ms·
> especially ones that try to do too much magic like TLS behind the scenes just to save me the trouble of supplying an instance/context pointer to every call.
by fluffy87 7y ago
> especially ones that try to do too much magic like TLS behind the scenes just to save me the trouble of supplying an instance/context pointer to every call.
I really hate that this is the solution that Rust ended up pursuing. There are claims that you can work around TLS by just no using TLS if it is not available, but I have yet to see someone removing TLS and still be able to use a multi-threaded executor.
- steveklabnik 7y agoThe real solution without TLS will come, in my understanding, after generators improve. Specifically, they cannot currently take arguments on resume.