News for hackers. Stuff that matters.
Re:France’s government is building its own encrypted messeng... by spacenick88 on Tuesday April 17, 2018 @03:40AM (#16856315)
Would you say it's a correct description of Matrix to call it "Jabber/XMP without the whole XML mess and over HTTP"?
Re:France’s government is building its own encrypted messeng... by Arathorn on Tuesday April 17, 2018 @04:07AM (#16856435)
Not 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.
Re:France’s government is building its own encrypted messeng... by amelius on Tuesday April 17, 2018 @05:25AM (#16856738)
> 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.

Re:France’s government is building its own encrypted messeng... by Arathorn on Tuesday April 17, 2018 @05:54AM (#16856865)
Absolute 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.
Re:France’s government is building its own encrypted messeng... by greenhouse_gas on Tuesday April 17, 2018 @01:09PM (#16860204)
So it's a blockchain! /s
Re:France’s government is building its own encrypted messeng... by Arathorn on Tuesday April 17, 2018 @01:57PM (#16860706)
Re:France’s government is building its own encrypted messeng... by amelius on Tuesday April 17, 2018 @07:02AM (#16857198)
Ok, makes sense now, thanks!
Re:France’s government is building its own encrypted messeng... by seba_dos1 on Tuesday April 17, 2018 @09:28AM (#16858031)
So, Matrix is a better IRC, while XMPP is a better IM.
Re:France’s government is building its own encrypted messeng... by rakoo on Tuesday April 17, 2018 @09:46AM (#16858206)
Matrix is a better NNTP, while XMPP is a better SMTP
Re:France’s government is building its own encrypted messeng... by thrasff on Tuesday April 17, 2018 @06:05AM (#16856919)
For 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.
Re:France’s government is building its own encrypted messeng... by pmlnr on Tuesday April 17, 2018 @07:10AM (#16857232)
At least multi-client encryption exists for XMPP, unlike for WhatsApp.

See https://omemo.top/

Re:France’s government is building its own encrypted messeng... by Promarged on Tuesday April 17, 2018 @08:28AM (#16857650)
Also, there is relatively minor subset of features that provide good messaging experience: https://conversations.im/compliance/
Re:France’s government is building its own encrypted messeng... by JepZ on Tuesday April 17, 2018 @05:31AM (#16856768)
Their 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-differen...

Disclaimer: I prefer XMPP.

Re:France’s government is building its own encrypted messeng... by kuschku on Tuesday April 17, 2018 @08:02AM (#16857502)
If 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.