Testament - Test Failure reFilesDiffer comparing wrong files with one another

2023-08-18 Thread Isofruit
After fiddling around with it more I now understand that the even though the issue testament states is "reFilesDiffer" , the actual problem is that it doesn't **appear** to encounter an error call. The reason I emphasize **appear** is because that's not true. For now I think just being able to

Storing clients in a seq in threading not working as expected?

2023-08-18 Thread dvmp5250
Thank you Araq, I didn't realise threadvar was for using a local copy. Now using a lock it works perfectly and I can continue enjoying nim with my project!

Storing clients in a seq in threading not working as expected?

2023-08-18 Thread Araq
Because it is a "threadvar" which means every thread has its own copy. You need to remove the `threadvar` annotation and instead use a lock to protect the variable. But in Nim 2.0 times you should use Malebolgia and its new `Locker[T]` abstraction, it's just so much better than what the stdlib

Storing clients in a seq in threading not working as expected?

2023-08-18 Thread dvmp5250
So I was writing a tcp server in nim, I am new to the language and really love it so far. But I cannot figure out why when I run the code below: Why does does it say 0 users after a client leaves but we still have a client connected: Client connected to notification server from: 19

Testament - Test Failure reFilesDiffer comparing wrong files with one another

2023-08-18 Thread Isofruit
I'm currently implementing some compile-time validation for my mapster library and have thus swapped to using testament for my tests in order to cover all possible ways of compiling the project and viewing the output. I have a usecase that _should not compile_ when a specific flag is activated.

Potential users

2023-08-18 Thread alexeypetrushin
> The current major challenge in lib-land are the GUI-libs. The challenge is to make App Development in Nim in some way significantly better than with existing languages and tools. Right now, there's no such benefits, and so not many people willing to discard already working tools to try new Ni