jdev - 2026-10-01


  1. rubyrose

    > The other question is how you're receiving the messages/links from the room me? ↺

  2. vpzom

    yes

  3. vpzom

    or at least the hypothetical version of you trying to write an XMPP client as a shell script :p

  4. moparisthebest

    rubyrose: don't listen to them absolutely write it in bash here's a start https://github.com/horazont/xmpp-echo-bot

  5. 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 ↺

  6. 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....)

  7. jjj333_p (any pronouns)

    im curious how you would have an ongoing tcp connection using bash

  8. dwd

    rubyrose, I can do C++ and Bash (and others), but I'd pick Python for a simple bot generally.

  9. 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"

  10. 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 :)

  11. 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).

  12. 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.

  13. 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 ↺

  14. jjj333_p (any pronouns)

    (as in dislike to the point of forcefully blocking them wherever possible)

  15. dwd

    The alternative tends to be what we already have as structured replies. What else were you thinking of?

  16. 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"

  17. jjj333_p (any pronouns)

    the matrix client nheko also does something similar to this

  18. 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.

  19. jjj333_p (any pronouns)

    telegram doesnt really have threads but it has reply chains which you can view as a thread

  20. 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. ↺

  21. 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.

  22. Guus

    Doing interpretive dance again, Dave?

  23. 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.

  24. 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.

  25. 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 ↺

  26. 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
  27. jjj333_p (any pronouns)

    inch resting

  28. jjj333_p (any pronouns)

    seems like an annoying way to do it but yk

  29. Evilotto

    yeah, do not mistake "you can do it" with "you should do it"

  30. Guus

    dwd, speaking of a UI - do you have a website yet? :)

  31. dwd

    Guus, Ugh, corporate stuff, but I really do need to get around to it.

  32. 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. ↺

  33. jjj333_p (any pronouns)

    fwiw im open to the ux being up to client implementors, afaik most xeps dont have specific ui requirements so 🤷

  34. jjj333_p (any pronouns)

    as long as all thread messages happen within the same muc/dm/etc its _fine_

  35. 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.)

  36. jjj333_p (any pronouns)

    s/offer/differ ?

  37. 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)

  38. Aaruni

    > s/offer/differ ? yes, sorry. ↺

  39. 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? ↺

  40. jjj333_p (any pronouns)

    im not quite sure i understand your wording

  41. Aaruni

    ahh nevermind, I guess. I probably know too little about the internals to properly word my fears.

  42. 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 ↺

  43. 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 ↺

  44. 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 ↺

  45. 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.

  46. moparisthebest

    singpolyma question ^

  47. 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 :(

  48. dwd

    I'm asking because I have a basic implementation, now, but sadly I'm unable to play Quake in my XMPP client.

  49. moparisthebest

    totally unacceptable...

  50. 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. ↺

  51. 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

  52. 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.

  53. moparisthebest

    it's great for fun and games but also apparently people are already relying on it for shared calendars etc

  54. 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
  55. dwd

    That's awesome.

  56. dwd

    I have no idea what mancala is.

  57. moparisthebest

    careful it's addicting https://en.wikipedia.org/wiki/Kalah https://github.com/moparisthebest/mancala

  58. 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 :)

  59. arne-bruen

    Thanks, just playing it in monocles chat (Android and Desktop) :D

  60. moparisthebest

    arne-bruen: desktop eh? gimme link plz :)

  61. 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

  62. moparisthebest

    rust too? you had my curiosity, now you have my attention 😁 I'll make an arch PKGBUILD later thanks!

  63. arne-bruen

    Yep :)

  64. dwd

    moparisthebest, Wimsy is desktop too (and Android, and Web, and Windows, and ...)

  65. moparisthebest

    yea but not rust so...

  66. dwd

    Sure, but it has some rust in it, at least everywhere but web.

  67. 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.

  68. 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 😁

  69. dwd

    moparisthebest, Firefox killed off their Rust team, you'll have to wait for Servo.

  70. moparisthebest

    iirc they are still using it places, but def also watching servo

  71. 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 ↺

  72. 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 ↺

  73. singpolyma

    dwd : <https://github.com/xsf/xeps/pull/1564>

    👍 1
  74. moparisthebest

    singpolyma: do you know how deltachat implements that? I kinda expected webrtc data channel there

  75. 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
  76. 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?

  77. 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

  78. singpolyma

    > singpolyma: do you know how deltachat implements that? I kinda expected webrtc data channel there They use iroh ↺

  79. moparisthebest

    do you know what they use for calls?

  80. arne-bruen

    Wasn't it a jitsi link or do they have their own implementation now?

  81. 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’

  82. 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 ↺

  83. moparisthebest

    either way seems like XMPP webxdc realtime should probably use iroh or webrtc data channels?

  84. singpolyma

    Why?

  85. moparisthebest

    XMPP stanzas aren't really realtime enough for eg quake gaming right?

  86. 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?

  87. moparisthebest

    but perhaps more importantly apps that work well for one will work well for both

  88. moparisthebest

    how do they do iroh from a browser...

  89. 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

  90. singpolyma

    I don't really want to inline an iron spec into this xep

  91. moparisthebest

    have you implemented it this way yet and does quake work? that's really all that matters lol

  92. moparisthebest

    I think you would just link the iroh spec like you link the webxdc spec no?

  93. singpolyma

    I have implemented it this way. I have not tried flake but I tried other real time stuff that existed at the time ✎

  94. singpolyma

    I have implemented it this way. I have not tried quake but I tried other real time stuff that existed at the time ✏

  95. 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?

  96. moparisthebest

    like these messages could be the universal MUST fallback, maybe 1:1 chats could do webrtc datachannels "easily" later

  97. dwd

    Could make everything Jingle, indeed.

  98. singpolyma

    Would need to be multi party jingle of some kind

  99. singpolyma

    at which point we might need a proxy. And then performance degrades to this anyway

  100. 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?

  101. singpolyma

    sure. Jingle for 1:1 would be easier than for MUC of course

  102. singpolyma

    if it turns out there's any reason to want that kind of thing

  103. projectmoon

    All I read is quake over xmpp

  104. moparisthebest

    correct take

  105. dwd

    > All I read is quake over xmpp That's all you *need* to read. ↺