4 ms·
> Which obviously would be much harder to get right. Not obvious to me I'm afraid. Using CSP, this is almost trivially easy. All access to the data goes throug
by usrbinbash 3y ago
> Which obviously would be much harder to get right.
Not obvious to me I'm afraid. Using CSP, this is almost trivially easy. All access to the data goes through a guardian thread. Accessing the resource is just sending a message.
And mutexes are not hard either.
- cmrdporcupine 3y ago+1. This approach of having guardian threads/actors etc communicating by messages is just a natural for Rust, too, because it nicely deals with a whole pile of borrow checker & lifecycle issues, too. crossbeam_channel FTW