List Commands Library for 50g
|
05-22-2018, 02:01 PM
Post: #346
|
|||
|
|||
RE: List Commands Library for 50g
(05-22-2018 01:22 PM)John Keith Wrote: Interesting. The first five are reminiscent of Jim Donnely's Programmer's Toolkit for the 48SX. I can see them being in a separate STACK menu in the Library. I should take a look at the Programmer's Toolkit; I hadn't realized there were some similarities and thus might be reinventing the wheel here. FWIW, I did create a STACK menu in the test build to contain all but SLST→ (the latter went into the GROUP menu). (05-22-2018 01:22 PM)John Keith Wrote: While SLST→ sounds very useful, the most common list-related slowdown that I face is with appending items to existing lists. Accumulating items on the stack and then creating a list from them is always faster but often difficult to accomplish. For example, numeric sequences where the next element is a function of two or more previous elements. If there was a way of fixing that problem it would speed up a lot of programs. It was while I was testing NMDUP that I decided to include SLST→ as a "regular" command. One of my favorite ways to test list commands is to use LSEQ to create large lists of unique elements so that I can quickly see what happens to them. When testing NMDUP, I created large lists with LSEQ and then exploded them with EVAL (1 keypress). This was a fast way to create a large quantity of unique stack objects, but I quickly found that GCs were making things difficult. Using SLST→ instead of EVAL gave me the true picture of what was happening. Would you be able to elaborate on what you mean by "numeric sequences where the next element is a function of two or more previous elements"? Applying functions to list elements is a central theme to many GoferLists commands, so I've mostly stayed away from that sort of thing with ListExt. What's an example of what you have in mind for this? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)