Re: [Bug-apl] ^C ATTENTION

2015-10-11 Thread Elias Mårtenson
It hangs because it's trying to allocate ridiculous amounts of memory. I'm sure your system was swapping quite a bit too. Memory allocations can't be interrupted using Control-C. Regards, Elias On 12 October 2015 at 06:34, Louis de Forcrand wrote: > Please excuse me, that does work. Here's one

Re: [Bug-apl] ^C ATTENTION

2015-10-11 Thread Louis de Forcrand
Please excuse me, that does work. Here's one that hangs up: EULER196←{+/(5(⍵+2)↑⊃C∧∨/∨⌿D∘.⊖D⌽¨C∧3≤+/+⌿D∘.⊖ (D←¯1 0 1)⌽¨C←⊂6(⍵+3)↑5(⍵+2)⍴,2=+⌿0=(⍳¯1↑,B)∘.|,B)[3;] /(B←⊃(+/⊃⍳¨¯5↑(0≤A-1)/A-1)+⍳¨¯5↑(0≤A)/A←¯2 ¯1 0 1 2+⍵)[3;]} (That's one line.) It's probably poorly optimised, but it might as well be

Re: [Bug-apl] ^C ATTENTION

2015-10-11 Thread Juergen Sauermann
de Forcrand <ol...@bluewin.ch> Subject: Re: [Bug-apl] ^C ATTENTION Date: 10 Oct 2015 02:03:22 CEST To: Juergen Sauermann <juergen.sauerm...@t-online.de>

Re: [Bug-apl] ^C ATTENTION

2015-10-10 Thread Louis de Forcrand
Hmm. I think I forgot the "Re:" in the email subject. Sorry!

[Bug-apl] ^C ATTENTION

2015-10-10 Thread Louis de Forcrand
> Begin forwarded message: > > From: Louis de Forcrand > Subject: Re: [Bug-apl] ^C ATTENTION > Date: 10 Oct 2015 02:03:22 CEST > To: Juergen Sauermann > > Jürgen, > > Sorry for the delay. > > If I declare a LIFE function for finding the ne

Re: [Bug-apl] ^C ATTENTION

2015-10-03 Thread Juergen Sauermann
Hi Louis, could you  provide a concrete example? Some remarks on ^C in GNU APL. There are two levels: a single ^C (called ATTENTION) and two ^C within one second (called INTERRUPT). ATTENTION is primarily checked by the runtime parser at

[Bug-apl] ^C ATTENTION

2015-10-02 Thread Louis de Forcrand
I've noticed that CONTROL-C works quite well with multiple-line functions, but not nearly as well with programs that use ⍣ for example (one-liners). APL just seems to freeze, and with a little luck it stops and prints ATTENTION, while at other times it just doesn't seem to stop at all.