I want to store a table[string, string] that any thread can access. I know this would mean using a lock for thread-safety.
The closest example I could find to implementing this approach is: https://simpletutorials.com/c/nim/vz4pqar9/how-to-read-global-data-from-a-thread-in-nim
PMunch on IRC had concerns that the default GC couldn't handle this, because Nim's heap is thread-local, and one thread could alloc a string, with another thread trying to free it incorrectly, and that this could introduce a bug.
Another potential way is to have one thread that owns the table, but I don't know how the other threads would be able to find it.
Has anyone done something like this successfully?