*Syntactically* it's very simple, but explicit stack-orientation with reverse-Polish notation is a *very* different programming paradigm than practically everything else out there ...
On Wed, 17 Apr 2024 08:05:23 -0700, John Ames wrote:
*Syntactically* it's very simple, but explicit stack-orientation with
reverse-Polish notation is a *very* different programming paradigm than
practically everything else out there ...
The only really tricky part of stack-based programming is keeping track of what’s on the stack.
I did some messing about with a reboot of PostScript which tried to add
some niceties, like stack guards and lexical binding. Here’s an example of the sort of thing I was able to get working (“ddef” and “dstore” define
and assign to dynamically-bound variables, while “ldef” and “lstore” correspondingly work on lexically-bound ones):
I think I have only ever heard of one person who actually uses
PostScript for programming by hand, rather than as a print output
format. That is Don Lancaster ...
I think I have only ever heard of one person who actually uses
PostScript for programming by hand, rather than as a print output
format.
The PostScript graphics model has long been superseded by worthy
successors, like Cairo.
I believe Keith Packard describes Cairo as PostScript
without the syntax ...
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 917 |
Nodes: | 10 (1 / 9) |
Uptime: | 14:02:11 |
Calls: | 12,176 |
Calls today: | 6 |
Files: | 186,522 |
Messages: | 2,235,160 |