jdev - 2024-03-04


  1. moparisthebest

    huehuehue https://www.moparisthebest.com/images/xmpp-client-devs.jpg

  2. lovetox

    hm i had an idea to create a unique index on (account, remote jid, message id), so i would only store messages with a unique message id. To still support old clients to some degree, if i run into a conflict i would replace the received message id with a unique one

  3. lovetox

    obviously this would kill any feature that references the message id, but in an env with such old clients, they dont support that anyway

  4. lovetox

    hm the only problem i run into is, i cant differentiate between duplicates and clients which send non-unique message ids anymore

  5. lovetox

    hm and mam will send me duplicates ..

  6. lovetox

    hm but only messages which i send, so i could simply not rewrite the message id for outgoing messages, which i receive via mam later

  7. lovetox

    ah i could take the text of the message into account to discover duplicates ..

  8. edhelas

    > huehuehue https://www.moparisthebest.com/images/xmpp-client-devs.jpg It hurts because its true :D

  9. Holger

    s/client-//

  10. singpolyma

    Sure, but I don't think we expect thousands or server impls or niche ones or that they would benefit much from a library

  11. singpolyma

    Whereas I get asked every few weeks where to start on building a new niche client of some kind

  12. edhelas

    In the end everything will rely on Matrix, even ejabberd is starting to migrate on it I heard

  13. Zash

    then libcurl will be the only library you need! /s

  14. Zash

    something something mod_rest?

  15. dwd

    Anyone got a recommendation for a nice client to use on Windows? There's Gajim and UWPX in the store, the latter of which is deprecated and Gajim's behaviour is annoyingly non-native at times on Windows.

  16. Zash

    How's Swift holding up these days?

  17. dwd

    I had forgotten about it. Not in the store. I'll go a-hunting.

  18. Zash

    Have a peek at https://xmpp.org/software/?platform=windows in case that page was also forgotten

  19. dwd

    UI on Swift slightly worse than Gajim. This laptop has a scaled touch-screen display; Gajim scales some elements but not others, and doesn't always handle touch input right. Swift's UI has gone all blurry, so I think it's using some fallback mode for the scaling.

  20. Zash

    Web clients may also be options

  21. lovetox

    dwd: what's a native windows behavior?

  22. moparisthebest

    > Anyone got a recommendation for a nice client to use on Windows? There's Gajim and UWPX in the store, the latter of which is deprecated and Gajim's behaviour is annoyingly non-native at times on Windows. dwd: I think the current recommendation is Dino, at least as the only one with modern A/V like users have come to expect Or movim...

  23. moparisthebest

    Oh touch screen too? Is there a sane way to run Android apps on Windows? Cheogram might be best there (I run it under Linux on a touch screen Lenovo laptop)

  24. dwd

    Actually yes, running Android apps is pretty easy. Especially if they're in the Amazon appstore, though I imaging F-Droid would be OK too. No Google Services on the built-in Windows thing.

  25. dwd

    lovetox, Actually, turns out Gajim is one of the better ones for this, having sampled the others. In Gajim's case, it's mostly around touch behaviour. Everything else seems OK, or at least close enough to OK that it's not jarring. Most other clients seem to have no support at all for UI scaling, or seem to be doing something weird to emulate Vista look and feel.

  26. Zash

    Unofficial Windows build of Dino?

  27. dwd

    lovetox, Gajim's scaling isn't perfect - the icons surrounding the text input box seem to be pixel-native resolution (and on a 10" 2.5k screen that's *tiny*). But I can live with it.

  28. lovetox

    dwd, you can send me a screenshot of these pixelated icons, then i can take a look, i would consider this a bug

  29. lovetox

    as for touch input, understandable, its not a official target of our development efforts, as its my believe that good touch GUIs and good Desktop Client GUIs are two things that dont go together well

  30. dwd

    lovetox, Not pixelated, just at the pixel-native resolution, ignoring the UI scaling. The text is OK. I reckon any 4K screen will probably show the same on Windows.

  31. dwd

    lovetox, Really? I think one of the things that Windows does well is handling touch, pen and mouse all well in the same UI. I've not done much with Linux on touchscreen (I tried once on my XPS 2-in-1 and there were lots of weird problems), but it's one of the reasons I've switched back to Windows on laptops. Anyway, scrolling via touch isn't working, and some touch taps appear to get random responses. Happy to extract some debugging if you like.

  32. moparisthebest

    This $27 Lenovo yoga Chromebook (with chromeos replaced with Arch linux) was my first touchscreen Linux machine and I was actually shocked when the touch screen just worked perfectly first boot with 0 config 🤣

  33. dwd

    moparisthebest, My experience was that it worked perfectly, until it didn't. Example: plugging in an external monitor "scaled" the touchscreen across the external monitor, so touching halfway across the built-in screen caused an action on the second screen, rather than beneath my finger. (And on a 4K screen, the scaling only worked in portrait, so when using the machine in tablet mode everything suddenly got really tiny).

  34. dwd

    So I gave up, and now just run WSL for development tasks. My desktop machine still runs Linux though.

  35. MSavoritias (fae,ve)

    linux has a lot of problems besides just the touch screen in my experience

  36. dwd

    Well, on laptops it's always been a bit more challenging because you tend to be more likely to find esoteric hardware. I *think* this laptop will actually support the fingerprint scanner *and* the LTE modem on Linux, but on the XPS the fingerprint scanner is unsupported on Linux.

  37. moparisthebest

    We seem to have vastly different experiences hehe

  38. MSavoritias (fae,ve)

    > Well, on laptops it's always been a bit more challenging because you tend to be more likely to find esoteric hardware. I *think* this laptop will actually support the fingerprint scanner *and* the LTE modem on Linux, but on the XPS the fingerprint scanner is unsupported on Linux. yeah hardware is hit or miss. and software is worse imo. but probably controversial here :P

  39. dwd

    moparisthebest, Probably. I know *this* laptop (A GPD Win Max 2) runs Linux reasonably well. But on a Dell XPS (even the normal laptop, not a 2-in-1), you still lose the fingerprint scanner. And Linux is officially supported on both. I've run Linux on plenty of laptops over the years, so switching to Windows is a recent change for me.

  40. dwd

    MSavoritias (fae,ve), Aside from games, pretty much everything I run software-wise also runs on Linux. Mostly, it runs better; using Windows on laptops is only possible because I don't do much dev work on the road, though WSL makes that achievable.

  41. cal0pteryx

    Strange, I'm running Gajim on a 4k screen on Windows and it works fine

  42. MSavoritias (fae,ve)

    i have had bad experiences with linux slightly breaking always. plus picking underneath the software it is layers of different arcane knowledge and broken systems. that where i come from :D maybe sounds too cynical

  43. MSavoritias (fae,ve)

    i have had bad experiences with linux slightly breaking always. plus peaking underneath the software it is layers of different arcane knowledge and broken systems. that where i come from :D maybe sounds too cynical

  44. dwd

    cal0pteryx, What's the scaling set to? On this machine I have 175%, which might be the issue.

  45. cal0pteryx

    dwd, 300% (I think)

  46. cal0pteryx

    but yes, might be an issue if it's not scaled by full numbers

  47. dwd

    cal0pteryx, Could be fractional scaling is the issue, indeed.

  48. moparisthebest

    I haven't even used windows for gaming for years, maybe 7 years ago it was hit or miss, now many benchmarks even show higher performance with Linux+wine than windows, thanks Valve :)