Re: better apl array coding

2021-06-16 Thread enztec
Hi you suggested changes to the loop code reduced run time from 41 seconds to 29 seconds but still doesn't compare to the ¨/⌷/⊂ code at 50 msec size of data is 3 and i ran in a ram drive Has anyone tried this on some faster machines? I'm going to run all on a rasp pi and see what times are

Re: ending/stopping a script

2021-06-16 Thread Dr . Jürgen Sauermann
Hi, to conclude this discussion, I have added ad new command ]PUSHFILE in SVN 1474. The command does in an APL script what ⎕STOP or ^C do in a )LOADed workspace: it stops processing of the script at the point where the command was g

Re: better apl array coding

2021-06-16 Thread Dr . Jürgen Sauermann
Hi, the biggest problem with your old loop code is its quadratic runtime. The statement rs←rs,ar[a[i]; b[i]] takes more and more time as rs grows. GNU APL has occasionally been blamed for being slow, but in most cases the above coding pa