Article Summary (Model: gpt-5-mini-2025-08-07)
Subject: XML as a Cheap DSL
The Gist: The author (an engineer on the IRS Tax Withholding Estimator) argues that XML is an inexpensive, practical choice for expressing a cross-platform, declarative DSL (the "Fact Dictionary") that models complex tax logic for a Fact Graph engine. XML’s tag-based structure, attributes, comments, type affordances and extremely mature tooling (XPath/XSLT/shell pipelines) make it easier to write, inspect, transform and debug the declarative facts than JSON or ad-hoc imperative code.
Key Claims/Facts:
- Declarative Fact Graph: Facts are expressed as named, dependency-based calculations (Derived/Writable) so the engine can order evaluation, provide introspection/auditability, and answer “how was this value computed?”.
- XML suits nested DSLs better than JSON: Tag names encode node kinds, attributes and types let the language express tax concepts (Dollar/Boolean/CollectionSum/etc.), and comments/whitespace handling improve authorability vs JSON.
- Tooling and interoperability: XML’s mature parsers and universal ecosystem (XPath, shell tools, transforms) make it cheap to build debugging and cross-language tooling; the author demonstrates quick workflows (xpath + fzf) and notes XML can be converted into other idioms (s-exprs, Prolog terms, KDL).
Discussion Summary (Model: gpt-5-mini-2025-08-07)
Consensus: Cautiously Optimistic — commenters appreciate the argument that XML can be the right tool for a declarative DSL, but many remain skeptical about XML’s ergonomics and runtime cost.
Top Critiques & Pushback:
Better Alternatives / Prior Art:
Expert Context: