From: Will Senn <will.senn@gmail.com>
To: TUHS main list <tuhs@minnie.tuhs.org>
Subject: [TUHS] v7 bas - "Ken Thompson's BASIC"
Date: Thu, 30 Dec 2021 17:50:03 -0600 [thread overview]
Message-ID: <ff9eabb9-f8c4-9dfb-5dbd-60247fc999cb@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1677 bytes --]
So, I was bemoaning the fact that I couldn't really make sense of the
bas command in v7. In sysv2, it works and is similar enough to modern
dialects that I was able to get a simple example working, but with v7,
the best I was able to do was use it interactively, as a calculator.
Then I went looking for v7 videos on youtube and came across this Dr.
Dave's Diversions video: https://www.youtube.com/watch?v=LZUMNZTUJos
In it Dr. Dave demos a few simple versions of 99 bottles of beer in v7.
Wow! I wondered how he'd glommed the inner workings of bas - did he read
a book, just know it naturally, phone a friend, or what? Well, as it
turned out, he... wait for it... read the bas(1) man page! Wha?!
Ridiculous. So, I pulled out my v7 phone book and read the bas(1) man
page and sure enough, it was all there... how '_' is used for negation,
how those arcane for loops work, arrays?!, function calls?!, etc and so
on, all in 3 short pages.
So, two observations:
1. Those man pages from back in the day - wow. So terse, yet so well
written. With a little help from a friend (thanks, Dr Dave), they're
really all you need, sometimes.
2. Those early apps - wow. So obscure these days, but so ahead of their
time, too (thanks, Ken for making Dec 2021 interesting by doing what you
did back in the early 70's).
And a question (you knew it was coming): Besides the bas(1) page, is
there anything else written on Ken's basic out there in the wild? Oh,
and a bonus question, draw and erase from v5 appear to still be around
in v7, but not documented in the man page. Did it work and has anyone
written a Tektronix 611 emulator that works with v7?
Thanks,
Will
[-- Attachment #2: Type: text/html, Size: 2223 bytes --]
next reply other threads:[~2021-12-30 23:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-30 23:50 Will Senn [this message]
2021-12-31 0:53 ` Nigel Williams
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=ff9eabb9-f8c4-9dfb-5dbd-60247fc999cb@gmail.com \
--to=will.senn@gmail.com \
--cc=tuhs@minnie.tuhs.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).