RPL second impressions (HP 28)
|
06-29-2018, 07:14 PM
Post: #21
|
|||
|
|||
RE: RPL second impressions (HP 28)
(06-29-2018 04:59 PM)BartDB Wrote:(06-29-2018 02:49 PM)Thomas Okken Wrote: This is a perfect example of what some people dislike about RPL: in order to write efficient programs, you have to avoid expressions and use stack manipulation instead.. "Traditional" RPN has only four stack levels, which forces you to use numbered registers, or named variables on the later calculators that have them. That makes the flow of data a lot easier to follow. When I see STO 00 and later on I see RCL 00, I know where that bit of data came from. I can't make such easy inferences when I'm looking at a bunch of DUP ROT SWAP etc. (06-29-2018 05:13 PM)Thomas Klemm Wrote:(06-29-2018 01:08 PM)Gerson W. Barbosa Wrote: That's one of my first RPL programs (HP-28S, back in 1987), so it can surely be optimized a bit. Better, but no. You still have to expend way too much mental energy to keep track of what is where in the stack. "r OVER < OVER n SWAP MOD NOT OR" is only "easy to read" for very specific values of "easy." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)