Gnus development mailing list
 help / color / mirror / Atom feed
From: Dave Abrahams <dave@boostpro.com>
To: ding@gnus.org
Subject: Re: nnir, gnus-goto-article and such
Date: Thu, 29 Sep 2011 10:40:50 -0400	[thread overview]
Message-ID: <m2pqij9zt9.fsf@pluto.luannocracy.com> (raw)
In-Reply-To: <87oby3jvna.fsf@lifelogs.com>


on Thu Sep 29 2011, Ted Zlatanov <tzz-AT-lifelogs.com> wrote:

> On Thu, 29 Sep 2011 09:40:54 -0400 Dave Abrahams <dave@boostpro.com> wrote: 
>
> DA> [Aside: it seems like this territory is full of components that
> DA> could in principle be nicely generalized, but whose implementation
> DA> has only been made to work for one specific usage scenario]
>>> 
>>> I can't tell, I was not involved with writing these components.  
>
> DA> IIUC from reading elsewhere you rewrote the registry.
>
> I wrote *registry.el but I was talking about nnir.el, nnregistry.el, and
> other search functionality.  The registry is not a search engine so I
> thought you didn't mean it.  I'm not sure how it could be generalized
> and in what direction--tell me what you think.

Well, it's in the territory, but it's not one of those components.  I
don't have any complaints about the registry itself.  I was referring
more to things like gnus-warp-to-article, which only functions on a
single kind of group, or general usage of the registry, which only
happens in a very few circumstances even though the kind of queries the
registry can answer are all over the place.

>>> At least for the registry I know it's optional so we can't depend on
>>> it.
>
> DA> I'm not sure what "optional" means in this context.  Is Gnus going to
> DA> ship without the registry code?
>
> Users should be able to use every aspect of Gnus without calling
> `gnus-registru-initialize'.  The memory usage of the gnus-registry, if
> we enabled it by default, would be unpleasant for many of our users on
> older or less capable machines.  Thus any general Gnus functionality
> should not depend on the gnus-registry's availability.

Well, here's an example of a missing generalization then.  The registry
provides a general interface for looking up (information about) articles
based on their message IDs.  However, there's only one of them, and it's
persistent.  nnir would only need a small, special-purpose registry for
each of its groups.  Or, maybe better, one registry could be refcounted
and just discarded when you leave the last nnir group if you haven't
initialized the registry in the meantime.  It wouldn't grow if nobody
was putting things in it.

> Furthermore the gnus-registry should be treated as a lossy cache.  If
> you find something useful, great.  But don't rely on it.  That attitude
> lets us expire it more aggressively.  There are "precious" properties
> you can set, so for instance the registry marks are not lost, but from
> our side we can't expect that.

Sorry, don't know what you mean by "our side."  You can't make things
precious programmatically?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




  reply	other threads:[~2011-09-29 14:40 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15 18:24 Dave Abrahams
2011-09-16 15:05 ` gnus-warp-to-article (was: nnir, gnus-goto-article and such) Dave Abrahams
2011-09-21 18:03 ` nnir, gnus-goto-article and such Lars Magne Ingebrigtsen
2011-09-21 21:16   ` John Wiegley
2011-09-22 13:01     ` Andrew Cohen
2011-09-26 19:17       ` Lars Magne Ingebrigtsen
2011-09-26 20:46       ` Dave Abrahams
2011-09-27  7:04         ` John Wiegley
2011-09-27 15:36           ` Dave Abrahams
2011-09-26 20:01   ` Dave Abrahams
2011-09-26 21:35     ` Ted Zlatanov
2011-09-27 15:35       ` Dave Abrahams
2011-09-27 21:12         ` Ted Zlatanov
2011-09-28 14:34           ` Dave Abrahams
2011-09-29  0:32             ` Ted Zlatanov
2011-09-29  1:19               ` Dave Abrahams
2011-09-29  2:06                 ` Dave Abrahams
2011-09-29  8:27                   ` Ted Zlatanov
2011-09-29 13:40                     ` Dave Abrahams
2011-09-29 14:00                       ` Ted Zlatanov
2011-09-29 14:40                         ` Dave Abrahams [this message]
2011-09-29 14:58                           ` Ted Zlatanov
2011-09-29 20:04                             ` Dave Abrahams
2011-09-29 23:40                               ` Ted Zlatanov
2011-09-29  8:22                 ` Ted Zlatanov
2011-09-27 16:04       ` Dave Abrahams

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=m2pqij9zt9.fsf@pluto.luannocracy.com \
    --to=dave@boostpro.com \
    --cc=ding@gnus.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;
as well as URLs for NNTP newsgroup(s).