unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bags
@ 2014-10-02 12:33 Ludovic Courtès
  2014-10-02 13:05 ` Bags Thompson, David
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Ludovic Courtès @ 2014-10-02 12:33 UTC (permalink / raw)
  To: Guix-devel

Hello,

I’ve pushed a new branch, ‘wip-bags’, which changes the way
build systems work.  Basically, it introduces an intermediate
representation between packages and derivations, called “bags.”

The main difference between a bag and a package is that a bag lists all
the inputs of the build process, including the “implicit inputs” added
by the build system.

This simplifies the code and should unlock nifty features like ‘guix
environment’ and “grafts” (a trick for faster security updates; more on
that later.)

Comments welcome!

Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-02 12:33 Bags Ludovic Courtès
@ 2014-10-02 13:05 ` Thompson, David
  2014-10-02 20:14 ` Bags Mathieu Lirzin
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Thompson, David @ 2014-10-02 13:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

On Thu, Oct 2, 2014 at 8:33 AM, Ludovic Courtès <ludo@gnu.org> wrote:
> Hello,
>
> I’ve pushed a new branch, ‘wip-bags’, which changes the way
> build systems work.  Basically, it introduces an intermediate
> representation between packages and derivations, called “bags.”
>
> The main difference between a bag and a package is that a bag lists all
> the inputs of the build process, including the “implicit inputs” added
> by the build system.
>

I took a quick look through the commit log.  I like it!

> This simplifies the code and should unlock nifty features like ‘guix
> environment’ and “grafts” (a trick for faster security updates; more on
> that later.)

I'm excited. :)

- Dave

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-02 12:33 Bags Ludovic Courtès
  2014-10-02 13:05 ` Bags Thompson, David
@ 2014-10-02 20:14 ` Mathieu Lirzin
  2014-10-02 20:18   ` Bags Thompson, David
  2014-10-03  7:52 ` Bags John Darrington
  2014-10-05 20:27 ` Bags Ludovic Courtès
  3 siblings, 1 reply; 12+ messages in thread
From: Mathieu Lirzin @ 2014-10-02 20:14 UTC (permalink / raw)
  To: guix-devel


ludo@gnu.org (Ludovic Courtès) writes:
> The main difference between a bag and a package is that a bag lists all
> the inputs of the build process, including the “implicit inputs” added
> by the build system.

Can you explain what you mean by "implicit inputs"?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-02 20:14 ` Bags Mathieu Lirzin
@ 2014-10-02 20:18   ` Thompson, David
  0 siblings, 0 replies; 12+ messages in thread
From: Thompson, David @ 2014-10-02 20:18 UTC (permalink / raw)
  To: Mathieu Lirzin; +Cc: guix-devel

On Thu, Oct 2, 2014 at 4:14 PM, Mathieu Lirzin
<mathieu.lirzin@openmailbox.org> wrote:
>
> ludo@gnu.org (Ludovic Courtès) writes:
>> The main difference between a bag and a package is that a bag lists all
>> the inputs of the build process, including the “implicit inputs” added
>> by the build system.
>
> Can you explain what you mean by "implicit inputs"?
>

Implicit inputs are dependencies that are not specified in a 'package'
form but are instead automatically added by the build system.  For
example, the GNU build system relies upon the coreutils, bash, etc.
These are implicit inputs, so packages that use the GNU build system
do not need to specify them manually.

Hope this helps.

- Dave

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-02 12:33 Bags Ludovic Courtès
  2014-10-02 13:05 ` Bags Thompson, David
  2014-10-02 20:14 ` Bags Mathieu Lirzin
@ 2014-10-03  7:52 ` John Darrington
  2014-10-03  9:23   ` Bags Ludovic Courtès
  2014-10-05 20:27 ` Bags Ludovic Courtès
  3 siblings, 1 reply; 12+ messages in thread
From: John Darrington @ 2014-10-03  7:52 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

On Thu, Oct 02, 2014 at 02:33:53PM +0200, Ludovic Courtès wrote:
     Hello,
     
     I’ve pushed a new branch, ‘wip-bags’, which changes the way
     build systems work.  Basically, it introduces an intermediate
     representation between packages and derivations, called “bags.”
     
     Comments welcome!

"Bags" can be too easily misread/typed as "bugs".
     
J'
     

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-03  7:52 ` Bags John Darrington
@ 2014-10-03  9:23   ` Ludovic Courtès
  2014-10-03 10:45     ` Bags Alex Sassmannshausen
  0 siblings, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2014-10-03  9:23 UTC (permalink / raw)
  To: John Darrington; +Cc: Guix-devel

John Darrington <john@darrington.wattle.id.au> skribis:

> On Thu, Oct 02, 2014 at 02:33:53PM +0200, Ludovic Courtès wrote:
>      Hello,
>      
>      I’ve pushed a new branch, ‘wip-bags’, which changes the way
>      build systems work.  Basically, it introduces an intermediate
>      representation between packages and derivations, called “bags.”
>      
>      Comments welcome!
>
> "Bags" can be too easily misread/typed as "bugs".

And bags can even be full of bugs!  ;-)

It’s an internal interface so normally not something one will usually
type or read about.  But I’m open to suggestions (the synonyms that
WordNet suggests aren’t good.)

Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-03  9:23   ` Bags Ludovic Courtès
@ 2014-10-03 10:45     ` Alex Sassmannshausen
  2014-10-03 12:39       ` Bags Eric Bavier
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Alex Sassmannshausen @ 2014-10-03 10:45 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

Hello,

Ludovic Courtès writes:

> John Darrington <john@darrington.wattle.id.au> skribis:
>
>> On Thu, Oct 02, 2014 at 02:33:53PM +0200, Ludovic Courtès wrote:
>> 
>> [...] called “bags.”
>>
>> "Bags" can be too easily misread/typed as "bugs".
>
> But I’m open to suggestions (the synonyms that WordNet suggests aren’t
> good.)

You could use something like 'parcels' (maybe too close in meaning to
package) or 'containers' (maybe too long). Both would build on the idea
that you can have packages inside a parcel, or container — much like bag
probably does as well (as in santa clause's bag of presents/packages).

Either way, don't feel particularly strongly about this, so just a
suggestion :-)

Alex

-- 
Sent with my mu4e

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-03 10:45     ` Bags Alex Sassmannshausen
@ 2014-10-03 12:39       ` Eric Bavier
  2014-10-03 13:08       ` Bags Ludovic Courtès
  2014-10-05 21:54       ` Bags Cyril Roelandt
  2 siblings, 0 replies; 12+ messages in thread
From: Eric Bavier @ 2014-10-03 12:39 UTC (permalink / raw)
  To: alex.sassmannshausen; +Cc: Guix-devel


Alex Sassmannshausen writes:

> Hello,
>
> Ludovic Courtès writes:
>
>> John Darrington <john@darrington.wattle.id.au> skribis:
>>
>>> On Thu, Oct 02, 2014 at 02:33:53PM +0200, Ludovic Courtès wrote:
>>> 
>>> [...] called “bags.”
>>>
>>> "Bags" can be too easily misread/typed as "bugs".
>>
>> But I’m open to suggestions (the synonyms that WordNet suggests aren’t
>> good.)
>
> You could use something like 'parcels' (maybe too close in meaning to
> package) or 'containers' (maybe too long). Both would build on the idea
> that you can have packages inside a parcel, or container — much like bag
> probably does as well (as in santa clause's bag of presents/packages).

I like the simplicity of "bags".

"Sack" might also work, but might not be as good if we are worried about
people who are a/u-dyslexic ;)


-- 
Eric Bavier

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-03 10:45     ` Bags Alex Sassmannshausen
  2014-10-03 12:39       ` Bags Eric Bavier
@ 2014-10-03 13:08       ` Ludovic Courtès
  2014-10-05 21:54       ` Bags Cyril Roelandt
  2 siblings, 0 replies; 12+ messages in thread
From: Ludovic Courtès @ 2014-10-03 13:08 UTC (permalink / raw)
  To: Alex Sassmannshausen; +Cc: Guix-devel

Alex Sassmannshausen <alex.sassmannshausen@gmail.com> skribis:

> You could use something like 'parcels' (maybe too close in meaning to
> package) or 'containers' (maybe too long). Both would build on the idea
> that you can have packages inside a parcel, or container — much like bag
> probably does as well (as in santa clause's bag of presents/packages).

Actually I was trying to convey the idea that a “bag” is a “package”
with less ornamentation, if you see what I mean (because bags are
low-level representations of packages.)  So I think these suggestions
wouldn’t work well (and “containers” could be confused with Linux
containers.)

Thanks anyway.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-02 12:33 Bags Ludovic Courtès
                   ` (2 preceding siblings ...)
  2014-10-03  7:52 ` Bags John Darrington
@ 2014-10-05 20:27 ` Ludovic Courtès
  2014-10-06 11:21   ` Bags David Thompson
  3 siblings, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2014-10-05 20:27 UTC (permalink / raw)
  To: Guix-devel

I’ve merged the ‘wip-bags’ branch (which means you’ll find yourself
downloading or rebuilding a number of things.)

Please report any test suite failure or other problem.

I would particularly welcome feedback from David wrt. the suitability
for ‘guix environment’.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-03 10:45     ` Bags Alex Sassmannshausen
  2014-10-03 12:39       ` Bags Eric Bavier
  2014-10-03 13:08       ` Bags Ludovic Courtès
@ 2014-10-05 21:54       ` Cyril Roelandt
  2 siblings, 0 replies; 12+ messages in thread
From: Cyril Roelandt @ 2014-10-05 21:54 UTC (permalink / raw)
  To: guix-devel

On 10/03/2014 12:45 PM, Alex Sassmannshausen wrote:
> You could use something like 'parcels' (maybe too close in meaning to
> package) or 'containers' (maybe too long). Both would build on the idea
> that you can have packages inside a parcel, or container — much like bag
> probably does as well (as in santa clause's bag of presents/packages).

We should call these "backpacks" and have "backpackages".


Cyril.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Bags
  2014-10-05 20:27 ` Bags Ludovic Courtès
@ 2014-10-06 11:21   ` David Thompson
  0 siblings, 0 replies; 12+ messages in thread
From: David Thompson @ 2014-10-06 11:21 UTC (permalink / raw)
  To: Ludovic Courtès, Guix-devel

Ludovic Courtès <ludo@gnu.org> writes:

> I would particularly welcome feedback from David wrt. the suitability
> for ‘guix environment’.  :-)
>

I was able to implement a basic version of 'guix environment' last
night.  The bags API was very easy to use and gave me exactly the data I
was after.  Thanks!

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-10-06 11:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-02 12:33 Bags Ludovic Courtès
2014-10-02 13:05 ` Bags Thompson, David
2014-10-02 20:14 ` Bags Mathieu Lirzin
2014-10-02 20:18   ` Bags Thompson, David
2014-10-03  7:52 ` Bags John Darrington
2014-10-03  9:23   ` Bags Ludovic Courtès
2014-10-03 10:45     ` Bags Alex Sassmannshausen
2014-10-03 12:39       ` Bags Eric Bavier
2014-10-03 13:08       ` Bags Ludovic Courtès
2014-10-05 21:54       ` Bags Cyril Roelandt
2014-10-05 20:27 ` Bags Ludovic Courtès
2014-10-06 11:21   ` Bags David Thompson

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).