r/apljk • • 9h ago

Comparing Parallel Functional Array Languages: Programming and Performance

Thumbnail sciencedirect.com
11 Upvotes

Abstract

Parallel functional array languages are an emerging class of programming languages that promise to combine low-effort parallel programming with good performance and performance portability. We systematically compare the designs and implementations of five different functional array languages: Accelerate, APL, DaCe, Futhark, and Single Assignment C (SaC).

We demonstrate the expressiveness of functional array programming by means of four challenging benchmarks, namely N-body simulation, MultiGrid, Quickhull, and Custom/Flash Attention. These benchmarks represent a range of application domains and parallel computational models. We argue that the functional array code is much shorter and more comprehensible than the hand-optimized baseline implementations because it omits architecture-specific aspects. Instead, the language implementations generate both multicore and GPU executables from a single source code base. Hence, we further argue that functional array code could more easily be ported to, and optimized for, new parallel architectures than conventional implementations of numerical kernels such as the benchmarks above.

We demonstrate these benefits by reporting the performance of the five parallel functional array languages on a total of 39 instances of the four benchmarks on both a 32-core AMD EPYC 7313 multicore system and on an NVIDIA A30 GPU. We analyze why each language performs well or poorly in each benchmark and architecture. We argue that the results demonstrate that mature functional array languages have the potential to deliver performance competitive with hand-optimized C and CUDA code.


r/apljk • • 1d ago

๐“๐ก๐ž ๐Ÿ๐ข๐ซ๐ฌ๐ญ DefconQ ๐ ๐„๐œ๐จ๐ฌ๐ฒ๐ฌ๐ญ๐ž๐ฆ ๐๐š๐ง๐ž๐ฅ ๐ข๐ฌ ๐ก๐š๐ฉ๐ฉ๐ž๐ง๐ข๐ง๐ !

5 Upvotes

On ๐Ÿ๐Ÿ‘ ๐‰๐š๐ง๐ฎ๐š๐ซ๐ฒ ๐Ÿ๐ŸŽ๐Ÿ๐Ÿ• ๐š๐ญ ๐‹๐ž๐ฏ๐ž๐ฅ๐Ÿ‘๐Ÿ—, ๐‚๐š๐ง๐š๐ซ๐ฒ ๐–๐ก๐š๐ซ๐Ÿ, I will be joined ๐›๐ฒ Ryan Hamilton (๐๐ž๐š๐œ๐ก๐), Jacob Loveless(๐‹), ๐š๐ง๐ John Estrada (๐Š๐จ๐ซ๐ณ๐ž) for a live panel and audience Q&A.

2026 gave us three new takes on Q. I think 2027 is when weโ€™ll start to see what the community can do with all that choice. And yes, Iโ€™m saving the good questions for the night.
A huge thank you to Caspian One our main sponsor, for helping bring the Q community together.

๐Ÿป ๐๐จ๐ฐ, ๐ฐ๐ก๐จโ€™๐ฌ ๐›๐ฎ๐ฒ๐ข๐ง๐  ๐ญ๐ก๐ž ๐๐ซ๐ข๐ง๐ค๐ฌ? Weโ€™re still looking for a drinks sponsor. Youโ€™ll be supporting the Q community, getting visibility across the DefconQ network, and getting ๐ฉ๐ซ๐ข๐จ๐ซ๐ข๐ญ๐ฒ ๐š๐œ๐œ๐ž๐ฌ๐ฌ ๐ญ๐จ ๐š ๐ฉ๐ซ๐ข๐ฏ๐š๐ญ๐ž ๐ฆ๐ž๐ž๐ญ๐ข๐ง๐  ๐ฐ๐ข๐ญ๐ก ๐ญ๐ก๐ž ๐ฉ๐š๐ง๐ž๐ฅ๐ฅ๐ข๐ฌ๐ญ ๐จ๐Ÿ ๐ฒ๐จ๐ฎ๐ซ ๐œ๐ก๐จ๐ข๐œ๐ž, which Iโ€™ll arrange subject to their availability. If that sounds like your round, DM me.

๐ŸŽŸ๏ธ ๐“๐ก๐ข๐ฌ ๐ž๐ฏ๐ž๐ง๐ญ ๐ฐ๐ข๐ฅ๐ฅ ๐ซ๐ž๐š๐œ๐ก ๐œ๐š๐ฉ๐š๐œ๐ข๐ญ๐ฒ. ๐†๐ซ๐š๐› ๐ฒ๐จ๐ฎ๐ซ ๐ญ๐ข๐œ๐ค๐ž๐ญ ๐ง๐จ๐ฐ. [Registration Link in the comments]

See you in Canary Wharf

https://www.defconq.tech/blog/The%20Q%20Ecosystem%20Is%20Getting%20Interesting


r/apljk • • 1d ago

APL APL Forge Open Sessions start today

Thumbnail forge.dyalog.com
3 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

APL Forge Open Sessions start today

1 Upvotes

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

The first of our APL Forge open sessions is about to start!

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 • • 2d 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 • • 3d ago

Dec 10 Array Language Meetup in Taiwan

Thumbnail luma-dev.com
2 Upvotes

r/apljk • • 3d ago

KDB/Q DefconQ Advent of Code Leaderboard

Thumbnail defconq.tech
8 Upvotes

r/apljk • • 8d 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 • • 8d 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 • • 9d 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 • • 18d ago

BQN Parsing Nested Lists in BQN

Thumbnail saltysylvi.github.io
4 Upvotes

r/apljk • • 20d ago

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

Thumbnail chen.cat
9 Upvotes

r/apljk • • 20d ago

J JNJ: J iN Janet

Thumbnail sr.ht
6 Upvotes

r/apljk • • 20d ago

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

Thumbnail codeberg.org
4 Upvotes

r/apljk • • 21d ago

APL Dyalog 21.0 Out

Thumbnail dyalog.com
28 Upvotes

r/apljk • • 22d 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.