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 • • 1d ago

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

15 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 • • 1d ago

KlongPy v2 out

7 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 • • 1d ago

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

15 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 • • 11d ago

BQN Parsing Nested Lists in BQN

Thumbnail saltysylvi.github.io
4 Upvotes

r/apljk • • 13d ago

APL Dyalog 21.0 Out

Thumbnail dyalog.com
27 Upvotes

r/apljk • • 13d ago

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

Thumbnail chen.cat
9 Upvotes

r/apljk • • 13d ago

J JNJ: J iN Janet

Thumbnail sr.ht
5 Upvotes

r/apljk • • 13d ago

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

Thumbnail codeberg.org
4 Upvotes

r/apljk • • 15d 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!


r/apljk • • Aug 24 '26

A Principled Rethink of Array Languages (2015)

Thumbnail dercuano.github.io
20 Upvotes

r/apljk • • Aug 23 '26

APL Building an embeddable APL — which dialect should be the default?

12 Upvotes

Guys, I'm building libjay, an independent implementation of J and APL as an embeddable library (Rust core, Python and C bindings), and need... a coming-from-APL consensus on the defaults.

Honestly, I came at this from the J side: I was mostly curious whether J could become a convenient embeddable library, the way PCRE is for regexes. I always felt this language (and the whole language family) is a bit too eccentric to be used as a "prime language" – but god, how cool would it be to use for data manipulation as an embedded language, similar to aforementioned regexes or SQL! So "a J library" it was – and APL came as a freebie once the IR was there (and once the development was heavily AI-orchestrated).

Which is exactly why I'm asking people who actually know APL: I don't have the instinct for which dialect should be considered the default de facto. GNU APL? Dyalog? Or am I missing something?...

Originally I built it to support the APL2/ISO line, differentially tested against about 1k of APL expressions and about 3k J ones (combinatorically generated as well as fuzz-searched for problems – by now that grew up to 5.4k for J/2k+ for APLs), tested/compared with reference implementations (jconsole and GNU APL). Recently, a Dyalog preset/dialect appeared too, and I tried to cover as much of the syntax/differences as I could. Surely, it's still a pet project, doesn't have a full language coverage, and surely has a ton of unfound bugs especially with Dyalog – but it already supports SIMD vectorization, has all those planned Rust/Python bindings, can be used to play with your Polars/Pandas Python DataFrames (and if you use uvx, you can just try it without installing on Windows/macOS/Linux, uvx libjay --help). Not bad for a project which is about 3 days old!

I picked APL2 as the initial implementation for boring engineering reasons: GNU APL builds anywhere, including CI and a contributor's laptop, so the corpus can be regenerated by anyone. Dyalog can't be redistributed (and I never did anything except running it in Docker).

But that's an argument about my build, not about what an APL user would expect. When someone reaches for this and types an APL expression, which dialect should answer by default? What do most of the APL people actually write?

$ uvx libjay --lang apl -e '⊃2 3⍴⍳6' --dialect gnu
1 2 3
4 5 6

$ uvx libjay --lang apl -e '⊃2 3⍴⍳6' --dialect dyalog
1

For those who don't select any --dialect – how should it behave?


r/apljk • • Aug 14 '26

New CS grad looking to break into quant/kdb+ - looking for job leads + project ideas

Post image
6 Upvotes

Hi everyone,

I’m a 2026 Computer Science graduate and I’m trying to break into quantitative research / quantitative development / financial data, with a particular interest in kdb+/q.

I recently worked on a project where I extended KX’s official kdb+/q MCP server from 3 to 9 tools, connecting it to a Python-based autonomous strategy research pipeline. I also built an evaluation engine for things like Sharpe ratio, drawdown and win rate, and ran regression testing on the research process.

I’m attaching my quantitative researcher resume here.

I’d really appreciate help with two things:

1. Job opportunities / referrals
If anyone knows of teams hiring junior quantitative researchers, quant developers, financial data engineers, or similar entry-level roles where kdb+/q would be relevant, I’d be very grateful for a lead or referral.

2. What should I build next?
I want to keep getting hands-on with kdb+/q and financial data. If you work in this space, I’d love to hear what kinds of projects would actually be useful or impressive to see from a new grad.

I’m very willing to put in the work. I’m mainly looking for a chance to get into the industry and keep learning from people who are already working with these technologies.

Thanks!


r/apljk • • Aug 09 '26

J Readable Code is Unreadable

Thumbnail blog.wilsonb.com
11 Upvotes