freenode/#shirakumo - IRC Chatlog
Search
21:54:47
Shinmera
the from etc fields don't matter as long as we already have an established connection.
21:55:09
Shinmera
In fact in Lichat 2.0 you can leave out from entirely and the server will tack it on for you.
21:55:37
SAL9000
although having a from could make sense if you want to (later) implement gateways/proxies
21:57:56
Shinmera
Another problem the from was meant to solve was sharding. Another server would be another user with an "impostor" permission so that it could send messages on behalf of others.
21:58:48
Shinmera
But that needs some more thought (how to merge user and channel lists and keep them in sync, etc.)
22:01:13
Shinmera
anyway, considering my tests with exlichat earlier today I don't think I need to work on that extension for a long time :)
22:05:26
Shinmera
nah, just leaving it be for now, perf seems far more than acceptable for what I need.
22:05:46
SAL9000
"over 2 million connections (Erlang on FreeBSD)" yes... and then "10-12 million connections (Java)"
22:07:59
Shinmera
we say as we consider an elixir server and talk about python and javascript clients
22:36:59
SAL9000
loading a trivial weechat script which loads pylichat already causes warning messages :p
22:37:07
SAL9000
"context.c:55: warning: mpd_setminalloc: ignoring request to set MPD_MINALLOC a second time"
22:37:20
SAL9000
https://stackoverflow.com/questions/49757245/fixing-warning-message-related-to-mpd-setminalloc
22:37:21
Colleen
stackoverflow.com/questions... Website (HTML), Title: python - fixing warning message related to mpd_setminalloc - Stack Overflow
22:48:38
Colleen
github.com/Shirakumo/weelic... Website (HTML), Title: weelichat/lichat.py at main · Shirakumo/weelichat · GitHub
22:52:05
Shinmera
I'll hold off on pushing a new version to pypi until this works so we don't have to bump versions too much.
23:19:10
Shinmera
SAL9000: do you have an idea already how to handle the connection? Does weechat offer some periodic callback you can use or something?
23:19:29
Shinmera
would still introduce latency, but not sure how else to make it "wake up on arrival"
23:19:31
SAL9000
Shinmera: there's periodic callbacks but I'm hoping to hook into the weechat select loop
7:47:07
Shinmera
Regarding editing, how would one do that from weechat? Something like /edit X .... where X is an offset for your messages?
7:52:50
Shinmera
Storing them to disk and posting a file:// link would be one thing but that wouldn't work if you're running weechat remote (like I am)
7:53:12
Shinmera
I suppose could re-up it on a file hosting service, but that's a bit more complicated.