News for hackers. Stuff that matters.
Re:GitHub Archive Program by sebazzz on Wednesday November 13, 2019 @05:01PM (#21530096)
Only to find a packages.json file without a packages-lock.json file checked in, to make it impossible to restore the node_modules directory.
Re:GitHub Archive Program by fiddlerwoaroof on Wednesday November 13, 2019 @08:30PM (#21531895)
Don't worry npm and cockroaches will be the only things to survive a nuclear war
Re:GitHub Archive Program by JimmyRuska on Wednesday November 13, 2019 @11:36PM (#21532826)
Pretty sure the universe is running on some advanced version of Erlang. Erlang VM would survive until heat death of the universe, when it finally crashes the heartbeat program will kick in and we'll have a new big bang
Re:GitHub Archive Program by Jd on Thursday November 14, 2019 @01:54AM (#21533365)
Obligatory XKCD citing: https://xkcd.com/224/
Re:GitHub Archive Program by dreamcompiler on Wednesday November 13, 2019 @11:36PM (#21532823)
And Java and Keith Richards. But only one of these four things will still be interesting.
Re:GitHub Archive Program by etxm on Wednesday November 13, 2019 @10:34PM (#21532541)
What’s the diff?
Re:GitHub Archive Program by JadoJodo on Wednesday November 13, 2019 @10:47PM (#21532587)
> Cockroaches

CockroachDB

Re:GitHub Archive Program by koolba on Wednesday November 13, 2019 @05:36PM (#21530471)
The real problem is that NPM wouldn’t be around.

Better check in your node_modules directory the night before archive day so it’s included.

Re:GitHub Archive Program by throwitinjunk on Wednesday November 13, 2019 @07:57PM (#21531661)
> The real problem is that NPM wouldn’t be around.

I wouldn't call that a problem.

Re:GitHub Archive Program by radicalriddler on Wednesday November 13, 2019 @06:42PM (#21531069)
I don't think there would be enough storage capability to store that many node_module directories.
Re:GitHub Archive Program by koolba on Wednesday November 13, 2019 @08:06PM (#21531718)
Assuming they are deduping based on content hash it shouldn’t be that big a deal. Worst case it’s the size of npm itself.
Re:GitHub Archive Program by account42 on Thursday November 14, 2019 @09:34AM (#21535628)
https://archiveprogram.github.com/#arctic-code-vault

> The snapshot will consist of the HEAD of the default branch of each repository, minus any binaries larger than 100KB in size. Each repository will be packaged as a single TAR file.

100KB is a very low limit, many repos will be useless

Re:GitHub Archive Program by koolba on Thursday November 14, 2019 @10:38PM (#21542011)
100KB per file would cover most JS projects. Even those with a checked nose_modules would be entirely included as the dependencies are already expanded.
Re:GitHub Archive Program by jkarjala on Monday November 18, 2019 @05:21AM (#21563171)
However, many projects have resources (e.g PNG or JPG images) which are larger than 100kB. These will be lost...
Re:GitHub Archive Program by fastball on Thursday November 14, 2019 @03:21AM (#21533745)
Well yeah, but at that point you should just be cloning NPM on 2/2/20 as well.
Re:GitHub Archive Program by teniutza on Thursday November 14, 2019 @02:44AM (#21533578)
I don't know if finding both JSON files but having to download leftPad would be any better...