-
rubyrose
> The other question is how you're receiving the messages/links from the room me? ↺
-
vpzom
yes
-
vpzom
or at least the hypothetical version of you trying to write an XMPP client as a shell script :p
-
moparisthebest
rubyrose: don't listen to them absolutely write it in bash here's a start https://github.com/horazont/xmpp-echo-bot
-
rubyrose
> rubyrose: don't listen to them absolutely write it in bash here's a start https://github.com/horazont/xmpp-echo-bot I was thinking doing C++, but may try that out ↺
-
Evilotto
I love shell scripts, but I can't in good conscience recommend people use it for anything that might need whitespace handled or escaped characters, just way too easy to trip up. In bad conscience tho, go for it! It's great interactively, very extensible, fast enough for most human-speed tasks (usually starts up faster than a python script!) and just enough power just out of reach to make you think you can get it with just one more tweak.... (hey, maybe if I use coprocs and extra fds I can make it work....)
-
jjj333_p (any pronouns)
im curious how you would have an ongoing tcp connection using bash
-
dwd
rubyrose, I can do C++ and Bash (and others), but I'd pick Python for a simple bot generally.
-
badrihippo
Is there any existing working group discussing how to handle "threads" in XMPP? If not, I'm thinking of starting one to at least document the various ideas people have in their head when they mean "threads"
-
badrihippo
Also I'm not sure how working groups work; what I have in my head is just "create a group chat to discuss it and put down stuff on a wiki page" but if there's some other way we usually do things I'm open to that too :)
-
dwd
There is not, but coincidentally I've been revisiting an idea or two around "subordinate chatrooms" in MUC. These would be rooms which have a "parent message" within a "parent MUC", and could be threads, games, video calls etc (as an existing MUC can be in principle).
-
dwd
Also we *do* have something like working groiups (we have special interest groups) but the way to do this is via the mailing list on standards@xmpp.org - it's possible to spin off a new SIG but they're very rare.
-
jjj333_p (any pronouns)
> There is not, but coincidentally I've been revisiting an idea or two around "subordinate chatrooms" in MUC. These would be rooms which have a "parent message" within a "parent MUC", and could be threads, games, video calls etc (as an existing MUC can be in principle). i particularly dislike this implementation of threads, but its pretty common yeah ↺
-
jjj333_p (any pronouns)
(as in dislike to the point of forcefully blocking them wherever possible)
-
dwd
The alternative tends to be what we already have as structured replies. What else were you thinking of?
-
jjj333_p (any pronouns)
perhaps i need to look into structured replies, but as ive said many times i like imessage's blur between a thread and chain of replies, such that a reply is inherently starting a thread, but the entire thread shows in the main chat and you can just "focus down"
-
jjj333_p (any pronouns)
the matrix client nheko also does something similar to this
-
Kev
Do you also have persistent joins and ACL delegation? I don’t really see how threads-as-rooms works sensibly otherwise - although all the other properties seem desirable.
-
jjj333_p (any pronouns)
telegram doesnt really have threads but it has reply chains which you can view as a thread
-
dwd
> Do you also have persistent joins and ACL delegation? I don’t really see how threads-as-rooms works sensibly otherwise - although all the other properties seem desirable. I would draw your attention to just how much my hands are waving, here. ↺
-
dwd
jj333_p, Yes, being able to consider a set of replies as a thread (or in a thread view) is nice, but would benefit (I think) from using <thread/> for this. But then, the poor <thread/> is unloved and rarely used.
-
Guus
Doing interpretive dance again, Dave?
-
dwd
Guus, More than I have an idea of the UX I want to achieve, but have not drilled down into the technical implementation very far at all.
-
Kev
I think <thread/> is the best option we have at the moment, but once we have persistent joins and space-like ACL delegation, subordinate rooms may well be better, for the community type of threads that I most care about.
-
jjj333_p (any pronouns)
> jj333_p, Yes, being able to consider a set of replies as a thread (or in a thread view) is nice, but would benefit (I think) from using <thread/> for this. But then, the poor <thread/> is unloved and rarely used. fair enough, ill probably try to make use of whatever in my client as long as it doesnt literally break out to another chat. btw this doesnt mention me in case you meant to ↺
-
Evilotto
> im curious how you would have an ongoing tcp connection using bash something like exec 7<>/dev/tcp/xmpp.conversations.com/5222 echo '<bla>' >&7 read -u7 -t0 line ↺
🤔 1 -
jjj333_p (any pronouns)
inch resting
-
jjj333_p (any pronouns)
seems like an annoying way to do it but yk
-
Evilotto
yeah, do not mistake "you can do it" with "you should do it"
-
Guus
dwd, speaking of a UI - do you have a website yet? :)
-
dwd
Guus, Ugh, corporate stuff, but I really do need to get around to it.
-
Aaruni
> telegram doesnt really have threads but it has reply chains which you can view as a thread as long as threads are still in the discussion phase, I would like to cast my vote for a design like this. ↺
-
jjj333_p (any pronouns)
fwiw im open to the ux being up to client implementors, afaik most xeps dont have specific ui requirements so 🤷
-
jjj333_p (any pronouns)
as long as all thread messages happen within the same muc/dm/etc its _fine_
-
Aaruni
I assume (perhaps stupidly) that the xep design needs to allow for an implementation to offer. (I am not an XMPP dev in any capacity. I'm usually only here reading because I find it sorta interesting.)
-
jjj333_p (any pronouns)
s/offer/differ ?
-
Aaruni
as a stupid example, a thread implementation that somehow uses private whispers in thread to only the people who are participating in the thread. then the "nice design" i have in mind doesn't work. I am either in the thread, or out the thread. (again, just a stupid example to try to make the one point)
-
Aaruni
> s/offer/differ ? yes, sorry. ↺
-
jjj333_p (any pronouns)
> as a stupid example, a thread implementation that somehow uses private whispers in thread to only the people who are participating in the thread. then the "nice design" i have in mind doesn't work. I am either in the thread, or out the thread. > (again, just a stupid example to try to make the one point) if you do muc pms as inline whispers then that should work fine, no? ↺
-
jjj333_p (any pronouns)
im not quite sure i understand your wording
-
Aaruni
ahh nevermind, I guess. I probably know too little about the internals to properly word my fears.
-
singpolyma
> There is not, but coincidentally I've been revisiting an idea or two around "subordinate chatrooms" in MUC. These would be rooms which have a "parent message" within a "parent MUC", and could be threads, games, video calls etc (as an existing MUC can be in principle). yes. This is what discord does. And a few others. So it's a good model to support ↺
-
singpolyma
>> telegram doesnt really have threads but it has reply chains which you can view as a thread > as long as threads are still in the discussion phase, I would like to cast my vote for a design like this. Your app can do it however you like 🙂 it's not like every app will have the same UI ↺
-
singpolyma
> as a stupid example, a thread implementation that somehow uses private whispers in thread to only the people who are participating in the thread. then the "nice design" i have in mind doesn't work. I am either in the thread, or out the thread. > (again, just a stupid example to try to make the one point) Well radically different things might use different protocols. Even if people choose to call them the same English word. I expect at least threads as we have them now, and sub rooms, and probably "forked threads" (slack style) will all appear over time ↺
-
dwd
Does Cheogram (and others) implement WebXDC's joinRealtimeChannel? If so, what's the way to do this? XEP-0491 is mysteriously silent on it.
-
moparisthebest
singpolyma question ^
-
moparisthebest
dwd: don't forget to do this disgusting hack https://delta.chat/en/2023-05-22-webxdc-security#fill500-disabling-webrtc-on-chromium probably should be mentioned in security considerations on the XEP :(
-
dwd
I'm asking because I have a basic implementation, now, but sadly I'm unable to play Quake in my XMPP client.
-
moparisthebest
totally unacceptable...
-
dwd
> dwd: don't forget to do this disgusting hack https://delta.chat/en/2023-05-22-webxdc-security#fill500-disabling-webrtc-on-chromium probably should be mentioned in security considerations on the XEP :( Ew. But also, yes, should definitely be in the XEP. ↺
-
moparisthebest
it feels odd documenting what's arguably (or literally) a bug in a particular piece of software, but on the other hand it's basically the software everyone will end up using so /shrug
-
dwd
Also I suspect some (many?) of my use-cases will involve internet-connected mini-apps. Though it's hard to tell, I really implemented this just for fun.
-
moparisthebest
it's great for fun and games but also apparently people are already relying on it for shared calendars etc
-
moparisthebest
my whole family plays mancala over it all the time, my middle daughter wrote her own game for it she plays with friends etc etc
❤️ 1 -
dwd
That's awesome.
-
dwd
I have no idea what mancala is.
-
moparisthebest
careful it's addicting https://en.wikipedia.org/wiki/Kalah https://github.com/moparisthebest/mancala
-
moparisthebest
fwiw I hadn't heard about it either before about a year ago when the kids said they played it during indoor recess at school :)
-
arne-bruen
Thanks, just playing it in monocles chat (Android and Desktop) :D
-
moparisthebest
arne-bruen: desktop eh? gimme link plz :)
-
arne-bruen
There is only a Debian version yet but you can build it for any distro actually: https://github.com/Arne19/monocles_chat_desktop/releases/tag/experimental
-
moparisthebest
rust too? you had my curiosity, now you have my attention 😁 I'll make an arch PKGBUILD later thanks!
-
arne-bruen
Yep :)
-
dwd
moparisthebest, Wimsy is desktop too (and Android, and Web, and Windows, and ...)
-
moparisthebest
yea but not rust so...
-
dwd
Sure, but it has some rust in it, at least everywhere but web.
-
dwd
Pretty sure the CI is about to fail for Linux though. So maybe wait... I've a long plane flight coming up, I should manage to get it all working by next week.
-
moparisthebest
for reference my entire GUI stack is rust from X server (yserver) to tiling window manager (leftwm) to terminal (alacritty) to terminal mulitiplexor (zellij) to editor (helix) I'm only lacking a browser which firefox is maybe slowly getting there and an XMPP client 😁
-
dwd
moparisthebest, Firefox killed off their Rust team, you'll have to wait for Servo.
-
moparisthebest
iirc they are still using it places, but def also watching servo
-
singpolyma
> Does Cheogram (and others) implement WebXDC's joinRealtimeChannel? If so, what's the way to do this? XEP-0491 is mysteriously silent on it. ah, yes. I even wrote an update for the XEP but I guess I didn't submit it ↺
-
singpolyma
> dwd: don't forget to do this disgusting hack https://delta.chat/en/2023-05-22-webxdc-security#fill500-disabling-webrtc-on-chromium probably should be mentioned in security considerations on the XEP :( I'm honestly not sold on the "no internet access for webxdc" thing being the right model long term, but yeah ↺
-
singpolyma
dwd : <https://github.com/xsf/xeps/pull/1564>
👍 1 -
moparisthebest
singpolyma: do you know how deltachat implements that? I kinda expected webrtc data channel there
-
dwd
> I'm honestly not sold on the "no internet access for webxdc" thing being the right model long term, but yeah I think I want to know, and explicitly permit, internet access. And that means denial has to be effective. ↺
☝️ 1 -
moparisthebest
definitely a huge difference in UX if a user can safely click any webxdc vs not, not really a choice that can be left up to individual client devs for interop reasons right?
-
moparisthebest
eg a webxdc app that needs unrestricted internet wouldn't work on a client that didn't allow that so protocol needs to say one way or the other
-
singpolyma
> singpolyma: do you know how deltachat implements that? I kinda expected webrtc data channel there They use iroh ↺
-
moparisthebest
do you know what they use for calls?
-
arne-bruen
Wasn't it a jitsi link or do they have their own implementation now?
-
moparisthebest
https://github.com/chatmail/core/blob/main/standards.md > User and chat colors XEP-0392: Consistent Color Generation huh that's neat cc jonas’
-
moparisthebest
> Wasn't it a jitsi link or do they have their own implementation now? I can't really tell, it looks like that was their initial impl, but then they merged https://github.com/deltachat/deltachat-android/pull/3785 last year which looks like webrtc in a webview, and I see some mentions of a future move to calls over iroh with PoC here https://github.com/n0-computer/callme ↺
-
moparisthebest
either way seems like XMPP webxdc realtime should probably use iroh or webrtc data channels?
-
singpolyma
Why?
-
moparisthebest
XMPP stanzas aren't really realtime enough for eg quake gaming right?
-
moparisthebest
oh its supposed to go to all participants which makes webrtc datachannels require a group call or so? yuck... why not just iroh then? then you also get interop with deltachat?
-
moparisthebest
but perhaps more importantly apps that work well for one will work well for both
-
moparisthebest
how do they do iroh from a browser...
-
singpolyma
I think XMPP is realtime enough for the use cases of WebXDC channels. I don't think iroh is really going to be that much better in most cases and is way more complex and also not a standard
-
singpolyma
I don't really want to inline an iron spec into this xep
-
moparisthebest
have you implemented it this way yet and does quake work? that's really all that matters lol
-
moparisthebest
I think you would just link the iroh spec like you link the webxdc spec no?
-
singpolyma
I have implemented it this way. I have not tried flake but I tried other real time stuff that existed at the time✎ -
singpolyma
I have implemented it this way. I have not tried quake but I tried other real time stuff that existed at the time ✏
-
moparisthebest
either way I think it might be nice to include a bit of negotiation on the xmpp side specifically for joinRealtimeChannel? that way clients could negotiate the uh "best" realtime channel and other methods could be added later? would that be easy and make sense?
-
moparisthebest
like these messages could be the universal MUST fallback, maybe 1:1 chats could do webrtc datachannels "easily" later
-
dwd
Could make everything Jingle, indeed.
-
singpolyma
Would need to be multi party jingle of some kind
-
singpolyma
at which point we might need a proxy. And then performance degrades to this anyway
-
moparisthebest
right but if we have a bit of negotiation then wouldn't need that for 1:1 for instance, could do iroh or whatever new hotness comes along later?
-
singpolyma
sure. Jingle for 1:1 would be easier than for MUC of course
-
singpolyma
if it turns out there's any reason to want that kind of thing
-
projectmoon
All I read is quake over xmpp
-
moparisthebest
correct take
-
dwd
> All I read is quake over xmpp That's all you *need* to read. ↺