programming

  • 6502 kim-1 emulators retro-computing programming

    m65c02: Making the Invisible Visible

    KIM-1 front panel thumbnail KIM-1 logic analyzer thumbnail MOS BASIC terminal thumbnail

    I've been spending a lot of time with the 6502 lately, first with the Apple IIe and KIM-1, and now with an emulator of my own. The project is called m65c02. It started with a simple question: what if I could see what the processor was doing, one cycle at a time?

    Running an old machine is fun. Understanding how it runs is even better. An instruction like LDA is simple enough to describe in a sentence, but that description hides the activity on the address and data buses. I wanted to get closer to the hardware, without having to attach probes to an actual board every time I had a question.

    One inspiration is Software Masters' The Visible Computer: 6502. Back in the early 1980s, it made the processor's operation something you could watch and learn from, stepping through instructions and their microsteps. I like that idea. With m65c02, I'm taking it further into the bus cycles and the surrounding hardware. The aim is the same: make the computer less mysterious by making its workings visible. The original Visible Computer manual is worth a look.

  • aiki programming

    Nezha: Aiki's Smaller, Tougher Sibling.

    Nezha: smaller, tougher, and less patient with baggage.

    Nezha is Aiki's smaller, tougher sibling. The name comes from the youthful warrior of Chinese mythology: formidable despite his size, independent-minded, and not especially interested in accepting the way things have always been done.

    Aiki gave Nezha its starting point. Nezha is an effort to pare the language down and tackle a harder question: can the essential acts of program evaluation be described by a small, finite declarative vocabulary, rather than buried inside a handwritten evaluator?

  • programming version-control tools

    Git Time Machine: Browsing a Repository Through Time.

    Git Time Machine: a filesystem with a past.

    I have been working on a tool called Git Time Machine (GTM). The idea is simple: instead of thinking of a Git repository as a sequence of commits, treat it as a filesystem that can be visited at different points in time.

    Pick a repository, a branch, and a moment. GTM finds the corresponding historical snapshot. From there you can browse files, inspect their histories, compare versions, and extract an older file without disturbing your working tree.

  • aiki programming

    Aiki Alpha 3 Released

    Aiki Alpha 3 is out.

    Tagged v0.4.0-alpha-36 and available from the GitHub release.

    Alpha 1 made the language real. Alpha 2 made the architecture explicit. Alpha 3 makes the implementation substantially more exact, efficient, constrained, and observable without enlarging the core language.

  • aiki programming

    Aiki Alpha 2 Released

    Aiki Alpha 2 is out.

    Tagged v0.4.0-alpha-35 and available from the GitHub release.

    Alpha 1 made the language real. Alpha 2 made the architecture explicit.

  • aiki programming

    Aiki: Alpha Milestone 26 Update

    I have been busy with Aiki lately, and the last couple of days have been especially active. I return to my day job next week. I am a Computer Information Systems professor at Tarleton State University. So, I have been using the remaining summer window to close several related pieces of work.

    The current state is tagged v0.4.0-alpha-26. I do not plan to create a GitHub Release for every such point. master moves as development continues; tags mark states worth stopping on.

    The first public alpha already included most of the language proper: exact rational arithmetic, left-to-right evaluation, first-class functions, recursion and iteration, pipelines, shaped data, modules, recoverable errors, isolated concurrency, graphics, a standard library, semantic profiling, executable documentation, behavioral golds, grammar coverage, and a substantial invariant framework. Most of the work since then has not enlarged that surface very much. It has made the relationships underneath it considerably stricter.

  • aiki programming

    Aiki: First Public Alpha

    I've put the first public alpha of Aiki on GitHub.

    Aiki is a small experimental programming language I've been working on for the past several months. I describe it as both a programming language and a learning field: an environment designed to make computational relationships visible enough to inspect, experiment with, and reason about.

    The current release is v0.4.0-alpha. It includes the interpreter, standard library, documentation, examples, tests, validation machinery, and the project's engineering record. Intel/amd64 release archives are available for Linux, Windows, and macOS.

  • programming tools

    Migrating from Jekyll to a custom static site generator

    Replaced the Jekyll-based blog with a custom static site generator written in Go.

  • programming tools

    dex - directory comparison tool in Go

    Released dex, a Go port of my Python dircmp utility. Clean architecture, static binaries, no dependencies.

    Compares two directory trees and sorts files into five buckets:

    1. Exact match — same path, same content
    2. Modified — same path, different content
    3. Same content, different path
    4. Only in src
    5. Only in dst

    Also finds duplicates within a single directory.

    dex [options] <dir>           # find duplicates
    dex [options] <src> <dst>     # compare directories
    

    Options: -a hidden files, -r recurse, -f fast digest, -b brief, -l full digests.

    Prebuilt binaries for Linux and macOS in the releases.

  • programming

    Exploring Itsy Forth

    This post summarizes my exploration of Itsy Forth, a compact Forth interpreter designed for study and experimentation. The project covers:

    • Understanding the core runtime helpers: getchar, outchar, docolon, dovar
    • Investigating the dictionary and how words are defined and executed
    • Observing interpreter architecture and flow, including colon-defined words and variable handling
    • Examining runtime operation characteristics and memory layout
    • Extracting instruction sequences using the provided Python tools

    Itsy Forth provides a minimal but complete environment to explore Forth concepts, assembler integration, and low-level runtime mechanics. This is intended for learners who want to see how a small interpreter handles execution and word definition from the ground up.

    The source code and further details are available on GitHub.