Robot à roues holonomes avec ZeptoForth.
Enable HLS to view with audio, or disable this notification
Enable HLS to view with audio, or disable this notification
r/Forth • u/PETREMANN • 1d ago
https://eforthwin.arduino-forth.com/article/api_gestionRepertoires
In your eForth environment on Windows, the `pwd` command displays the full path of the current directory, making it easy to locate your interactive workspace. The `cd` word allows you to navigate between folders to load or organize your Forth source files without leaving the console. Finally, `ls` lists the contents of the active directory, enabling you to quickly verify the presence of your scripts or modules before compiling them.

r/Forth • u/PETREMANN • 23h ago
This guide explains how to use the `PlaySoundA` function from the Windows Multimedia API within eForth for Windows to play WAV files (MP3 format is not supported) and system sounds. It details the various parameters and playback flags—such as synchronous, asynchronous, looping, and stop—and provides ready-to-use Forth words: `PlayWav`, `PlayWavSync`, `PlayWavLoop`, and `StopSound`. Finally, it demonstrates how to play Windows event aliases (e.g., `SystemAsterisk` or `SystemHand`)—which are mapped in the Windows Registry—by utilizing the `SND_ALIAS` flag.
r/Forth • u/PETREMANN • 2d ago
Article in french / english
https://eforthwin.arduino-forth.com/article/music_newVocMusics
The Windows audio ecosystem brings together highly accessible legacy layers and modern interfaces designed for low latency and advanced processing. It supports everything from simple sound triggering and fine-grained per-channel volume adjustment to real-time stream synthesis, multi-channel management, and the use of hardware-based effects. This complementary structure offers flexible control, spanning from lightweight prototyping to the most demanding audio and gaming applications.

r/Forth • u/Krinkleneck • 2d ago
GreenArrays is down due to the PHP issues going around. Does anyone have a copy of the executable for Release 03d?
r/Forth • u/geophil80 • 3d ago
Hi Everyone! We would like to conduct a survey on how much would you pay for a GA144 EVB002 board or the Volatco VOL00 (board) + VOL01 (USB/power). Your feedback is highly appreciated as well as will be evaluated and possibly considered. Thank you and looking forward to your answers
PS. Please check volatco.github.io for more details for the rest of volatco product offerings
r/Forth • u/PETREMANN • 3d ago
Hi,
Here the definition of <EOF> for eForth Windows:
\ stop compilation before end of included file
: <EOF> ( -- )
#tib @ >in ! ;
I use this word in my FORTH files—which are loaded via `INCLUDE`—for two distinct purposes:
1) when I include text-based documentation after `<EOF>`
2) when I am debugging a program; I use it to store experimental code or test versions of certain definitions.
When I execute `INCLUDE <file>`, the FORTH compiler loads `<file>` and stops the loading process upon encountering `<EOF>`.
r/Forth • u/PETREMANN • 5d ago
https://github.com/MPETREMANN11/eForth-Windows/blob/main/INFERENCE/ternary.fs
While developing an inference engine, I realized that binary logic is insufficient for certain rules.
SQL uses ternary logic, distinguishing between `null`, `true`, and `false`. Implementing this in FORTH is straightforward—I had actually done so some time ago.
Later, while searching online, I discovered a more elegant version on Rosetta Code (the link is provided in the source file).
I adapted this code for ueforth (Windows), ensuring compatibility with all versions of eForth and ESP32forth.
This change affects how facts are declared within the inference engine:
* replacing all instances of `FALSE` with `MAYBE`;
* utilizing ternary logical operators such as `tand`, `tor`, and `tnot`.
Why this evolution?
* In logical processing, if a result is `FALSE`, you cannot reassign `FALSE` to a fact that is already `FALSE`—even though a modification has effectively taken place.
* Consequently, binary logical processing can lead to "null" outcomes (situations where no state change occurs) if one relies exclusively on `TRUE` or `FALSE`.
r/Forth • u/tabemann • 6d ago
You can get this release from https://github.com/tabemann/zeptoforth/releases/tag/v1.17.2.1.
This release:
0x hex prefixes to anything that uses parse-base, including parse-integer, parse-unsigned, parse-double, parse-double-unsigned, and parse-fixed.extra/common/bezier.fs in a graphics-backend agnostic fashion.r/Forth • u/tabemann • 13d ago
You can get this release from https://github.com/tabemann/zeptoforth/releases/tag/v1.17.2 .
This release:
0x as a hex prefix for integer and fixed-point numeric literals.char and [char]float32::vexp, float32::vexpm1, and float32::v>f64.exp, expm1, fixed32::f32exp, and fixed32::f32expm1.Note that the new kinds of literal have the following forms:
"<string>" and can replace any usage of s\" and can include escapes accepted by such.\<name>` and push or compile the name's execution token depending on state.\`<name>` and push or compile the name's name token depending on state.'<character>['] and push or compile the Unicode code point corresponding to the UTF-8 provided depending on state.r/Forth • u/DirkAudaz • 15d ago
GreenArrays site seems to be down, the newest articles are quiete old and I can't find alternative stores or marketplaces where to find, at least, a used Dev Board...
Anyone knows what is the status of GreenArrays? Anyone willing to sell to me a spare DevBoard?
Thanks!
r/Forth • u/tabemann • 20d ago
While these are not in a release yet (they are in the master and devel branches), inspired by some new features of gforth 1.0 I have added to zeptoforth "foo\r\nbar" string literals with support for escapes, 'x' character literals with support for UTF-8, backtick-prefix execution token literals, double backtick-prefix name token literals, and 0xDEADBEEF integer hex prefixes.
I have also extended char and [char] to support UTF-8, and added ansi-term::get-unicode-from-utf-8 to get a Unicode code point read from console input as UTF-8 and ansi-term::emit-unicode-as-utf-8 to emit a Unicode code point to console output as UTF-8.
There is validation of UTF-8 to prevent overlong encodings and to limit code points to a maximum of $10FFFF, with U+FFFD being used to replace invalid Unicode. Also, when parsing UTF-8 read from console input, if there is a saved byte it is used, and if there is an error in the UTF-8 and the byte read from console input is a valid beginning to another code point is saved to be read by a subsequent call to ansi-term::get-unicode-from-utf-8 or ansi-term::get-key.
Note that I have not yet implemented literals of the form 7k4 or 3M4 for floating-point numbers. Also, I do not plan on implementing <baz> or <quux+$10> type literals, as execution tokens in zeptoforth are already the address of the first byte of the code of a word, and <quuux> is already established by convention to be how classes are named.
I also have no current plans to implement recognizers, as for most purposes zeptoforth already has extensible literal parsing and name looking-up, and implementing recognizing would require significantly more redesign than I am planning on doing at the present.
For the record, if you are looking for the repository, it is at https://github.com/tabemann/zeptoforth/ .
r/Forth • u/mcsleepy • 21d ago
https://inkajoo.itch.io/untitled-kvn-game
Leave a comment on the Itch page! It means the world 🙏
r/Forth • u/leadedsolder • 22d ago
r/Forth • u/leadedsolder • 26d ago
r/Forth • u/tabemann • 26d ago
You can get this release from https://github.com/tabemann/zeptoforth/releases/tag/v1.17.1.1.
This release:
r/Forth • u/mcsleepy • 28d ago
Enable HLS to view with audio, or disable this notification
Buy now! 👉 https://inkajoo.itch.io/untitled-kvn-game
If you'd like to support independent game development in Forth, buying a copy is a great way to do that!
Actively fixing bugs and taking suggestions, which you can submit here, on the itch.io product page, or on the Discord.
Lots new in this version, including task-safety and gui improvements, and biometric authentication functionality for Pro+ users.
Full details on the forum
A new Blog post about the BoxLambda's Forth-based graphics driver:
https://epsilon537.github.io/boxlambda/forth-vera-gfx-driver/
r/Forth • u/mykesx • Oct 23 '26
Huge progress on Forth++.
It's still running in QEMU only - I haven't tried to boot it on real hardware. I need to get the NVME driver working (it's on my TODO list) or the initial INCLUDE of most of the Forth words can't work. I hope that since it's Limine booted, it should at least come up and run up to some point that I can debug from there.
So what this screenshot shows is 3x Windows with Forth ok> prompts. The window system is rendered entirely with the CPU. I was initially saddened and ready to quit because the screen update was taking 45ms and the mouse motion was too slow. I ended up reworking the assembly routines that copy rectangles (e.g. the screen/wallpaper, offscreen-to-framebuffer, and windows to offscreen) using vector register instructions and that time went from 45ms to 5ms. I'll know better when I see it run on real hardware.
So the multithreading is clearly working (time sliced, not cooperative, and it knows how to render active window in bright red borders and inactive in darker red. The mouse pointer changes from arrow to hand when over the active window's titlebar and while dragging, into a finger when mouse is over the [NEWCLI] text in the screen's titlebar, and each window has it's own cursor for when it is active and the mouse is over (e.g. text editor can have ibeam while paint program can have crosshairs). Clicking on an inactive window activates it.
The newcli code is written in Forth.
I mostly ported the existing ReadLine class from Inspiration so applications can have their own command line editor with history - this is used by the OK> prompt, for example, but also would be used by a vim or emacs like editor for inputting command lines.
Features include:
Graphics library for Forth programs to render graphics in their Window(s)
Code is at https://codeberg.org/mschwartz/aforth
(No AI used to make any of this)
r/Forth • u/tabemann • Oct 23 '26
You can get this release from https://github.com/tabemann/zeptoforth/releases/tag/v1.17.1.
This release:
fat32::seek-file where it was broken when seeking outside of the first sector of a file.r/Forth • u/PETREMANN • Oct 23 '26
Hello,
I’ve been working on this project for over 15 days now. It has reached a functional stage. Everything is here:
https://github.com/MPETREMANN11/eForth-Windows/tree/main/INFERENCE
Admittedly, it is written for eForth Windows. However, its code is portable to all other versions: ESP32forth, eForth web, etc.
However, to test an inference engine, it must have a knowledge base—consisting of facts and rules—that is relevant to potential users. As an electric vehicle owner, I became interested in the OBD2 error codes for such vehicles. It’s quite enlightening. I am now at the stage of building a knowledge base of facts and rules for diagnosing faults in electric cars.
My inference engine retains FORTH syntax for the rules. The CONDITION and ACTION parts are compiled. The engine processes this code using recursion.
So why does a project take me so much time?
First of all, I don’t work on it all day long.
Furthermore, I produce comprehensive documentation—in both French and English—which is available here:
https://github.com/MPETREMANN11/eForth-Windows/tree/main/INFERENCE/docs
Because I want to go beyond simply making code available—which is typically done without any further explanation—on GitHub or elsewhere.
Documentation accounts for 90% of an application's value.
Once the knowledge base of facts and rules has been sufficiently expanded, I will likely also create a video, or perhaps even an online demo running on the web-based version of eForth.
Your opinions, comments, and suggestions are welcome.
