Remix.run Logo
switchbak 13 hours ago

Why would anyone choose XML for a modern GUI layout in 2026? That seems like a mis-step.

ovenpasta 13 hours ago | parent [-]

Author here, the library itself is pure Ada, the XML UI is just a convenience layer on top of it, there is a code generator that picks it and writes ada packages. happy to hear better alternatives!

OneWingedShark 10 hours ago | parent | next [-]

I'd recommend ASN.1 for almost everything that XML is used for. Unfortunately, is a [semi-] human-readable file is in your list of 'needs', then that is "mostly" ruled out.

(So, what you could do is use the XML-encoding of ASN.1, and then use _that_ in the place of your (current) XML, and then simply allow eg DER encoded objects.)

switchbak 7 hours ago | parent | prev [-]

I suppose it depends what audience will be editing it. XUL used it because that was the fashion at the time, but it wouldn't be something I'd want to hand edit. Qt used its own QWT (now dated) which was a lot easier for a human to edit, albeit a bit ad-hoc.

If it's mostly consumed and edited by a machine/LLM, xml might actually be ok. Otherwise, I think something a bit less ceremonial. Obviously there's lots of options, and I imagine you may even miss much of the tooling of XML (schemas and such).

Kind of a drive-by comment, I admit, but it just struck me as a little surprising.

Also: it's been some 3 decades since I was playing with Ada ... very cool to see it getting some GUI love!