Live data from Hacker News

The APL Challenge

challenge.dyalog.com

21–22 of 22 posts

Re: The APL Challenge

#21
post #6

Has anyone tried to recreate LLMs in APL ? Matrix multiplication is common in both of them. If LLAMA.C is only a few hundred lines then I would be surprised if the APL is more than a page of code.

Conversely, after many years of dabbling I still consider myself a complete novice at APL and array programming. However, my studying of array langs made learning LLMs fairly trivial. In particular, studying APL's inner product from the Mastering Dyalog book was the key to understanding the self-attention mechanism from Attention is All You Need and how it communicates semantic information across the positionally encoded tokens.

I'd still probably struggle to do anything mildly complex in APL, though, sadly. It hasn't fully clicked yet, but maybe one day!

Re: The APL Challenge

#22
post #2

Man I wish I could use APL at work instead of python & nodejs.

Well, there's KlongPy[1]. While not APL, it is built on top of Python and manages to turn NumPy from "Iverson Ghost"[2] status into Klong[3], a proper array language.

[1] https://github.com/briangu/klongpy

[2] https://analyzethedatanotthedrivel.org/2018/03/31/NumPy-anot...

[3] https://t3x.org/klong/

Post reply on HN