Hacker News new | past | comments | ask | show | jobs | submit login

Are there any open source compilers for J (and similar languages)?



J[1], ngn/k[2], oK[3], kona[4], and GNU APL[5] are the big oss interpreters. The main closed-source ones are Dyalog APL, Kx k, and Shakti k (which are still free for non-commercial use).

1: https://github.com/jsoftware/

2: https://bitbucket.org/ngn/k/src/master/

3: https://github.com/JohnEarnest/ok

4: https://github.com/kevinlawler/kona

5: https://www.gnu.org/software/apl/



I'd also suggest looking at Pike's ivy as a simple example of an apl like system in go. https://github.com/robpike/ivy


I would argue that, being stylistically inconsistent with the way most apl is implemented, that's actually not such a great resource. I found 'whitney c' surprisingly approachable, with just a little patience; despite no prior experience with it, I was able to make an apl-ish interpreter in 7kb and a few hours. If you're curious about implementation details, that might be a more worthwhile exercise. Be sure to check out the parsing section[1] of the J dictionary.

1: https://www.jsoftware.com/help/dictionary/dicte.htm




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: