5 ms·
Would you say it's a correct description of Matrix to call it "Jabber/XMP without the whole XML mess and over HTTP"?
by spacenick88 9y ago
Would you say it's a correct description of Matrix to call it "Jabber/XMP without the whole XML mess and over HTTP"?
- Arathorn 9y agoNot really - the protocols are very different. Matrix is a way of replicating conversation history over a mesh of participating servers; a bit like a bunch of Git repositories constantly pushing commits (messages) to one another. XMPP is much lighter weight and builds on simpler message passing and pubsub primitives. You can use both to build comms systems, but they take opposite engineering and governance approaches on almost everything.
- amelius 9y ago> a bit like a bunch of Git repositories constantly pushing commits (messages) to one another. Why would you need to do that? Why not just give every message a timestamp, make sure they get sent, and sort the messages on the receiver side? If you're really concerned about message order, you could give every message a unique id, and send out the id of the previous message with every message, and improve your sort function accordingly.
- Arathorn 9y agoAbsolute timestamps cannot be trusted in a byzantine environment, so we do precisely as you suggest - messages are transmitted with pointers to the previous message(s) in the room message graph, so you get a partial ordering within the room (just like git). We also sign the messages into a merkle graph (like git) to stop the shared datastructure being tampered with.
- amelius 9y agoOk, makes sense now, thanks!
- greenhouse_gas 9y agoSo it's a blockchain! /s
- Arathorn 9y agohttps://twitter.com/whitequark/status/946886702932557824 https://twitter.com/whitequark/status/946886702932557824 :D
- seba_dos1 9y agoSo, Matrix is a better IRC, while XMPP is a better IM.
- rakoo 9y agoMatrix is a better NNTP, while XMPP is a better SMTP
- JepZ 9y agoTheir architectures differ a lot and nowadays you can use XMPP with HTTP via BOSH. I think a fair comparison is the one in the Matrix FAQ: https://matrix.org/docs/guides/faq.html#what-is-the-difference-between-matrix-and-xmpp https://matrix.org/docs/guides/faq.html#what-is-the-differen... Disclaimer: I prefer XMPP.
- thrasff 9y agoFor all the hate XML gets... it's not that bad. Certainly not worth switching protocols for. Main problems with XMPP is a divided ecosystem where different clients and servers support different features, and that multi-client encryption is severely flaky.
- pmlnr 9y agoAt least multi-client encryption exists for XMPP, unlike for WhatsApp. See https://omemo.top/ https://omemo.top/
- Promarged 9y agoAlso, there is relatively minor subset of features that provide good messaging experience: https://conversations.im/compliance/ https://conversations.im/compliance/
- kuschku 9y agoIf you think XMPP is bad, take a look at Matrix’s "new HTTP connection for each sent or received batch of messages", thanks to HTTP longpolling.