16

From Eurogamer’s obituary of Sir Clive Sinclair:

Sinclair never intended for his computers to be games machines, but that was what the market decided they were. Within the space of a few years, the idea of having a computer in the home had gone from a fantasy for all but the wealthiest businessmen to a reality, even for council estate kids.

By "serious", I don't mean word processor or spreadsheet or any business app. We all know there were some. Was any serious number crunching ever done on the speccy? 8 * 8 bits = 64 bits, so we can do 64-bit arithmetic on the speccy, but it wouldn't run very fast. You'd have to write assembly routines and even then it would be slow. Still, there's enough room at least. Would a speccy suffice for the Nazi mothership from "Iron Sky"?

19
  • 10
    I have no idea what 'the Nazi Mothership from "Iron Sky"' is, but I think this is an interesting question as I've seen BBC Micros used for inter-planetary satellite purposes (ground station) for doing proper mission engineering. I don't think the spectrum would cut the mustard, but I think it's an interesting enough question not to be dismissed.
    – Dan
    Dec 10, 2022 at 16:57
  • 1
    there are some clips online if you search for "Iron Sky". Dec 10, 2022 at 16:59
  • 2
    You forget about the most common "serious" application for the Spectrum: Sinclair Basic. One of the most important reasons for buying a ZX81 or a Spectrum was that you learned programming. Dec 11, 2022 at 9:05
  • 18
    Your "8 * 8 bits = 64 bits, so we can do 64-bit arithmetic" doesn't make sense. You can do whatever arithmetic you want on a computer with 1 bits, and having an 8-bit bus does nothing to help 64-bit arithmetic...
    – pipe
    Dec 11, 2022 at 10:10
  • 3
    Iron Sky is perhaps not the most realistic movie, but a good benchmark of the ability of the Spectrum to command and control space fighters would be Elite.
    – Davislor
    Dec 11, 2022 at 17:06

4 Answers 4

21

An application I remember because I found the idea very appealing, though I never owned a Specci and so never used the program: A layout program for printed circuit boards with an automatic router.

It was published 1984 in the German computer magazine "c't" in the issues 8 (pages 37 to 43), issue 9 (pages 46 to 50), and issue 10 (pages 68 to 71). I still have paper copies of the articles.

4
  • One has to wonder just how well that program--especially its autorouter--would work, given the severe constraints the Spectrum had, and thinking about the resources KiCad uses on my computer today... (Though of course, KiCad was designed for computers of the 21st century, so it's not quite an apples-to-apples comparison.)
    – Hearth
    Dec 12, 2022 at 16:36
  • If I understand the documents correctly, it can handle just one layer with 128*128 elements, each element on a 1/20" raster. Dec 12, 2022 at 16:45
  • @Hearth, ideally it would work well enough to develop peripherals for the ZX Spectrum.
    – Mark
    Dec 14, 2022 at 4:13
  • Given that today’s auto routers are little better than throwing a plate of spaghetti at your monitor I’d guess tgg he at the Spectrum router was well ahead of it’s time.
    – Frog
    Dec 14, 2022 at 7:15
18

Number crunching? Beyond spreadsheets and some small custom simulation programs, I doubt anyone used the Spectrum for that. In the 80s if you wanted to do heavy number crunching you at least bought something with a floating-point unit.

Home computers were used sporadically for industrial control, usually in small or one-off designs. I know of examples where the Apple II and Commodore 64 were used for industrial control in factories; I'd be shocked if no one ever used the ZX Spectrum.

I'll embrace the unusual spirit of your question: could the ZX Spectrum run an entire space-based warship?

I think the answer is actually a qualified yes. A 3.5 MHz Z80 with 64 KB of RAM runs circles around the Apollo Guidance Computer, which was sufficient to guide a small craft to the Moon and back autonomously. It's considerably more computational power than existed in the first fly-by-wire aircraft.

Connecting the darn thing to hundreds of control systems would be an interesting electronics challenge, but doable. The software would be a spectacular project and by far the most involved aspect. Yes, it's a slow machine. But with the right software, there's no reason a Speccy couldn't juggle, for example, 100 real time tasks, each requiring an update once per second on average. That leaves ~1000 instructions per task per second, very roughly, which is enough to do several floating point calculations or dozens of high precision fixed point calculations, or test and control dozens of IO channels, in each task, every second.

This comes up sometimes with the Apollo Guidance Computer. How could such a tiny computer control a spacecraft? We tend to forget that even tiny computers are blazing-fast in human terms.

6
  • 1
    my thoughts exactly, I've read that not even floating-point numbers are needed, since you can always tailor fixed-point numbers to a specific problem. Dec 10, 2022 at 20:31
  • 1
    @user1095108 Yes, it's a standard technique. Basically you say that all your numbers are scaled, so speed values stored in thousandths of a km/h, for example. Except in practice we normally use a scaling which is powers of 2, so maybe values would be 1/1024th of a km/h, and we call this "fractional bits". The problem is that you need to make sure you can't overflow the number, or get values which are too small to register (called "underflow") - oh, and you need to be very careful about tracking those scaling factors through your maths. But it works, and works well.
    – Graham
    Dec 11, 2022 at 8:49
  • 3
    The answer is wrong. "A 3.5 MHz Z80 with 64 KB of RAM runs circles around the Apollo Guidance Computer, which was sufficient to guide a small craft to the Moon and back autonomously. " - yes, because it did one of the actual course calculations. Those were preloaded into it and calculated on the ground. It could CONTROL Apollo 13 and executed a program, but not do the course calculations. One would assume the NASI mothership to be able to operate independent. But then it has antigravity and efficient engines using fusion, so it can waste energy - contrary to the apollo capsule.
    – TomTom
    Dec 12, 2022 at 14:32
  • 1
    Another aspect to add to TomTom's comment: the Appolo Computer was specifically designed to send and bring back humans to the moon safely: it took more than computing power, but also components built to withstand space radiation and a redundancy control system, and I doubt the spectrum would be OK for the first point
    – Kaddath
    Dec 13, 2022 at 14:25
  • 3
    "A 3.5 MHz Z80 with 64 KB of RAM runs circles around the Apollo Guidance Computer" Runing circles definitevly not, barely of comparable performance. Don't underestimate the AGC. It was a 2MHz 15bits computer with 2KWords RAM and 36K words. It had hardware multiplier and division but slow memory. Dec 13, 2022 at 16:02
10

I’ve personally seen ZX81 used as a prototyping platform for an eye tracker running at 100-200Hz sample rate. The aluminized paper printer was used to print out the tracings. Horizontal lines were drawn on the paper where the plot would “overflow” the rather narrow printer paper width - you had to slice the printout on the line, and reassemble the plot on a larger piece of paper. The “overflow” was where the 8-bit ADC window would be moved to keep the signal within the acquisition range. It was a simple and effective solution to the shortcomings of available hardware.

The same institution that did the work also had FFT and various digital filters running on it. Sure it was slow, but still handily beat the cost of professional analog instruments. Never mind that importing those behind the Iron Curtain would have been an interesting endeavor at the time (of Pratchett’s “Interesting Times” kind).

It’s not Speccy, but certainly it is professional use with salaries paid for the work, and useful research results obtained.

3
  • woo FFT, are you sure it wasn't running on some kind of coprocessor? Dec 10, 2022 at 19:31
  • 2
    Not at all. It was slow, but it wasn’t a big FFT either - maybe 128 points. It was all off-line analysis. First the data was recorded to RAM, then dumped to tape, then read from tape in blocks, each block would have an FFT done, and the results written out. The original recording had pauses inserted between blocks on tape where the FFT output would be recorded. An I/O port and a relay was used to start and stop the capstan motor in the tape recorder. Eventually a pulse wheel attached to one of the reels was added to count tape position. Dec 10, 2022 at 19:34
  • 1
    Yep. I did the first simulations of the idea that became the RXTE ASM (heasarc.gsfc.nasa.gov/docs/xte/learning_center/asm.html) on a 6502-based ECD MicroMind. Uncommon micro: less than 100 were made, but I had one at home, so it was convenient. Used an FFT in BASIC to do convolutions.
    – John Doty
    Dec 11, 2022 at 22:57
3

Yes, I know someone who used them to solve matrixes and small-scale linear programming problems. It was quicker than traveling to the computer centre and unlike Apple (etc.), they come under the accounting limit, so they did need central approval.

(They were more capable than a programmable calculator.)

2
  • all in basic? not asm or something funkier? Dec 13, 2022 at 10:12
  • 2
    @user1095108 All in basic likely written in a day or two. Think of the sort of maths we would do in a spread sheet these days. Saved having a room of people using slide rule or calculators Dec 13, 2022 at 10:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .