Hacker News new | past | comments | ask | show | jobs | submit login

Here's the source code of the implementation of the tax code: https://github.com/etalab/calculette-impots-m-source-code



Hi, one of the paper authors here. This is unfortunately only part of the story. This "calculette" covers only a fraction of the tax computation; furthermore, without knowing the crazy semantics and computational rules of the M language, it's very hard to reproduce the tax computation.

As a side-note, the source code appears to have moved here: https://gitlab.adullact.net/dgfip/ir-calcul


The languages breakdown is interesting. It seems GitHub refuses to admit defeat and categorises the .m files into various other languages which use the extension (M, MATLAB, Objective-C, Mathematica and Mercury). I wonder if they use some sort of fuzzy ML solution for categorising them rather than conventional parsing.


Wonder no more! https://github.com/github/linguist/blob/7c2adbdb15d4efd25d92...

As most AI, it's regex and ifs all the way down.


> As most AI, it's regex and ifs all the way down.

This made me laugh way more than expected, mostly because of how true it is.


These incredibly vague regexes are hilarious. But I guess if it works, it works (until it doesn't)



I can't help but wonder what awesome things happen in "iliad" and "ocean" mode after looking at some of those files:

    application : pro, batch , iliad,oceans ;


Iliad means "Informatisation de L'inspection d'Assiette et de Documentation" which roughly translates to "computerisation of tax base and documentation inspection".


Hi, author here :) You seem to be well-informed of the DGFiP jargon, do you know if news of my work has been spreading among the IT department there?


Hi! Unfortunately I have no idea, I don't work there nor have any affiliation with them.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: