News for hackers. Stuff that matters.
Re:A Modern Compiler for the French Tax Code by semi-extrinsic on Wednesday November 25, 2020 @09:50AM (#25209784)
In my country, with an admittedly quite simple tax code, the authorities used to publish each year official COBOL code that computed income tax.

They switched to Java in 2018-ish - and to Github instead of a random FTP server.

Doing your taxes has also been a no-op for many people the past decade or so. You don't do anything except read the tax report, unless you spot some mistakes or items missing in the report that was autofilled by the government, then you can go into the web form and submit the amendments necessary.

Re:A Modern Compiler for the French Tax Code by specialist on Wednesday November 25, 2020 @12:08PM (#25211455)
That's genius.

A buddy of mine retired rich after creating property tax administration systems. They only had a few client counties.

They'd just about rollout new system updates before the next wave of tax code revisions. Never ending work.

Sounded like living hell. I couldn't do that kind of work and stay sane. But he seemed to enjoy it.

Re:A Modern Compiler for the French Tax Code by e12e on Wednesday November 25, 2020 @02:13PM (#25213039)
Recently helped my dad clear out his office - and we came across a binder with fan-folded, faded dot matrix printed copy of COBOL code he used in order to calculate taxes in the 80s - translating the code to BASIC. The original COBOL code came from the Norwegian tax office - I'm not sure if they still publish something similar.

Ed: ah, same country https://news.ycombinator.com/item?id=25210009

A little unfortunate that we threw it out.

Re:A Modern Compiler for the French Tax Code by sdfin on Wednesday November 25, 2020 @10:14AM (#25210033)
That sounds amazing. Which country is it?
Re:A Modern Compiler for the French Tax Code by ukd1 on Wednesday November 25, 2020 @10:11AM (#25210009)
Cool - which country? Could you link to the Github repo?
Re:A Modern Compiler for the French Tax Code by semi-extrinsic on Wednesday November 25, 2020 @11:45AM (#25211162)
Re:A Modern Compiler for the French Tax Code by danuker on Wednesday November 25, 2020 @12:15PM (#25211551)
How can you tell? All "Languages" I get is "Java 100.0%".
Re:A Modern Compiler for the French Tax Code by semi-extrinsic on Wednesday November 25, 2020 @12:22PM (#25211646)
The COBOL part is from memory. I'll have a look to see if I can find a copy floating around somewhere.

Edit: the transition appears to be more like 2016, and one of the commits then refers to a file generated from COBOL: https://github.com/Skatteetaten/trekktabell/commit/5181d86c5...

Re:A Modern Compiler for the French Tax Code by e12e on Wednesday November 25, 2020 @02:29PM (#25213222)
I did find an awkward source that lists the 2017(?) COBOL code for the tables - the core program seems to be last updated 1993 (Norwegian only) : https://docplayer.me/38761458-Beregning-av-forskuddstrekk-in...

> IDENTIFICATION DIVISION.  PROGRAM-ID. FT7P200T. AUTHOR. PER J. RISTUN. DATE-WRITTEN. NOVEMBER 1993 ----------------------------------------------------------------  * BESKRIVELSE : PROGRAMMET BEREGNER FORSKUDDSTREKK FOR ÅR 2017 * (...)

Re:A Modern Compiler for the French Tax Code by semi-extrinsic on Wednesday November 25, 2020 @03:43PM (#25214084)
This is the one!

If memory serves, they updated the program for each year (I guess only numerical constants and small rule changes), but they probably didn't update the source in the documentation.

Re:A Modern Compiler for the French Tax Code by 1f60c on Wednesday November 25, 2020 @10:58AM (#25210563)
I think it's Norway.

(I just googled GP's email address (it's in their profile).)

Re:A Modern Compiler for the French Tax Code by pratik661 on Wednesday November 25, 2020 @10:37AM (#25210295)
I’m guessing it’s Estonia. It’s really ahead with digital governance.
Re:A Modern Compiler for the French Tax Code by skeletal88 on Wednesday November 25, 2020 @10:47AM (#25210427)
Estonian here - no it is not Estonia.

Here our income tax declaration is very simple, the tax office already knows how much salary we have earned, and there aren't many deductions, so most people either don't have to file taxes at all, or just click next a few times and get their tax returns after a week or so. For 90% of people it takes less than 5 minutes.