Re: [Bug-apl] Internal storage of iota

2014-04-28 Thread Blake McBride
Dear Jürgen, For starters, this discussion, in my mind, is just academic at this point. Not knowing the details of GNU APL, I will speak somewhat abstractly. 1. The intent is to save space and not time. The space savings, depending on the application, can be extremely high. 2. The time cost

Re: [Bug-apl] Internal storage of iota

2014-04-28 Thread Juergen Sauermann
Hi Blake, it is definitely saving space, but it most likely taking more time. Consider Z←A ⍴ IDX← ⍳ N to represent the creation (IDX ← ⍳ N) and use (Z ← A ⍴ IDX) of IDX. At ravel cell level a cell is created with constructor IntCell() and used with get_ravel(r). The argument of IntCell is a

Re: [Bug-apl] Internal storage of iota

2014-04-27 Thread Blake McBride
I'd like to add that things like: v←c[500] would not cause an expansion, but things like: c[500]←44 would. On Sun, Apr 27, 2014 at 11:27 AM, Blake McBride wrote: > Greetings, > > Back when I coded in APL, there was discussion about the storage of iota. > For example: > > a←⍳100 > > b