Article View: news.software.readers
Article #81033Re: [slrn] persistent scoring - new patch
From: J.B. Nicholson-Owens
Date: Mon, 02 Jul 2001 06:10
Date: Mon, 02 Jul 2001 06:10
32 lines
2438 bytes
2438 bytes
First, thanks for making this. Jurriaan (note: this is a working address!) wrote: > I have no good knowledge about S-Lang hashed - are they used anywhere in > slrn to write to disk? I don't know if they're used in slrn, but I use them in S-Lang. I don't use them in the same way as (g)dbm hashes since hashes and disk storage aren't conceptually paired. > The good thing about gdbm is that it's a single file, it's well-tested, > and it's easy to work with. There's no doubt about it, for the intended purpose here gdbm is certainly easier to use for handling the hash and storing data on disk (but the worst of the work S-Lang would necessitate is a loop for loading the hash and another loop for saving the hash to disk). The main thing I wonder about is portability. Does gdbm work everywhere S-Lang and slrn do? > I imagine that with S-Lang hashes, I'd have to use multiple files, one for > each hash, and even then, [...] Since object storage is not built into S-Lang, how you choose to store the data is up to you. This is both an advantage (flexibility) and a disadvantage (more work for the programmer). There might be additional disadvantages if non-string keys were required, but I don't that would come into play here. > [...] there's no guarantee that 2 message-id's won't get the same hash. I don't know what the limits of S-Lang's hashes are.
Technical Details
Message-ID:
<slrn9k03vu.7a.jbn@forestfield.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mailReferences:
<slrn9jp631.r8j.no_spam_here@middle.of.nowhere> <slrn9jqdf4.i17.jbn@forestfield.org> <slrn9jqo1b.48h.no_spam_here@middle.of.nowhere>Show Full Headers
Complete Article Headers
Message-ID: <slrn9k03vu.7a.jbn@forestfield.org> Subject: Re: [slrn] persistent scoring - new patch Date: Mon, 02 Jul 2001 06:10:24 +0000 From: jbn@forestfield.org (J.B. Nicholson-Owens) References: <slrn9jp631.r8j.no_spam_here@middle.of.nowhere> <slrn9jqdf4.i17.jbn@forestfield.org> <slrn9jqo1b.48h.no_spam_here@middle.of.nowhere> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail Newsgroups: news.software.readers Organization: Forest Field OmniMedia Lines: 31 NNTP-Posting-Host: forestfield.org (208.216.67.173) X-Trace: fu-berlin.de 994054224 15683539 208.216.67.173 (16 [35848]) User-Agent: slrn/0.9.7.1 (Unix)