r/dataengineering • • Oct 30 '26

Discussion Putting all world law on git

I am putting all world law into git. That comes with some quirks, like the cut-off being 1970 (commits are calculated as seconds since 1 January 1970).

This hit #1 on HN yesterday (you can read lots of discussion at https://news.ycombinator.com/item?id=50268380). Why would I want to do this? The idea is make all law semantic, versioned, easily attributable and query able by agents. I also believe this information should be freely available so CC0 license (do whatever you want with it). If interested, repo linked below, I'd welcome all comments and advice. Thanks!

https://github.com/lexifina/global-law

110 Upvotes

15 comments sorted by

27

u/nl_dhh You are using pip version N; however version N+1 is available Oct 30 '26

I don't know if this is brilliant or insane. Then again, those aren't mutually exclusive.

Very interesting!

5

u/SnooPeripherals5313 Oct 30 '26

Thanks! Hopefully both and not just the latter. This is probably the first time in history a project of this scale is viable.

1

u/BarfingOnMyFace 27d ago

You are definitely both brilliant and insane! I very much like this. Thank you.

7

u/imthef-nlizardking Oct 30 '26

This is awesome! I see so many uses for it. How do you plan to keep it updated?

1

u/SnooPeripherals5313 Oct 30 '26

Hi! Lots of thoughts on this, going to write this question into a FAQ, as stale information is a problem (but a solvable one).

10

u/Greedy_Ad8932 Oct 30 '26

Amazing initiative. I have a question regarding the infrastructure: Global law is massive. Even in text format, tracking thousands of changes across 190+ countries over decades will eventually push the limits of GitHub repository sizes and commit performance.

How are you planning to address GitHub's storage constraints and the performance bottlenecks of managing so many heavy submodules in the long run?

5

u/generic-d-engineer Tech Lead 28d ago

I read about this EXACT idea many years ago. I think it’s freakin brilliant.

Once you get that down, consider another idea, at least for the US:

  • Donations trails to each lawmaker who voted for/against each law
  • Lobbyists who were sponsoring each law
  • Interest groups who endorsed each law

2

u/Chandlarr Oct 30 '26

Nice, very good idea

2

u/CesparRes 29d ago

Git cannot store dates before 1970, so changes to the Grundgesetz that took effect earlier carry 1970 commit dates, one second apart, in the right order. The In-force trailer is authoritative and the tools use it, so law.py show 1956-03-19 … works.

Why would you set the commit date to 1970?

Like I get going forward the commit dates probably will match with the law change dates, but why not simply keep track of the date of the law change and use that as another field somewhere?

Maybe I just need more coffee to understand πŸ˜…

3

u/generic-d-engineer Tech Lead 28d ago

Brb trying to track down Ranulf de Glanvill this muf always running rebases without asking

1

u/smoore65 Oct 30 '26

super cool idea

1

u/fuck_this_i_got_shit 29d ago

I think this is very cool!

1

u/sal-si-puedes 28d ago

How are you handling countries like the US with common law? Are you citing cases?

0

u/ewoolly271 29d ago

Why is there American Samoa but no Wisconsin?

2

u/SnooPeripherals5313 29d ago

Haha, due to data scraping rules against non US addresses. Will resolve this very soon.