r/ProgrammingLanguages • • 3d 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

38 comments sorted by

View all comments

2

u/JollyJuniper1993 3d ago

Aren’t raptor and forth like that?

1

u/Agecaf 3d ago

They are, yeah. I probably should've done my due diligence before asking the question here, but it's been useful to see which programming languages people are mentioning here.

The Wikipedia mentions "Forth, Factor, RPL, PostScript and BibTeX" as the leading examples, for example, which now I'll definitely look into too, but no one's mentioned BibTeX here yet and that's also useful info.

People also seem to be mentioning raptor before or alongside Factor, and colorForth alongside Forth.

2

u/JollyJuniper1993 3d ago

Oops yes I meant factor not raptor. My bad. No I think it’s fine asking questions like that.

1

u/Agecaf 3d ago

I got confused too, for some reason I thought raptor was a modern version of factor, now with a raptor as the mascot...