Stack oriented languages really feel like thinking, don't they?
I can see how it would feel that way, but your consciousness is at the top of a very complex hierarchy, you’re trying to figure out how the processor works by just looking at the monitor.
I think a thought is an accumulation/ compounding/ focusing of numerous lower level facets/ concepts. Every thought is made of smaller facets, bits of knowledge that guide the main thought patterns’ creation.
From my understanding of a stack (which could be wrong of course) it’s the topmost item/ concept that’s relevant at any given time.
I don't know exactly how to do it.
Ok so a stack is module that contains items, the items are ordered according to their relevance regarding the current thought, the topmost being the output.
Each item in the stack has a set of triggers/ inputs that move it up or down, these inputs are provided by lower stacks in the hierarchy. It’s a hierarchy driven by the outputs of lower hierarchies.
Let’s consider a stack that simply provides the left hands grasp state. The fingers have joints, so each joint gets a stack that represents the angle of each joint; the outputs from the joint sensors are fed into a finger position stack. The pattern of outputs from the joint stacks brings an item to the top of the finger position stack representing the whole finger position. Then the output patterns from the five finger stacks are fed into the overall had position stack, driving the correct overall posture to the top… hmmmm.
It’s like a high level modular representation of a how neural nets work. It takes a collection of neurons with several outputs to provide a varied output pattern. So each neuron group would represent an item in the stack, the pattern they all receive would only fire one output neuron; this represents the item at the top of the stack… similar to a Perceptron.
There's a notion of expectation and importance: you tend to focus on relevant things that are unusual/unexpected...
You could have global governance stacks that take their inputs from all over the hierarchy, their output could be used as bias, to guide the lower stacks, providing top down influence.
A stack is a logical module that provides an output dependent on its inputs.
If thinking about the problem space in this manner helps then run with it, you only have to design one stack module and a connection schema… cool. You could build some extremely complex architectures with this, and might get more insight into the problem space as you progress.