News for hackers. Stuff that matters.
Re:Xee: A Modern XPath and XSLT Engine in Rust by 01HNNWZ0MV43FF on Friday March 28, 2025 @01:37PM (#43508056)
JSON5 is a real sweet spot for me. Closing brackets, but I don't have to type every tag twice. Comments and trailing commas.
Re:Xee: A Modern XPath and XSLT Engine in Rust by consteval on Friday March 28, 2025 @03:41PM (#43509211)
I find for deeply hierarchical data that XML is much easier to read.
Re:Xee: A Modern XPath and XSLT Engine in Rust by emporas on Friday March 28, 2025 @10:39PM (#43512238)
Emacs has pretty print JSON which makes it very easy to read. I don't find it possible, XML displayed for human consumption to be better than that.
Re:Xee: A Modern XPath and XSLT Engine in Rust by froh on Saturday March 29, 2025 @09:13AM (#43515265)
interrsting. I find the signal/noise ratio of XML really bad.

what I really dread in XML though is that XML only has idref/id standardized, and no path references. so without tool support you can't navigate to a reference target.

which turns XML into the "binary" format for GUI tools.

Re:Xee: A Modern XPath and XSLT Engine in Rust by consteval on Saturday March 29, 2025 @02:21PM (#43517428)
> so without tool support you can't navigate to a reference target

Maybe, but XML tools are also just superior to JSON counterparts. XPath is fantastic, and so is XSD and XSLT. I also quite like the integration with .NET.

My general experience with JSON as a configuration language has been sad. It's a step back from XML in a lot of ways.

Re:Xee: A Modern XPath and XSLT Engine in Rust by froh on Saturday March 29, 2025 @03:19PM (#43517834)
yes, XML is very mature, and fun if you have access to advanced tools.

however most oss builds on libxml which is stuck in xslt 1 and xpath 2 iirc...

I recently stumbled upon James Clark's youngest brainchild the ballerina language.

https://ballerina.io/

https://en.wikipedia.org/wiki/James_Clark_(programmer)#Caree...