Tutorial-style FORTH implementation written in golang (by skx)

Foth Alternatives

Similar projects and alternatives to foth

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better foth alternative or higher similarity.

foth discussion

Log in or Post with

foth reviews and mentions

Posts with mentions or reviews of foth. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-16.
  • Show HN: Writing a simple FORTH-like system, in simple steps
    1 project | | 15 Feb 2024
  • Show HN: Implementing a simple FORTH, inspired by a Hacker News thread
    1 project | | 19 Sep 2022
  • Byte Magazine: The FORTH programming language
    7 projects | | 16 Jul 2022
    I hacked up a simple forth-like system in golang, by following the overview posted in this hackernews comment-chain:

    The result is here:

    It's not real, but it was a pretty fun experiment regardless.

  • Jonesforth – A sometimes minimal FORTH compiler and tutorial (2007)
    11 projects | | 13 May 2022
    Here's one of the many forks that brings it up to 64-bit:

    If you like forth there's an awesome series of comments here on hacker news on building a simple variant in a few simple steps:

    I took that, and built a simple forth-like system, in golang following the original recipe and breaking it down into simple steps for learning-purposes:

  • Forth control flow execution steps.
    2 projects | /r/Forth | 10 Mar 2022
  • ColorForth (2009)
    1 project | | 31 Oct 2021
    I'll always vote up submissions referencing anything FORTH related. For me FORTH is as much fun as lisp appears to be for others. I've never really done much with it, but I always like the simplicity and the ability to reason about it.

    Sure FORTH has problems of its own, but it's always nice to use. I've hacked up a couple of simple FORTH-like systems over the years, most recently this one which was inspired by a thread on this site:

    A lot of people go through guides of writing a lisp, I'd love to urge people to try writing a simple FORTH interpreter instead, or even something somewhat related such as TCL.

  • Lang Jam: create a programming language in a weekend
    5 projects | | 31 Jul 2021
    There's even a recipe posted in a couple of comments here:

    I followed that guide to implement a simple FORTH-like system in golang:

    As I was following the implementation recipe I broke it down into "educational steps". Although it isn't a true FORTH it is pretty easy to understand and useful enough to embed inside other applications.

    Now and again I consider doing it again, but using a real return-stack to remove the hardcoded control-flow words from the interpreter, but I never quite find the time.

  • Tutorial-style FORTH implementation written in Golang
    1 project | | 11 Feb 2021
  • Wisp: A light Lisp written in C++
    10 projects | | 28 Dec 2020
    I actually hacked up a simple forth-like system, after reading a brief howto here on hackernews:

    Here's the thread which has the barebones overview which inspired me:

    I could have taken it further, but the implementation there is not "real" in the sense that there is no real return-stack, so you can't implement IF-statements using the lower-level primitives.

    That said it is a good starting point, and I had some fun doing it. I'd guesstimate it is more of a single weekend project though, rather than longer.

  • A note from our sponsor - InfluxDB | 15 Jul 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →


Basic foth repo stats
5 months ago

skx/foth is an open source project licensed under GNU General Public License v3.0 only which is an OSI approved license.

The primary programming language of foth is Go.

Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

Did you konow that Go is
the 4th most popular programming language
based on number of metions?