Re: [Bug-apl] Implementation of ∩ - Intersection

2014-03-06 Thread Juergen Sauermann
Hi Elias, yes, it would make sense. I have added dyadic ∪ (union) and diadic ∩ (intersection), see SVN 157. /// Jürgen On 03/06/2014 10:27 AM, Elias Mårtenson wrote: Would it make sense to implement the ∩ function in GNU APL? In Dyalog, it represents the intersection function which returns

Re: [Bug-apl] Non-bug: Help comparing solutions

2014-03-06 Thread Daniel H. Leidisch
Hello! First, thank you for the nice explanation in my absence. I couldn't have done it better. Let me just explain where I see things a little differently. Tobia Conforto writes: > Even the classic example of a fork (+/÷≡) is harder to read than its > functional version {(+/⍵)÷≡⍵} and it goes

[Bug-apl] Configure wrongly reports Readline missing

2014-03-06 Thread Jan-Pieter Jacobs
Hey, I noticed (in GNU APL 1.2) that I did not get readline to work. I tried using "./configure --with-readline" to force Readline to be used, but that informed me it was not found (Though it was installed, including development packages). After looking at the config.log, it turned out it was act

Re: [Bug-apl] Rank operator and function assignment

2014-03-06 Thread Daniel H. Leidisch
Hello! Juergen Sauermann writes: > I see, thanks for the explanation. Thanks from me too. He explained it better than I would probably have. Tobia Conforto writes: > I would be wary of bracket notation on the rank operator, because it > has a different meaning in Nars2000 (which I'm not sure

Re: [Bug-apl] Suggestions needed: Editing of named lambdas

2014-03-06 Thread Elias Mårtenson
I think treating the lambdas just like any function is perfectly normal, and is exactly what any function languages does. Now, functional languages also has lexical closures, but I'm not sure how easy it would be to take advantage of it, since APL programs usually doesn't take advantage of clearly

Re: [Bug-apl] Suggestions needed: Editing of named lambdas

2014-03-06 Thread Juergen Sauermann
Hi, in GNU APL you can have lambdas without result (eg. {}) and they don't start with *λ*←. As Kacper has pointed out you can also have user-defined functions starting with *λ*←. I have no plans to prevent that, but I have also no idea where the lambdas will bring us in GNU APL. Right now {

Re: [Bug-apl] Getting list of quad-commands and system commands

2014-03-06 Thread Juergen Sauermann
Hi Elias, I have added macro sf_def() which gives the missing system functions, SVN 155. Alternatively you may go for Id.def (which is all symbols known by the system) and check if the UCS_string returned by id_name() starts with ⎕. /// Jürgen On 03/06/2014 09:07 AM, Elias Mårtenson wrot

Re: [Bug-apl] Rank operator and function assignment

2014-03-06 Thread Juergen Sauermann
Hi Tobia, I see, thanks for the explanation. I will look into this, but can't promise too much short term because it probably requires some rework of the parser. /// Jürgen On 03/06/2014 01:27 AM, Tobia Conforto wrote: Hi Juergen how does NARS2000 define f⍤B and A f⍤B (the standard does no

Re: [Bug-apl] Non-bug: Help comparing solutions

2014-03-06 Thread Jay Foad
>> Even the classic example of a fork (+/÷≡) is harder to read than its >> functional version {(+/⍵)÷≡⍵} and it goes downhill from there with longer >> trains. But maybe it's just me being unfamiliar with the syntax. > > > Did you intend to use ⍴ instead of ≡ there? I can't see how {(+/⍵)÷≡⍵} could

[Bug-apl] Implementation of ∩ - Intersection

2014-03-06 Thread Elias Mårtenson
Would it make sense to implement the ∩ function in GNU APL? In Dyalog, it represents the intersection function which returns the elements that occur in both L and R. Regards, Elias

Re: [Bug-apl] Getting list of quad-commands and system commands

2014-03-06 Thread Elias Mårtenson
It doesn't work correctly yet. SystemVariable.def doesn't give me all symbols. For example, ⎕DL is not included. How can I get those too? Regards, Elias On 4 March 2014 00:11, Elias Mårtenson wrote: > And it's done. There is now expansion of both system commands and quad > functions in the Ema

Re: [Bug-apl] Possible improvement to ]BOXING

2014-03-06 Thread Elias Mårtenson
You are right of course. Thanks. :-) Regards, Elias On 5 March 2014 02:00, Juergen Sauermann wrote: > Hi Elias, > > I believe it would be more confusing if ⎕CR is sometimes computed and > sometimes not. > > The example below might be easy to detect but what about cases like Z←8 > ⎕CR xxx ◊ Z o