home.social

#arrayprogramming — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #arrayprogramming, aggregated by home.social.

fetched live
  1. 🔍 How NumPy Shapes Scientific Discovery!

    🔗 Interoperability - Serves as a bridge for various computation libraries
    🔧 Flexibility - Supports a decade of future analyses

    #NumPy #ArrayProgramming #Science tnyp.me/ih07Sizm/m

  2. 🔍 How NumPy Shapes Scientific Discovery!

    🔗 Interoperability - Serves as a bridge for various computation libraries
    🔧 Flexibility - Supports a decade of future analyses

    #NumPy #ArrayProgramming #Science tnyp.me/ih07Sizm/m

  3. I implemented org-babel support for 3 array languages I like a lot: Goal¹, BQN² and growler/k³. These languages are great for data munging so I find it very handy to use them in #OrgMode to process data stored in org tables. You can grab my implementations from my Emacs configuration at:

    github.com/oantolin/emacs-conf
    github.com/oantolin/emacs-conf
    github.com/oantolin/emacs-conf

    ¹ codeberg.org/anaseto/goal
    ² mlochbaum.github.io/BQN/
    ³ codeberg.org/growler/k, forked from codeberg.org/ngn/k

    #Emacs #ArrayProgramming

  4. I implemented org-babel support for 3 array languages I like a lot: Goal¹, BQN² and growler/k³. These languages are great for data munging so I find it very handy to use them in #OrgMode to process data stored in org tables. You can grab my implementations from my Emacs configuration at:

    github.com/oantolin/emacs-conf
    github.com/oantolin/emacs-conf
    github.com/oantolin/emacs-conf

    ¹ codeberg.org/anaseto/goal
    ² mlochbaum.github.io/BQN/
    ³ codeberg.org/growler/k, forked from codeberg.org/ngn/k

    #Emacs #ArrayProgramming

  5. CW: Advent of Code 2025, day 8 in K

    init:1+!n:#:d:`I$","\'0:"08.in"
    ds:1_'ds@<ds:{(+/t*t:d[x]-d[y]),x,y}.'p@&</'p:+!n,n
    conn:{(x*~f)+x[y[0]]*f:x=x[y[1]]}
    steps:1000#
    :one:*/t 3#>t:.#'=init conn/steps ds
    :two:*/*+d {:[&/g=*g:conn[x;*y];*y;o[g;1_y]]}[init;ds]

    Part 2 takes a metric eternity to converge. There must be a better solution, but this will have to do for now.

    #AdventOfCode #AoC2025 #APLJK #ArrayProgramming

  6. CW: Advent of Code 2025, day 8 in K

    init:1+!n:#:d:`I$","\'0:"08.in"
    ds:1_'ds@<ds:{(+/t*t:d[x]-d[y]),x,y}.'p@&</'p:+!n,n
    conn:{(x*~f)+x[y[0]]*f:x=x[y[1]]}
    steps:1000#
    :one:*/t 3#>t:.#'=init conn/steps ds
    :two:*/*+d {:[&/g=*g:conn[x;*y];*y;o[g;1_y]]}[init;ds]

    Part 2 takes a metric eternity to converge. There must be a better solution, but this will have to do for now.

    #AdventOfCode #AoC2025 #APLJK #ArrayProgramming

  7. CW: Advent of Code 2025, day 7 in K

    rng:!#*data:0:"07.in"
    spls:l@&0<#'l:&'"^"=1_data
    msks:(+/rng=/:(-1;1)+)@/:/:spls
    f:{spl:+/(n@&0<n)*msks[y]@&0<n:|/+t:(1_x)*/:rng=/:spls[y]
    str:(1_x)*~|/t
    ((+/0<n)+*x),str+spl}
    :(one;two):(*:;+/1_)@\:(0,"S"=*data) f/!# spls

    It was a pleasant surprise that a single fold could solve both parts.

    #AdventOfCode #AoC2025 #ArrayProgramming #APLJK

  8. CW: Advent of Code 2025, day 7 in K

    rng:!#*data:0:"07.in"
    spls:l@&0<#'l:&'"^"=1_data
    msks:(+/rng=/:(-1;1)+)@/:/:spls
    f:{spl:+/(n@&0<n)*msks[y]@&0<n:|/+t:(1_x)*/:rng=/:spls[y]
    str:(1_x)*~|/t
    ((+/0<n)+*x),str+spl}
    :(one;two):(*:;+/1_)@\:(0,"S"=*data) f/!# spls

    It was a pleasant surprise that a single fold could solve both parts.

    #AdventOfCode #AoC2025 #ArrayProgramming #APLJK

  9. CW: Advent of Code 2025, day 6 in K

    d:0:"06.in"
    op:(+/;*/)@"*"=op@&~" "=op:*|d
    :one:+/op@'+.'1_|d
    :two:+/op@'n 1_'.=+\~n:0,.'+|1_|d

    The fact that the input file was nearly valid K was helpful.

    #AdventOfCode #APLJK #AoC2025 #ArrayProgramming

  10. CW: Advent of Code 2025, day 6 in K

    d:0:"06.in"
    op:(+/;*/)@"*"=op@&~" "=op:*|d
    :one:+/op@'+.'1_|d
    :two:+/op@'n 1_'.=+\~n:0,.'+|1_|d

    The fact that the input file was nearly valid K was helpful.

    #AdventOfCode #APLJK #AoC2025 #ArrayProgramming

  11. I really want to do more with #APL but there's no Libre flavor I know that runs on the #GPU .

    #Futhark comes close, but not quite APL syntax and loading data into it is a pain.

    Anyone?

    #freesoftware #arrayprogramming #askfedi

  12. CW: AoC Day 10 Part 1 in Uiua

    Map ← ⍥(⍉≡(⊂⊂⊙:.@.))2 ⊜∘≠@\n.&fras"10.in"
    Inf ← 9999 # applied infinity
    F ← +×Inf=0./+⊞=:Map
    D ← F"|LJ"
    U ← F"|7F"
    R ← F"-J7"
    L ← F"-FL"
    M ← ↧+1×
    TD ← M D ↻¯1.
    TU ← M U ↻ 1.
    TR ← M R≡↻¯1.
    TL ← M L≡↻ 1.
    T ← TU TL TD TR
    -1/↥/↥×≠Inf⍢(T.⊙;)(¬≍)⊃∘(×0) F"S"

    #AdventOfCode #Uiua #ArrayProgramming #APLJK

  13. CW: Advent of Code · Day 15

    f:"15.txt"
    n:2000000
    c:"-",,/$!10
    i:{2 2#.`c$(" "*~i)+x*i:+/c=\:x}'0:f
    a:{x|-x}
    d:{+/a x-y}
    m:{$[~~#:i:&x[0;1]>-2+1_x[;0]
    (,x[0;0],|/x[0,1+*i;1]),x[(!#:x)^0,(1+*i)]
    x]}
    r:{cl:i@&{d[1_x;x[1],y]<1+*x}[;x]'(d.'i),'*+i;
    r@<*+r:{x[1]+(-s)+0,2*s:x[0]-a y-x[2]}[;x]'(d.'cl),'*+cl}

    --/*m/r[n]

    x+4000000*1+*|*m/r[x:*&1<#'(m/r@)'!n*2]

    / Takes five minutes using
    / codeberg.org/ngn/k

    / There must be a better way

    / #k #apljk #apl #adventofcode #arrayprogramming

  14. I discovered the ArrayCast #podcast this week and have enjoyed it tremendously.

    arraycast.com/

    Fun content for #programming #language nerds; positive and constructive perspectives; and soothingly orderly conversations where folks don’t interrupt each other 😌

    #apl #jlang #klang #forth #ArrayProgramming

  15. Today's Advent of Code problem doesn't look like it will take us a lot of time. Let's take this opportunity, and explain every step of solving it in K. Nice and beginner friendly.

    See you at noon UTC+1 at twitch.tv/janstepien

    #adventofcode #apljk #arrayprogramming #streaming #livecoding #programming

  16. Streaming AoC day 4 at 19:00 UTC+1. This time on a Raspberry PI. Tune in and partake in some merry array programming!

    twitch.tv/janstepien

    #k #apljk #apl #adventofcode #arrayprogramming #live