3 ms·
When I found both client.py and client.lisp, I thought it would be nice to see direct lisp/python comparison. However, turns out Python version does much more t
by theamk 10y ago
When I found both client.py and client.lisp, I thought it would be nice to see direct lisp/python comparison. However, turns out Python version does much more that Lisp one (it maintains edit field even if other people send the messages), so no direct comparison is possible.
Author, can you add a simplified python client with exactly the same functionality as the lisp one?
- lerax 10y agoYes, I can do it. The Python client version was a test about handling async STDOUT and STDIN nicely, as I related in other comment in this thread. Actually removing the ChatUI and other ncurses stuff, the rest both clients has the same functionality.
- lerax 10y agoAs you requested: https://ghostbin.com/paste/zba9f https://ghostbin.com/paste/zba9f This is the simplified version making the same output of the lisp version. I was wondering about race conditions when I try close the read stream on finally keyword. Seems crash sometimes. However I never got this on the Lisp version. Funny. I hope you like it. Maybe I should push this version to the repository?