« first day (544 days earlier)      last day (2116 days later) » 

ngn
11:07 AM
@H.PWiz × does singleton extension, ⍤ does scalar extension
They were implemented by different people with different tastes. Those coming from a J background usually prefer scalar extension, old-school Dyaloggers tend to be more accepting of singletons.
scalar - an array A with ⍬≡⍴A; singleton - any array A with 1=×/⍴A, including scalar; ... extension - treating a scalar/singleton A as if it has the shape of the other argument when applying a dyadic function
 
@ngn Right, so a{⍺×⍵}⍤1⊢b begins with 1 2 3{⍺×⍵}⍤1⊢,3 and that ends up as 1 2 3×,3 which was allowed by the original APL implementers. But a{⍺×⍵}⍤1⊢b begins with 1 2 3×⍤1⊢,1 and detects a length mismatch between the two vectors.
 
ngn
11:27 AM
@Adám yeah, something like that. ⍤ probably fails before even trying to apply ×
@Adám which camp are you in? :) scalar or singleton extension?
 
@ngn Hardly, as it needs to accept it for mixed functions like .
@ngn Mostly scalar. I'd want the scalar case to do something else. Something useful. E.g. I would have wanted ⍳,3 to return (,1) (,2) (,3) while ⍳3 returns 1 2 3.
 
ngn
@Adám the ⍳,N bug - definitely, I've been bitten by it a few times
 
@ngn Singleton extension was probably introduced because making a singleton into a scalar was ugly before the invention of and . You had to do (0⍴0)⍴Y or the anomalous looking ''⍴Y.
@ngn However, what about the other way? Would you want 3⍴Y to fail because it needed (,3)⍴Y?
 
ngn
@Adám ⍺⍴⍵ does not distribute, so it's not a problem there
 
@ngn OK, but what about 1↓3 4⍴⎕A. Should it be equivalent to (,1)↓3 4⍴⎕A or 1 1↓3 4⍴⎕A?
Compare to how 1⌽3 4⍴⎕A is 1 1 1⌽3 4⍴⎕A.
(However (,1)⌽3 4⍴⎕A doesn't fail. Should it?)
 
ngn
11:39 AM
@Adám I don't think the 1 there should be distributed to conform to the shape...
@Adám another interesting topic is singletons as conditions: {,1:'a'⋄'b'}0 and :If ,1
 
@ngn Why? In the same vein, I'd like ⌺3⊢⍵ to be ⌺(3⍴⍨⍴⍴⍵)⊢⍵.
 
ngn
@Adám the singleton-vs-scalar-extension discussion is a separate from the question of what should be extended
 
@ngn True.
 
ngn
"how" vs "what"
 
 
2 hours later…
1:28 PM
Dyalog Version 17.0 is now available under Microsoft Windows, IBM AIX, Linux (including the Raspberry Pi) and Apple macOS. The full announcement can be found on our website at https://www.dyalog.com/news/125/420/Dyalog-Ltd-Announces-Dyalog-Version-17-0.htm #Dyalog #APL
2
 
 
1 hour later…
2:29 PM
@Adám Do you know whether the person responsible for the careers@ email is a man or a woman (or neither, idk)? I'm writing a small cover letter and I never know how to begin them >.>
 
@J.Sallé I think it goes to multiple people, some men, some women. Don't worry about it, you can just write "Hi,".
 
@Adám okay then, I'll do that
 

« first day (544 days earlier)      last day (2116 days later) »