Thread View: news.software.readers
8 messages
8 total messages
Started by Russell Schulz
Tue, 10 May 1994 00:32
common news-article-access code (was Re: The mush is dead, long live the elm?)
Author: Russell Schulz
Date: Tue, 10 May 1994 00:32
Date: Tue, 10 May 1994 00:32
21 lines
2174 bytes
2174 bytes
davison@borland.com (Wayne Davison) writes: > What would be cool would be for a low-level mailbox-accessing library > and a newsgroup-accessing library to be written in a compatible manner > so that the trn interface layer (or the elm interface layer for that > matter) could be used over the top to access the data in a threaded > manner. this would certainly make it easier to play with different schemes for saving space in your news storage. no one's going to move their entire news space to a new partly-compressed-partly-something format to try it out in a real-world test if it would force all the users to use readnews for a week. if there were routines that all the newsreaders used (or could be compiled to use) it would make it easier to make these changes on a whim, which should increase the testing of these new plans, which would help everyone eventually. -- Russell Schulz russell@alpha3.ersys.edmonton.ab.ca ersys!rschulz Shad 86c
Re: common news-article-access code (was Re: The mush is dead, long live the elm?)
Author: Tom Limoncelli
Date: Tue, 10 May 1994 15:04
Date: Tue, 10 May 1994 15:04
28 lines
2195 bytes
2195 bytes
In <940509.183201.5W5.rusnews.w164w_-_@alpha3.ersys.edmonton.ab.ca> russell@alpha3.ersys.edmonton.ab.ca (Russell Schulz) writes: >davison@borland.com (Wayne Davison) writes: >> What would be cool would be for a low-level mailbox-accessing library >> and a newsgroup-accessing library to be written in a compatible manner >> so that the trn interface layer (or the elm interface layer for that >> matter) could be used over the top to access the data in a threaded >> manner. It's called "nntp". If everyone reads through NNTP then you have a single point where you need to change how news is stored. :-) On the other hand, you would immediately need a compatibility library that read from the disk so that non-NNTP sites could link to this system. I think the INN libraries are a good start. They are almost 8-bit clean (they can't have a ascii 0 in them). A lot of extending and you'd have the library you seek. -Tom -- Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play) History will judge our times not | Disclaimer: I do not by the ferocity of our enemies, | speak for Mentor Graphics. but by the silence of our friends! |
Re: common news-article-access code (was Re: The mush is dead, long live the elm?)
Author: Wayne Davison
Date: Tue, 10 May 1994 17:34
Date: Tue, 10 May 1994 17:34
33 lines
2370 bytes
2370 bytes
Wayne Davison <davison@borland.com> wrote: > What would be cool would be for a low-level mailbox-accessing library > and a newsgroup-accessing library to be written in a compatible manner > so that the trn interface layer (or the elm interface layer for that > matter) could be used over the top to access the data in a threaded > manner. Tom Limoncelli <tal@Warren.MENTORG.COM> wrote: > It's called "nntp". If everyone reads through NNTP then > you have a single point where you need to change how > news is stored. :-) Wow! When did NNTP start reading and writing mailbox files?!? :-) In your defense, I think you might have been responding more to the author you edited out. Russell Schulz was talking about being able to change the way news is stored on a system without adversely affecting the newsreaders on the system. My quoted response above was in reference to getting trn to be able to read mailbox files, which I would love to be able to do, but I don't wish to just hack it into the current code base. It would be nice to be able to have a common-interface library (if possible) to enable old or new data-access ideas to be coded without so much duplicated effort. I would also like to note that unless NNTP is extended to be more efficient, that reading local news via an NNTP newsreader is slower than using direct-file access. Sometime I would like to see some design work done in this area. -- Wayne Davison davison@borland.com
Re: common news-article-access code (was Re: The mush is dead, long live the elm?)
Author: Tom Limoncelli
Date: Wed, 11 May 1994 03:31
Date: Wed, 11 May 1994 03:31
50 lines
3093 bytes
3093 bytes
In <CpLKsu.8LB@borland.com> davison@borland.com (Wayne Davison) writes: >Wayne Davison <davison@borland.com> wrote: >> What would be cool would be for a low-level mailbox-accessing library >> and a newsgroup-accessing library to be written in a compatible manner >> so that the trn interface layer (or the elm interface layer for that >> matter) could be used over the top to access the data in a threaded >> manner. >Tom Limoncelli <tal@Warren.MENTORG.COM> wrote: >> It's called "nntp". If everyone reads through NNTP then >> you have a single point where you need to change how >> news is stored. :-) >Wow! When did NNTP start reading and writing mailbox files?!? :-) Hey, no fair crossposting that to news.software.nntp and playing with my mind! I didn't realize that most of the thread happened on the "mail" newsgroups. I don't read the "mail" newsgroups... I'm a "news" guru. I only pretend to know the "mail" stuff :-). >author you edited out. Russell Schulz was talking about being able >to change the way news is stored on a system without adversely affecting >the newsreaders on the system. Yup. >My quoted response above was in reference to getting trn to be able >to read mailbox files, which I would love to be able to do, but I >don't wish to just hack it into the current code base. It would be >nice to be able to have a common-interface library (if possible) to >enable old or new data-access ideas to be coded without so much >duplicated effort. Agreed. >I would also like to note that unless NNTP is extended to be more >efficient, that reading local news via an NNTP newsreader is slower >than using direct-file access. Sometime I would like to see some >design work done in this area. What kind of changes would you be interested in? -Tom -- Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play) History will judge our times not | Disclaimer: I do not by the ferocity of our enemies, | speak for Mentor Graphics. but by the silence of our friends! |
Re: common news-article-access code (was Re: The mush is dead, long live the elm?)
Author: Russell Schulz
Date: Wed, 11 May 1994 03:46
Date: Wed, 11 May 1994 03:46
23 lines
1959 bytes
1959 bytes
tal@Warren.MENTORG.COM (Tom Limoncelli) writes: > It's called "nntp". If everyone reads through NNTP then > you have a single point where you need to change how > news is stored. :-) I see the smiley. I did think about nntp, but you also need to have the same type of stuff in all of your local-to-the-nntp-box code. if you keep one file per article, maybe not... if the programs get all their data from the history file, say. and are sites that are willing to do this kind of experimenting more likely to be small, off-the-disk places or larger, full-feed places? I'm guessing nntp would have a high correlation with the latter. > On the other hand, you would immediately need a compatibility > library that read from the disk so that non-NNTP sites could > link to this system. how? -- Russell Schulz russell@alpha3.ersys.edmonton.ab.ca ersys!rschulz Shad 86c
discussion of nntp directions
Author: Wayne Davison
Date: Wed, 11 May 1994 19:05
Date: Wed, 11 May 1994 19:05
77 lines
4158 bytes
4158 bytes
According to Tom Limoncelli <tal@Warren.MENTORG.COM>: > What kind of changes would you be interested in [making to nntp]? One change I was thinking strongly about is a way to ask for a single line in the active file. This not only helps slow-link folks who don't like to have to wait for the entire active file to be downloaded but also makes it easier to check for new news since the command would be MUCH faster than using GROUP. I had thought to bind the command to "LIST ACTIVE group.name". Another change would be an easy way to do header and/or article body searching. It would be nice to be able to limit/order the xover information via some kind of setup option (helps slow-link systems by only transferring the data we're interested in). Also, I still want to implement some kind of thread database at the server level, since it is so slow to have to read the entire overview file just to make sure that you have all the new articles linked into their proper thread groupings (particularly for thread kills). It also seems like a waste to have each newsreader re-invent this info each time you enter a group. The problem with mthread's thread files is that the files are kept in a compact thread order, so too much time and disc bandwidth is spent on unpacking and repacking the thread data just to add one article. I was thinking of adding a new command called THREADINFO that would list the existing article numbers and their immediate parent article number. For articles with an unarrived parent or one or more missing parents prior to a known article, it would be possible to insert a unique token such as the message-id in between the known numbers. For example, instead of using LISTGROUP: >THREADINFO ALL <xxx Thread info follows. <101 <103 101 <104 <not-arrived@some.site.com> 101 <105 101 <107 105 <. This quick dump tells us all the existing article numbers and gives us a quick thread tree of how they're all related. I was also thinking that it should be easy when the group grows to ask just for the new threadinfo. How to make this efficient for the server is an interesting problem. I have been thinking that it would be easy to have an adjunct file to the overview file that was updated as each article arrives on the system (it might even be possible to enhance the overview file to encompass this data, but that might be harder). This file would contain the above information and could be easily appended as new data arrived. If we have the news software do this, it would even have the history file at its fingertips to do a quick scan of the references line. The tricky part is updating the holes as new information arrives. If article <not-arrived@...> showed up as #108, I would suggest just appending the updated info to the end of the file, like this: 108 101 104 108 Thus, any duplicated article numbers in the file get superceded by the new information. An expire process could order these and remove the duplicates, if desired. Sounds easy, no? No. How do we know that article 104 is in need of having its line updated when the <not-arrived@...> article shows up? We don't want to have to read the whole file each time the news software stores a new article. Ideas anyone? Any better/simpler ways to do this? -- Wayne Davison davison@borland.com
Re: common news-article-access code (was Re: The mush is dead, long live the elm?)
Author: Sam Rushing
Date: Thu, 12 May 1994 22:43
Date: Thu, 12 May 1994 22:43
45 lines
3038 bytes
3038 bytes
>>>>> "wd" == Wayne Davison <davison@borland.com> writes: In article <CpLKsu.8LB@borland.com> davison@borland.com (Wayne Davison) writes: wd> Wayne Davison <davison@borland.com> wrote: >> What would be cool would be for a low-level mailbox-accessing >> library and a newsgroup-accessing library to be written in a >> compatible manner so that the trn interface layer (or the elm >> interface layer for that matter) could be used over the top to >> access the data in a threaded manner. Ok, I missed the first part of this. (too busy coding to read news 8^) I am implementing a Usenet-access library (called 'newsapi') that may be a start at what you're looking for. Currently, it knows about NNTP & local file access. It's still under development (I don't want to consider it ready for prime-time until at least one newsreader is written to use it). I've developed it on linux, and tested it on SunOS, OSF/1 (dec alpha), linux, and win32 (NT, win32s). I have the beginnings of an interface to python, which I intend to use as the extension language for a Windows newsreader, and possibly on other platforms, it'd be nice to have a common easy-to-hack interface across different machines. I'm also thinking of adding a DCE/RPC interface (a form of RPC understood by OSF/1 boxes, and Windows NT/Chicago). It's a simple-minded API, you ask for article #x from group y, and you get back an article 'object', that contains the article text, #lines, #bytes, etc... which you can later free. I could certainly use some feedback from newsreader authors. If you're interested, a snapshot can be found at ftp.ksc.nasa.gov:[pub.win3.private.proto]newsapi.zip (you'll also find a day-old nt/python/newsapi stuff there) -Sam -- -- rushing@titan.ksc.nasa.gov (work) rushing@squirl.oau.org (home)
Re: common news-article-access code (was Re: The mush is dead, long live the elm?)
Author: Brad Templeton
Date: Sat, 14 May 1994 21:16
Date: Sat, 14 May 1994 21:16
24 lines
1897 bytes
1897 bytes
There are the vague forms of such an API inside newsclip, and in the news filter protocol that Eric Raymond and I put together. (The filter protocol allows a reader to talk to a filter process, sending it articles and getting back yes/no or score results.) One important feature here, which you will want in any API, is the ability to request the header and not the body, or indeed to possibly request only portions of the header or the body. To be able to get the header without the body is an absolute must from an efficiency standpoint. The "get some headers" form is also important if you have a NOV database, because if the headers you ask for are in the NOV, you can get them efficiently. Indeed, you want a "get headers A,B,C from articles N,M,O" call. NNTP has some of this in it now, though an API that can talk to nntp, the local spool, and a compressed or otherwise modified local spool, is a good idea. NNTP is not efficient for some tasks. -- Brad Templeton, publisher, ClariNet Communications Corp. The net's #1 electronic newspaper (circulation 60,000) -- info@clarinet.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads