What is Nostr?
Jonathan Carroll /
npub1kl6…gf30
2024-12-16 10:11:24

Jonathan Carroll on Nostr: I love #rstats :rstats:, and believe that vectorised operations simplify code by ...

I love #rstats :rstats:, and believe that vectorised operations simplify code by making x + y do what it looks like it should.

#julialang :julia: has a more explicit approach; a 'broadcasting' operator `.` to distinguish scalar and vector operations, so x .* y (+ is a special case and seems to just work). Beautiful in its own way.

The Linear module in #haskell :haskell: defines a vector addition operator and I will now forget everything I said above because just *LOOK AT IT* 🐱

x ^+^ y

Author Public Key
npub1kl6fnrhma07s6e67qecufyhhvyx8emckuase0x9u0emprjltzrrqeggf30