frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

My 2 cents on the "will Al replace software engineers" debate

https://am-i-replaceable.pages.dev
1•mayilian•1m ago•0 comments

Robert Trivers, Eccentric Scientist Who Probed Human Nature, Dies at 83

https://www.nytimes.com/2026/03/27/science/robert-trivers-dead.html
1•Brajeshwar•1m ago•0 comments

Trabajo en dublin ga para inmigrantes?

1•betoj•3m ago•0 comments

Show HN: OpenChat – Syncing conversations across AI providers

https://github.com/p0u4a/openchat
1•p0u4a•3m ago•0 comments

TLA+ in support of AI code generation

https://medium.com/@polyglot_factotum/tla-in-support-of-ai-code-generation-9086fc9715c4
1•atomicnature•5m ago•0 comments

The Panic over 'Tech Neck'–and Race for a Cure

https://www.wsj.com/style/beauty/tech-neck-wrinkles-smartphone-skincare-5ca72a06
1•bookofjoe•6m ago•1 comments

Lyria 3 Pro – AI Music Generator from Text Prompts

https://lyria3pro.pro/
1•JoahYi•7m ago•0 comments

PH4NTXM – Volatile RAM-Only OS, OPSEC, Network-Morphing, High-Stakes!

https://github.com/PH4NTXMOFFICIAL/PH4NTXM-LITE
1•PH4NTXMOFFICIAL•8m ago•0 comments

Calculate "1/(40rods/ hogshead) → L/100km" from your Zsh prompt

https://vincent.bernat.ch/en/blog/2026-zsh-calculator
1•vbernat•8m ago•1 comments

Ask HN: What is a good study guide for GATE EC examination?

1•rakshithbellare•9m ago•0 comments

Continuous cloud-native backup tool for PostgreSQL

https://github.com/pgrwl/pgrwl
1•alzhi7•10m ago•0 comments

Playing Wolfenstein 3D with one hand in 2026

https://arstechnica.com/gaming/2026/03/playing-wolfenstein-3d-with-one-hand-in-2026/
1•Brajeshwar•11m ago•0 comments

LLMs and Agents: How do they Work?

https://mattrogish.com/blog/2026/03/20/llms-agents-how-do-they-work/
1•mooreds•13m ago•0 comments

When your customers become a threat to your business

https://matt-schellhas.medium.com/when-your-customers-become-a-threat-to-your-business-7d0a07f04170
1•mooreds•14m ago•1 comments

Gratis versus Libre

https://en.wikipedia.org/wiki/Gratis_versus_libre
2•mooreds•16m ago•0 comments

Roulette Physics(2003) [pdf]

https://www.roulettephysics.com/wp-content/uploads/2014/01/Roulette_Physik.pdf
1•o4c•18m ago•0 comments

Roulette Computers: Hidden Devices That Predict Spins

https://www.roulette-computers.com/
1•o4c•18m ago•0 comments

AI struggles more with philosophy than math or reasoning – data shows

https://zenodo.org/records/19229756
2•onconc574•19m ago•0 comments

Ancient bones show dogs have been woven into human life for nearly 16,000 years

https://phys.org/news/2026-03-ancient-bones-dogs-woven-human.html
1•Brajeshwar•22m ago•0 comments

Value Drifts: Tracing Value Alignment During LLM Post-Training

https://arxiv.org/abs/2510.26707
2•antigrav_kids•24m ago•0 comments

Dynamical Bias in the Coin Toss(2004) [pdf]

https://www.stat.berkeley.edu/~aldous/157/Papers/diaconis_coinbias.pdf
1•nill0•25m ago•0 comments

The Great CSS Expansion

https://blog.gitbutler.com/the-great-css-expansion
2•MindGods•25m ago•0 comments

Why and How to Avoid Hamburger Menus (2014)

https://lmjabreu.com/post/why-and-how-to-avoid-hamburger-menus/
2•chistev•27m ago•1 comments

You Do Not, in Fact, Have to Hand It to Them

https://2ndbreakfast.audreywatters.com/you-do-not-in-fact-have-to-hand-it-to-them/
8•MindGods•29m ago•1 comments

The FlightAware global FlightFeeder network

https://blog.flightaware.com/inside-the-flightaware-global-flightfeeder-network
2•eu•30m ago•0 comments

Show HN: Python Dispatching Without Limitations

https://ulrikchristensengit.github.io/argbox/dispatching/
1•Upitor•31m ago•0 comments

Why use living cells? Researchers are making chemicals with enzymes alone

https://phys.org/news/2026-03-cells-chemicals-enzymes.html
1•Brajeshwar•32m ago•0 comments

Filter news with a single prompt

https://distill.cstein.xyz
1•cstein2•33m ago•1 comments

EU agrees to fine online platforms importing unsafe products

https://www.reuters.com/sustainability/eu-reaches-deal-fine-online-platforms-importing-products-d...
2•geox•34m ago•0 comments

Tar: A slop-free alternative to rsync

https://drewdevault.com/2026/03/28/2026-03-28-rsync-without-rsync.html
4•shscs911•34m ago•1 comments
Open in hackernews

I put all 8,642 Spanish laws in Git – every reform is a commit

https://github.com/EnriqueLop/legalize-es
231•enriquelop•1h ago

Comments

enriquelop•1h ago
I built a pipeline that converts all Spanish state legislation into version-controlled Markdown. Each law is a file, each reform is a real git commit with the historical date. 8,642 laws, 27,866 commits.

The idea: legislation is just patches on patches on patches. Git already solves this. Instead of reading "strike paragraph 3 and replace with...", you get an actual diff.

The repo is the product. Browse any law, git log to see its full reform history, git diff to see exactly what changed.

Built the pipeline in ~4 hours with Claude Code. Source is BOE (Spain's official gazette) consolidated legislation API.

Exploring whether there's a business here — structured legislation API for legaltech/compliance, or just a useful open dataset. Curious what HN would build with this data.

7777777phil•1h ago
cool idea, how far back (in time) do those 27k commits go?

Just thinking how this could maybe used for (automated) research / visualization on the evolution of (spanish - in this case) law

codethief•1h ago
> how far back (in time) do those 27k commits go

Looking at the commit dates (which seem to be derived from the original publication dates) the history seems quite sparse/incomplete(?) I mean, there have only been 26 commits since 2000.

Meneth•48m ago
It seems the commits aren't in proper date order. Here are some newer changes, placed before the latest commits: https://github.com/EnriqueLop/legalize-es/commits/master/?af...
artirdx•56m ago
Laws intent are often clarified in courts through judgments. If you can overlay the judgements on top of the corresponding law, at correct points in time, I think that will have value. It might, for example, show which laws were referenced the most and which needed to be clarified the most. It might give insights into what legal language constructs stood the test of time and which had to be repeatedly clarified.
da_chicken•38m ago
That's true, but it might not be as important here.

Spain is not a country with a Common Law legal system entirely like the US or the UK. They have a civil law system where prior court judgement does not form a strictly binding precedent. Prior judgements can be important, but case law is not really a thing.

tephra•12m ago
I wonder how true this is, we have the same system in Sweden, that court judgement are not legally binding precedent for lower courts. But in practice lower courts will follow the rulings made by the high court.

Is it not the same in Spain at all?

dotancohen•26m ago
Laws are often cascaded as well. Specifically in this case, Spain is subdivided into Comunidades Autonomas - each have their own elected parliament. And inside those are cities with their own local laws.

So while this project does track laws, is there any facility to determine which laws from which bodies are relevant to a specific activity in a specific location?

embedding-shape•24m ago
> And inside those are cities with their own local laws.

No, cities don't have their own laws, but the autonomous communities do have some influence in some laws and regulations (not all), like the amount of income tax you have to pay and so on. But cities within the autonomous communities don't have their own laws.

donalhunt•13m ago
No by(e)-laws in Spain? Certainly a thing in the UK, Ireland and I believe US and Canada. Is that a common law thing?
embedding-shape•9m ago
"By-laws" is typically the name of the rules/"laws" inside of a company or organization, I'm not familiar with that word in the context of "nation-wide criminal/civil laws".

Regardless, cities do not have their own "local laws" in the way your comment made it seem. We have national laws, and minor differences in various autonomous communities, since they have some legislative power to control their own industry, commerce, education and some more stuff.

Mordisquitos•6m ago
Local authorities in Spain do have the authority to enact their own law-ish regulations, which are called 'ordenanzas'. For example, if I remember correctly, motorbikes are allowed to park on the pavement by default in Barcelona unless a sign says otherwise, but it is forbidden in Madrid unless a sign explicitly allows it.

I think local government in Spain has at least as much authority as it does in the UK, maybe more, but almost certainly less than it does in the US.

Mordisquitos•13m ago
I may be wrong, but I think autonomous community legislation is not published in the BOE itself (the Official State Gazette), but rather in each of their corresponding official gazettes (e.g. DOGC for Catalonia, BOCM for Madrid, BOA for Aragon, BOJA for Andalusia, etc.).
pseingatl•15m ago
Rarely in a civil law jurisdiction, essential in common-law jurisdictions.
SOLAR_FIELDS•4m ago
Perhaps reference it in the commit trailer?
Bewelge•46m ago
Oooh Can you elaborate a bit how the gazette is publishing them? Like what format did you have to parse. And how many documents were there in total? I tried doing the same for German laws 1-2 years ago but LLMs weren't smart enough yet. And the costs would've been at least a couple of thousand €.

Ed: Nevermind, I missed the "BOE (Spain's official gazette) consolidated legislation API" part. Sending jealous greetings from Germany. We just have a bunch of PDFs in Germany. And the private entity that has been publishing them for decades even claims copyright on them!

j-bos•1h ago
This is brilliant. I wish this were available for all legislations. There's so many inefficiencies that are trivially solved with existing tech frameworks.
appstorelottery•1h ago
I couldn't agree more - this is fantastic work.
Schmerika•1h ago
> There's so many inefficiencies that are trivially solved with existing tech frameworks.

There really, really are.

The legal industry is well aware of that fact - and how many billable hours they stand to lose by making their work more efficient and understandable.

You know how tax prep companies spent over $90m 'lobbying' Congress to ensure that filing your taxes remains difficult and complicated [0]?

Well, lawyers know just as well or better how to butter their bread; and they will pull out every dirty trick they have to scupper attempts to make practising law more transparent or efficient in any way.

0 - https://www.opensecrets.org/news/2023/09/tax-prep-companies-...

wolfi1•58m ago
unfortunately, laws are not everything. you need to know how to get around them. our country for example has the habit of creating a lex fugitiva that means that some regulations could be changed in other not related laws. good luck finding the correct regulation without a law degree
f1shy•1h ago
I would like to have a legal advisor based on that. At least for a first question, qithout paying a lawyer
Esophagus4•1h ago
> so many inefficiencies that are trivially solved with existing tech frameworks.

Out of curiosity, like what specifically?

Didn’t DOGE’s failure highlight that it actually wasn’t trivial? I’m skeptical at first glance but open to being proven wrong.

bojan•57m ago
DOGE wasn't actually trying to make things more efficient. You can't count it as an honest attempt.
hirako2000•49m ago
DOGE made the token gain more in market cap than it saved in expenses. Despite having at head a master of blind layoffs.
rafram•58m ago
Everyone in government knows what Track Changes is. The standard format of a piece of legislation in British-influenced systems is a diff. The tech field does not have secret knowledge that the rest of humanity lacks.
idiotsecant•57m ago
And, in the example of the stereotypical venture capital seeking techbro junk that has somehow infected the entire world, this project doesn't actually understand or solve any real world problems.

No shade on the author, they made a fun thing. I'm directing my cannons more towards the parent post idea that the world needs software developers for their rare genius to use their beautiful brains to solve problems in ways no actual participant in the system could have ever thought of.

The additude that because you can prompt a LLM to write some python you are also uniquely situated to solve the world's problems is how we built an entire generation of automated solutions worse than what we had before.

dgreisen•37m ago
Our nonprofit, Open Law Library, is working on this exact problem. It is definitely not trivial, but it is very doable. We partner directly with governments to help them implement so the git repos become the canonical record (rather than just an unofficial mirror).

Maryland just launched their regs on our platform:

https://regs.maryland.gov (https://github.com/maryland-dsd/law-xml-codified)

Feel free to reach out (email in bio) if you would like your community to publish their official laws on GitHub!

coopykins•1h ago
Hey, very nice! Seems like a great way to have LLMs answer questions about the laws more reliably.
d--b•1h ago
I think French laws have been on website that’s like that for a while
codethief•1h ago
The German parliament even has an official git repository: https://github.com/bundestag/gesetze

Looks like it's been abandoned, though. :(

layer8•6m ago
The GitHub org being called “bundestag” doesn’t mean that it’s anything official. It looks like it’s made by independent activists.
Rexxar•46m ago
https://www.legifrance.gouv.fr/

If you go on particular laws, you can see the previous versions and how it changed. Example: https://www.legifrance.gouv.fr/codes/section_lc/LEGITEXT0000...

Click on "version" then "comparer" buttons and you will see a diff.

adjejmxbdjdn•1h ago
Love this idea
smashah•1h ago
I've been saying for years that any and all legal documents (and all lawyers) should be required to be on/use git
larsiusprime•1h ago
Is the idea that the commits themselves are also time stamped with the date of the legislation/amendment too?
Thev00d00•1h ago
Yes
larsiusprime•1h ago
Brilliant!
Quarrel•1h ago
Great project.

For others wondering, while most of the Franco-era laws were nuked in 1978, this does include lots of old laws (ie pre-20th C).

However, the source material starts with a sqashed commit in 1960 :) So no changelog before that. The BOE source though is pretty phenomonal, they've scanned files going back to the 1600s so far.

rwmj•1h ago
This is great. Compare it to British legislation which is frankly a mess of patches. Example picked fairly much at random, this law was originally passed in 1990 and has been "patched" regularly:

https://www.legislation.gov.uk/ukpga/1990/18/section/9

Laws being passed are these ludicrous sets of patches:

https://www.legislation.gov.uk/ukpga/2015/9/part/1

codethief•1h ago
I think such "ludicrous sets of patches" are very common in many jurisdictions. (At least in Germany they are.) I agree, though, git patches would be a lot nicer.
gus_massa•45m ago
I think it's similar everywhere. IIRC from time to time here in Argentina when there are too many big changes, the legislature make copy of one old law with all the amends and add all the new ones and approve the new version. Let's say every 50 years or so, and not all the laws at the same time. So the "current" law is a mostly a mess of patches.

The main difference is that in Britain the judge decisions become almost-laws, so it's like a repo with too many people with commit right. I think in Spain the judge decisions have less weight and only the legislature has commit permissions .

hirako2000•44m ago
Also the principle of common law.
wouldbecouldbe•1h ago
This is really great, anyone know of a Dutch version?
layer8•18m ago
https://news.ycombinator.com/item?id=47554274
dorianmariecom•1h ago
for france there is https://www.lafabriquedelaloi.fr/
MomsAVoxell•1h ago
Great idea! I hope you did something like:

  $ git commit --amend --author="Author Name <author@spanish.gov>" --no-edit
.. with the details for the author of each commit.

Then, it would be simply amazing to run gource, sit back, and watch where all the noise is coming from.

Gource:

https://github.com/acaudwell/gource

What gource looks like:

https://gource.io/

I’ve long wanted to see gource applied in other sociologically-relevant contexts and this’d be a real good one ..

throwaway_2626•1h ago
This is amazing. I have a couple of suggestions: - Maybe breaking the "Spain" folder into subfolders? Not sure what categories could be used, but browsing would be easier. - There's a missed opportunity in having different authors for the commits (maybe the "legislatura" number), and possibly, tags/labels including the political parties that voted in favor of each.

I'll take a look at data to enrich it :).

d0m•1h ago
I wonder which country will be the first to be run entirely by AI instead of corrupt politicians
layer8•15m ago
I don’t think a country where everyone is absolutely right would work.
logicallee•6m ago
>I wonder which country will be the first to be run entirely by AI instead of corrupt politicians

State of Utopia[1] has this manifesto[2]. In our estimation (and we use AI a lot), it is not powerful enough to govern a country yet. We thought it was worth trying anyway.[3] We would like it to be able to handle contexts that are millions of times greater (think more like 1 billion tokens than 1 million tokens), and even so AI governance is a very difficult matter. In addition, once AI governance is achieved, how can you truly trust the governance model not to be corrupted? Transparent government run by AI is an additional point of difficulty. These days, the most difficult unsolved problem is how to introduce voting and users' comments without inviting comment spam and vote rigging. You can watch my latest update here[4] (I'm sorry, it's very quiet), and we welcome your input on all subjects. We have a fully autonomous agent currently running the country, which consists of a Mac Mini and a Claude subscription (plus our own dedicated server in a country that recognizes us, and we have a couple of other embassies by agreement and legal contract). But in practice this government just does whatever I tell it. It's not advanced enough to run a code of laws, which is one of the basic requirements citizens expect of their country. The size of problem space for running a country is larger than models can handle, but many things help.

One of the best hopes we have is with deterministic offline models where we share the pipeline with people ahead of time, so they know exactly how it will work. This could be a trustworthy matter of dispute resolution, if we get the architecture right.

For example, our country could help you sign a contract and in case of dispute, both parties could submit supporting documents and make statements and the offline model they agreed to at the time of signing their contract could adjudicate. This pipeline could be transparent from the start. This won't satisfy everyone, but might provide the minimum standard of having a code of laws that assists with contract enforcement. For now, all you can really do is keep checking our site for updates and leave comments about what direction you'd like the country to take. (For example, you can leave a comment on my latest update on Youtube.)

[1] https://stateofutopia.com [2] https://claude.ai/public/artifacts/d6b35b81-0eeb-4e41-9628-5... [3] https://medium.com/@rviragh/ai-is-not-ready-to-create-utopia... [4] https://www.youtube.com/live/K0dgrPRWPCs

zaep•1h ago
Nobody seems to have (yet) mentioned the most recent (rn) commit [1] dated 2099. I can't really figure out where the date came from, at the source noted in the commit I find no '2099', I can't see it being a joke, if it's a bug it's not obvious to me..

I'm sure I won't be the only one curious, please enlighten me.

[1]: <https://github.com/EnriqueLop/legalize-es/commit/424cbc96507...>

gloosx•11m ago
Classic. He forgot to add "make no mistakes" to the prompt. Based on the commits alone Im not sure anyone really reviewed the correctness of the git history.

When someone specifically mentions "built in ~4h with Claude Code" they probably didn't care that much about the outcome quality

ivanjermakov•1h ago
I'm surprised the world is not running a system where laws are formally encoded using some DSL that would allow making decision (guilty/not guilty) using formal logic. Perhaps there is not much interest from law making/enforcing parties for this either.
rrr_oh_man•57m ago
That's a common fantasy of developers who haven't touched grass in a while.
rileymat2•53m ago
You’d also probably be surprised about how subjective and unevenly applied the law is… by design, to allow appropriate outcomes and discretion.

Edit: Consider the following words included in law.

“reasonable” “reckless” “due care”

TZubiri•53m ago
I've seen something like this before, here's the Argentina constitution as a git repo, with reforms as commits. Much shorter in scope, but this was pre LLM coding

P.S: Sadly my PR amendment was repealled

cyrusradfar•53m ago
I think this is great. Only limit of git is I can't imagine "git blame" works. It would be nice to know who voted for and against each patch. Git isn't structured for collaborative commits.
hirako2000•51m ago
That could actually be a git commit log with date, votes and other metadata.

But getting the entire country's law into git is already an impressive feat.

nuhuhh•43m ago
Yeah you can, just smash commits on the PR where multiple contributed. It will say it was a collaborative commit in history showing all their avatars.
embedding-shape•30m ago
> Git isn't structured for collaborative commits.

Git isn't structured for collaborative commits, but community-wide conventions kind of "patches" support for it on top of the git message body, via "Co-Authored-By: name <name@example.com>" which IIRC most platforms support, and the convention itself initially comes from Linux kernel development.

peterhadlaw•49m ago
Does it include the law that made it okay for Noelia Castillo to commit suicide the other day?
downsplat•39m ago
https://www.boe.es/diario_boe/txt.php?id=BOE-A-2021-4628
brandnewideas•35m ago
There are laws that prevent you from committing suicide?
torcete•27m ago
It was assisted suicide. Meaning the state helps you to commit suicide.
embedding-shape•27m ago
I think it was "okay" even before that law to be euthanized. However, the law adds a "a legal, systematic, balanced and guarantee response to a sustained demand of today’s society such as euthanasia".

But yes, it seems it is included indeed: https://github.com/EnriqueLop/legalize-es/blob/master/spain/... (which seems to have been well written enough to not needing any changes [so far])

Very glad my country is so compassionate with people that we can facilitate things like things when needed.

mold_aid•15m ago
I would assume so. But that's probably it; it's for Wikipedia to record the failed attempts of Christianists to make it not "ok."

Like many, you are confusing "making it legal" for "making it ok." But that is of course the root concern of Christianism as an ideological project. Thankfully the correct legal interpretation won out here, as it did in the US Schiavo case(s).

sigio•46m ago
I did the same with a limited subset of dutch laws a while back: https://github.com/sigio?tab=repositories&q=wetboek
0x3f•46m ago
Neat. I wonder if there are commercial products that are formal specifications of laws, decisions, etc. Such that you can reason on them via solvers etc.
embedding-shape•23m ago
I think it's a rite of passage for every developer who ever touched the ecosystem of law to also wonder the same. Probably even since the invention of "business programming" there been developers wondering this. Many has attempting, so far, I don't think anyone succeeded.

But I'm sure someone at some point might figure it out, you never know :)

0x3f•7m ago
Well, there's a new batch of autoformalization attempts with LLMs now. Although I've also heard people say autoformalization will always be impossible.

It's interesting to wonder what kind of coverage Cycorp managed to achieve internally, and on what domains. Seemingly no job openings at the moment though!

vitorbaptistaa•36m ago
Congratulations! This is a very cool project. A few years ago there were similar ones -- browse gitlaw.

In Brazil we have lexml, a standard to describe the law and their changes over time. It's surprisingly complex.

phlakaton•23m ago
Hah! XML strikes again. :-)

I understand that Spain was a participant in LexML as well... I gather they've since converted to something else?

josalhor•16m ago
Not only would be cool for laws to have appropiate time stamps so we can "go back in time to how it was at a certain moment", but also if we could have proper git commit diffs of how laws change over time. See this: https://www.boe.es/buscar/act.php?id=BOE-A-2015-11430

You can see how certain articles have the option to check "how that particular article was at each moment in time". That would be way harder to track, but it would be awesome if not only could you "go back in time and see what the law was" but also "how its been evolving".

jonhohle•12m ago
Not only that, but authors and approvers could be used to track who created and voted for each change.
dan_linder•6m ago
Then compare wording and structure with other bills proposed elsewhere to look for single sources trying to legalize an agenda or retry after earlier failed attempts.
comboy•14m ago
Add CI to check if new laws don't contradict with any existing ones.