> Again, I'm considering porting a large existing project, not writing 
> something from scratch. I already know the requirements and the architecture. 
> Nim is different from C++ but that doesn't mean I'm going to change the 
> design to single-threaded. I definitely need multiple threads because the 
> WebSocket messages invoke tasks that may be CPU-intensive or just block a 
> while (database calls.)

It seems like the threading support is ok but you just need to be careful when 
sharing data between threads. I'm coming from mostly Elixir programming the 
last couple of years, so the "actor" model and copying messages between them 
makes sense to me. Out of curiosity, how does your C++ architecture share data 
between threads? 

Reply via email to