zeptoforth
A not-so-small Forth for Cortex-M (by tabemann)
lbForth
Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js. (by larsbrinkhoff)
zeptoforth | lbForth | |
---|---|---|
12 | 3 | |
157 | 398 | |
- | - | |
9.8 | 0.0 | |
26 days ago | about 1 year ago | |
Forth | Forth | |
MIT License | GNU General Public License v3.0 only |
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.
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.
zeptoforth
Posts with mentions or reviews of zeptoforth.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-07.
-
Berry is a ultra-lightweight dynamically typed embedded scripting language
microcontroller options are interesting, also Forths (https://github.com/tabemann/zeptoforth)
-
zeptoforth 1.0.0 is out! (Now with optional USB CDC support for the RP2040)
Patch-level release 1.0.1 is out. This release improves the disassembler, particularly adding the ability to properly disassemble string literals.
-
I'm wondering why so few forth microcontoller tutorials are out there?
This is a definite shameless plug, but I would recommend my zeptoforth - it has strong support for the RP2040 (e.g. the RPi Pico), including peripheral support and support for executing on both cores, and also has support for a number of STM32 platforms, and comes with a range of example code, documentation, and a wiki.
-
zeptoforth 0.45.0 out including SDHC/SDXC and FAT32 support
The release itself is at https://github.com/tabemann/zeptoforth/releases/tag/v0.45.0
-
Open Source Forth Systems With First Class Preemptive Multitasking?
Zeptoforth has this, but it’s for embedded systems. https://github.com/tabemann/zeptoforth
-
Modules in zeptoforth
I initially implemented a rather Forth 2012-like wordlist system based on GET-ORDER, SET-ORDER, GET-CURRENT, SET-CURRENT, and WORDLIST for my Cortex-M Forth, zeptoforth. However, I ended up finding these quite cumbersome and error-prone to use in code that makes heavy use of wordlists to control the namespace, as is the case with zeptoforth. As a result I decided to completely remodel wordlists into a module system which, while internally based on those five words, is outwardly much more like the module systems found in other languages.
-
Multicore multitasking for the RP2040 with zeptoforth
Multicore support for the RP2040 with zeptoforth has been in the works for a while but up until the last few days has not been mature enough for me to even consider including it in the devel branch of zeptoforth. However, now it has reached the point where I can run multiple tasks simultaneously on separate cores. I have a working test that blinks the LED on the Raspberry Pi Pico at two different rates in two different tasks, one on each core, while simultaneously writing an asterisk to the console once every second from the second core and having a usable REPL in the main task on the first core. It should be noted that even the Micropython does not do this, as it only allows two tasks, one per core, rather than allowing multiple tasks to run on each core separately.
-
which forth do you guys use for normal day to day scripting and programming
I am the developer of zeptoforth, which is the main Forth I am using at the present. It supports the RP2040 (particularly the Raspberry Pi Pico, but it should work on other RP2040 boards), which I have been working with lately, and the STM32F407, STM32L476, and STM32F746 DISCOVERY boards. Note that it is not a desktop Forth; for that I would probably just recommend gforth.
-
zeptoforth 0.21.0 is out, now with RP2040 support!
zeptoforth 0.21.0 (https://github.com/tabemann/zeptoforth/releases/tag/v0.21.0) is now out, and introduces support for the RP2040 microcontroller (e.g. Raspberry Pi Pico, any RP2040 board with Winbond Quad SPI flash should work). Note that it comes in UF2 format, so one codes not need to solder pins for SWD onto one's Raspberry Pi Pico format to load it, and also the Makefile automatically generates UF2 files. Furthermore, when said UF2 file is first loaded, it erases flash above it up to the 1 MB mark, so one does not need to use OpenOCD (with SWD) or a special eraser UF2 file to clear old code out of flash.
-
Why Forth?
The result of this is zeptoforth, which I have been developing for about a year and four months. One could say that it fits the same niche as Mecrisp-Stellaris, and it admittedly supports far fewer MCU's at the present. I could have just used that rather than bothered to implement my own Cortex-M Forth, but I wanted to create my own Forth environment which I could play with as I saw fit (e.g. adding preemptive multitasking and other multitasking supports such as locks and channels).
lbForth
Posts with mentions or reviews of lbForth.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-25.
-
What's the simplest language to implement?
Forth compiler in 159 lines of Lisp and C
- lbForth: A self-hosting metacompiled Forth
-
Forth on the XMOS CPU?
Probably what I would do is write a minimal forth interpreter in C, and then use that and a few core words to bootstrap the rest of the system. It is a bit more complex than that, but here is the software which does it.https://github.com/larsbrinkhoff/lbForth
What are some alternatives?
When comparing zeptoforth and lbForth you can also consider the following projects:
durexforth - Modern C64 Forth
xxdp - XXDP was, and remains, the PDP-11 diagnostic operating system. This project attempts to recover XXDP sources and documents.
gforth - Gforth mirror on GitHub (original is on Savannah)
swapforth - Swapforth is a cross-platform ANS Forth
spf - SP-Forth
TclForth - Multi-platform desktop Forth based on Tcl/Tk
ucode - JavaScript-like language with optional templating
elfort - A Forth metacompiler that directly emits an executable binary for x86-64 Linux written in Arkam
r4 - :r4 concatenative programming language with ideas from ColorForth.
jonesforth_riscv - Jonesforth RISC-V port.
r3 - r3 programing language - ColorForth inspired
reko - Reko is a binary decompiler.