Parley: Federated, decentralised chat that speaks plain IRC
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Parley: Federated, decentralised chat that speaks plain IRC
Unofficial Hacker News client; not affiliated with Y Combinator.
Conlectus · · focus · HN ↗
In this case, this is basically a poorly specified implementation of half of XMPP. Of course, I half expect the LLM would have mentioned that at some point, but the repository does not.
dale_glass · · focus · HN ↗
I don't know how it just happens that sending text messages to people can manage to result in specs that are painful to implement.
monkeywork · · focus · HN ↗
Can you provide more details here? I've never seen an issue with the protocol at all, more issues with feature difference between servers depending on what they have decided to implement or not.
packetlost · · focus · HN ↗
dale_glass · · focus · HN ↗
For instance, it works as a constant, uninterrupted stream. You never close the document until the disconnection. Which means you absolutely have to parse it with a stream parser.
It could have been something sensible, like a document per message: "Here's 300 characters of XML document: <xml>....". But nope.
And what's up with this? <a href="https://xmpp.org/extensions/xep-0394.html" rel="nofollow">https://xmpp.org/extensions/xep-0394.html
tecleandor · · focus · HN ↗
That made me remember IBM JSONx... <a href="https://www.ibm.com/docs/en/datapower-gateway/10.6.x?topic=20-jsonx" rel="nofollow">https://www.ibm.com/docs/en/datapower-gateway/10.6.x?topic=2...
F3nd0 · · focus · HN ↗
Are there more elegant or natural ways to do it? Probably. But when you say ‘extremely complex’, saying ‘codepoints 7 to 15 should be bold’ is not what comes to my mind.
amenghra · · focus · HN ↗
dale_glass · · focus · HN ↗
* It's not standard. You can't plug in some normal formatting library there and be done with it.
* You'll probably end up having to write conversions back and forth.
* It's fragile -- if anything gets misaligned it'll break
* It's tooling unfriendly. Think things like Nagios, Grafana, etc sending formatted notifications. Everything can do this or <b>this</b>, but practically nothing is set up to accommodate this format.
* It leaks into other subsystems. You can't eg, just search/replace/insert/delete words if you need to for any reason without breaking this.
Is it the worst thing ever? No, but it seems to go with the pattern that nothing in XMPP is normal or comfortable. Everything has this weird particular flavor to it and more complexity than necessary.
If it were up to me, my option would be to support 2 things: Markdown for simple cases, and embedded HTML for when you really have to get fancy. Each of those can be handed out to existing code and you don't ever have to keep adding extensions because what if people want colors or something now.
Groxx · · focus · HN ↗
And you could use markdown. Just get the rendered spanned text result and transpile it. This would be true for any editor as well, just get convert it to spanned text, edit, convert back.
And with HTML you'll still have to specify what subset you support, and many tools won't support that either. Markdown suffers from this too, by supporting embedded HTML, though at least commonmark is pretty baseline and well supported.
someonebaggy · · focus · HN ↗
GoblinSlayer · · focus · HN ↗
someonebaggy · · focus · HN ↗
someonebaggy · · focus · HN ↗