From: Julien Lepiller <julien@lepiller.eu>
To: zimoun <zimon.toutoune@gmail.com>, Pierre Neidhardt <mail@ambrevar.xyz>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: New build system: copy-build-system
Date: Mon, 27 Jan 2020 13:18:20 -0500 [thread overview]
Message-ID: <B814E504-AE8F-4298-926D-05039234749D@lepiller.eu> (raw)
In-Reply-To: <CAJ3okZ23AbPYQG8Bv-8nDBakoQ+snh=s=BnmdzizO4=BqxMYJA@mail.gmail.com>
Le 27 janvier 2020 11:17:10 GMT-05:00, zimoun <zimon.toutoune@gmail.com> a écrit :
>On Mon, 27 Jan 2020 at 16:51, Pierre Neidhardt <mail@ambrevar.xyz>
>wrote:
>>
>> zimoun <zimon.toutoune@gmail.com> writes:
>>
>> > And for example, the 'copy-build-system' could:
>> >
>> > - fetch the data from an archive, such http://data.astrometry.net
>or
>> > IPFS or Zenodo or <name-it>
>> > - fetch the resulting <hash> of /gnu/store/<hash>-name-version
>from susbtitutes
>>
>> Build systems don't fetch data.
>
>I know (isolated blabla). :-)
>
>"The package using the 'copy-build-system'" is a better wording? ;-)
>
>I do not know exactly how a derivation is computed and what is used to
>compute the hash used in the store. Ok, first I have to do my
>homework. :-)
>But one does not want to hash several tens of GB.
>
>Whatever, I just have the feeling that what you are proposing (with
>small tweaks) could improve the situation for "large" data set. I do
>not know...
>
>Cheers,
>simon
>
>ps:
>Well, maybe we should work in the same office... it will be easier and
>faster than exchanging all these emails and I know yours has an
>awesome view :-D
From my own experiments, computing the hash of a source is pretty fast, even on a large archive (a few seconds for a 5.5 GB file, using guix hash the-file). However, guix download the-file will fail when you don't have (roughly) 3 times the file's size in free memory. So a large source would be whatever your RAM is / 3 or so.
We should improve that, but that's another issue :)
Also, the file size has nothing to do with derivation computation, which only relies on the declared sha256 of the source (known statically).
next prev parent reply other threads:[~2020-01-27 18:18 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-26 20:27 New build system: copy-build-system Pierre Neidhardt
2020-01-27 0:45 ` Jesse Gibbons
2020-01-27 4:14 ` Jack Hill
2020-01-27 14:27 ` zimoun
2020-01-27 14:44 ` Pierre Neidhardt
2020-01-27 15:03 ` zimoun
2020-01-27 15:18 ` Pierre Neidhardt
2020-01-27 15:36 ` zimoun
2020-01-27 15:51 ` Pierre Neidhardt
2020-01-27 16:17 ` zimoun
2020-01-27 18:18 ` Julien Lepiller [this message]
2020-01-27 16:45 ` How to deal with very large sources Ricardo Wurmus
2020-01-27 19:03 ` New build system: copy-build-system Ricardo Wurmus
2020-01-28 10:32 ` Ludovic Courtès
2020-01-28 13:39 ` Pierre Neidhardt
2020-01-28 23:04 ` Ludovic Courtès
2020-02-14 12:54 ` Pierre Neidhardt
2020-02-14 13:22 ` Julien Lepiller
2020-02-17 3:46 ` Jesse Gibbons
2020-02-17 7:56 ` Pierre Neidhardt
2020-02-17 16:52 ` Jesse Gibbons
2020-02-17 17:10 ` Pierre Neidhardt
2020-02-19 1:33 ` Alex Griffin
2020-02-19 14:01 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B814E504-AE8F-4298-926D-05039234749D@lepiller.eu \
--to=julien@lepiller.eu \
--cc=guix-devel@gnu.org \
--cc=mail@ambrevar.xyz \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).