Article View: news.software.readers
Article #36635Re: [slrn] Variables in scorefile?
From: Lloyd Zusman
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
77 lines
4899 bytes
4899 bytes
On 13 Oct 1997 17:05:36 GMT, J.B. Nicholson-Owens <jbn@pop-a-wheelie.midwest.net> wrote: > Jan Hlavacek <lahvak+n@math.ohio-state.edu> wrote: > > [ ... ] > > Are we settling for using the S-Lang slrn API as shipped with slrn (looping > over the articles, calculating and applying scores manually)? If so, I > think my earlier point about raising the resource requirements resurfaces; > perl is huge compared to S-Lang and slrn and seems to me like a LOT to ask > of someone to get the increase in functionality that would come with > scorefile variables or scorefile functions. First of all, the Perl thing I'm working on should only have to be run once by each user who wants to convert an existing score file into a group of slang functions. After that, he or she would work within the slang functions and forget about the score file. And furthermore, I presume that this would only be done by people who want the added functionality that the slang functions would provide. If someone only wanted the original score file functionality, there would be no advantage to converting to the slang-function method, and the repeated conversion costs would ensure that this approach would be a detriment for such users. I agree that scorefile variables alone would be a suitable, lightweight mechanism to enhance scorefile functionality. However, I'm not so sure that adding scorefile functions would be much different than using the slang-function approach in terms of overhead and complexity, and it would add a second scripting language when slang is already quite nicely usable and powerful. > I'm not altogether clear on exactly how this scoring API would look like. > I've seen two approaches, one that abstracts the current slrn S-Lang API > slightly and one that does not. Which way was this going? The one I'm working on implements the method which uses the current S-Lang API. In addition, I'll be writing slang convenience functions which would be used to make the logic more simple and readable. If this method catches on, these convenience functions could later be implemented in C in the slrn engine to further speed up this scoring process. You'll see my preliminary results by next weekend, I hope. > Also, by using such an approach some of the current scoring niceties go > away: progress meter (telling you how far scoring has proceeded), working on > the internal representation of articles instead of going through the UI (I > wonder if this will be significantly slower), losing the elegance of the > slrn scorefile (and gaining functionality� so far nobody has asked for). Is > there any hope of getting such a thing shipped with slrn or made a part of > the official slrn (as opposed to an elaborate macro)? Yes. It's true that most of these features would indeed go away. However, if the convenience functions I write ever end up being implemented in C, most of these scoring niceties could return. > I appreciate the effort being put into this project, but I wonder if it's > wise (and I wouldn't mind seeing an API before coding). Most of the > problems I mentioned can be coded into a macro, but is it worth reinventing > the wheel to get this functional enhancement? What I will initially deliver will be a usable API and a Perl script to convert existing score files into the appropriate slang code. This will be a good starting point for discussion. I'm not sure if what I'm doing is really worthwhile or not. If it turns out to be undesirable, then I'll still have a lot of fun, and all I'll lose is a little time. I'm mostly doing this to provide something that would stimulate discussion, debate, and perhaps some new ideas. -- Lloyd Zusman ljz@asfast.com
Technical Details
Message-ID:
<slrn645pbj.q29.ljz@ljz.asfast.net>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!not-for-mailReferences:
<slrn63gm05.ad.jbn@pop-a-wheelie.midwest.net> <slrn63gr84.13h.sp_robi@Elvira.home> <slrn63h1ti.ad.jbn@pop-a-wheelie.midwest.net> <slrn63rfmg.bnv.sp_robi@Elvira.home> <slrn63rp0b.411.jbn@pop-a-wheelie.midwest.net> <slrn63sjme.44k.Hubert.Canon@guenievre.irisa.fr> <slrn6429lb.65s.jbn@pop-a-wheelie.midwest.net> <slrn642k1i.fj9.ljz@ljz.asfast.net> <slrn6434a0.6ms.jbn@pop-a-wheelie.midwest.net> <slrn643cih.puh.ljz@ljz.asfast.net> <slrn643e4a.1bj.lahvak+n@math.mps.ohio-state.edu> <slrn644l21.74r.jbn@pop-a-wheelie.midwest.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn645pbj.q29.ljz@ljz.asfast.net> Subject: Re: [slrn] Variables in scorefile? Date: Tue, 14 Oct 1997 00:00:00 +0000 From: ljz@asfast.com (Lloyd Zusman) References: <slrn63gm05.ad.jbn@pop-a-wheelie.midwest.net> <slrn63gr84.13h.sp_robi@Elvira.home> <slrn63h1ti.ad.jbn@pop-a-wheelie.midwest.net> <slrn63rfmg.bnv.sp_robi@Elvira.home> <slrn63rp0b.411.jbn@pop-a-wheelie.midwest.net> <slrn63sjme.44k.Hubert.Canon@guenievre.irisa.fr> <slrn6429lb.65s.jbn@pop-a-wheelie.midwest.net> <slrn642k1i.fj9.ljz@ljz.asfast.net> <slrn6434a0.6ms.jbn@pop-a-wheelie.midwest.net> <slrn643cih.puh.ljz@ljz.asfast.net> <slrn643e4a.1bj.lahvak+n@math.mps.ohio-state.edu> <slrn644l21.74r.jbn@pop-a-wheelie.midwest.net> 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!not-for-mail X-Deja-AN: 280343346 X-Newsgroup: news.software.readers Organization: As Fast Reply-To: ljz@asfast.com (Lloyd Zusman) Newsgroups: news.software.readers