Oscar on FORTH

Author(s): Oscar Sensabaugh
Publication: LISTing Newsletter
Date: February 1995
Pages: 9-10
Photo of Oscar Sensabaugh
Photo of Oscar Sensabaugh

Well, this here is gonna be the First Annual Forth Column. Whatever month Old Chet gets around to printin it, same month next year will be the time to look fer the Second Annual etc., assumin I last that long and learn enought FORTH in the meantime to make it worth the effort.

First off, I got some advice to lay on ya. Do not, repeat, DO NOT read no books on FORTH until you got a FORTH kernel loaded into your system. Then, and only then, get your librarian to borrowin books on the subject so you can find out which ones you want to buy fer your permaent library.

That’s my advice, take it or leave it. What happened was, FORTH started out with good intentions of transportability, standardization, and such. Then it went though a few committees, got manhandled by more than several wildcat programmers, and now comes in just dang near the same number of versions, dialects, and spinoffs as any other computer lingo. I aint even seen the latest “standard”, FORTH ’83, and I aint so dang shure I even want to. The committee that set it up, according to what little I have read on the subject, done went and deleted stuff I was beginnin to feel comfortable with, added a batch of stuff I aint so dang certain I will ever understand, and probabably burried the last shreads of compatiability, etc. That’s my opinion here and now. Maybe I could be persuaded over to the other side of the fence by a good TYPE ’83 FORTH fer the TIMEX machines, but only if it had a good users manual in tow.

Meanwhile, back in the jungle, us Timex Freaks that have enough curiosity to get involved, and a highly developed sense of the rediculous parts of life, can do some explorin. May even find somethin we like, but stash a few Nerf toys along the trail, they can be thrown without damage, while computers have been know to break windows, etc.

I read some of the recommended books first, and they (almost) made sense, or at least seemed logical. So I took the plunge. I ordered the first of what was to be several FORTH:

XFORTH for the Sinclair ZX-81 Timex T/S 1000
(c) 1983 by M. Peake/A. Oscroft,
Exclusive distribution by HAWG WILD Software.

(iffen you don’t know their address by now, you aint reading CTM properly)

Well, I loaded up XFORTH and found out right rapid like that I didn’t remember as much of Brodie, Scanlon, et al, as I thought I did. Remember, A FORTH “word” can be any dang thing you can enter, and a FORTH program can execute in just about the time it takes to call its name! I give my favorite librarian a hurry-up call for ANY book on FORTH, and while waitin I kept tryin. Musta done Brodies “LARGE-F” a thousand times, it being the example given in the XFORTH manual.

I didn’t dream up any world-shakin programs durin the time I was waitin fer the books to come in, but I did develop an instinct fer usin the “ABORT” command in time to keep EVERYTHING from flyin off into the wild blue yonder, leavin a empty RAM and a full boob tube.

Just before I committed suicide, some of the books started comin in, and best of all, HAWG WILD started publishing the XFORTH XCHANGE where users could ask questions and get answers. I got several of the latter out of the first issue. XFORTH XCHANGE still shows up on its unscheduled schedule, and now is showing support for other FORTH programs. Just today I did a fix from XFORTH XCHANGE on a fig-but we will get to that later, but I better mention right now that “XFORTH XCHANGE” is FREE to the purchaser of ANY FORTH KERNAL from HAWG WILD, and aint available to nobody else at any price. This here is a EXCLUSIVE Newsletter!

To summarize on XFORTH, it is a FORTH ’79 sub-set customized to the ZX-81 family. It may be a bit difficult for the FORTH novice to master, FORTH “words” in the kernal often being more compatable with the Timex keyboard than with Brodie, Sanlon, et al. A seasoned FORTH programmer can probably do amazing things with it.

I gotta add in another 2-bits worth of comment here. I been gettin FORTH DIMENSIONS, DR. DOBBS JOURNAL, BYTE, and others. They got plenty on FORTH, but most of them forgot there is small systems like Timex out here in the boondocks. So efforts like HAWG WILDs XFORTH XCHANGE are important to us, also any similiar publications for other small systems. Such publications really do depend on input from the average user. “Joe Average” may not be able to fix nothing, but when he inputs the problem where maybe somebody else already knows, or can dream up a fix, “Joe” has started somethin that many can benefit from.

So on th the next FORTH: |(C) 1984 by E.A. Worden |Exculsive distribution same as above |(Manual includes Editor User Guide by Bill Stoddart of FORTH Interst Group, United Kingdom)

I aint had a chance to check this out at the source, but my 2068 FIG-FORTH Manual says, “RELEASE 2.26” but the tape logs on as 1.1d. Anyhow, it works great… with a couple or three minor reservations I’ll get too later. Just like the 2068 is more elaborate than the 1000, so is 2068 FIG FORTH more elaborate than XFORTH. The two could be better described as “cousins” than as brothers, there being significant differences in FIG-FORTH and FORTH ’79 standards.

The 2068 FIG-FORTH manual is very well arranged. The first section gives loading instructions, a few miscellaneous operating notes and lists a few non-standard “words”. Next section contains a FIG-FORTH GLOSSARY which is followed by Bill Stoddards brief but well written Editor User Manual. This in turn is followed by an Editor Glossary. While I would prefer an expanded manual with a section of working examples, something more helpful to a novice, the existing manual is adequate for one with a bit of FORTH experience. (I was able to use it, wasn’t I?)

The program has excellent stability. Screen I/O had seemed a bit slow (for FORTH, that is), but I had not complained. Someone else did, however, and Ed Wordens fix appeared in the current XFORTH XCHANGE. Thats the fix I mentioned earlier in the column, and it does speed up things with no apparent ill effects in the stability departmnt, thus taking care of one of the above mentioned reservations.

I aint goin to admit (yet) that “FORTH” and “friendly” belong in the same sentence. Face it, all FORTH is real picky about input being all prim and proper, and it is dang easy to miss a space or get a double strike with a hangin key on the unmodified 2068. But iffen FORTH could be rated on the 1-to-10 friendly scale, I’d give this one about a 6 or so. Although I don’t get a prompt on the load-screen command, the screens load ok. (That was another one of the “reservations”) Fact is, I had no problems with the usual commands, just followed the book and things came out right.

I reckon the only real villian in this story is that blank-blank cotton pickin cursor. Trying to delete and type over a goofed line sometimes looks good on-screen, but when you enter the corrected line it comes back to you with some cursors that had hid out, plus, of course that famous question mark which FORTH uses as shorthand for, “What is this supposed to mean, stupid?”.

Oh well, on to another FORTH:

ABERSOFT FORTH for TIMEX 2068
(c) ABERSOFT 1984

HAWG WILD scores again!

I got to admit, this little fig could turn out to be my favorite! It is a conversion from SPECTRUM, and very well done, even if the little manual does say “Spectrum” now and then instead of “Timex”. I believe this one would be easier for the novice to learn, as it already has more of the Timex commands installed, plus its own set of report (error) codes. The manual is almost too small, although it is crammed with information, including graphics and mention of the Micro-Drives, which may get here yet!

The temptation to go into a direct point-by-point comparison of these two 2068 FIG-FORTHS is almost irresistable, but I believe it would be pointless. Both are powerful FORTHS. While ABERSOFT may not be as “full” a fig, it is ahead in the “Non-Standard” (Timex) department, making it “friendlier” at least for the novice. The more experienced FORTH user might prefer to take Wordens 2068 FIG-FORTH and add his own graphics bits to the vocabulary. More can be added to either program, understand! That’s the beauty of FORTH, take your kernel, whatever it may be, and do unto it whatever you and your memory are big enough and smart enough to do!

One small gripe at ABERSOFT: Is that awkward routine for saving ones extensions really necessary?

And another gripe of a general nature: although these last two FORTHS are both figs, I’ll lay you odds dang few programs are directly transportable between them without a batch of patchwork. So much for committees and standards in the computer world of today! On the other hand, who wants to live in a world of clones of clones?

Threes on ya all!

Oscar Sensabaugh
[address omitted]
Ballinger, TX 76821 CTM