Git 3.0's upcoming SHA-256 default will be a costly mistake
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Git 3.0's upcoming SHA-256 default will be a costly mistake
Unofficial Hacker News client; not affiliated with Y Combinator.
gandreani · · focus · HN ↗
"Both Fossil and Git started out using only SHA1 hashes. But when the SHAttered attack against SHA1 was published on 2017-02-23, the need to migrate to a stronger hash algorithm was recognized. Fossil added the ability to use SHA3-256 as an alternative on 2017-03-01 (six days after the SHAttered attack was first published). SHA3-256 is now the default for all new repositories and check-ins in Fossil, though older check-ins that occurred prior to SHAttered can still use their original SHA1 hash. Hence, no repositories had to be rebuilt and no hyperlinks were broken."
<a href="https://fossil-scm.org/home/doc/trunk/www/hundredandone.md" rel="nofollow">https://fossil-scm.org/home/doc/trunk/www/hundredandone.md
To me it's so interesting watching in realtime Git is still battling with this decision and for Fossil it was just another week of development.
That whole page is fun to read. Another fun fact somewhere else in the docs is that Fossil uses a grow-only set to store commits. They came up with this scheme some years before it was formalized by CRDTs!
6thbit · · focus · HN ↗
Is there any writeup on why it was easy for them and not for git?
toymin · · focus · HN ↗
froh · · focus · HN ↗
<a href="https://fossil-scm.org/home/doc/trunk/www/hundredandone.md" rel="nofollow">https://fossil-scm.org/home/doc/trunk/www/hundredandone.md
27. Fossil allows both legacy SHA1 hashes and newer SHA3-256 hashes in the same repository.
gandreani · · focus · HN ↗
From the skim I read of this article it seems both projects arrived at the same solution: support both but make SHA-256 the default.
kccqzy · · focus · HN ↗
xyzsparetimexyz · · focus · HN ↗
conartist6 · · focus · HN ↗
rurban · · focus · HN ↗
gandreani · · focus · HN ↗
schacon · · focus · HN ↗
Fossil isn't difficult to change not because it's technically harder for Git but because Git has a community and ecosystem that Fossil does not. The cost is not in the individual project for Git, the cost is because there is _so much_ in Git and this bifurcates everything.
gandreani · · focus · HN ↗
To me it's more of a reality of creating a tool with a huge active community and a community of contributors and creating a tool with a small team and small community.
schacon · · focus · HN ↗
jmyeet · · focus · HN ↗
Online video has handled this. There are various codex, container formats and transport protocols. The TLS handshake does this. The ability to deprecate and replacing the hashing algorithm should've been built in from day 1.
mook · · focus · HN ↗
(… looking at the parent, though, I imagine there might be some information from the inside…)
sgbeal · · focus · HN ↗
That's is, since only recently, no longer strictly true: the age-old libfossil recently got client sync support, so is now (aside from _serving_ repos) essentially a standalone impl (its own developer still uses fossil(1) stash, patch, and diff -tk features, but otherwise uses libfossil's counterparts).
Also, Dan Mestas has <<a href="https://github.com/danmestas/go-libfossil" rel="nofollow">https://github.com/danmestas/go-libfossil>, a Go library for working and fossil, and he is also working on <<a href="https://zeitforge.app/" rel="nofollow">https://zeitforge.app/>, a clean-room impl. of fossil (whereas libfossil is largely ported directly from fossil(1)) which even goes so far as to _not_ use an sqlite database for its file storage.
Dan Mestas and Dan Shearer are working on finalizing RFCs for fossil's sync protocol and artifact format, and zeitforge is created by carefully managing LLMs which are reading that draft (but not the source code of libfossil or fossil).
gandreani · · focus · HN ↗
fragmede · · focus · HN ↗
nofunsir · · focus · HN ↗
:%s/git 3\.0/python 3.0/g
fragmede · · focus · HN ↗
:x
Neovim's lazyvim plugin sucks because it takes over H C and L.
Dylan16807 · · focus · HN ↗
rovr138 · · focus · HN ↗
<a href="https://support.microsoft.com/en-us/windows/deployment/updates-lifecycle/windows-10-support-has-ended-on-october-14-2025" rel="nofollow">https://support.microsoft.com/en-us/windows/deployment/updat...
> Windows 10 support has ended on October 14, 2025
Dylan16807 · · focus · HN ↗
rovr138 · · focus · HN ↗
You don't think that if we had everyone on the same Windows version we could streamline things enormously?
For MS, for developers, for hardware manufacturers, and so on to be able to deploy, for example, ipv6 since everyone is on the same stack? Same stack, same bugs, same fixes.
Dylan16807 · · focus · HN ↗
The difference in effort between updating one versus two very similar code bases is minor, especially when "Windows 10" and "Windows 11" each refer to multiple versions already.
For drivers you only need one version to support both.
IPv6 has been built into Windows for ages. If you think they can force toggle it or something, that won't work at all and deleting Windows 10 wouldn't make it easier.
rovr138 · · focus · HN ↗
How about testing? Do you think that there's no testing put out when a fix has to go out for 2 OS, regardless of how similar they are?
> What problems are solved by getting all Windows users onto Windows 11 in particular?
I have given a few. If you don't want to see it, that's fine.
Dylan16807 · · focus · HN ↗
I would estimate that supporting both windows 10 and 11 is a single digit percentage harder than supporting just one of them.
> I have given a few. If you don't want to see it, that's fine.
Where? You said something vague about streamlining, and the only concrete example was something about "deploy ipv6" which Microsoft did back in Vista.
samus · · focus · HN ↗
bawolff · · focus · HN ↗
Karliss · · focus · HN ↗
someonebaggy · · focus · HN ↗
bawolff · · focus · HN ↗
hedora · · focus · HN ↗
ncr100 · · focus · HN ↗
(Because: This very old problem is ongoing with git, and is closed with Fossil.)
gb67890 · · focus · HN ↗
somat · · focus · HN ↗
jmyeet · · focus · HN ↗
This problem isn't hard or new. Just look at things like a TLS handshake. You need to separate the protocol from the storage implementation.
I personally believe the initial Git programmers were too in love with the efficiency of doing a bitwise 160 bit comparison on the stack and they sacrificed the known issue of changing the algorithm to do it. A decade earlier the same thing had happened with MD5.