3 ms·
You might be interested in this: https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9f782 https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9.
by zoul 8y ago
You might be interested in this:
https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9f782 https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9...
Speaking of reliable systems, introducing an actor model is a good opportunity and excuse to introduce a mechanism for handling and partially recovering from runtime failures (like failed force-unwrap operations, out-of-bounds array accesses, etc). We explore several options that are possible to implement and make a recommendation that we think will be a good for UI and server applications.
This looks like a more principled approach that we will eventually get in Swift.
- fauigerzigerk 8y agoSounds pretty vague, but at least he acknowledges the issue.
- zoul 8y agoThere’s plenty of details: https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9f782#part-3-reliability-through-fault-isolation https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9... https://github.com/apple/swift/blob/master/docs/ErrorHandlingRationale.rst https://github.com/apple/swift/blob/master/docs/ErrorHandlin...
- fauigerzigerk 8y agoSo essentially they plan to terminate the actor instead of the whole process. I think that would be a very good thing.