News for hackers. Stuff that matters.
Re:We Need to Know LR and Recursive Descent Parsing Techniques by hinkley on Tuesday January 17, 2023 @11:09AM (#34414254)
The DSL paradigm is extremely limited, because there are almost no people who are good at writing programming languages that work for developers instead of the other way around.

XML didn’t fail because of some technical limitation. It failed because it tried to turn us all into language designers. At worst JSON asks you for a schema, and that was an afterthought in both cases.

Re:We Need to Know LR and Recursive Descent Parsing Techniques by oldsecondhand on Tuesday January 17, 2023 @11:35AM (#34414641)
The problem with XML was slow parsing and the horrible syntax of XSD schemas. Turning attributes into elements is also a pain in the ass. And for a lot of applications turning whitespace into elements is unnecessary.
Re:We Need to Know LR and Recursive Descent Parsing Techniques by hinkley on Tuesday January 17, 2023 @02:18PM (#34417266)
Those are confounding factors. If you made any other product with the same goals, but faster parsing and better schema syntax, probably by integrating the two, then you'd still end up with the same mess because defining a language is worrying about a million corner cases and not being able to fix more than half of them once they ship.

It's a hard problem. Probably the hardest.

Re:We Need to Know LR and Recursive Descent Parsing Techniques by duped on Tuesday January 17, 2023 @02:49PM (#34417744)
XML didn't fail.