jdev - 2023-05-20


  1. Mx2 has joined

  2. Laura has left

  3. Laura has joined

  4. Alif Radhitya has left

  5. antranigv has joined

  6. Laura has left

  7. Laura has joined

  8. FireFly has left

  9. Laura has left

  10. Laura has joined

  11. fuku has joined

  12. fuku

    hello

  13. Trung has joined

  14. paul has left

  15. Alex has left

  16. fuku has left

  17. singpolyma has left

  18. thomaslewis has joined

  19. thomaslewis has left

  20. singpolyma has joined

  21. Mx2 has left

  22. poliux has left

  23. singpolyma has left

  24. singpolyma has joined

  25. Mx2 has joined

  26. kapad has left

  27. antranigv has left

  28. antranigv has joined

  29. trollge has joined

  30. trollge has left

  31. singpolyma has left

  32. singpolyma has joined

  33. Alif Radhitya has joined

  34. selurvedu has left

  35. Laura has left

  36. Laura has joined

  37. Caesar has joined

  38. rubi has left

  39. rubi has joined

  40. Laura has left

  41. Laura has joined

  42. Caesar has left

  43. lissine has joined

  44. Caesar has joined

  45. Alif Radhitya

    Ya

  46. atomicwatch has joined

  47. lissine has left

  48. atomicwatch has left

  49. Mx2 has left

  50. moparisthebest has left

  51. moparisthebest has joined

  52. Yagizа has joined

  53. mirux has joined

  54. poliux has joined

  55. atomicwatch has joined

  56. trollge has joined

  57. paul has joined

  58. lissine has joined

  59. nicoco_ has joined

  60. Alif Radhitya has left

  61. Alif Radhitya has joined

  62. Menel has joined

  63. Caesar has left

  64. cal0pteryx (wurstsalat) has joined

  65. nicoco_ has left

  66. Menel has left

  67. Menel has joined

  68. Laura has left

  69. Laura has joined

  70. Caesar has joined

  71. moparisthebest has left

  72. moparisthebest has joined

  73. jgart has left

  74. Alif Radhitya has left

  75. Alif Radhitya has joined

  76. thomaslewis has joined

  77. thomaslewis has left

  78. antranigv has left

  79. Laura has left

  80. Laura has joined

  81. lissine has left

  82. lissine has joined

  83. Laura has left

  84. Laura has joined

  85. hearty has left

  86. Laura has left

  87. Laura has joined

  88. Alex has joined

  89. atomicwatch has left

  90. Mx2 has joined

  91. Laura has left

  92. Laura has joined

  93. hearty has joined

  94. goffi has joined

  95. lissine has left

  96. mirux has left

  97. mirux has joined

  98. goffi has left

  99. goffi has joined

  100. goffi has left

  101. goffi has joined

  102. thomaslewis has joined

  103. thomaslewis has left

  104. kapad has joined

  105. mirux has left

  106. mirux has joined

  107. Caesar has left

  108. marc0s has left

  109. Mx2 has left

  110. Alif Radhitya has left

  111. Alif Radhitya has joined

  112. mirux has left

  113. mirux has joined

  114. atomicwatch has joined

  115. Laura has left

  116. Caesar has joined

  117. Laura has joined

  118. Alif Radhitya has left

  119. Alif Radhitya has joined

  120. Alif Radhitya has left

  121. Alif Radhitya has joined

  122. hearty has left

  123. Alif Radhitya has left

  124. Alif Radhitya has joined

  125. marc0s has joined

  126. goffi has left

  127. goffi has joined

  128. goffi has left

  129. goffi has joined

  130. Caesar has left

  131. Alif Radhitya has left

  132. Alif Radhitya has joined

  133. yvo has left

  134. yvo has joined

  135. MSavoritias (fae,ve) has joined

  136. goffi has left

  137. goffi has joined

  138. antranigv has joined

  139. antranigv has left

  140. hearty has joined

  141. goffi has left

  142. goffi has joined

  143. defanor has joined

  144. goffi has left

  145. larma has joined

  146. goffi has joined

  147. atomicwatch has left

  148. goffi has left

  149. goffi has joined

  150. atomicwatch has joined

  151. defanor

    I am trying to compose a nice XML structure for an XMPP client library in C (for use from C, Rust, and other languages via bindings), something to replace libxml2's xmlNode with: ideally something clean, not allowing nonsense structures to be defined, least error-prone, and so on. Currently thinking of giving up on concrete syntax (even on prefixes: just keep track of namespace URIs and names between parsing + analysis and writing), but it is scary to jump into a large rewrite without being quite sure how it will work out. Has anybody here tried to work with XMPP using a structure without namespace prefixes, and/or are there any C (or similar) XML structures you were happy with in XMPP software?

  152. goffi has left

  153. goffi has joined

  154. jonas’

    defanor, yes

  155. jonas’

    aioxmpp (python) does not keep track of prefixes, *but* what you will need is to force specific prefixes on serialization (for stream:stream at least)

  156. jonas’

    and you'll need a serializer which avoids the use of prefixes at all cost, except for stream:stream, because some implementations cannot deal with it.

  157. antranigv has joined

  158. jonas’

    other than those two caveats, you can do away entirely with the prefix physical representation and you should :-)

  159. defanor

    jonas’, indeed, had in mind perhaps predefining a few, and straem:stream in particular. Thanks, will check aioxmpp's structures now.

  160. jonas’

    aioxmpp has no concept of XML nodes at the structure level, mind

  161. jonas’

    it directly transforms from SAX into node-specific objects

  162. jonas’

    (with no intermediate representation which would fit something like libxml2 xmlNode)

  163. defanor

    Ah. Well, at least will probably jump into a rewrite more easily.

  164. jonas’

    that's probably not feasible to do in C, so probably not useful to look into :-)

  165. jonas’

    good luck :)

  166. jonas’

    which software is that in context of, if I may ask?

  167. PapaTutuWawa has joined

  168. defanor

    Thanks. That's for rexmpp (<https://git.uberspace.net/rexmpp/>): I actually thought of introducing a custom XML structure from the very beginning, to not be tied to libxml2, but then it seemed rather tricky. Now rewriting/duplicating some sources in Rust (to optionally use those over C ones), and bringing libxml2 there seems even more awkward, with Rust having its own parsers and writers -- so it seems to be the time to introduce a custom structure.

  169. FireFly has joined

  170. lissine has joined

  171. Alif Radhitya has left

  172. Alif Radhitya has joined

  173. Link Mauve

    defanor, are you aware of the xmpp-parsers crate?

  174. Link Mauve

    It currently goes through an intermediate XML representation, but ultimately I want it to go directly from rxml (a SAX-like crate) to its internal structures.

  175. Link Mauve

    And back.

  176. trollge has left

  177. defanor

    Link Mauve, I saw it as a dependency of xmpp-rs, was going to check it out once will get to working with XML in Rust. Though will check its structures now as well, thanks.

  178. jonas’

    as we're shilling, I made https://docs.rs/rxml/latest/rxml/ which is a streaming XML parser, which may or may not be useful to you

  179. goffi has left

  180. goffi has joined

  181. defanor

    Haven't found that one while briefly looking at general Rust XML libraries recently, thanks for the link. Wrote it down and will look into those more closely once will reach the point of parsing and writing XML in Rust.

  182. goffi has left

  183. goffi has joined

  184. rubi has left

  185. rubi has joined

  186. FireFly has left

  187. FireFly has joined

  188. Alif Radhitya has left

  189. Alif Radhitya has joined

  190. kapad has left

  191. goffi has left

  192. goffi has joined

  193. trollge has joined

  194. norayr has left

  195. goffi has left

  196. goffi has joined

  197. antranigv has left

  198. antranigv has joined

  199. Tobi has left

  200. zhoska has left

  201. Tobi has joined

  202. Laura has left

  203. Laura has joined

  204. Alif Radhitya has left

  205. Alif Radhitya has joined

  206. Tobi has left

  207. Tobi has joined

  208. Caesar has joined

  209. Alif Radhitya has left

  210. Alif Radhitya has joined

  211. Caesar has left

  212. raghavgururajan has joined

  213. Tobi has left

  214. goffi has left

  215. Tobi has joined

  216. zhoska has joined

  217. Laura has left

  218. PapaTutuWawa has left

  219. Alif Radhitya has left

  220. Alif Radhitya has joined

  221. goffi has joined

  222. Arne has joined

  223. Arne has left

  224. selurvedu has joined

  225. antranigv has left

  226. nicoco_ has joined

  227. singpolyma has left

  228. singpolyma has joined

  229. nicoco_ has left

  230. Caesar has joined

  231. antranigv has joined

  232. antranigv has left

  233. PapaTutuWawa has joined

  234. antranigv has joined

  235. Syndace has left

  236. Arne has joined

  237. Arne has left

  238. antranigv has left

  239. antranigv has joined

  240. hearty has left

  241. hearty has joined

  242. Alif Radhitya has left

  243. antranigv has left

  244. singpolyma has left

  245. antranigv has joined

  246. antranigv has left

  247. Beherit has left

  248. Beherit has joined

  249. singpolyma has joined

  250. antranigv has joined

  251. antranigv has left

  252. antranigv has joined

  253. Caesar has left

  254. antranigv has left

  255. Caesar has joined

  256. goffi has left

  257. goffi has joined

  258. Arne has joined

  259. nicoco_ has joined

  260. singpolyma has left

  261. Yagizа has left

  262. antranigv has joined

  263. nicoco_ has left

  264. nicoco_ has joined

  265. norayr has joined

  266. singpolyma has joined

  267. nicoco_ has left

  268. antranigv has left

  269. antranigv has joined

  270. goffi has left

  271. goffi has joined

  272. Arne has left

  273. trollge has left

  274. moparisthebest has left

  275. moparisthebest has joined

  276. Syndace has joined

  277. Caesar has left

  278. Ingolf has left

  279. MSavoritias (fae,ve) has left

  280. trollge has joined

  281. lissine has left

  282. singpolyma has left

  283. singpolyma has joined

  284. MSavoritias (fae,ve) has joined

  285. lissine has joined

  286. singpolyma has left

  287. singpolyma has joined

  288. trollge has left

  289. Tobi has left

  290. Tobi has joined

  291. goffi has left

  292. goffi has joined

  293. Syndace has left

  294. Syndace has joined

  295. PapaTutuWawa has left

  296. Caesar has joined

  297. antranigv has left

  298. cal0pteryx (wurstsalat) has left

  299. lovetox2 has joined

  300. MSavoritias (fae,ve) has left

  301. antranigv has joined

  302. cal0pteryx (wurstsalat) has joined

  303. MSavoritias (fae,ve) has joined

  304. lissine has left

  305. antranigv has left

  306. antranigv has joined

  307. antranigv has left

  308. lovetox2 has left

  309. Caesar has left

  310. goffi has left

  311. goffi has joined

  312. marc0s has left

  313. marc0s has joined

  314. antranigv has joined

  315. antranigv has left

  316. antranigv has joined

  317. antranigv has left

  318. trollge has joined

  319. antranigv has joined

  320. antranigv has left

  321. selurvedu has left

  322. antranigv has joined

  323. antranigv has left

  324. Ingolf has joined

  325. antranigv has joined

  326. norayr has left

  327. antranigv has left

  328. reika has left

  329. Arne has joined

  330. lissine has joined

  331. nicoco_ has joined

  332. goffi has left

  333. nicoco_ has left

  334. Arne has left

  335. Caesar has joined

  336. goffi has joined

  337. jgart has joined

  338. trollge has left

  339. Caesar has left

  340. singpolyma has left

  341. singpolyma has joined

  342. antranigv has joined

  343. antranigv has left

  344. xnamed has left

  345. xnamed has joined

  346. Laura has joined

  347. qy has left

  348. qy has joined

  349. singpolyma has left

  350. singpolyma has joined

  351. poliux has left

  352. Ingolf has left

  353. goffi has left

  354. goffi has joined

  355. goffi has left

  356. goffi has joined

  357. goffi has left

  358. goffi has joined

  359. trollge has joined

  360. Caesar has joined

  361. thomaslewis has joined

  362. thomaslewis has left

  363. thomaslewis has joined

  364. thomaslewis has left

  365. Caesar has left

  366. kapad has joined

  367. lissine has left

  368. lissine has joined

  369. goffi has left

  370. goffi has joined

  371. singpolyma has left

  372. singpolyma has joined

  373. goffi has left

  374. goffi has joined

  375. lissine has left

  376. nicoco_ has joined

  377. larma has left

  378. nicoco_ has left

  379. thomaslewis has joined

  380. lovetox2 has joined

  381. lovetox2 has left

  382. yvo has left

  383. Laura has left

  384. Arne has joined

  385. Arne has left

  386. lovetox2 has joined

  387. lovetox2 has left

  388. PapaTutuWawa has joined

  389. cal0pteryx (wurstsalat) has left

  390. Laura has joined

  391. singpolyma has left

  392. Laura has left

  393. Laura has joined

  394. andrew has left

  395. singpolyma has joined

  396. lovetox2 has joined

  397. lovetox2 has left

  398. Laura has left

  399. Laura has joined

  400. atomicwatch has left

  401. selurvedu has joined

  402. lissine has joined

  403. Laura has left

  404. Laura has joined

  405. techmetx11 has left

  406. Dele Olajide has joined

  407. thomaslewis has left

  408. atomicwatch has joined

  409. cal0pteryx (wurstsalat) has joined

  410. Dele Olajide has left

  411. Dele Olajide has joined

  412. Laura has left

  413. Laura has joined

  414. Dele Olajide has left

  415. singpolyma has left

  416. Laura has left

  417. Laura has joined

  418. atomicwatch has left

  419. lissine has left

  420. lovetox2 has joined

  421. lovetox2 has left

  422. atomicwatch has joined

  423. lovetox2 has joined

  424. lovetox2 has left

  425. lissine has joined

  426. lovetox2 has joined

  427. lovetox2 has left

  428. lovetox2 has joined

  429. lovetox2 has left

  430. lovetox2 has joined

  431. singpolyma has joined

  432. lovetox2 has left

  433. lovetox2 has joined

  434. lovetox2 has left

  435. xnamed has left

  436. lovetox2 has joined

  437. Ingolf has joined

  438. lovetox2 has left

  439. Laura has left

  440. Laura has joined

  441. Trung has left

  442. larma has joined

  443. lissine has left

  444. poliux has joined

  445. singpolyma has left

  446. xnamed has joined

  447. yvo has joined

  448. singpolyma has joined

  449. techmetx11 has joined

  450. norayr has joined

  451. antranigv has joined

  452. xnamed has left

  453. xnamed has joined

  454. antranigv has left

  455. Laura has left

  456. singpolyma has left

  457. norayr has left

  458. lissine has joined

  459. singpolyma has joined

  460. antranigv has joined

  461. mirux has left

  462. antranigv has left

  463. xnamed has left

  464. Laura has joined

  465. PapaTutuWawa has left

  466. singpolyma has left

  467. MSavoritias (fae,ve) has left

  468. lissine has left

  469. singpolyma has joined

  470. Tobi has left

  471. singpolyma has left

  472. singpolyma has joined

  473. Laura has left

  474. Laura has joined

  475. Laura has left

  476. andrew has joined

  477. Laura has joined

  478. norayr has joined

  479. xnamed has joined

  480. thomaslewis has joined

  481. thomaslewis has left

  482. thomaslewis has joined

  483. moparisthebest has left

  484. moparisthebest has joined

  485. Laura has left

  486. Laura has joined

  487. nicoco_ has joined

  488. Laura has left

  489. singpolyma has left

  490. singpolyma has joined

  491. moparisthebest has left

  492. Beherit has left

  493. goffi has left

  494. nicoco_ has left

  495. larma has left

  496. moparisthebest has joined

  497. xnamed has left

  498. thomaslewis has left

  499. Laura has joined

  500. thomaslewis has joined

  501. Laura has left

  502. singpolyma has left

  503. singpolyma has joined

  504. Laura has joined