List Commands Library for 50g
|
05-22-2018, 10:53 PM
Post: #349
|
|||
|
|||
RE: List Commands Library for 50g
(05-22-2018 09:40 PM)DavidM Wrote: Are there some particular types of stack-based operations that would be helpful for this? None that come to mind, the solution seems to be different for every problem, but I'll think about it. Quote:Yes, if the data is to be stored in a list, there's no way to avoid a basic truth here: RPL objects are essentially COW (Copy On Write) data structures. There's no way to simply add one element to a list -- the entire list is copied to a new memory location with the change, and a pointer to that new list is pushed onto the stack where appropriate. Furthermore, any attempt to access a specific element in a list requires the command in question to play hopscotch with every preceeding element leading up to it. Those "skips" are relatively fast on the ARM-based RPL machines, but they still take time. That's pretty much what I feared. As I understand, this is true to some degree for all LISP-derived languages. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)