zeptoforth
civlua
Our great sponsors
zeptoforth | civlua | |
---|---|---|
12 | 14 | |
157 | 19 | |
- | - | |
9.8 | 9.4 | |
19 days ago | 1 day ago | |
Forth | Lua | |
MIT License | The Unlicense |
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
-
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).
civlua
- LAP: Lua Async Protocol
-
IBM 360 in UK need a home
http://civboot.org is basically trying to answer exactly this question
- Drowning in code: The ever-growing problem of ever-growing codebases
-
Why the fuck are we templating YAML? (2019)
I'm designing a simple dev environment from scratch.
My solution for this is a sandboxed lua for programatic configuration:
https://github.com/civboot/civlua/tree/main/lib/luck
I can't stand JSON (for many reasons) so I created a serialization format that combines it and CSV for nested objects
https://github.com/civboot/civlua/tree/main/lib/tso
I wish the industry would standardize on a solution like this. IMO you shouldn't use a "real" language unless you can lock it down to be determinisitic. JSON is supposed to be human readable but fails for lots of real-world data like multi-line strings or lists of records.
CSV is more readable but doesn't supported nested objects.
-
Show HN: Cassette, a Personal Programming Language
Have you tried for any length of time?
For example, there's lots of little places where aligning keywords helps clarify code
https://github.com/civboot/civlua/blob/main/ds/ds.lua#L89
Formatters HATE putting multiple statements on a single line, but when they go it makes it so much easier to parse (for a person)
-
LuaX: A Lua Dialect with JSX
I've built a lua-based markdown which is more sane (from a programmer's PoV) than markdown but still concise
https://github.com/civboot/civlua/tree/main/cxt
I'm planning on supporting syntax highlighting. I could imagine creating a cxx that does what LuaX is doing, except it would support rendering to the command line as well as html.
Want to team up?
-
Unveiling the big leap in Ruby 3.3's IRB
Reading "big features" like "multi line input" makes me feel more than ever that we really need an ultra light weight embeddedable text editor.
I wrote one, and while it's not yet complete I can say it's really _not that hard_
https://github.com/civboot/civlua/blob/main/ele/README.md
-
22-Year-Old Builds Chips in His Parents' Garage (2022)
Sam was one of my main inspirations in starting http://civboot.org. Awesome to see he's managed to make his own chip now!
- I'm building a self-bootstrapped embeddedable programming environment in Lua
- Civlua: Self contained software to build a minimalist development environment
What are some alternatives?
durexforth - Modern C64 Forth
berry - A ultra-lightweight embedded scripting language optimized for microcontrollers.
gforth - Gforth mirror on GitHub (original is on Savannah)
ucode - JavaScript-like language with optional templating
lbForth - Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
dhall-lang - Maintainable configuration files
spf - SP-Forth
dmd - dmd D Programming Language compiler
go - The Go programming language
r4 - :r4 concatenative programming language with ideas from ColorForth.
hylo - The Hylo programming language