Let me know what you think!
#ual #retrodev #retrocomputing #forth #lua #golang #programming #rc2014#ZXSpectrum #z80 #speccy #spectrum #embedded #rustlang #rust
Content Warning
The > operator indicates a line that operates on the stack system, using a vocabulary for the most part similar to Forth's.
The @stackname > expression allows the programmer to select on which stack the operations are executed. The system comes with a data stack (@dstack) and a return stack (@rstack) built-in, but you can instantiate new ones, since stacks are first class objects in ual.
Take for example this implementation of Dijkstra's shortest path algorithm, uses its own separate stack to perform its computation.
https://github.com/ha1tch/ual/blob/main/examples/dijkstra.ual
Hope you like it!
#ual #retrodev #retrocomputing #forth #lua #golang #programming #rc2014#ZXSpectrum #z80 #speccy #spectrum #embedded #rustlang #rust