unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Maxime Devos <maximedevos@telenet.be>,
	Andrew Tropin <andrew@trop.in>,
	 guix-devel@gnu.org
Subject: Re: Multiple profiles with Guix Home
Date: Thu, 05 May 2022 21:08:51 +0200	[thread overview]
Message-ID: <a0f0dc426406b1921b26bb93c9f1ed9e246647aa.camel@gmail.com> (raw)
In-Reply-To: <03221fd1743fb50325dff2604f7b4fc3ae450c1b.camel@telenet.be>

Am Donnerstag, dem 05.05.2022 um 20:00 +0200 schrieb Maxime Devos:
> That's one method for faster builds, but you'll get even faster
> builds by also making union-build O(n lg n) instead of O(n²), and the
> latter optimisation will help everyone and not only Guix Home users.
If that's what you want then go ahead and improve union-build.  Unless
you add some serious waste that eats up thousands of cycles if supplied
with no more than three packages, I doubt it has any serious effect on
my analysis that small n = better.

As for the complexity of the actual implementation, I'm pretty sure
you'll find it to be n log n in most cases, but I also fear that there
might be degenerate cases in which the fact that we're reporting errors
at all leads to a worst case lower bound of O(n²). 

> And the O(n)=O(1) doesn't seem quite right here to me -- individual
> profiles will be smaller and hence faster, but there will also be
> _more_ profiles.  Maybe if you sum over the profiles, you'll get to
> O(n) instead of O(n²) (where n = number of store items in the
> profiles)
Again, k(n log n) <= nk log nk, for k >= 1.

> But this doesn't take in account the _user_'s time cost of
> having to figure out some kind of thematic split that doesn't break
> search paths.
And you're not taking into account my time cost of debating you when I
already have manifests split across many files that I want to manage as
separate profiles using Guix Home, kthxbye.

But to entertain the idea, suppose Alice wants to make her profiles
smaller so that they build faster.  Which sounds more reasonable? 
Bundling groups of packages that fit together into their own manifests,
then instantiating one profile for each, or rolling a six-sided die and
putting the package into whichever bin is number four?  If you're a
machine, you probably think the latter.  What could be more fair than a
six-sided die?  Why, a seven-sided die of course!

> Or worse, if the user doesn't know what search paths are and when
> they can break.
> 
> Also, I still don't see the relation to
> 
> > > I am not debating any legitimacy (<home-profile> is not some
> > > government), I am discussing the reasons, and whether some of the
> > > features (e.g. faster profile building) can be implemented more
> > > generally (not Guix Home-exclusive), without manual
> > > configuration.
> > > [...]
> 
> -- I mention the phrase ‘faster profile building’ here, but I don't
> think I'm implying here that faster build times cause tinier
> profiles, or that tinier profiles don't help or such?  Is there some
> specific phrase in that paragraph you disagree with?  Is there some
> point you consider to be already addressed or not yet addressed or
> some point you consider to not have to be addressed?  I don't know
> what we are disagreeing about here?
We disagree about the question whether users should be granted a method
of declaring multiple profiles to use for their own purposes in
whichever way they see fit through `guix home'.  You are painfully
trying to claim there is no need to do so whereas I not only claim
there is, but also that any existing way of achieving similar results
fails to meet my requirements, which are:

1. multiple profiles can be configured at once
2. profile locations should be specified by the user
3. profile generations are not littered, instead, the user has a way of
linking to /var/guix/profiles/per-user
4. both package lists and manifests are supported
5. existing configurations can be expressed in terms of the new system
6. individual profiles can be "disabled", i.e. not sourced during
activation, but still built
7. individual profiles can lack a manifest, in which case nothing is
built, but they are still sourced on login

With all of the above, home-profile-service would make most of the
currently existing /etc/profile workarounds obsolete.  The exception
would be that /run/setuid-binaries is missing, along with any
underspecified search path.  For the latter we still need a solution
that works regardless of guix home anyway, so it is not a point of
discussion here.

Cheers


  reply	other threads:[~2022-05-05 20:04 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-03 10:50 Multiple profiles with Guix Home Liliana Marie Prikler
2021-10-04  7:17 ` zimoun
2021-10-04  8:11   ` Liliana Marie Prikler
2022-05-03 14:13 ` Andrew Tropin
2022-05-03 18:34   ` Liliana Marie Prikler
2022-05-03 19:13     ` Maxime Devos
2022-05-03 20:04       ` Liliana Marie Prikler
2022-05-03 20:39         ` Maxime Devos
2022-05-03 20:44         ` Maxime Devos
2022-05-04  9:25           ` Maxime Devos
2022-05-03 20:59         ` Maxime Devos
2022-05-04  4:16           ` Liliana Marie Prikler
2022-05-04  7:01             ` Maxime Devos
2022-05-04  7:08               ` Maxime Devos
2022-05-04 13:15               ` Reza Housseini
2022-05-04 13:46                 ` Maxime Devos
2022-05-04 18:14                   ` zimoun
2022-05-04 18:21                     ` Maxime Devos
2022-05-05  8:01                 ` Andrew Tropin
2022-05-04 18:38               ` Liliana Marie Prikler
2022-05-04 20:41                 ` Maxime Devos
2022-05-05  4:25                   ` Liliana Marie Prikler
2022-05-05 10:53                     ` Maxime Devos
2022-05-05 16:24                       ` Liliana Marie Prikler
2022-05-05 16:33                         ` Maxime Devos
2022-05-05 17:21                           ` Liliana Marie Prikler
2022-05-05 17:29                             ` Maxime Devos
2022-05-05 11:03                     ` Maxime Devos
2022-05-05 16:31                       ` Liliana Marie Prikler
2022-05-05 16:42                         ` Maxime Devos
2022-05-05 17:12                           ` Maxime Devos
2022-05-05 17:27                           ` Liliana Marie Prikler
2022-05-05 17:41                             ` Maxime Devos
2022-05-05 19:17                               ` Liliana Marie Prikler
2022-05-05 19:42                                 ` Maxime Devos
2022-05-05 20:20                                   ` Liliana Marie Prikler
2022-05-05 18:00                             ` Maxime Devos
2022-05-05 19:08                               ` Liliana Marie Prikler [this message]
2022-05-05 19:44                                 ` Maxime Devos
2022-05-05 23:53                                   ` zimoun
2022-05-05 20:13                                 ` Maxime Devos
2022-05-05 20:53                                   ` Liliana Marie Prikler
2022-05-05 21:28                                     ` Maxime Devos
2022-05-06  4:19                                       ` Liliana Marie Prikler
2022-05-07 23:06                                         ` Ludovic Courtès
2022-05-05 20:50                                 ` zimoun
2022-05-05 18:25                         ` zimoun
2022-05-03 21:11         ` Maxime Devos
2022-05-04  4:23           ` Liliana Marie Prikler
2022-05-04  6:57             ` Maxime Devos
2022-05-04  9:24             ` Maxime Devos
2022-05-04 13:05     ` Andrew Tropin
2022-05-05 11:05 ` Maxime Devos
2022-05-05 16:22   ` Liliana Marie Prikler
2022-05-05 17:07     ` Maxime Devos
2022-05-05 17:19       ` Liliana Marie Prikler
2022-05-05 17:29         ` Maxime Devos
2022-05-05 18:24           ` Liliana Marie Prikler
2022-05-05 20:14             ` Maxime Devos
2022-05-05 20:27               ` Liliana Marie Prikler
2022-05-05 20:38                 ` Maxime Devos
2022-05-05 20:41                 ` Maxime Devos
2022-05-05 20:26             ` Maxime Devos
2022-05-06 18:40               ` Liliana Marie Prikler
2022-05-06 19:54                 ` Maxime Devos
2022-05-06 21:32                   ` Liliana Marie Prikler
2022-05-07  7:17                     ` Maxime Devos
2022-05-23 13:14 ` Andrew Tropin
2022-05-23 17:05   ` Liliana Marie Prikler
2022-05-24 11:55     ` Andrew Tropin
2022-05-24 18:31       ` Liliana Marie Prikler
2022-05-25 11:01         ` Andrew Tropin
2022-05-25 23:36           ` Liliana Marie Prikler
2022-05-27 12:52             ` andrew
2022-05-27 13:14               ` Liliana Marie Prikler
  -- strict thread matches above, loose matches on Subject: below --
2021-10-03 20:51 John Kehayias

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=a0f0dc426406b1921b26bb93c9f1ed9e246647aa.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=andrew@trop.in \
    --cc=guix-devel@gnu.org \
    --cc=maximedevos@telenet.be \
    /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).