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.
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.