This web site exists to document my adventures in writing software emulators for old computer hardware. So far, I have completed (sort of) a Commodore PET emulation and am working on a Sinclair Spectrum emulation.
Recent Posts
Lambda Calculus: More Numbers
Recap In the last post not dealing with the internals of the Lambda Calculator, we introduced Church Numerals and some basic operations. There are actually only two operations that are needed and these are: isZero which is true if the number is zero and false otherwise succ which gives us the successor of any Church … Continue reading Lambda Calculus: More Numbers
Wordle
Before we start, this post is going to contain what some people might consider to be spoilers for the game of Wordle. I’ll be using an actual solution as an example. Are you annoyed by all your friends posting their Wordle answers online? Do you think of a word and then go blank when presented … Continue reading Wordle
A Line Editing Library
This post announces the availability of linenoise-swift-utf8: A Swift replacement for GNU readline. There is a very useful library called GNU readline which enables line editing and history (and more) for command line programs. I’ve written a few command line programs and I know that having this functionality, or similar, makes them very much easier … Continue reading A Line Editing Library
Forth Interpreting Itself adDendum
Last weekend I eliminated the last Swift from the interpreting loop. There are now two pre-predefined words: an outer loop that reads a line of text and calls the the interpreter from the last post and the inner loop that interprets words from a line. The code for each looks something like this: In both … Continue reading Forth Interpreting Itself adDendum