all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: The future of 'guix environment'
Date: Wed, 30 Aug 2017 17:52:16 +0200	[thread overview]
Message-ID: <20170830155216.GA2248@jurong> (raw)
In-Reply-To: <CAJ=RwfZZXF1Pk8quPbtNGkn10NU==ZqYhmj6nn1B8s-FgH2xwQ@mail.gmail.com>

Hello David,

thanks for your thoughts!

On Wed, Aug 30, 2017 at 09:22:13AM -0400, Thompson, David wrote:
> As an avid Emacs user, I want to do everything in Emacs, but if I want
> to use, say, M-x compile but in the context of my development
> environment, I have to wrap the command in 'guix environment' and now
> everything takes way longer because Guix wastes tons of time talking
> to the daemon to build a profile that I know already exists.   This
> goes hand in hand with the previous issue.  We need a cache.

From the remainder of your message, I get the impression that exactly one
environment is cached?

As Leo, I use "guix environment" only ephemerally, as "guix environment foo"
when I quickly want to build or work on package foo (which, most of the
time, equals "guix"...). So an option of no cache would be nice as well.

On the other hand, could there be several cached environments?
Numbered or otherwise identified, for people who alternate between two
different projects? Would this be an interesting use case?

> The default behavior of 'guix environment foo' creating an environment
> with the *dependencies* of the package 'foo' seemed like a good idea
> at the time (it's what nix-shell did, after all), but most of the time
> when I define throwaway environments on the command-line (as opposed
> to a guix.scm file) I *always* use the --ad-hoc flag.  Using the
> packages themselves rather than the dependencies should be the
> default.

Indeed, before getting used to it, I found this behaviour very counter-
intuitive, so I like the new defaults you suggest, with reversed command
line flags.

Andreas

  parent reply	other threads:[~2017-08-30 15:52 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30 13:22 The future of 'guix environment' Thompson, David
2017-08-30 15:11 ` 宋文武
2017-08-30 15:33   ` Leo Famulari
2017-08-30 15:43   ` Ricardo Wurmus
2017-08-31 15:00     ` Ludovic Courtès
2017-08-30 15:56   ` Andreas Enge
2017-08-31  1:28     ` Thompson, David
2017-09-01  3:57       ` Christopher Allan Webber
2017-09-01 13:15         ` Thompson, David
2017-09-02 21:06         ` Ludovic Courtès
2017-09-03  7:15           ` Jan Nieuwenhuizen
2017-09-05 12:42             ` Thompson, David
2017-09-05 14:34               ` Ludovic Courtès
2017-08-30 15:52 ` Andreas Enge [this message]
2017-08-31  7:18 ` Jan Nieuwenhuizen
2017-08-31 13:28   ` Thompson, David
2017-09-01 11:50     ` Jan Nieuwenhuizen
2017-09-01 12:08       ` Ricardo Wurmus
2017-09-01 12:25         ` Jan Nieuwenhuizen
2017-09-01 13:13       ` Thompson, David
2017-08-31 15:16 ` Ludovic Courtès
2017-09-01  0:29   ` Thompson, David
2017-09-02 21:09     ` Ludovic Courtès
2017-09-01  3:52 ` Christopher Allan Webber

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170830155216.GA2248@jurong \
    --to=andreas@enge.fr \
    --cc=dthompson2@worcester.edu \
    --cc=guix-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.