3 ms·
Are there any open source compilers for J (and similar languages)?
by klipt 7y ago
Are there any open source compilers for J (and similar languages)?
- arabelladonna 7y agoJ. J is open-source. Also, for K: https://github.com/kevinlawler/kona https://github.com/kevinlawler/kona https://bitbucket.org/ngn/k/src/master/ https://bitbucket.org/ngn/k/src/master/
- moonchild 7y agoJ[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/ https://github.com/jsoftware/ 2: https://bitbucket.org/ngn/k/src/master/ https://bitbucket.org/ngn/k/src/master/ 3: https://github.com/JohnEarnest/ok https://github.com/JohnEarnest/ok 4: https://github.com/kevinlawler/kona https://github.com/kevinlawler/kona 5: https://www.gnu.org/software/apl/ https://www.gnu.org/software/apl/
- vchak1 7y agoI'd also suggest looking at Pike's ivy as a simple example of an apl like system in go. https://github.com/robpike/ivy https://github.com/robpike/ivy
- moonchild 7y agoI 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 https://www.jsoftware.com/help/dictionary/dicte.htm