r/ProgrammingLanguages • u/Comprehensive_Chip49 • Apr 17 '26
[Showcase] r3forth: A minimalist, stack-based language focused on simplicity and performance.
I’ve been working on a programming language called R3 and I’d really appreciate feedback from people interested in language design.
Repo: https://github.com/phreda4/r3
R3 is a concatenative, Forth-inspired language (strong influence from ColorForth), focused on simplicity and minimalism.
Some key points:
- Concatenative / stack-based (no traditional function calls, composition by chaining)
- Very small core and dictionary
- 64-bit
- Includes its own VM
- Comes with graphics + basic game-oriented libraries (SDL-based)
- Can call external libraries (DLL/SO)
- Designed to be self-contained (language + environment)
The goal is to push minimalism quite far, while still being practical enough to build real programs (graphics, tools, experiments, etc). Good for recreational programming.
2
u/Comprehensive_Chip49 Apr 17 '26
1
u/RepeatLow7718 Apr 19 '26
Statically typed?
1
u/Tasty_Replacement_29 Bau Apr 19 '26
I'm also interested in very minimal languages, and so I also had a look at Forth-like languages. Please understand I'm not criticizing your work, which is great! The challenge I have is that Forth-like syntax seems so foreign to me. I find it very, very hard to understand and learn. For example https://github.com/phreda4/r3/blob/main/r3/util/sort.r3 :
I just don't understand any of it. I know shell sort... I see you have added a cheat-sheet and documentation, which is great! But I think as a programming language, I would use Forth probably only to bootstrap, and then use a more user-friendly language on top of that.
I'm not sure, but I wouldn't call it ultra-minimalist then.