From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: The future of 'guix environment' Date: Wed, 30 Aug 2017 17:52:16 +0200 Message-ID: <20170830155216.GA2248@jurong> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dn5I2-0000Wi-Ug for guix-devel@gnu.org; Wed, 30 Aug 2017 11:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dn5Hy-0000oH-28 for guix-devel@gnu.org; Wed, 30 Aug 2017 11:52:26 -0400 Received: from mailrelay1-3.pub.mailoutpod1-cph3.one.com ([46.30.212.10]:44986) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dn5Hx-0000lR-PJ for guix-devel@gnu.org; Wed, 30 Aug 2017 11:52:21 -0400 Content-Disposition: inline In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: "Thompson, David" Cc: guix-devel 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