2 ms·
> Language support for this is nice (Erlang and Pony do it one way, Haskell another, Rust yet a third) but not technically necessary. At one point I did some n
by dllthomas 4y ago
> Language support for this is nice (Erlang and Pony do it one way, Haskell another, Rust yet a third) but not technically necessary.
At one point I did some name mangling magic with the C preprocessor for "this can only be accessed from the thread (statically) named foo" for a project where that was relevant. It was pleasant, although limited in how much it could generalize - all the threads very much needed to be statically known.