« first day (1886 days earlier)      last day (774 days later) » 

4:00 AM
@xpqz is that all of the phase 1 problems from 2013-2021? cool
 
att
4:49 AM
ok I've finally started learning APL thanks to the competition
Managed to finish phase 1 but it still feels like a struggle
 
 
2 hours later…
6:46 AM
@att If you managed to finish phase 1 you’re off to a good start.
 
7:19 AM
@att wow you finished phase 1, ... i am still stuck lol
 
att
8:04 AM
Is there a better way to do {⍺⍵}?
 
8:33 AM
@att ,⍥⊂ is one char shorter, but not really much better
 
 
6 hours later…
2:08 PM
codegolf.stackexchange.com/questions/245570/… time to bring out the life builtin?
 
 
4 hours later…
5:38 PM
I thought it was not possible to write affine image transformation in APL. But now I did it.
 res←m affine img;x;y;g;m;idx;⎕IO
 ⍝ affine transformation
 ⎕IO←0
 (x y)←⍴img
 g←¯1↓⍉⌊m+.×⍤99 1⊢⍉(1 x y⍴⍳y)⍪(⍉y x 1⍴⍳x)⍪1
 m←,∧⌿(x y>⍤0 2⊢g)∧0<g
 res←x y⍴(0,,img)[m×1+,+⌿y 1×⍤0 2⊢g]
 
 
5 hours later…
10:15 PM
 ⍝ An improved one
 affine←{
     ⍝ affine transformation
     ⎕IO←0 ⋄ (x y)←⍴⍵
     g←¯1↓⍉⌊⍺+.×⍤99 1⊢(y/⍳x),∘1⍤,⍥⍪(x×y)⍴⍳y
     m←∧⌿(x y>⍤0 1⊢g)∧0<g
     x y⍴(0,,⍵)[m×1++⌿y 1×⍤0 1⊢g]
 }
 
10:45 PM
@BrianBED Wouldn't that just be monadic ,?
 

« first day (1886 days earlier)      last day (774 days later) »