Questions tagged [stack-oriented]
The stack-oriented tag has no summary.
7 questions
14
votes
3
answers
2k
views
Why does Forth's flexibility make a grammar inappropriate for it?
I've recently undertaken the task of writing a stack-based programming language. Before I started designing my language however, I thought it'd be a good idea to read and experiment with existing ...
0
votes
1
answer
229
views
Kernel facilities needed for C++
I'm working on a kernel for a proprietary embeded system. I've had no issues but I'd like to expand its capabilities directly. I made it run C. I did so pretty much by giving my kernel a stack.
My ...
7
votes
6
answers
7k
views
Coding style for chained function calls
A common thing you need to do is to take a value, do something with it by passing it to a function, and then do some more with the return value, in a chain. Whenever I run into this type of scenario, ...
24
votes
3
answers
4k
views
Which are the alternatives to using a stack to represent function call semantics?
We all know and love that function calls are usually implemented using the stack; there are frames, return addresses, parameters, the whole lot.
However, the stack is an implementation detail: ...
9
votes
1
answer
2k
views
Status of stack based languages
I have recently become curious about Factor, which, as far as I understand, is the most practical stack-based language around. Forth seems not to be used much these days - I think it is because it was ...
16
votes
4
answers
3k
views
Is there a need for garbage collection in a stack-based language?
What is the need for garbage collection (GC) in a stack-based language? In a language like Forth or RPL (on HP calculators), is there a need for garbage collection?
I would think, since output is ...
12
votes
4
answers
6k
views
What problems are stack oriented languages well-suited and ill-suited for?
Stack-oriented programming is a pretty non-widely used paradigm (well, PostScript gets used under the hood a bit here and there). This in mind, what problems are stack-oriented languages good at? What ...