Easy as { 1 2 3 }? (when { 1 2 3 } ≠ { 1 2 3 })
|
07-15-2018, 01:41 AM
Post: #3
|
|||
|
|||
RE: Easy as { 1 2 3 }?
(07-15-2018 12:52 AM)Joe Horn Wrote: Maybe exploring LIN, TLIN, and SIMPLIFY using Nosy would reveal what *they* do to normalize integers. Maybe just that code can be extracted (or called) to avoid the overhead of everything else that LIN, TLIN and SIMPLIFY do. Thanks Joe, that's a good idea. I'll see if I can find references to ROM entries that perform needed translations in those commands. I think I'll start with SIMPLIFY. FWIW, I've already put together a SysRPL/Saturn routine to do this, which is a fairly good performer (converts a list of 1000 long-form integers in about 0.13s). It converts long-form instances of both reals and zints in the -9..9 range, and leaves everything else as-is. It also converts embedded lists. The only problem with it is that it's a huge chunk of code: 471 bytes (almost entirely assembly). Seems like a serious waste of space for a somewhat esoteric issue that most likely already has a solution hiding in ROM somewhere. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)