public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Stroller <stroller@stellar.eclipse.co.uk>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev]  Re: Re: New category proposal
Date: Thu, 12 May 2005 20:01:23 +0100	[thread overview]
Message-ID: <fd76e84826623d5ca18a9a10d0e36c78@stellar.eclipse.co.uk> (raw)
In-Reply-To: <1115889100.7139.5.camel@localhost>


On May 12, 2005, at 10:11 am, Patrick Lauer wrote:
> On Wed, 2005-05-11 at 23:58 +0100, Stroller wrote:
>> On May 11, 2005, at 8:10 pm, Ciaran McCreesh wrote:
>>>
>>> * Unique ID strings for packages, zynot style. Messy as hell though,
>>> DEPEND="foo/bar {12379812AD7382164BD87678652438FC65E43A2}" doesn't 
>>> have
>>> the same kind of ring to it...
>>
>> Maybe I'm just a messy person, but I really like this.
> So does Microsoft. The registry has many entries where 128bit (?)
> object-IDs are used. Very interesting to debug.

I'm going to ignore that. This thread started because the current 
category/name naming convention causes interesting conditions. I 
appreciate that generally Microsoft Are Not Our Favourite Software 
Company, but giving them as an example doesn't inherently make unique 
IDs bad, and 128-bit ones are not necessary in this case.

Also, before I start, I'd like to say that I know I'm not qualified to 
advocate this as a serious suggestion for adoption by Gentoo, so I'm 
just explaining _why I like it_.

>>  It prevents upstream naming collisions
> But reduces readability for humans to zero. We don't want that.

Humans are used to dealing with indexes - we remember phone numbers 
easily, and if we're looking up several things in a large volume, then 
we're used to using bookmarks or noting down page numbers. A six figure 
decimal packageID allows for a million packages in the Portage tree 
(and I'm assuming versions will be separate, anyway), a five figure hex 
ID would allow far more.

Yes, arbitrary unique IDs would require an index tool to access ebuild 
name / category data, but surely there is little choice if 
naming-collisions are to be avoided and multiple categories are 
desired? Surely any human-focused naming convention will cause 
collisions and introduce potential for confusion? The current 
categories divide collisions into separate spaces, but they don't solve 
the problem of foo-player being eligible for both the media-CDplayers 
and audio-mp3rippers categories.

> At least you haven't tried to optimize it all by using XML ...
>> but the rest of us will use
>> `esearch -o "%p\n" "" | grep -e category -e keyword`.
> *head explodes*
> No.

That's the first time I used that command, but it only took me two 
minutes to look up & test. Since a dedicated index tool would clearly 
be required, I'm sure it would have better & more useful syntax. 
Currently I assume that Mr Harring searches for all the applications in 
a category by typing `ls -d /usr/portage/app-category/*` - wouldn't it 
be easier to use `esearch --category country`. Not only would it list 
them all, but multiple categories per package would also allow those to 
be shown that might debatably be categorised as "western".

> ...It might make portage more resilient to one kind of problem,
> but forget debugging then.

Do we have 65000 unique packages in the tree? Would a four figure hex 
"part number" be that hard to remember when you're debugging package 
names?

Again: I know I'm not qualified to advocate this as a serious 
suggestion for adoption by Gentoo, so I'm just explaining _why I like 
it_.

Stroller.

-- 
gentoo-dev@gentoo.org mailing list


  reply	other threads:[~2005-05-12 19:01 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-08 13:17 [gentoo-dev] New category proposal Alin Nastac
2005-05-08 13:47 ` Lars Weiler
2005-05-08 17:57 ` [gentoo-dev] " R Hill
2005-05-08 20:46   ` [gentoo-dev] Re: New category proposal, [gentoo-dev] Alin Nastac
2005-05-08 23:53     ` Mike Frysinger
2005-05-09 12:16       ` [gentoo-dev] Henrik Brix Andersen
2005-05-09 13:21         ` [gentoo-dev] Alin Nastac
2005-05-09 13:34           ` [gentoo-dev] Henrik Brix Andersen
2005-05-09 14:01             ` [gentoo-dev] New category proposal Alin Nastac
2005-05-09 14:56               ` Henrik Brix Andersen
2005-05-09 15:05               ` Peter Cech
2005-05-09 19:05             ` [gentoo-dev] Sami Samhuri
2005-05-08 22:29   ` [gentoo-dev] Re: New category proposal, [gentoo-dev] W.Kenworthy
2005-05-08 23:01     ` Collins Richey
2005-05-08 23:50       ` Lars Weiler
2005-05-09  0:19         ` Georgi Georgiev
2005-05-09 17:07           ` [gentoo-dev] Re: New category proposal Aron Griffis
2005-05-10  9:02             ` Martin Schlemmer
2005-05-10 14:27               ` [gentoo-dev] " Duncan
2005-05-10 15:05                 ` Alec Warner
2005-05-10 15:36                   ` Stephen Bennett
2005-05-10 17:25                     ` [gentoo-dev] " Duncan
2005-05-10 17:34                       ` Stephen P. Becker
2005-05-10 17:44                       ` Stephen Bennett
2005-05-10  9:28             ` [gentoo-dev] " Martin Schlemmer
2005-05-10 11:04               ` Georgi Georgiev
2005-05-11  3:30                 ` Brian Harring
2005-05-11  4:27                   ` Georgi Georgiev
2005-05-11  5:09                     ` Brian Harring
2005-05-11  5:59                       ` [gentoo-dev] " Duncan
2005-05-11  6:50                         ` Brian Harring
2005-05-11 10:03                           ` [gentoo-dev] " Duncan
2005-05-11 10:35                             ` Duncan
2005-05-11  7:10                         ` [gentoo-dev] " Georgi Georgiev
2005-05-11  7:23                           ` Georgi Georgiev
2005-05-11 10:13                           ` [gentoo-dev] " Duncan
2005-05-11 15:41                         ` [gentoo-dev] " Ciaran McCreesh
2005-05-11 17:21                           ` Georgi Georgiev
2005-05-11 18:06                             ` Ciaran McCreesh
2005-05-11 19:01                               ` Georgi Georgiev
2005-05-11 19:10                                 ` Ciaran McCreesh
2005-05-11 19:37                                   ` Brian Harring
2005-05-11 22:58                                   ` Stroller
2005-05-12  9:11                                     ` Patrick Lauer
2005-05-12 19:01                                       ` Stroller [this message]
2005-05-12 11:53                                         ` Alec Warner
2005-05-12 23:15                                         ` Brian Harring
2005-05-14 12:46                                         ` Jan Kundrát
2005-05-11  7:46                       ` [gentoo-dev] " Kevin F. Quinn
2005-05-11  8:40                         ` Brian Harring
2005-05-11  9:01                           ` Georgi Georgiev
2005-05-11 10:42                             ` Brian Harring
2005-05-11 15:11                               ` Alec Warner
2005-05-11 15:33                                 ` Brian Harring
2005-05-11 17:32                                   ` Georgi Georgiev
2005-05-12 11:37                           ` Kevin F. Quinn
2005-05-10  9:35             ` Martin Schlemmer
2005-05-16 20:28           ` [gentoo-dev] multiple categories for a package (was: [gentoo-dev] Re: New category proposal) David Klaftenegger
2005-05-16 20:45             ` Brian Harring
2005-05-17  8:38               ` [gentoo-dev] multiple categories for a package David Klaftenegger
2005-05-17  9:14                 ` Jan Kundrát
2005-05-17  8:26             ` Marius Mauch
2005-05-17 10:38               ` Alin Nastac
2005-05-17 21:10                 ` Marius Mauch

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=fd76e84826623d5ca18a9a10d0e36c78@stellar.eclipse.co.uk \
    --to=stroller@stellar.eclipse.co.uk \
    --cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox