« first day (1781 days earlier)      last day (889 days later) » 

4:00 AM
@FawnLocke i think both monadic and dyadic execute are talked about on the same page: help.dyalog.com/18.0/#Language/Primitive%20Functions/…
 
4:42 AM
Ah, thanks for pointing that out.
 
 
4 hours later…
8:20 AM
Today's AoC is a fun one. pastebin.com/2zScY5iK I wonder how APLers would solve this differently.
@voidhawk If it depends on AVX, it is impossible to run under Rosetta.
It would be trivial to produce a native M1 version that all subroutines are in C. I guess it's only about how to utilize the vector instructions from Apple Silicon.
Rosetta cannot emulate AVX. It's the x86_64 binary of Dyalog APL automatically disables vector instruction support.
 
@LdBeth i used windows as well, but didn't make it in APL
should be portable
 
8:52 AM
wohoo, new arraycast is out :)
 
 
3 hours later…
11:23 AM
@LdBeth I was playing with 10|10⌊ but decided to track with 0@ instead for to be honest no real reason: github.com/rikedyp/Advent-of-Code/blob/main/Y2021/Day11_2.aplf
 
12:08 PM
@RikedyP lol very similar to mine
 
 
6 hours later…
6:03 PM
1 mistake moved to ­Trash
@FawnLocke Yeah, people are accustomed to writing x/⍳⍴x which is optimised.
 
6:58 PM
@hyper-neutrino Can you give chat.stackexchange.com/users/530767/user176905 access?
 
 
1 hour later…
8:22 PM
@Adám Done, sorry for the delay. I wasn't paying attention.
 
No worries. Thank you.
@user176905 Hi John Jacob, and welcome to the APL Orchard. You should now have write access.
Since you're new to Stack Exchange chat, consider having a look at apl.wiki/APL_Orchard#Features
 
 
1 hour later…
9:30 PM
@here: how do I create a 6 dimensional array where the cell value is a function of the 6 index values?
 
@RudiAngela sounds like a job for ⍳
 
Yeah, F¨⍳shape
 
Yep, I suspect so
So the cell value function is depends linearly on its indices. E.g. 50xi1 + 20xi2 +...
@Adám Let me try that
 
Ah, if there's a nice mathematical relationship, you might be able to get much better performance with F shape⊤⍳×/shape
 

« first day (1781 days earlier)      last day (889 days later) »