jdev - 2022-12-04

  1. Beherit has left

  2. Beherit has joined

  3. mh has joined

  4. nik has joined

  5. rubi has left

  6. rubi has joined

  7. marc0s has left

  8. marc0s has joined

  9. nik has left

  10. rubi has left

  11. rubi has joined

  12. Mx2 has left

  13. Mx2 has joined

  14. Mx2 has left

  15. Mx2 has joined

  16. wurstsalat

    Are there clients implementing XEP-0461: Message Replies https://xmpp.org/extensions/xep-0461.html ?

  17. nik has joined

  18. wurstsalat

    A client to test against would be nice :)

  19. rubi has left

  20. rubi has joined

  21. emdee has left

  22. Alex has left

  23. adx

    movim, probably

  24. debacle has left

  25. rubi has left

  26. Matrix Traveler (bot) has left

  27. homebeach has left

  28. homebeach has joined

  29. Matrix Traveler (bot) has joined

  30. rubi has joined

  31. Patiga has left

  32. emdee has joined

  33. wurstsalat has left

  34. pasdesushi has joined

  35. rubi has left

  36. rubi has joined

  37. Vaulor has left

  38. Patiga has joined

  39. sonny has left

  40. adx has left

  41. rubi has left

  42. rubi has joined

  43. Schimon_ has left

  44. thomaslewis has joined

  45. thomaslewis has left

  46. thomaslewis has joined

  47. Schimon_ has joined

  48. thomaslewis has left

  49. rubi has left

  50. rubi has joined

  51. nik has left

  52. rubi has left

  53. rubi has joined

  54. Thilo Molitor


  55. nik has joined

  56. emdee has left

  57. rubi has left

  58. nik has left

  59. emdee has joined

  60. kapad has left

  61. mh has left

  62. mh has joined

  63. zawarudo has left

  64. rubi has joined

  65. kurtain has left

  66. kurtain has joined

  67. Sam has left

  68. rubi has left

  69. Sam has joined

  70. raghavgururajan has joined

  71. mh has left

  72. mh has joined

  73. kurtain has left

  74. thomaslewis has joined

  75. thomaslewis has left

  76. thomaslewis has joined

  77. thomaslewis has left

  78. kurtain has joined

  79. thomaslewis has joined

  80. thomaslewis has left

  81. rubi has joined

  82. mh has left

  83. mh has joined

  84. thomaslewis has joined

  85. thomaslewis has left

  86. Vaulor has joined

  87. nicoco has joined

  88. mirux has joined

  89. trần.h.trung has left

  90. trần.h.trung has joined

  91. MSavoritias (fae,ve) has joined

  92. Sam has left

  93. Sam has joined

  94. rubi has left

  95. trần.h.trung has left

  96. trần.h.trung has joined

  97. debacle has joined

  98. Yagizа has joined

  99. thomaslewis has joined

  100. pasdesushi has left

  101. thomaslewis has left

  102. Beherit has left

  103. atomicwatch has joined

  104. rubi has joined

  105. Mario Sabatino has joined

  106. mh has left

  107. stuart.j.mackintosh has joined

  108. mh has joined

  109. pasdesushi has joined

  110. trần.h.trung has left

  111. trần.h.trung has joined

  112. wurstsalat has joined

  113. Alex has joined

  114. larma has joined

  115. hearty has left

  116. hearty has joined

  117. jubalh has joined

  118. pasdesushi has left

  119. goffi has joined

  120. Schimon_ has left

  121. Schimon_ has joined

  122. nicoco has left

  123. nicoco has joined

  124. antranigv has joined

  125. Kev has joined

  126. wurstsalat

    Ah, Movim supports it, thanks!

  127. Kev has left

  128. goffi has left

  129. goffi has joined

  130. nicoco

    wurstsalat: not sure if edhelas fixed it, but there was an issue with character counting in the fallback body

  131. trần.h.trung has left

  132. trần.h.trung has joined

  133. goffi has left

  134. goffi has joined

  135. nicoco

    but anyway XEP-0426 needs to be updated. it does not mention newlines and how to deal with trailing whitespace. https://xmpp.org/extensions/xep-0461.html#example-2 just omits newlines and trims left and right whitespace on each line before counting. I think trimming trailing whitespace on each line makes sense, but not counting newline does not seem sensible to me. I planned to submit a patch for this example and also for the character counting xep, but haven't done it yet.

  136. nicoco

    let me know if you reach the same conclusions as me wurstsalat. by the way, you have a xep-0461 implementation in python-nbxmpp yet?

  137. jubalh has left

  138. thomaslewis has joined

  139. thomaslewis has left

  140. nicoco has left

  141. nicoco has joined

  142. wurstsalat

    nicoco: yep, I have a prototype in nbxmpp and Gajim. it seems to work fine with Movim, back and forth :) no issues counting characters in the fallback though. I noticed Movim doesn't add a newline after the fallback, yes. But that doesn't affect counting. It just works so far

  143. nicoco

    so you just count everything in the fallback with python's str.__len__()?

  144. nicoco

    because this definitely does not work with example 2: ```python >>> len(""" ... > Anna wrote: ... > We should bake a cake""") 46 ``` (start=0, end=36 !?)

  145. goffi has left

  146. goffi has joined

  147. nicoco

    stripping trailing (left and right) whitespace we almost arrive at 36: ```python >>> len(""" ... > Anna wrote: ... > We should bake a cake ... """) 39 ```

  148. Alex has left

  149. nicoco

    but to actually have 36 as in the example we need to not count newlines. Do you think that's sensible? Whatever the conclusion is I think that XEP-0426 (Character counting in message bodies) needs to mention what we do with newlines and left and right whitespace on each line.

  150. Alex has joined

  151. nicoco

    also it should mention explicitely that the "char" at position "end" is included in the count (unlike python's slicing conventions btw ;))

  152. nicoco has left

  153. nicoco has joined

  154. wurstsalat

    nicoco: removing the fallback works fine with slicing strings, and counting chars of a quoted fallback body works fine with len(). Those are my observations so far. And yes, xep-0426 should be explicit on how to deal with newlines I think (it just works in python). I remember wild discussions about whether to include the end char or not ;) strange that it didn't land in the xep

  155. antranigv has left

  156. nicoco

    if it works fine with len(), then example 2 of the message replies xep is wrong :)

  157. wurstsalat

    > examples are not normative I guess this applies here, and I would think the prefixed whitespace is for indentation only (clarity)

  158. wurstsalat

    but yes, better to be explicit

  159. nicoco

    Well, arguably for something character-counting clarity, indentation does not help clarity

  160. nicoco

    I share the same conclusion on the prefixed whitespace. But then newlines aren't counted either in this example. I wonder if that is intended or not :/

  161. marc0s has left

  162. marc0s has joined

  163. wurstsalat

    > Well, arguably for something character-counting clarity, indentation does not help clarity as long as there is a disclaimer, I'm fine with the example as it is. but yeah, adding that seems like a good idea to me

  164. mh has left

  165. mh has joined

  166. adx has joined

  167. wurstsalat

    > if it works fine with len(), then example 2 of the message replies xep is wrong :) for newlines, yes

  168. lovetox

    nicoco, examples are often wrong, i see the xep leaves out what is exactly counted, but its not sensible to strip anything anywhere

  169. lovetox

    its a big string, and i want the point in the string where the quote ends

  170. lovetox

    hwo many newlines the user made and where should not play a role at all

  171. selurvedu has left

  172. antranigv has joined

  173. antranigv has left

  174. antranigv has joined

  175. lovetox

    counting codepoints seems the best way in my opinion, and what python does with inbuilt len

  176. lovetox

    and im sure many other languages also offer a method of counting the codepoints

  177. emdee has left

  178. mirux has left

  179. mirux has joined

  180. Alex has left

  181. emdee has joined

  182. Alex has joined

  183. marc0s has left

  184. marc0s has joined

  185. MSavoritias (fae,ve) has left

  186. nicoco

    thanks for your clarifications. just in case this was not clear, I don't have a strong opinion on how this should work, but just wanted to have some more feedback since edhelas, deuill (not in this MUC) and I struggled to make sense of this fallback character counting thing, so I think it can be seen as a sign that there is room for improvement. :) I'll submit a PR soon™

  187. Sam has left

  188. edhelas

    I'm counting the carriage return as an exra character on my side

  189. edhelas

    The best would be to add a simple example on two lines and show that the carriage return was counted as one

  190. Sam has joined

  191. MSavoritias (fae,ve) has joined

  192. sonny has joined

  193. nik has joined

  194. Beherit has joined

  195. sonny has left

  196. sonny has joined

  197. wurstsalat

    > Some programming languages include a string type that operates directly on Unicode code points. If these types are used, offset numbers can be used as-is in string operations. Popular examples of such programming languages are Python and Haskell. from XEP-0426

  198. rubi has left

  199. rubi has joined

  200. techmetx11 has left

  201. wurstsalat

    edhelas, Movim isn't adding a newline at the fallback body's quote end. that fails in Conversations for example, as it renders the reply inside the quote

  202. lovetox

    this is sureley a oversight

  203. edhelas

    wurstsalat https://github.com/movim/movim/commit/a7d568466cfee46870b3fb7295a9ecf4a848443a

  204. edhelas


  205. wurstsalat

    great! :)

  206. Laura has left

  207. Laura has joined

  208. PapaTutuWawa has joined

  209. nik has left

  210. Laura has left

  211. Laura has joined

  212. rubi has left

  213. rubi has joined

  214. mirux has left

  215. mirux has joined

  216. Laura has left

  217. Sam has left

  218. Sam has joined

  219. Laura has joined

  220. norayr has left

  221. inky has left

  222. spiral has left

  223. spiral has joined

  224. rubi has left

  225. adx has left

  226. larma has left

  227. goffi has left

  228. goffi has joined

  229. rubi has joined

  230. Zash

    nicoco: > wurstsalat: not sure if edhelas fixed it, but there was an issue with character counting in the fallback body Wasn't that from a different spec? When I looked it wasn't even acceped.

  231. marc0s has left

  232. marc0s has joined

  233. atomicwatch has left

  234. atomicwatch has joined

  235. antranigv has left

  236. Zash

    So you are all just implementing the examples?

  237. rubi has left

  238. rubi has joined

  239. marc0s has left

  240. marc0s has joined

  241. Patiga has left

  242. nik has joined

  243. marc0s has left

  244. marc0s has joined

  245. adx has joined

  246. goffi has left

  247. zawarudo has joined

  248. larma has joined

  249. rubi has left

  250. rubi has joined

  251. goffi has joined

  252. debacle has left

  253. atomicwatch has left

  254. deimos has left

  255. nicoco

    I usually use the examples as test cases, but I'll adapt my strategy now that I know that they're non normative. :)

  256. atomicwatch has joined

  257. atomicwatch has left

  258. deimos has joined

  259. nicoco

    Zash: you're right, I had forgotten that message replies seems to refer to this protoxep: https://xmpp.org/extensions/inbox/compatibility-fallback.html which is different than xep-0428.

  260. zawarudo has left

  261. zawarudo has joined

  262. Zash

    IIRC the idea was to merge them?

  263. Zash

    Implementing and _deploying_ unaccepted protoXEPs ... what could go wrong?

  264. Patiga has joined

  265. nicoco

    merging them sounds sensible to me. the current situation is confusing. I did not realize message replies referred to a protoxep when I implemented it in slixmpp...

  266. wurstsalat

    where does `urn:xmpp:feature-fallback:0` come from? registrar, where are you?

  267. atomicwatch has joined

  268. Zash

    Even implementing and deploying Experimental XEPs is risky, since they're subject to change at any time.

  269. wurstsalat

    larma, is there a Message Replies implementation for Dino somewhere? any plans to clarify XEP-0461 + fallback ? :)

  270. larma

    wurstsalat, partial implementation, yes. Also XEP-0461 will use the fallback element from XEP-0428 once its v0.2.0 https://github.com/xsf/xeps/pull/1188/files is merged

  271. emdee has left

  272. lovetox

    larma, will there be any reference to the counting informal xep?

  273. wurstsalat

    larma, thanks for clarifying! I see characters counted in the PR's example are counted including newlines :)

  274. emdee has joined

  275. larma

    you mean informational? yes

  276. larma

    lovetox, you mean informational? yes

  277. larma

    yes, the number in xep-0461 is currently wrong. I planned to combine this with the update once the situation with fallback was clarified (I actually do have the change locally already), but that happened to take longer than expected...

  278. wurstsalat

    larma, thanks! was there any reaction on your fallback 0.2 PR since July that I missed?

  279. Zash

    btw https://logs.xmpp.org/ supports XEP-0461

  280. larma

    for completeness, the correct end in 0461 is 38. That is the number of characters of: `> Anna wrote:\n> Hi, how are you?\n`

  281. Patiga has left

  282. Zash

    and that's how I noticed the fallback thing

  283. larma

    for completeness, the correct end in 0461 is 38. That is the number of characters of: `> Anna wrote:\n> We should bake a cake\n`

  284. larma

    wurstsalat, there is currently a vote going on in council to make me author of XEP-0428 so that lack of feedback from dave does not block this anymore. So the situation is probably going to be resolved soon.

  285. wurstsalat

    good news! :)

  286. edhelas has left

  287. edhelas has joined

  288. Patiga has joined

  289. marc0s has left

  290. marc0s has joined

  291. nicoco

    good news indeed. thanks larma for the clarification of the count number in the xep example. also, for some reason I never realized I should not take into account the leading whitespace that is "pretty formatting" the stanza. wouldn't it be better to "ugly format" the stanza in examples involving char count?

  292. larma

    nicoco, I think "ugly format" makes things much harder to read, but we could put some warning that this was reformatted for readability.

  293. larma

    nicoco, I think "ugly format" makes things much harder to read, but we could at least put some warning that this was reformatted for readability.

  294. nicoco

    I think a warning would be great! for small brain amateur devs like me 😬️

  295. zawarudo has left

  296. zawarudo has joined

  297. goffi has left

  298. goffi has joined

  299. PapaTutuWawa has left

  300. hearty has left

  301. hearty has joined

  302. marc0s has left

  303. marc0s has joined

  304. marc0s has left

  305. marc0s has joined

  306. deuill has joined

  307. marc0s has left

  308. marc0s has joined

  309. marc0s has left

  310. marc0s has joined

  311. marc0s has left

  312. marc0s has joined

  313. MSavoritias (fae,ve) has left

  314. antranigv has joined

  315. antranigv has left

  316. antranigv has joined

  317. MSavoritias (fae,ve) has joined

  318. Alex has left

  319. Alex has joined

  320. Patiga has left

  321. drops has left

  322. selurvedu has joined

  323. nik has left

  324. goffi has left

  325. goffi has joined

  326. deuill has left

  327. antranigv has left

  328. antranigv has joined

  329. antranigv has left

  330. antranigv has joined

  331. nik has joined

  332. xnamed has left

  333. xnamed has joined

  334. PapaTutuWawa has joined

  335. antranigv has left

  336. antranigv has joined

  337. goffi has left

  338. goffi has joined

  339. deuill has joined

  340. goffi has left

  341. goffi has joined

  342. Yagizа has left

  343. serge90 has left

  344. serge90 has joined

  345. Kev has joined

  346. Kev has left

  347. antranigv has left

  348. adx has left

  349. goffi has left

  350. goffi has joined

  351. marc0s has left

  352. marc0s has joined

  353. rubi has left

  354. marc0s has left

  355. marc0s has joined

  356. Vaulor has left

  357. Vaulor has joined

  358. mirux has left

  359. mirux has joined

  360. adx has joined

  361. mirux has left

  362. mirux has joined

  363. jgart has left

  364. rubi has joined

  365. xecks has left

  366. xecks has joined

  367. jubalh has joined

  368. pasdesushi has joined

  369. EuAndreh has left

  370. selurvedu has left

  371. thomaslewis has joined

  372. antranigv has joined

  373. thomaslewis has left

  374. atomicwatch has left

  375. nik has left

  376. nik has joined

  377. antranigv has left

  378. antranigv has joined

  379. antranigv has left

  380. antranigv has joined

  381. antranigv has left

  382. rubi has left

  383. rubi has joined

  384. krit has left

  385. Laura has left

  386. mh has left

  387. Matrix Traveler (bot) has left

  388. homebeach has left

  389. homebeach has joined

  390. Matrix Traveler (bot) has joined

  391. mh has joined

  392. Laura has joined

  393. inky has joined

  394. antranigv has joined

  395. homebeach has left

  396. Matrix Traveler (bot) has left

  397. homebeach has joined

  398. Matrix Traveler (bot) has joined

  399. antranigv has left

  400. antranigv has joined

  401. deuill has left

  402. techmetx11 has joined

  403. larma has left

  404. Kev has joined

  405. Kev has left

  406. antranigv has left

  407. pasdesushi has left

  408. antranigv has joined

  409. deuill has joined

  410. sonny has left

  411. sonny has joined

  412. antranigv has left

  413. Vaulor has left

  414. sonny has left

  415. sonny has joined

  416. Vaulor has joined

  417. sonny has left

  418. sonny has joined

  419. sonny has left

  420. sonny has joined

  421. qy has left

  422. marc0s has left

  423. marc0s has joined

  424. marc0s has left

  425. marc0s has joined

  426. larma has joined

  427. pasdesushi has joined

  428. krit has joined

  429. marc0s has left

  430. marc0s has joined

  431. marc0s has left

  432. marc0s has joined

  433. wurstsalat has left

  434. atomicwatch has joined

  435. wurstsalat has joined

  436. nicoco_ has joined

  437. nicoco_ has left

  438. marc0s has left

  439. marc0s has joined

  440. Vaulor has left

  441. marc0s has left

  442. marc0s has joined

  443. Vaulor has joined

  444. thomaslewis has joined

  445. selurvedu has joined

  446. Laura has left

  447. Laura has joined

  448. mirux has left

  449. mirux has joined

  450. thomaslewis has left

  451. nicoco_ has joined

  452. zawarudo has left

  453. zawarudo has joined

  454. nik has left

  455. sonny has left

  456. sonny has joined

  457. zawarudo has left

  458. Vaulor has left

  459. xnamed has left

  460. xnamed has joined

  461. Patiga has joined

  462. qy has joined

  463. Schimon_ has left

  464. Vaulor has joined

  465. larma has left

  466. mh has left

  467. zawarudo has joined

  468. krit has left

  469. krit has joined

  470. mh has joined

  471. homebeach has left

  472. Matrix Traveler (bot) has left

  473. homebeach has joined

  474. Matrix Traveler (bot) has joined

  475. nicoco_ has left

  476. debacle has joined

  477. larma has joined

  478. Vaulor has left

  479. zawarudo has left

  480. zawarudo has joined

  481. Vaulor has joined

  482. Kev has joined

  483. Kev has left

  484. selurvedu has left

  485. selurvedu has joined

  486. inky has left

  487. marc0s has left

  488. marc0s has joined

  489. marc0s has left

  490. marc0s has joined

  491. selurvedu has left

  492. marc0s has left

  493. marc0s has joined

  494. nicoco_ has joined

  495. nicoco_ has left

  496. nicoco_ has joined

  497. nicoco_ has left

  498. EuAndreh has joined

  499. pasdesushi has left

  500. marc0s has left

  501. marc0s has joined

  502. inky has joined

  503. pasdesushi has joined

  504. marc0s has left

  505. marc0s has joined

  506. Mario Sabatino has left

  507. marc0s has left

  508. marc0s has joined

  509. marc0s has left

  510. marc0s has joined

  511. marc0s has left

  512. marc0s has joined

  513. deimos has left

  514. marc0s has left

  515. marc0s has joined

  516. marc0s has left

  517. marc0s has joined

  518. nicoco_ has joined

  519. nicoco_ has left

  520. marc0s has left

  521. marc0s has joined

  522. marc0s has left

  523. marc0s has joined

  524. nicoco_ has joined

  525. Kev has joined

  526. Kev has left

  527. marc0s has left

  528. marc0s has joined

  529. deuill has left

  530. deimos has joined

  531. deimos has left

  532. deimos has joined

  533. nicoco_

    Do MUCs need to broadcast presences from all participants on join or is there a way for a MUC to say: ‘I have 1500 participants, but here’s the presence of the last 20 active chatters’ to clients that join it?

  534. marc0s has left

  535. marc0s has joined

  536. Zash

    I don't think there's a way to say it exactly like that, but there are similar optimizations possible.

  537. Zash

    Nothing prevents you from only sending the last 20 active (I would probably opt to always include moderators), and including presence when others say something.

  538. Zash

    But then you have to keep track of who's seen what

  539. Zash

    There is a thing in MUC for _not_ broadcasting presence for some roles. Usually you'd hide visitors for example.

  540. Zash

    There's also https://xmpp.org/extensions/xep-0463.html but it's about affiliations.

  541. Zash

    Was there one for presence?

  542. jubalh has left

  543. nicoco_

    In my context, keeping track is rather straightforward since there’s only one ‘real’ xmpp user, so I like that option. But ideally I’d also like clients to reflect how many people really are in the room, because even if I can’t get the nicks of the 1500 users, I have this info. I guess I can include it in the room subject or something.

  544. mh has left

  545. zawarudo has left

  546. Zash

    Personally I feel like this goes in the "meh, save it for the MIX rewrite" ;)

  547. Zash

    I imagine in MIX this is simply a paged pubsub query

  548. deuill has joined

  549. Zash

    Oh, I do think there's a metadata field for participants?

  550. Zash

    "muc#roominfo_occupants": "80"

  551. marc0s has left

  552. marc0s has joined

  553. nicoco_

    Hehe MIX, yeah. I’d like to give MIX a try but since I also want to use my gateway in a foreseeable future, I decided to have MUCs too :). FWIW the telegram api does more or less that. It’s not ‘paged’ though, you don’t know how many participants you’ll be able to retrieve in a single request, the server decides.

  554. Zash

    That sounds funky

  555. nicoco_

    muc#roominfo_occupants is exactly what I was looking for, thanks a lot

  556. Zash

    Generally I believe all clients should handle messages from participants even if no presence was sent, tho there may be exceptions.

  557. Zash

    Otherwise they would have had trouble with the recent history included on join, if any of the speakers there left since

  558. mh has joined

  559. Vaulor has left

  560. nicoco_

    This makes sense and is consistent with my little tests so far with movim and gajim

  561. Zash

    I think there's text somewhere in '45 about sending a presence probe to get fresh presence

  562. rubi has left

  563. rubi has joined

  564. zawarudo has joined

  565. MSavoritias (fae,ve) has left

  566. spectrum has left

  567. nicoco_ has left

  568. Vaulor has joined

  569. thomaslewis has joined

  570. zawarudo has left

  571. thomaslewis has left

  572. rubi has left

  573. rubi has joined

  574. zawarudo has joined

  575. nicoco_ has joined

  576. rubi has left

  577. rubi has joined

  578. mirux has left

  579. rubi has left

  580. rubi has joined

  581. thomaslewis has joined

  582. marc0s has left

  583. marc0s has joined

  584. larma has left

  585. nicoco_ has left

  586. Kev has joined

  587. Kev has left

  588. norayr has joined

  589. rubi has left

  590. rubi has joined

  591. rubi has left

  592. rubi has joined

  593. rubi has left

  594. rubi has joined

  595. thomaslewis has left

  596. PapaTutuWawa has left

  597. techmetx11 has left

  598. rubi has left

  599. Alex has left

  600. thomaslewis has joined

  601. rubi has joined

  602. wurstsalat has left

  603. thomaslewis has left

  604. Vaulor has left

  605. techmetx11 has joined

  606. mh has left

  607. marc0s has left

  608. marc0s has joined

  609. mh has joined

  610. Laura has left

  611. Laura has joined

  612. Millesimus has left

  613. rubi has left

  614. rubi has joined