News for hackers. Stuff that matters.
Re:Open Source Tax Software by 6510 on Tuesday October 05, 2021 @03:02AM (#28756297)
We could evolve to requiring laws to be implemented as FOSS before they go live. I suspect the right tests could reveal all kinds of bugs, weird edge cases and exploits.

Sadly law makers don't know how to code. If they did they would see what bloated monstrosity of complexity a few simple sounding sentences with some simple sounding exceptions produce. Perhaps a large bill and months of delay could provide enough of a clue.

Re:Open Source Tax Software by wahern on Tuesday October 05, 2021 @03:11AM (#28756352)
AFAIU, the French Tax Code is effectively defined in terms of an algorithm. There was a recent HN thread (https://news.ycombinator.com/item?id=25208853) on a new open-source compiler for the tax code (https://arxiv.org/abs/2011.07966). The paper for the compiler references some interesting literature on the computability of legal codes. For example,

> [U.S.] tax law drafting style follows default logic, a non-monotonic logic that is hard to encode in languages with first-order logic (FOL).

Re:Open Source Tax Software by 6510 on Tuesday October 05, 2021 @06:24PM (#28766500)
Fascinating. I thought Estonia was the only one who kept an eye on difficulty of implementation.
Re:Open Source Tax Software by qzw on Tuesday October 05, 2021 @03:21AM (#28756406)
Tax laws are hundreds to thousands of pages each. The complexity is intentional and not accidental. Many carve outs are specifically created for special interest or to target certain constituencies.

Edit: referring to the US