« first day (730 days earlier)      last day (1931 days later) » 

ngn
12:23 PM
ktye/iv - there goes another one
 
1:08 PM
@ngn and it's made in Golang, very nice.
 
1:43 PM
@ngn Supposed to feature channels, whatever that is.
 
@ngn wow, good find
 
2:34 PM
@Adám channels are a kind of data structure in Go. They work kinda like infinite lists, but are mainly used for concurrency. So channel <- value adds value to channel, and likewise value <- channel assigns the first element of channel to value.
The interesting bit about channels is this: "By default, sends and receives block until the other side is ready. This allows goroutines to synchronize without explicit locks or condition variables."
So if you have two routines adding something to a channel, the result of the first routine will be added to the channel first regardless of which one finishes first.
 
3:05 PM
@J.Sallé Sounds like our futures.
 
@ngn interesting
is "APL\iv" something specific? i haven't heard that term before
 
ngn
@feeb i don't know. it might have something to do with ivy (Rob Pike's take on apl from a couple of years ago) or it could be completely unrelated
 
 
4 hours later…
7:14 PM
if i have a vector of matrices, how can i index with those in another matrix, taking each item in the vector as the coordinates in the nth dimension?
the obvious way is to interleave the matrices to a matrix of vectors, but that's pretty inefficient
 
ngn
7:53 PM
@dzaima example?
i suspect some combination of ⊃ and ⍤ might work
 
it in the actual code; yes, that cellular automaton again, wanted to give apl a go
 
ngn
@dzaima ((2 2⍴1 3 2 3),[2.5](2 2⍴3 2 1 3))⌷⍤1 2⊢a
 
8:09 PM
@ngn oh cool, thanks. still have no idea how to use :|
 
ngn
@dzaima f⍤m n applies f to m-cells on the left and n-cells on the right
a "k-cell" is a subarray of rank k. its shape is a suffix of the shape of the larger array
 
@ngn right. technically i know how it works, but finding/seeing uses for it is what's hard
 
ngn
8:28 PM
@dzaima i didn't measure, to be honest
 

« first day (730 days earlier)      last day (1931 days later) »