Re: Fast `guix environment --container' switch

2021-01-26 Thread Pierre Neidhardt
Hi Ludo! Just tried `guix run inkscape`: it starts up in a fingersnap! Impressive! I tried with IceCat and while it starts, fonts are broken and network access seems to be missing. Would you have an idea of what's left to be done? Shall we send this script to a new bug and iterate from there?

Re: Fast `guix environment --container' switch

2021-01-05 Thread Christopher Lemmer Webber
This is very cool. We need something like this! I'm replying partly to make a note that here's where some of this conversation is... but I'm going to try to write an email over the next couple of weeks of how to lead the way for making users safe through Guix. This is a useful reference

Re: Fast `guix environment --container' switch

2020-12-29 Thread Pierre Neidhardt
Hi Ludo, thanks for the snippet, this looks very useful indeed! I'll check it out later and report. Thanks! -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature

Re: Fast `guix environment --container' switch

2020-12-17 Thread Ludovic Courtès
Hi! Pierre Neidhardt skribis: > `guix environment --container ... -- my-foo-program` is great but a bit > slow to start. > > Is there a way to speed this up? The attached program (based on an experiment from 2018¹ with exciting yet to date mythical prospects) picks a program from $PATH

Re: Fast `guix environment --container' switch

2020-12-09 Thread zimoun
On Wed, 09 Dec 2020 at 11:55, Pierre Neidhardt wrote: > `guix environment` incurs an overhead: > > --8<---cut here---start->8--- > time /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10/bin/hello > Hello, world! > > real 0m0.002s > user 0m0.002s > sys

Re: Fast `guix environment --container' switch

2020-12-09 Thread Pierre Neidhardt
`guix environment` incurs an overhead: --8<---cut here---start->8--- time /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10/bin/hello Hello, world! real0m0.002s user0m0.002s sys 0m0.000s --8<---cut

Re: Fast `guix environment --container' switch

2020-12-09 Thread zimoun
Hi, On Wed, 09 Dec 2020 at 11:13, Pierre Neidhardt wrote: > Maybe a misunderstanding, the question is not about --pure. I'd like a > `containerized hello' to start about as fast as non-containerized > `hello', without the 1 s overhead. Which 1s overhead? The overhead between --pure and

Re: Fast `guix environment --container' switch

2020-12-09 Thread Pierre Neidhardt
Hi Simon, Maybe a misunderstanding, the question is not about --pure. I'd like a `containerized hello' to start about as fast as non-containerized `hello', without the 1 s overhead. Cheers! -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature

Re: Fast `guix environment --container' switch

2020-12-09 Thread zimoun
Hi Pierre, On Wed, 09 Dec 2020 at 10:40, Pierre Neidhardt wrote: > `guix environment --container ... -- my-foo-program` is great but a bit > slow to start. > > Is there a way to speed this up? I get, cold cache: --8<---cut here---start->8--- $ sudo sh -c

Fast `guix environment --container' switch

2020-12-09 Thread Pierre Neidhardt
Hi Guix! `guix environment --container ... -- my-foo-program` is great but a bit slow to start. Is there a way to speed this up? I know that without --container, one can use --root to create a link and source the etc/profile from there. Is it possible to switch to such a root in a container?