Interesting, “A modern compiler for the French tax...
# linking-together
s
Interesting, “A modern compiler for the French tax code” https://arxiv.org/pdf/2011.07966.pdf
😂 1
😮 2
i
Meta note — would you mind editing your post to add a little more context? Some of us are on slow / metered internet, so opening a random PDF is a bit of a risk.
i
In the meantime, it’s “A modern compiler for the French tax code”
s
ah sorry I added this as an edit but my internet went down 😞
Slack is so bad at telling me when the internet is up or down / it has connection 😞
💯 1
i
Seems like I'm not the only one with unreliable internet. Thanks for the edit!
e
"France income tax is computed ... through a legacy custom language and compiler originally designed in 1990, which unlike French wine, did not age well with time."
seems like a DSL compiler for a rules engine
This seems related: http://grammarware.net/text/2020/dsl-adoption.pdf
Abstract. Given all the different benefits that domain specific languages are reported to produce, why are they not a widely adopted practice? In this report, we try to condense [... some possible reasons voiced and possibly related concerns expressed ...] in a short coherent text.
🤔 1
w
I'm surprised they don't talk about lack of composability: the simple fact that coming up with a good DSL is trickier than coming up with a good API, which is tricky enough.
e
that's a fair point, composability is hard to achieve. I think of SQL though, it is extremely popular DSL even though it is not highly composable. I remember one of the "killer features" of ActiveRecord on rails was the "relational algebra library", which allowed to pick an existing query and add one more constraint in a single line of code, which is not easy with plain-text SQL
🤔 1
I'm thinking for something like Tax rules having some redundancy because of lack of composability maybe is not a great deal, perhaps it is even a feature. Instead of saying "Tax rule #77 is like Tax rule #23 but with XYZ", you may need to copy and modify the old rule ... there would be no risk one rule changing modifying the other. --- in any case for me the takeaway is that lack of composability can be alleviated with great tooling if the DSL provides enough advantages.