💾 Archived View for friends.riverside.camp › ~clarity › wiki › forth.gmi captured on 2024-02-05 at 09:37:08. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Forth is a family of programming environments (or a mode of computation, maybe) invented by Chuck Moore. Its principle features are a memory model built around stacks, a concatenative syntax reminiscient of RPN calculators, and a dynamic environment where new subroutines (called words) can be compiled on the fly. It tends to be very efficient and ergonomic to implement on hardware, as words have a near-direct relationship with the assembly they produce.
Forth: The programming language that writes itself: The Web Page
Simple Forth: Rudiments of a Programming Language
I'm starting my journey with Gforth as an easy option that runs on my Mac, but I'll be considering other options (and writing my own!) down the line. After working through some tutorials and getting my feet wet, my first project will be to try to rewrite my static site generator to compare how it ends up feeling to work in against a system-level imperative language like Zig.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Written January 12, 2024