r/apljk • • May 08 '25

What do you want from this Community?

12 Upvotes

I've just taken control. The community is spread out (see the sidebar) and I'd rather not fragment it further, but hope this space can increase visibility. It's fine if people just want to link to various things, but asking questions etc. can also be great.

If others have better ideas or want to speak, feel very free! I am trying to proselytize for array languages.


r/apljk • • 19m ago

APL APL Forge Open Sessions start today

Thumbnail forge.dyalog.com
1 Upvotes

Curious about the APL Forge and perhaps thinking of submitting a project?

The first of our APL Forge open sessions is today 

Join Adám Brudzewsky today (Wednesday 2 December) between 13:00-15:00 UTC for the opportunity to discuss the APL Forge with one of the organisers. Everyone is welcome to join this open session at any time during these two hours with their APL Forge-related questions.

See https://forge.dyalog.com/open-sessions/ for more information and to join.


r/apljk • • 1d ago

Adin APL is available

11 Upvotes

Adin 3.0.5 for the linux desktop (or Windows with wsl)

Adin 2.0.4 for Android phones.

https://github.com/mayer-goldberg/adin-apl/releases


r/apljk • • 2d ago

KDB/Q DefconQ Advent of Code Leaderboard

Thumbnail defconq.tech
8 Upvotes

r/apljk • • 1d ago

Dec 10 Array Language Meetup in Taiwan

Thumbnail luma-dev.com
2 Upvotes

r/apljk • • 7d ago

Goal Goal v1.9.0: two years since v1.0.0!

18 Upvotes

The v1.9.0 version just got out, and it's been two years since I posted on this sub about the first stable release of Goal, so it sounds like a good time for an update.

Goal's been slowly but surely getting new stuff and the last release, in particular, brings interesting things, some of which are a bit unusual for array languages: goroutine-based concurrency with channels, a defer keyword for resource cleanup, general handle-based pipes, portable dial/listen-based networking, and a simple http client and server. I still consider some of those a bit experimental (as indicated in docs) because they're new so minor things about their design could still change, but they're already usable enough, as under the hood it's based on Go's standard library, after all, so the difficulty was mostly about exposing that functionality nicely.

Here's a (somewhat contrived) example showcasing some of the new features: it creates an http server for a static "html" directory on localhost, logging access log to standard error, and then starts the server on a goroutine, while listening on another one for a termination signal (among SIGHUP, SIGINT and SIGTERM) for graceful shutdown.

port:or[ARGS 1;"8080"] / get port from command-line args or default to "8080"
srv:http.server@..[
  addr:"127.0.0.1:$port"
  handler:http.fs"html"  / http.fs produces a simple file system server handler
  log:STDERR]
(signal;done):chan.new'0 1; chan.notify signal
and/rt.go..[
  {defer[chan.send[done;];1]; srv..serve}:1
  {(*chan.select["r";signal;"r";done])or srv..shutdown}:1]

Of course, in this example, graceful shutdown is overkill and the last four lines could've been simply srv..serve, without extra handling of signal and done channels. The and/ ensures that the first goroutine error is returned (showing normally http: Server closed here after interrupting the server). The handler could've been more complicated, though, like a dict of pattern:handler pairs for routing. And handlers can be of various kinds (like redirect or timeout), and even be goal functions taking f[responsewriter;request] handle arguments when more flexibility is needed.

BTW, while, unlike for some other k-likes, "state-of-the-art" performance is still not a priority, Goal has now Go assembly simd for most operations where it makes sense, and a decent selection of integer array types (uint8, int16, int32, or int64 elements). Still no bit-booleans, and simd limited to SSE4.2 for portability, but it performs quite well.

https://codeberg.org/anaseto/goal

See CHANGES.md there for the full details about what happened in two years. Hope you enjoy!


r/apljk • • 7d ago

KlongPy v2 out

8 Upvotes

Klong array language rewritten in Rust and can now target CPU, GPU, FPGA and microcontrollers.

All of the original Python features are still available when hosted in Python.

https://github.com/briangu/klongpy


r/apljk • • 7d ago

J J9.8-beta11: automatic differentiation with the D. conjunction

18 Upvotes

u D. n gives the n-th derivative of a tacit or explicit verb u:

   +/@:*: D.1 (1 2 3)  NB. gradient of the sum of squares
2 4 6
   f =: (4 -~ +/@:*:) , -/  NB. f: R² -> R²
   (] - f %. f D.1)^:_ ] 1 2  NB. Newton's method starting from (1,2)
1.41421 1.41421

In the example above, Newton's method finds the point on the circle a² + b² = 4 where a = b.

Use cases:

  • Machine learning and optimization: write only the loss and D. gives its gradient. The essay shows a neural network in J that recognizes handwritten digits.
  • Math: Jacobians, Hessians and Newton's method with no hand-coded derivatives.

Try it online in Juno with no installation, or install J9.8-beta. More in the documentation.


r/apljk • • 17d ago

BQN Parsing Nested Lists in BQN

Thumbnail saltysylvi.github.io
4 Upvotes

r/apljk • • 19d ago

APL Dyalog 21.0 Out

Thumbnail dyalog.com
28 Upvotes

r/apljk • • 19d ago

J Futhark-J Bridge: High-performance parallel array computing for J via Futhark

Thumbnail chen.cat
9 Upvotes

r/apljk • • 19d ago

J JNJ: J iN Janet

Thumbnail sr.ht
6 Upvotes

r/apljk • • 19d ago

APL Script to Install Dyalog APL on Arch (at least CachyOS)

Thumbnail codeberg.org
4 Upvotes

r/apljk • • 21d ago

Other What is Functional Programming? - John Scholes & Roger Hui

Thumbnail
youtube.com
14 Upvotes

r/apljk • • Oct 25 '26

Other Michal Wallace (Tangentstorm) on Narrative Programming: Why Learn J when LLMs Code?

Thumbnail alexalejandre.com
15 Upvotes

r/apljk • • Oct 16 '26

Are the L STAC benchmarks the death nail for KX/q?

17 Upvotes

Honestly can't see how KX survive the performance difference that the L team have published with STAC. Worlds fastest time-series database was always the hook and if L is 100% q compliant I can't see how they survive without massively reducing price

https://docs.stacresearch.com/M3-20261005a


r/apljk • • Oct 15 '26

K On Notation - Pat Hanrahan (APL, K) (Pixar, Tableau, Cuda) at RacketCon

Thumbnail
youtu.be
14 Upvotes

r/apljk • • Oct 14 '26

APL Lists are Maps

Thumbnail nsl.com
7 Upvotes

r/apljk • • Oct 13 '26

J Math for the Layman - Iverson

Thumbnail web.archive.org
14 Upvotes

r/apljk • • Oct 12 '26

KDB/Q How did this Year's Iverson College around Q Go?

10 Upvotes

r/apljk • • Sep 23 '26

APL Obituary of Kenneth Iverson - Celebrating His Life and Work

Thumbnail defconq.tech
37 Upvotes

r/apljk • • Sep 16 '26

New paper: Expressing NumPy Broadcasting via Verb Rank in J

24 Upvotes

A new paper on J has just been published on arXiv: Expressing NumPy Broadcasting via Verb Rank in J.

Have a look! The paper shows how the two approaches to writing loopless code correspond, with a detailed explanation of rank in J, all using a new way of presenting J code in articles.


r/apljk • • Sep 06 '26

K Amber REPL demo: Intro

Thumbnail
youtu.be
16 Upvotes

Hey everyone, put together a quick video showcasing Amber. It goes over most of the core commands, syntax, and REPL features in action.

Also put up a second video solving Project Euler 233 in 8 lines of Amber if you want to see how it handles heavier math.

(Excuse the AI voice in these, my mic is absolute trash right now and I didn't want to inflict that audio quality on anyone.)

Amber: https://amber-lang.org


r/apljk • • Aug 26 '26

K Amber – C99 columnar array engine (K/q-inspired)

19 Upvotes

Hey r/apljk, I built Amber; a zero-dependency C99 in-memory columnar array engine built on ngn/k, with the working vocabulary of q/kdb+. It evaluates qSQL natively (wavg, xbar, as-of joins aj, window joins wj) over nanosecond temporal types anchored to a 2000 epoch offset, running either as a standalone binary or via the amberd daemon over a custom TCP protocol.

On single-core benchmarks (1M rows), single-pass $O(N)$ sliding windows compute moving averages and rolling mins/maxes in 3.4–3.8 ms with flat runtime regardless of window width (outperforming Pandas by up to 5.2x and Polars by 3x+). Multi-column LSD radix table sorting (xasc/xdesc) processes 1M rows in 42.1 ms (4.3x faster than Pandas/Polars and 3.4x faster than DuckDB), 1,000-group aggregations complete in 11.4 ms (beating Polars, Pandas, and DuckDB), and sparse inner joins execute in 5.38 ms (outperforming NumPy, Julia, DuckDB, ngn/k, and J). On 10M-element reduction suites (sum + max + dot), primitive kernels hit 15.4 ms, outpacing naive single-threaded C, Julia, and DuckDB while running 15x–40x faster than traditional array runtimes like J or ngn/k. For parallel workloads, multi-process peach processes 500k items in 23 ms with a peak RSS of just 11.5 MB.

To eliminate memory transposition and serialization penalties, amber-arrow and python-amber stream zero-copy Apache Arrow IPC straight into Pandas and Polars. The rest of the ecosystem includes amber-tick for real-time market data capture, amber-ai for vectorized execution primitives, a Go-backend Grafana datasource, a native Jupyter kernel, a VS Code LSP extension, and amber-notepad.

Docs and full benchmark suites are live at https://amber-lang.org and source code is up at https://github.com/BonucciAndrea/amber. I'd love any feedback from the array programming community on the q/K syntax choices and engine design!