third VS muforth

Compare third vs muforth and see what are their differences.

third

Third, a small Forth compiler for 8086 DOS (by benhoyt)

muforth

A simple, indirect-threaded Forth, written in C; for target compiling; runs on Linux, BSD, OSX, and Cygwin (by nimblemachines)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
third muforth
3 2
72 127
- -
0.0 9.3
over 8 years ago 2 months ago
Forth Forth
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

third

Posts with mentions or reviews of third. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-16.
  • Forth: The programming language that writes itself: The Web Page
    7 projects | news.ycombinator.com | 16 Jul 2023
    My first programming languages were x86 assembly and Forth. My Dad was into Forth, and I learned programming from him. I wrote several x86 Forth systems for DOS as a teenager, culminating in a somewhat-polished ANS compatible one I called "Third": https://github.com/benhoyt/third -- it's kind of amazing being able to have a fully bootstrapped Forth compiler (including an assembler) in a couple thousand lines of code.

    Just the other day I transcribed an old article I had co-written for the Forth Dimensions magazine. I still like the ideas in Forth, but the stack manipulation quickly gets tedious and is very hard to read. Just look at the code examples in https://benhoyt.com/writings/forth-lookup-tables/ -- especially Search-Table. Yikes! Yes, naming things is hard, but apparently not naming them is even harder.

  • Lookup Tables: article I co-authored for “Forth Dimensions” as a teen
    1 project | news.ycombinator.com | 1 Jul 2023
    I just finished transcribing this from the scanned PDF, and thought it might be interesting to others. It certainly took me back! I was really into Forth as a teenager, and wrote several of my own Forth compilers [1]. It's a unique and interesting language, though most Forthers spend too much time writing their own compilers and being language zealots instead of getting things done. It's hard to believe anyone could think the Search-Table code in "Figure Five" is sane. There's more stack-effect tracking than code!

    [1] For example, "Third", a 16-bit self-hosting Forth compiler for DOS: https://github.com/benhoyt/third

  • Byte Magazine: The FORTH programming language
    7 projects | news.ycombinator.com | 16 Jul 2022
    My dad, who was a minister by day and Forth hacker by night, got me into programming when I was a teenager, and Forth and x86 assembly were my first languages. I wrote a small self-hosting Forth compiler for 8086 DOS (https://github.com/benhoyt/third), a tiny 32-bit Forth operating system for the 386 (I guess you'd call it "bare metal" today). Incidentally, my brother used my Third compiler at his work for a few years to write test scripts for embedded systems.

    I still love the simplicity of Forth, and the fact that you can get a full Forth system going in a few KB on a new microcontroller. I learned the basics of assemblers, bootstrapped compilers (though not parsers, because Forth doesn't need a "real" parser), recursion, how to implement control structures, various kinds of bytecode (called "threaded code" in the Forth world), linked lists, hash tables, and so on. I also dislike 3rd party dependencies to this day (Forth has a pretty extreme not-invented here culture).

    I was really intrigued by Factor when it came out (https://factorcode.org/), as a modern incarnation of Forth, but I never really used it. By that point I had a "real" programming job and was doing absurd things like writing CGI scripts in C, until I discovered Python in the early 2000's. I stuck with Python for many years and really liked it, though more recently I've moved to Go.

    I learned a lot by playing with Forth as a teenager, and I'm really grateful for the language. It was an amazing way to start programming.

muforth

Posts with mentions or reviews of muforth. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-16.
  • Forth: The programming language that writes itself: The Web Page
    7 projects | news.ycombinator.com | 16 Jul 2023
    Is Google down again? Bummer.

    FORTH is still used to bring up new silicon because of its tiny core, you only need a couple of working assembly instructions to bootstrap yourself into a working system, you could do this entirely in cache or a small static RAM if you don't have a working memory controller yet.

    It is also used all over the place in embedded controllers, https://arduino-forth.com/ , http://www.piclist.com/techref/microchip/language/forths.htm , https://github.com/nimblemachines/muforth , from PICs to ARMs and everything in between.

    You won't see a lot of hype around it and repos tend to be old because they 'just work', typically a user of such a system would download it and customize it to the point that sharing it would be pointless, the whole idea is to extend the language to become the application.

  • muforth
    1 project | /r/Forth | 20 Nov 2021
    From the github README: "muforth is a small, simple, fast, indirect-threaded code (ITC) Forth intended for use as a cross-compiler for microcontrollers and other embedded devices. It is written in C and its core is very portable. Because of its Forth nature, it is naturally extensible, scriptable, and customizable."

What are some alternatives?

When comparing third and muforth you can also consider the following projects:

foth - Tutorial-style FORTH implementation written in golang

sightreading.training - 🎹 Sight reading training tool

MiniForth - A tiny Forth I built in a week. Blog post: https://www.thanassis.space/miniforth.html

r216-forth - A Forth implementation for the R216K8B Powder Toy computer.

goforth - A fully compiled and forth-like language including a small virtual machine.

factor - Factor programming language

jonesforth - Mirror of JONESFORTH

moonscript - :crescent_moon: A language that compiles to Lua

collapseos - Bootstrap post-collapse technology