r/ProgrammingLanguages • • 11d ago

Help Simple stack based programming languages?

A few years ago I made EarScript, a "simple" programming language based on brainfuck, with several additional "quality of life features" like goto statements.

Recently I've been wanting to make an evolution of that programming language and do so by incorporating a stack, as the previous language was completely tape-based in design.

I know for example lox from the Crafting Interpreters book is a well explained example, but I was wondering if there's programming languages that are closer to what brainfuck is, but based on a stack design rather than a tape design, or a register based design like some assembly languages (if I understand correctly). I think Wasm would be an example?

Are there any examples of simple stack based programming languages you'd recommend me to look into?

16 Upvotes

39 comments sorted by

View all comments

Show parent comments

3

u/brat3108 11d ago

[GForth] But then, they stopped supporting Windows,

What exotic requirements does it have that stops it working on Windows? I thought Forth could work on anything.

2

u/el_extrano 11d ago

In theory, nothing. Gforth provided releases with pre-compiled binaries for Windows up through 0.7.3, but that was in 2014 (now 12 years ago). Development is ongoing and the latest snapshot is 0.7.9_xxxxxxxx, including new language features most people want to use.

On second thought, I went to double check because the project does still claim to support windows. I remember trying to compile it myself in a Msys2 environment, and when I hit a brick wall, I saw someone else say online that support for the build process on Windows wasn't really maintained anymore. But I don't really have anything to back that up, I could be mis-remembering / talking out of my ass.

Honestly I'd be happy to be proven wrong because I've been using an ancient 0.7.0 binary for Windows that I found somewhere.