The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: "Michael Kjörling" <michael@kjorling.se>
To: tuhs@minnie.tuhs.org
Subject: Re: [TUHS] How to do differential/integral on a PDP-7, was: Space Travel
Date: Sat, 19 Oct 2019 21:15:03 +0000	[thread overview]
Message-ID: <jgrpbpr4ws4bswhtg9f9ztsg@localhost> (raw)
In-Reply-To: <443935c0-b033-e3ae-ea63-6a0fb3f8eb9e@kilonet.net>

On 19 Oct 2019 16:40 -0400, from krewat@kilonet.net (Arthur Krewat):
> Not to mention, if you start using log/alog tables, and/or sin/cos/tan
> tables, and interpolation, you can quickly ramp up computation speed for
> simple games that have a small matrix of coordinates.

Indeed; like I said, at some point, it becomes just a matter of how
quickly you need the answer. It's not really _difficult_ to do any of
this if you're willing to wait a while to learn the value of 1/2. It's
a little more involved if you want log10(e^pi * pi^e) _fast_.

After all, Apollo navigated to, around, and back from, the Moon, using
an on-board computer that today would barely run that thermostat that
someone mentioned. 2048 15+1-bit word RAM (3840 bytes, plus parity),
36864 15+1-bit word ROM (69120 bytes, again plus parity). It could
display three general-purpose five-digit decimal numbers, each with
sign, plus three specific-purpose two-digit decimal numbers, and was
operated using a 19-key keyboard (0-9, plus, minus, and a few function
keys). In fairness, a lot of the heavier calculations were performed
by Mission Control on the ground and the results were uplinked either
digitally or via voice transmission to the spacecraft, but still...
Those programmers didn't exactly have the luxury of, when they
realized they were running out of memory, just sending along the rest
of the software on tape and telling the user to load it on an
as-needed basis.

Premature optimization is the root of all evil in 99% of the cases,
but in that last 1%, a targeted optimization effort is exactly what
you need.

-- 
Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se
  “The most dangerous thought that you can have as a creative person
              is to think you know what you’re doing.” (Bret Victor)


  reply	other threads:[~2019-10-19 21:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-19 14:40 [TUHS] Space Travel, was New: The Earliest UNIX Code Doug McIlroy
2019-10-19 18:32 ` Abhinav Rajagopalan
2019-10-19 18:44   ` Abhinav Rajagopalan
2019-10-19 19:19   ` Clem Cole
2019-10-19 19:50     ` Henry Bent
2019-10-19 19:55       ` [TUHS] Space Travel related question Thomas Paulsen
2019-10-19 20:19         ` Warner Losh
2019-10-19 20:24       ` [TUHS] Space Travel, was New: The Earliest UNIX Code Arthur Krewat
2019-10-19 20:12   ` [TUHS] How to do differential/integral on a PDP-7, was: Space Travel Michael Kjörling
2019-10-19 20:40     ` Arthur Krewat
2019-10-19 21:15       ` Michael Kjörling [this message]
2019-10-21  5:14       ` Dave Horsfall
2019-10-21  5:23         ` Lars Brinkhoff
2019-10-21 13:59           ` John P. Linderman
     [not found]             ` <68553366-4E6F-4E17-8903-282C67186D16@humeweb.com>
2019-10-26  2:24               ` Dave Horsfall
2019-10-26  2:09           ` Dave Horsfall
2019-10-21  4:55     ` Dave Horsfall
2019-10-21 19:21       ` Paul Winalski
2019-10-21 19:38         ` Kurt H Maier

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=jgrpbpr4ws4bswhtg9f9ztsg@localhost \
    --to=michael@kjorling.se \
    --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).