jdev - 2020-09-02


  1. sonny has left

  2. sonny has joined

  3. sonny has left

  4. sonny has joined

  5. test2 has left

  6. Wojtek has left

  7. moparisthebest has left

  8. moparisthebest has joined

  9. test2 has joined

  10. sonny has left

  11. sonny has joined

  12. moparisthebest has left

  13. Yagizа has joined

  14. moparisthebest has joined

  15. test2 has left

  16. moparisthebest has left

  17. moparisthebest has joined

  18. adiaholic_ has joined

  19. adiaholic_ has left

  20. adiaholic_ has joined

  21. adiaholic_ has left

  22. test2 has joined

  23. adiaholic_ has joined

  24. adiaholic_ has left

  25. adiaholic_ has joined

  26. adiaholic_ has left

  27. adiaholic_ has joined

  28. floretta has left

  29. SouL has joined

  30. floretta has joined

  31. Vaulor has joined

  32. adiaholic_ has left

  33. adiaholic_ has joined

  34. adiaholic_ has left

  35. adiaholic_ has joined

  36. adiaholic_ has left

  37. adiaholic_ has joined

  38. adiaholic_ has left

  39. adiaholic_ has joined

  40. DebXWoody has joined

  41. paul has joined

  42. adiaholic_ has left

  43. adiaholic_ has joined

  44. adiaholic_ has left

  45. adiaholic_ has joined

  46. adiaholic_ has left

  47. adiaholic_ has joined

  48. lovetox has joined

  49. adiaholic_ has left

  50. adiaholic_ has joined

  51. sonny has left

  52. sonny has joined

  53. adiaholic_ has left

  54. adiaholic_ has joined

  55. lovetox has left

  56. adiaholic_ has left

  57. adiaholic_ has joined

  58. waqas has left

  59. adiaholic_ has left

  60. adiaholic_ has joined

  61. Vaulor has left

  62. tsk has left

  63. tsk has joined

  64. adiaholic_ has left

  65. adiaholic_ has joined

  66. lovetox has joined

  67. tsk has left

  68. tsk has joined

  69. sonny has left

  70. lovetox has left

  71. adiaholic_ has left

  72. lovetox has joined

  73. adiaholic_ has joined

  74. mac has joined

  75. tsk has left

  76. sonny has joined

  77. tsk has joined

  78. sonny has left

  79. sonny has joined

  80. sonny has left

  81. adiaholic_ has left

  82. adiaholic_ has joined

  83. sonny has joined

  84. adiaholic_ has left

  85. sonny has left

  86. adiaholic_ has joined

  87. mac has left

  88. mac has joined

  89. rion has joined

  90. sonny has joined

  91. Guus has left

  92. Guus has joined

  93. sonny has left

  94. sonny has joined

  95. sonny has left

  96. sonny has joined

  97. sonny has left

  98. sonny has joined

  99. adiaholic_ has left

  100. adiaholic_ has joined

  101. adiaholic_ has left

  102. adiaholic_ has joined

  103. adiaholic_ has left

  104. adiaholic_ has joined

  105. adiaholic_ has left

  106. adiaholic_ has joined

  107. adiaholic_ has left

  108. adiaholic_ has joined

  109. kikuchiyo has left

  110. Vaulor has joined

  111. adiaholic_ has left

  112. adiaholic_ has joined

  113. adiaholic_ has left

  114. adiaholic_ has joined

  115. lovetox has left

  116. adiaholic_ has left

  117. adiaholic_ has joined

  118. kikuchiyo has joined

  119. debacle has joined

  120. Zash has left

  121. Zash has joined

  122. sonny has left

  123. sonny has joined

  124. mac has left

  125. mac has joined

  126. sonny has left

  127. sonny has joined

  128. sonny has left

  129. sonny has joined

  130. sonny has left

  131. sonny has joined

  132. sonny has left

  133. sonny has joined

  134. sonny has left

  135. mac has left

  136. Alex has left

  137. Alex has joined

  138. adiaholic_ has left

  139. adiaholic_ has joined

  140. sonny has joined

  141. adiaholic_ has left

  142. adiaholic_ has joined

  143. adiaholic_ has left

  144. adiaholic_ has joined

  145. test2 has left

  146. adiaholic_ has left

  147. adiaholic_ has joined

  148. adiaholic_ has left

  149. adiaholic_ has joined

  150. Guus has left

  151. adiaholic_ has left

  152. adiaholic_ has joined

  153. adiaholic_ has left

  154. adiaholic_ has joined

  155. adiaholic_ has left

  156. adiaholic_ has joined

  157. lovetox has joined

  158. adiaholic_ has left

  159. sonny has left

  160. sonny has joined

  161. eta

    wait, hang on

  162. eta

    a user just has one big MAM archive??

  163. eta

    it isn't per conversation??

  164. jonas’

    no

  165. jonas’

    just one archive, but you can filter

  166. eta

    oh yeah, filtering

  167. eta

    right

  168. eta

    was reviewing the Dino MAM code and it just pulls /everything/ from The Archive

  169. eta

    which is an interesting way of doing things

  170. flow

    eta, i'd assume most implementations do that

  171. eta

    hmm, reasonable

  172. flow

    just like mail clients sync their state of the imap server

  173. pep.

    Poezio doesn't, and tbh I'm not sure it will ever :/

  174. eta

    pep., does it only do MAM when you hit page-up

  175. flow

    just like mail clients sync their state with their imap server

  176. sonny has left

  177. pep.

    On join also

  178. jonas’

    eta, does it handle gaps though?

  179. Zash

    And that's why, the first time you start those clients, it produces one bazillion notifications

  180. Guus has joined

  181. sonny has joined

  182. eta

    Zash, yeah, that dino behaviour is very stupid

  183. pep.

    The smart thing would really just be to fetch when you open a tab, or to have something (that Inbox is.. somewhat?) that says "You have to fetch MAM here, here, here and here"

  184. jonas’

    pep., also the annoying thing

  185. pep.

    Yeah well..

  186. eta

    pep., I thought conversations did the fetch-when-you-open-the-tab thing

  187. jonas’

    no, conversations does a full sync when it comes online

  188. jonas’

    I painfully notice that every single time

  189. eta

    oh

  190. eta

    disappointing

  191. Zash

    Sync 😞

  192. jonas’

    eta, why?

  193. jonas’

    it is the right thing to do

  194. jonas’

    otherwise you’re going to miss/delay messages

  195. eta

    jonas’, I can't do things like open an old conversation and have it load scrollback

  196. jonas’

    and users don’t like that

  197. jonas’

    eta, huh?

  198. jonas’

    it has the history locally

  199. pep.

    jonas’, I don't think it's the right thing to do as I said above :x

  200. pep.

    Or let's agree there are multiple rights

  201. jonas’

    pep., so you prefer to require manual user interaction to get notifications for messages which wree sent while you were out of network coverage?

  202. pep.

    "to have something (that Inbox is.. somewhat?) that says "You have to fetch MAM here, here, here and here""

  203. pep.

    You can hint the user that there are unread messages in other tabs and that they can go look at them

  204. eta

    jonas’, it doesn't, because I installed conversations after the time that this conversation happened

  205. lovetox

    to do it per contact, is unnecessary complex, you have to reliaze that there are almost no mam messages if you start your client

  206. jonas’

    eta, ah, AFAIK it’ll try to fetch stuff when you scroll beyond the local archive

  207. lovetox

    on a normal connection you can download 1000 messages in about 3 seconds

  208. pep.

    lovetox, and fetching all the world is painfully slow and annoying for most people

  209. lovetox

    there will never be 1000 messages waiting if you start your client

  210. jonas’

    lovetox, tell that to my conversations.

  211. jonas’

    and the gazillion of MUCs

  212. lovetox

    of course MUCs are only fetched if you join the muc

  213. eta

    ^

  214. eta

    the thing is, right

  215. eta

    I don't actually care about fetching the world

  216. pep.

    But you do join MUCs at startup :)

  217. pep.

    bookmarks etc.

  218. pep.

    poof 80 MUCs opened, MAM fetching, uuuuuuughhhh

  219. eta

    like you can totally do that in the background on a low-priority task or something

  220. jonas’

    pep., I am not

  221. pep.

    that

  222. jonas’

    I am in like five MUCs in C

  223. eta

    the thing which annoys me is when it makes the unread counts go to like 10000 on everything

  224. eta

    or generates notifications

  225. eta

    really, what we probably need is a XEP for read state sync

  226. pep.

    eta, agreed

  227. jonas’

    eta, agreed

  228. pep.

    Something that allows me to set the state in the past also plz

  229. eta

    it doesn't even have to be that hard

  230. eta

    an extra field in bookmarks + an extra field in roster

  231. lovetox

    there will not be many messages in MUCs

  232. lovetox

    you need a concept of a threshold

  233. eta

    lovetox, tell that to my high-velocity IRC channels

  234. pep.

    eta, so you only want to sync state in MUC? Not 1:1?

  235. lovetox

    up to you sync

  236. lovetox

    that means a public muc has a threshold of 1

  237. eta

    pep., and roster

  238. lovetox

    so you only sync one day

  239. pep.

    roster? :/

  240. lovetox

    a private muc has never many messages, so you sync everything

  241. pep.

    lovetox, that's your usage of private MUCs maybe

  242. pep.

    Not saying that I have, but I don't want to rule this out

  243. lovetox

    thats why you can change the thresold even for private mucs, if you have that one muc where 1000 messages a day are posted

  244. pep.

    If Snikket decides that their version of private MUCs will only have few messages and that's how they do MAM, then fine. But I don't want XMPP to decide that for me

  245. lovetox

    the one thing i learned is, you cant do this right without user interaction

  246. lovetox

    its impossible

  247. eta

    we need MUC categories!

  248. lovetox

    there is no magic algorythm that lets you do this in all circumstances right

  249. eta

    that way you can have a "low priority public MUCs" category

  250. lovetox

    you can simply choose the threshold per muc

  251. pep.

    eta, you don't exactly need to formalize that. Especially since they'll be different for different design guidelines

  252. eta

    true

  253. eta

    hmm, what would be the ideal primitive for read state sync though

  254. eta

    pubsub??

  255. pep.

    PEP probably

  256. adiaholic_ has joined

  257. lovetox

    and how do you store that

  258. lovetox

    on every received muc message update pep?

  259. lovetox

    and if multiple devices receive it

  260. lovetox

    all update it at the same time

  261. Guus has left

  262. lovetox

    sounds not really nice

  263. Zash

    lovetox: > there will never be 1000 messages waiting if you start your client You haven't experienced infinitely persistent MAM, have you? It's super fun when your archive goes back to the beginning of MAM itself.

  264. lovetox

    does not mean you need to request it

  265. Zash

    But clients do this

  266. Zash

    And treats every message as new

  267. lovetox

    but i talked about your user archive

  268. lovetox

    not about mucs

  269. adiaholic_ has left

  270. lovetox

    mucs you need to manage per muc

  271. Zash

    So was I (personal archive)

  272. adiaholic_ has joined

  273. lovetox

    in a user archive will not wait that many messages, that you have to manage it per contact

  274. pep.

    Well, start a new Dino profile and observe

  275. pep.

    Or maybe that got better lately? I don't remember

  276. eta

    nope

  277. lovetox

    thats why i sync only 7 days at first start

  278. lovetox

    if the user wants all his history he can click a button that downloads it once

  279. lovetox

    with a progress dialog

  280. adiaholic_ has left

  281. pep.

    Yeah I'm not entirely fond of having arbitrary numbers like this. 7 days can still be empty and all of the chat happens on the 8th day or sth

  282. lovetox

    then hit the button :)

  283. pep.

    Weird UX :/

  284. lovetox

    not all, its easy to understand, and easy to implement

  285. edhelas

    Zash for the moment I never cleared MAM history on movim.eu :D

  286. lovetox

    its like whatsapp

  287. lovetox

    you set up a new device, and it will ask you if you want to sync your messages from google drive or something

  288. Zash

    I got the impression that Conversations fetches stuff per contact when you scroll up a bit

  289. pep.

    lovetox, who says whatsapp is good :p

  290. eta

    lovetox: the gajim history sync dialog is good, tbh

  291. pep.

    I haven't seen it in action, but from what I understand here, I'd rather fetch a set number of messages than a set number of days, at least

  292. pep.

    In poezio atm I try to have 2 pages of buffer at all times, so that I can display them instantly and only fetch previous to that

  293. Guus has joined

  294. Zash

    pep. here's an inbox prototype thing that's waiting for a client to prototype something against: https://modules.prosody.im/mod_map.html

  295. pep.

    k, I might have a look at some point

  296. pep.

    Slightly similar to Inbox right?

  297. pep.

    How do you count?

  298. Zash

    How how?

  299. pep.

    What's the count you're returning? What does it mean

  300. Zash

    Number of messages

  301. pep.

    what messages

  302. Zash

    All messages

  303. pep.

    All messages in the archive? All unfetched messages? All unfetched on this device?

  304. pep.

    All unread messages? (but fetched nonetheless)

  305. Zash

    It's essentially a MAM query that doesn't return the results, only a summary

  306. Zash

    It predates the whole notion of per-payload stuff that might be what people refer to as inbox

  307. pep.

    k

  308. pep.

    So it's all of the archive?

  309. pep.

    If I wanted to use this I'd mostly use @jid and <end/> I guess..

  310. pep.

    Maybe

  311. adiaholic_ has joined

  312. Zash

    Supposed to get you everything you need to show a "recent conversations" list

  313. eta

    so on top of this we just need a "recent mentions / notifications" thing

  314. pep.

    Zash, only for 1:1?

  315. Zash

    Yes

  316. adiaholic_ has left

  317. adiaholic_ has joined

  318. Zash

    It's a MAM query that returns a summary. Not a thing that fixes MUC

  319. pep.

    :P

  320. Zash

    Best I can think for unaltered MUC (with MAM) is to join with history(maxstanzas=1), which gets you some of the same data

  321. eta

    reminds me to finish my protoXEP

  322. eta

    not that finishing the XEP will change anything though >_<

  323. adiaholic_ has left

  324. adiaholic_ has joined

  325. adiaholic_ has left

  326. adiaholic_ has joined

  327. adiaholic_ has left

  328. adiaholic_ has joined

  329. sonny has left

  330. sonny has joined

  331. rion has left

  332. rion has joined

  333. sonny has left

  334. sonny has joined

  335. sonny has left

  336. sonny has joined

  337. sonny has left

  338. sonny has joined

  339. sonny has left

  340. adiaholic_ has left

  341. adiaholic_ has joined

  342. lovetox

    i wonder how many people use Gajim

  343. lovetox

    i just checked chocolatey, we dont maintain the package there, but it has 7500 downloads Oo

  344. lovetox

    and thats a nerdy package manager for windows

  345. Guus has left

  346. Guus has joined

  347. pep.

    Same person downloading it over and over again?

  348. pep.

    Or a single company downloading it for all their users? :P

  349. adiaholic_ has left

  350. lovetox

    hm no its 7500 since existence, the last version has 300

  351. lovetox

    thats a bit more expected

  352. fola has joined

  353. fola has left

  354. ralphm has left

  355. ralphm has joined

  356. adiaholic_ has joined

  357. adiaholic_ has left

  358. sonny has joined

  359. sonny has left

  360. sonny has joined

  361. sonny has left

  362. sonny has joined

  363. sonny has left

  364. sonny has joined

  365. sonny has left

  366. sonny has joined

  367. Zash

    lovetox: https://qa.debian.org/popcon.php?package=gajim might be of interest as well

  368. adiaholic_ has joined

  369. lovetox

    damn

  370. lovetox

    only rank 99700

  371. lovetox

    need to improve that

  372. sonny has left

  373. Beherit has left

  374. Link Mauve

    “10:58:00 lovetox> there will never be 1000 messages waiting if you start your client”, tell that to my Dino, which I open maybe once a month, and is unresponsive for dozens of minutes while it fetches all of my pending messages.

  375. Link Mauve

    SQLite being the bottleneck here.

  376. Link Mauve

    Not XMPP or my ADSL connection.

  377. lovetox

    really? sounds weird

  378. adiaholic_ has left

  379. lovetox

    did you ever google sqlite insert stats

  380. lovetox

    or you have a really slow harddisk

  381. lovetox

    https://stackoverflow.com/questions/1711631/improve-insert-per-second-performance-of-sqlite

  382. Link Mauve

    I have a fast SSD, it’s limited by sqlite on a single thread.

  383. lovetox

    there even the first try not optimized at all, insert 23000 records into a database

  384. lovetox

    per second

  385. Link Mauve

    lovetox, https://github.com/dino/dino/issues/853

  386. adiaholic_ has joined

  387. Ge0rG

    Link Mauve: sqlite is not the bottleneck, it's just incorrectly used.

  388. lovetox

    lets agree on, the bottleneck is probably how they use sqlite

  389. lovetox

    :)

  390. Ge0rG

    so far, 99% of problems with sqlite were at layer 8. It's one of the most robust pieces of software out there.

  391. Link Mauve

    I didn’t find anything obvious last time I looked at Dino’s usage, maybe you’ll have more luck.

  392. Link Mauve

    I’m… not very good at SQLy things.

  393. Link Mauve

    Zash, lovetox, Pidgin just recently got installed more times than Empathy in Debian! https://qa.debian.org/popcon-graph.php?packages=gajim%2C+dino-im%2C+pidgin%2C+empathy&show_installed=on&want_legend=on&want_ticks=on&from_date=&to_date=&hlght_date=&date_fmt=%25Y-%25m&beenhere=1

  394. lovetox

    never used empathy, seems it was pretty popular

  395. Link Mauve

    It was preinstalled with GNOME.

  396. Link Mauve

    But I’m sure most people just ignored it and installed Skype or whatever popular thing there was back then.

  397. lovetox

    ah

  398. Ge0rG

    Link Mauve: there are four indexes and four triggers on the `message` table. But maybe it's still accessing something index-less? dunno

  399. adiaholic_ has left

  400. sonny has joined

  401. eta

    Link Mauve: put your sqlite in WAL mode

  402. eta

    will make Dino a lot faster

  403. adiaholic_ has joined

  404. Beherit has joined

  405. sonny has left

  406. sonny has joined

  407. sonny has left

  408. sonny has joined

  409. sonny has left

  410. adiaholic_ has left

  411. sonny has joined

  412. sonny has left

  413. sonny has joined

  414. sonny has left

  415. sonny has joined

  416. adiaholic_ has joined

  417. adiaholic_ has left

  418. adiaholic_ has joined

  419. adiaholic_ has left

  420. adiaholic_ has joined

  421. adiaholic_ has left

  422. adiaholic_ has joined

  423. adiaholic_ has left

  424. adiaholic_ has joined

  425. adiaholic_ has left

  426. adiaholic_ has joined

  427. debacle has left

  428. rion has left

  429. adrien has left

  430. adrien has joined

  431. sonny has left

  432. sonny has joined

  433. adiaholic_ has left

  434. adiaholic_ has joined

  435. debacle has joined

  436. lovetox has left

  437. lovetox has joined

  438. adiaholic_ has left

  439. adiaholic_ has joined

  440. lovetox has left

  441. Wojtek has joined

  442. adiaholic_ has left

  443. adiaholic_ has joined

  444. lovetox has joined

  445. sonny has left

  446. sonny has joined

  447. rion has joined

  448. sonny has left

  449. sonny has joined

  450. adiaholic_ has left

  451. adiaholic_ has joined

  452. lovetox has left

  453. xecks has left

  454. xecks has joined

  455. sonny has left

  456. sonny has joined

  457. Lance has left

  458. sonny has left

  459. waqas has joined

  460. lovetox has joined

  461. adiaholic_ has left

  462. adiaholic_ has joined

  463. sonny has joined

  464. sonny has left

  465. sonny has joined

  466. waqas has left

  467. sonny has left

  468. sonny has joined

  469. sonny has left

  470. Beherit has left

  471. Beherit has joined

  472. adiaholic_ has left

  473. lovetox has left

  474. lovetox has joined

  475. adrien has left

  476. adrien has joined

  477. adiaholic_ has joined

  478. adiaholic_ has left

  479. kikuchiyo has left

  480. adiaholic_ has joined

  481. kikuchiyo has joined

  482. kikuchiyo has left

  483. kikuchiyo has joined

  484. kikuchiyo has left

  485. kikuchiyo has joined

  486. kikuchiyo has left

  487. kikuchiyo has joined

  488. kikuchiyo has left

  489. kikuchiyo has joined

  490. kikuchiyo has left

  491. kikuchiyo has joined

  492. kikuchiyo has left

  493. kikuchiyo has joined

  494. kikuchiyo has left

  495. kikuchiyo has joined

  496. kikuchiyo has left

  497. kikuchiyo has joined

  498. kikuchiyo has left

  499. kikuchiyo has joined

  500. kikuchiyo has left

  501. kikuchiyo has joined

  502. kikuchiyo has left

  503. adiaholic_ has left

  504. kikuchiyo has joined

  505. kikuchiyo has left

  506. kikuchiyo has joined

  507. kikuchiyo has left

  508. kikuchiyo has joined

  509. kikuchiyo has left

  510. kikuchiyo has joined

  511. kikuchiyo has left

  512. kikuchiyo has joined

  513. kikuchiyo has left

  514. kikuchiyo has joined

  515. Yagizа has left

  516. adiaholic_ has joined

  517. adiaholic_ has left

  518. adiaholic_ has joined

  519. adiaholic_ has left

  520. lovetox has left

  521. sonny has joined

  522. DebXWoody has left

  523. lovetox has joined

  524. test2 has joined

  525. adiaholic_ has joined

  526. sonny has left

  527. sonny has joined

  528. sonny has left

  529. sonny has joined

  530. waqas has joined

  531. sonny has left

  532. goffi has joined

  533. adiaholic_ has left

  534. adiaholic_ has joined

  535. adiaholic_ has left

  536. adiaholic_ has joined

  537. mac has joined

  538. adiaholic_ has left

  539. adiaholic_ has joined

  540. adiaholic_ has left

  541. adiaholic_ has joined

  542. sonny has joined

  543. sonny has left

  544. wurstsalat has left

  545. wurstsalat has joined

  546. adiaholic_ has left

  547. mac has left

  548. adiaholic_ has joined

  549. adiaholic_ has left

  550. adiaholic_ has joined

  551. adiaholic_ has left

  552. mac has joined

  553. adiaholic_ has joined

  554. mac has left

  555. adiaholic_ has left

  556. adiaholic_ has joined

  557. mac has joined

  558. adiaholic_ has left

  559. sonny has joined

  560. adiaholic_ has joined

  561. adiaholic_ has left

  562. lovetox has left

  563. goffi has left

  564. wurstsalat has left

  565. mac has left

  566. mac has joined

  567. Beherit has left

  568. Beherit has joined

  569. sonny has left

  570. sonny has joined

  571. rion has left

  572. rion has joined

  573. sonny has left

  574. sonny has joined

  575. mac has left

  576. Beherit has left

  577. Beherit has joined

  578. test2 has left

  579. test2 has joined

  580. mac has joined

  581. kikuchiyo has left

  582. test2 has left

  583. kikuchiyo has joined

  584. sonny has left

  585. sonny has joined

  586. test2 has joined

  587. sonny has left

  588. sonny has joined

  589. SouL has left

  590. sonny has left

  591. kikuchiyo has left

  592. mac has left

  593. sonny has joined

  594. mac has joined

  595. kikuchiyo has joined

  596. Beherit has left

  597. Beherit has joined

  598. debacle has left

  599. adrien has left

  600. rion has left