Re:Mastering Nim – now available on Amazon
by throwawaymaths on Wednesday June 29, 2022 @10:44PM
(#31928247)
Not having failure domains is worse than not having types IMO.
[ Parent
| on HN ]
Re:Mastering Nim – now available on Amazon
by eddyschai on Thursday June 30, 2022 @12:25AM
(#31928711)
What are failure domains?
Re:Mastering Nim – now available on Amazon
by throwawaymaths on Thursday June 30, 2022 @08:39AM
(#31931631)
By default a green thread is the atomic failure domain. A 'panic' in this green thread is isolated, but sends an uncancellable notification to anyone who subscribes to it. You can tie multiple green threads together so that when one goes down the others do too.