« first day (880 days earlier)      last day (1760 days later) » 

ngn
10:07 AM
@Adám you don't have the "arithmetic mean as least-squares matrix division" idiom in the cart?
 
@ngn No. Is there any reason to, when +/÷≢ is there and works on all ranks?
 
ngn
@Adám sometimes it leads to shorter code. and it's beautiful
 
@ngn The APLcart isn't intended as a golf course :-)
 
@ngn: Adam is busy — he has to write code to append .aplf to file names. SCNR. ;-)
 
ngn
@TorstenGrust .aplf ... what?
 
10:16 AM
@ngn Heh, did you watch the Dyalog webinar last week? (You totally should, it was super interesting.)
 
ngn
@TorstenGrust no. was it recorded for public viewing?
 
@ngn dyalog.tv/Webinar has a recording.
 
ngn
@TorstenGrust will watch, thanks
 
(Source Code Mgmt with Dyalog 17.1)
I am looking at a piece of code that follows the form {⍵{⍺ g ⍵}¨f ⍵}¨X What would be the idiomatic APL way to express this nested iteration? The nested each doesn't feel right to me.
 
@TorstenGrust {⍺ g ⍵} is just g
 
10:23 AM
Yes, right. I wanted to make explicit that g can depend on items of X itself as well as those returned by f ⍵.
 
@TorstenGrust OK, but {⍵ h ⍵} is just h⍨ so the whole thing is g¨∘f⍨¨
 
Let me process that...
(Thank you!)
Nice, nice! Thanks again!
 
@TorstenGrust Unless you can redefine your functions g and f to pair-up their arguments appropriately, you can't really get rid of the ¨s, although you could embed them.
 
@Adám Can you elaborate on the embed?
 
@TorstenGrust If you have a function f and find yourself using all the time, just do f←f¨
 
10:32 AM
@Adám Ah, OK.
Noted.
 
ngn
11:25 AM
@TorstenGrust ¨ is dangerous, beware of empties
 
@ngn Yes, thanks for the heads-up. Working out for me here but you are right, of course.
 
 
2 hours later…
1:12 PM
@GregEdwards Hello. Interested in APL?
Announcement: APLcart now includes applicable entries (some of them never released!) from Dyalog's #onelinerwednesday series, and has gained a "clear input button" (×). Next major task is sifting through the 700 FinnAPL idioms…
 
 
4 hours later…
5:40 PM
@ngn re: codegolf.stackexchange.com/questions/187082/… I've never used before and I have no idea how that would work for that challenge >.>
 
@Adám Cool, I'll check it out in a bit
 
6:23 PM
I managed to shave two bytes, not the 3 ngn mentioned |-⌹⊢=⊢
I'm sure one of the tacks is unnecessary, though
@Adám ^
 
ngn
@J.Sallé |- ->
 
6:39 PM
@ngn Ah, I see it now
I'll update the answer
 
ngn
@J.Sallé pity the challenge requires the version. =⌹=== would have been so beautiful :)
 
Hah! That'd be funny
 
6:59 PM
@ngn @J.Sallé How about ≠⌹≠÷≠ ?
 
ngn
@Adám yeah, i thought of ≠⌹≠=≠ but it has the same distribution of chars as ≠⌹===
 
@Adám that'd be cool as well, but it looks less symetric to me
Not that the other one is, it just looks better IMO
 
@J.Sallé -1 with Extended: ≠⌹1¨ Try it online!
 
ngn
@Adám with extended you can use monadic
 
@ngn How?
 
ngn
7:02 PM
oops, we've got a left arg here...
 

« first day (880 days earlier)      last day (1760 days later) »