« first day (2255 days earlier)      last day (392 days later) » 

12:51 AM
@B.Wilson wow u relax by coding in apl?? thats an interesting way
 
1:27 AM
@AidenChow Trying to Pavlov condition my brain to associate good times with APL. Kind of working so far!
 
what the, why u feel the need to do that lmfao, and its working???
 
@AidenChow It's just me trying to work around my own limitations. I'm bad at continuing on long-term endeavors (like learning deep APL) via sheer will power alone.
 
@B.Wilson certainly an interesting way i suppose......
 
1:48 AM
@AidenChow Really? Effectively I'm just finding ways of having fun with APL.
 
 
5 hours later…
7:12 AM
hey so for a physics project im going to make a thermophysics simulator. my backend is going to be apl. ill use a 2d array of temperatures to represent a grid of temperatures. i want to change the temperature of tiles adjacent to tiles with differing temperatures. the quad diamond comes to mind.
({⊂⍵}⌺3 3) 3 3⍴⍳9
this gives me a nested array of adjacent tiles. im wondering how i can make the border values default to something else than 0, because i want 0 to be a possible temperature in the array. having the border values be something other than 0 which is outside of the domain of temperatu
 
@Slimey The left function operand to Stencil ends up getting called dyadically, where tells you what elements in are "beyond the edge" fill elements.
 
does it show the index of the elements or what?
 
7:28 AM
@Slimey It's a vector of length ⍴⍴Y, so 2 in your case. Each element indicates how many fill elements extend beyond the border of the corresponding axis. Positive means to the left, negative means to the right.
 
8:05 AM
it's designed so {⍺↓⍵} removes the padding
 
 
1 hour later…
 
 
2 hours later…
11:50 AM
yes, i figured it out. thanks!
 
12:06 PM
@Adám This comment cracked me up: “ Matlab was created for people too dumb to use Fortran. APL was invented for people too smart to use Fortran.”
 
 
3 hours later…
3:02 PM
Announcement: Recordings from APL Seeds '23 are now available on dyalog.tv/APLSeeds23. Slides can be downloaded from our website: dyalog.com/apl-seeds-user-meetings/aplseeds23.htm
 
 
1 hour later…
4:13 PM
@xpqz Didn't seem them mentioned Chapel chapel-lang.org Unfortunately I have no access to any supercomputer resource, so anything I cannot make reasonably fast with APL are not fast either by switching to these compiled languages.
 
4:58 PM
is there any way to make stencil not center data points?
im trying to do a certain problem and i need to chunk the array in groups of 3
never mind, aplcart to the rescue
tho {⍵⊂[1]⍨(≢⍵)⍴⍺↑1} look terribly convoluted
how does ⍵⊂[1]⍨ work?
 
5:14 PM
@Seggan it is very likely that you can just use rank operator rather than using a nested array
So if your 1D array length is L, get a 3 by (L div 3) matrix
and apply your function to the matrix with rank 1 operator
 
@LdBeth :facepalm: didnt think of that
 
Stencil is likely the wrong way to go
 
@Seggan Think it's equivalent to ⍉⊂⍤1⊢⍉
remember Adam showing at one of the BAA meetings
 
@LdBeth what about each?
also, thanks for the help, i managed to remove an intermediate step using your tip :)
 
6:04 PM
I trend to avoid each when I can use rank, to reduce memory footprint
And rank comes more handy when start to generalize problem to higher dimension arrays
 
6:23 PM
mm
 
6:38 PM
@Seggan is that just 3 element arrays splitting into? Figure could do (3÷ swap tally w) 3 reshape w or similar if so
 
@Silas yeah i got it
 
 
3 hours later…
9:18 PM
Great!
 

« first day (2255 days earlier)      last day (392 days later) »