4 ms·
The story is that it's used in production and works quite well (but I am pretty biased as I developed most of it). If you want some examples take a look at my b
by dom96 7y ago
The story is that it's used in production and works quite well (but I am pretty biased as I developed most of it). If you want some examples take a look at my book[1] which includes a whole chapter where you build a chat app using Nim's async/await. The code for this is freely available[2].
1 - https://book.picheta.me/ https://book.picheta.me/
2 - https://github.com/dom96/nim-in-action-code https://github.com/dom96/nim-in-action-code
- haolez 7y agoGreat! Congratulations! I’ve been bitten by Python in this area a few times and I was looking for a statically typed alternative for a while. Nim seems to fit the bill. The obvious choice would be Go, but the learning curve for my mostly Python-based shop seems higher and Nim looks cooler :)
- dom96 7y agoThanks! Be sure to get in touch if you run into any trouble[1] :) 1 - https://nim-lang.org/community.html https://nim-lang.org/community.html
- eptcyka 7y agohttps://github.com/dom96/nim-in-action-code/blob/master/Chapter3/ChatApp/src/server.nim#L47 https://github.com/dom96/nim-in-action-code/blob/master/Chap... Does the linked line imply that a slow client will block the rest of the clients from receiving new messages?
- dom96 7y agoYes. Ideally this should have a time out on it, but this is an edge case :)