What is Nostr?
Kristoffer Lawson /
npub1aj3…q0ns
2025-03-11 09:54:23

Kristoffer Lawson on Nostr: To this day I'm convinced that by far the best way to do concurrent programming with ...

To this day I'm convinced that by far the best way to do concurrent programming with #threads (beyond graphical programming languages like #Labview, where concurrency is natural) is that used by #Tcl

In other words each thread is created with its own sub-interpreter. Each has its own context, not shared. Information is passed by messaging (which the receiver receives in their own event loop). Channels moved (not shared) explicitly.

This massively reduces race conditions and other nasties.
Author Public Key
npub1aj3rwvdecaq6k5ukemz6hy5tpp3u8lagwa5qt3stgcsdslgaa4tql7q0ns