by jjmaestro · 8y ago · 0 comments
However, in case I ever felt like learning one of these, I'd always wanted to know: the syntax crazyness, "a la brainfuck", is it a feature? a bug? Is it really needed? Can't they make an APL "look like Python" but using the same concepts, etc? Or is it "a thing" / something ultra-core to these languages, to be extremely terse / cryptic and intensely dense (each line packs a ton of punch!)?
e.g. just read http://www.jsoftware.com/help/dictionary/didot.htm and some of the stuff in there can be translated quite well:
i. 5 --> list(range(0, 5))
i. _5 --> list(range(0, 5))[::-1] or list(range(4, -1, -1))
i. 2 _5 --> [list(0 + j, 5 + j)[::-1] for j in range(0, 10, 5)]
P.S. any pointers to content / books about the philosophy and ideas behind these programming languages are welcome! :D
Thank you for the brief mention -- I've been perusing his website and writings and am enamored. There's something about niche, obscure tools (and their authors) that give me some profound joy.
...really?
Look, I like APL and J much more than the next guy, but I can't find a single angle from which that is a reasonable argument.
Perl 6 has some APLish array-oriented features in something arguably closer to what is common syntactically. Of course, it's not an APL with alternative syntax, but an extremely multiparadigm language with that as one of many influences.