« first day (2434 days earlier)      last day (206 days later) » 

12:47 AM
@Adám for "Can You Feel the Magic?", can I suggest an addition to the test cases in the online judge? I have a solution that passes according to the judge, but which I've found a failing test case.
 
 
13 hours later…
1:20 PM
@RubenVerg That looks really cool! What inspired you to make the interpreter in Haskell? I don't know a lot of Haskell, but the code looks pretty clean so far!
 
 
3 hours later…
4:08 PM
The docs for Materialize show this example 2 ⌷[2] mat, which extracts the 2nd column from mat. I understand that much but not precisely what is happening? How exactly are the left arg of 2 and the [2] interacting to produce extraction of the 2nd column?
 
4:20 PM
Entirely unrelated, but the online reference docs don't seem to be formatting correctly for me. Eg, here is what I see on the Stencil page: i.imgur.com/8u454GH.png
 
4:30 PM
One final, also independent, question: Why is ({⊂⍵}⌺3 3) not equivalent to (⊂⌺3 3)? The former does the expected tesselation, while the latter results in blank space. My mental model (which must be wrong) is that each 3x3 tesselation will be passed as an arg to the fn on the left (whether {⊂⍵} or ), and from the pov they should behave the same. Where is my misunderstanding?
 
4:47 PM
@Jonah The reason for this behavior difference is that the stencil gives 2 arguments to the attached function. the left arg is an array describing the padding that's been added, while the right arg is the 3x3 tesselations. This is due to the 3x3 tesselations extending off the base matrix and needing the padding to have the 3x3 shape. Thus, when you do (⊂⌺3 3), it's treating you left function as dyadic. You can see the arguments/behavior with ({⍺,⍥⊂⍵}⌺3 3)
@Jonah I think the [2] is indicating to operate on the 2nd dimension (columns) instead of the default 1st dimension (rows), and then the left argument 2 is specifying which column to select.
 
@mitchelljohnstone re stencil question, i considered that it was being called dyadically and so i also tried (⊂∘⊢⌺3 3) but that failed as well.
@mitchelljohnstone mmm... ok so here [2] is like an operator changing how materialize works?
 
5:07 PM
In Adám's SO answer you linked, he notes that ⊢∘⊂ can work, i see now i was misunderstanding compose by analogy with J.
Thanks, all questions answered now.
 
 
5 hours later…
10:06 PM
@Jonah Try ⊢∘⊂⌺3 3 or ⊂⍤⊢⌺3 3. f∘⊢ is equivalent to just f.
 

« first day (2434 days earlier)      last day (206 days later) »