5 ms·
TIL APL...neat! Found this for others who want to play along. https://tryapl.org/ https://tryapl.org/ (Note: took a while but the special characters for prod
by whitej125 3y ago
TIL APL...neat! Found this for others who want to play along.
https://tryapl.org/ https://tryapl.org/
(Note: took a while but the special characters for producing lists, etc... are from "virtual keys" you can see at the very top of the web page)
- stirfish 3y agoI wanted to do some statistics, so I accidentally learned J (thinking it was R). J is like APL, but with digraphs (multiple characters) instead of special characters as symbols.
- clusterhacks 3y agoOk, so this is kind of funny but I also want to know - did/do you feel productive with J for stats work? Did you ever switch to R? If so, how would you describe the two languages to a non-programmer?
- stirfish 3y agoI don't think I ever actually did any stats with J, but I did play with it for a long time. J is like an old school text adventure where you start with a blank screen that reads "You are in the woods" and, before you know it, it's Monday morning and you're considering calling out of work because you've almost decoded some elvish runes you found on a rock. R is the single player campaign of a modern first person shooter, where you have infinite lives and your health regenerates if you sit and think for a while. This isn't a perfect analogy. Maybe J is high school Spanish class, and R is Google translate? I remember enjoying J as a language and R as a tool. It's exciting to express new things in J. It's easy to do familiar things in R. R also is really well documented - there was a time where experts were asking basic questions on Stack Overflow and answering them themselves, because that's where people look for documentation.
- persnickety 3y agoHow does one accidentally learn a different programming language?
- mandarax8 3y agoOn the J website the first sentence is: 'J is a high-level, general-purpose programming language that is particularly suited to the mathematical, statistical, and logical analysis of data.' So I can see him thinking he has the correct language.
- 0xdeadbeefbabe 3y agoSounds like a Neal Stephenson beginning.
- kstrauser 3y ago"The analyst's cheeks warmed as she looked around the room, realizing they were talking about something different than she expected."
- infostud 3y agoI've been trying to improve my J skills by doing the https://adventofcode.com/2022 https://adventofcode.com/2022 puzzles. I got stuck on day 7 because recursion in J is possible but an advanced level incantation. Day 1 was five short lines of code for Part One and another two lines for Part Two. Each line of code needed four or five long lines of documentation.
- nsxwolf 3y agoWhat's the story behind those characters? Did old APL machines have custom keyboards?
- hvs 3y agoThey weren't really "APL Machines" but computers used to run APL like IBM's APL2 had special keyboards like: https://www.clickykeyboards.com/product/1989-ibm-model-m-1391401-made-by-ibm-with-apl-keys/ https://www.clickykeyboards.com/product/1989-ibm-model-m-139...
- nsxwolf 3y agoLooks like Unicomp even makes a Model M with APL keycaps: https://www.pckeyboard.com/page/product/00UA41P4A https://www.pckeyboard.com/page/product/00UA41P4A
- kens 3y agoAn APL keyboard typically wasn't exactly a custom keyboard, but a standard keyboard with APL characters accessible through modifier keys. Often there were adhesive labels on the front of each key showing the special characters or you could get custom keycaps that had the special characters printed on the front. And of course many of the special characters were created through overstrike rather than separate keys. Way back, I programmed in APL on a DECWriter that had support for APL characters.
- cmrdporcupine 3y agoI have a keycaps set imitating the classic Space Cadet keyboard (from Symbolics Lisp workstations). The Space Cadet had APL tops and fronts [1], but these caps only have the tops presumably because the cost to get keycaps printed on the fronts would be way too high. Frustrating though. I've thought about getting the rest printed on clear plastic adhesive. [1] https://en.wikipedia.org/wiki/Space-cadet_keyboard#/media/File:Space-cadet.jpg https://en.wikipedia.org/wiki/Space-cadet_keyboard#/media/Fi...
- Jtsummers 3y ago
- deleted 3y ago[deleted]
- NikkiA 3y agoSlightly annoying that that site doesn't accept ι (iota) typed normally for some reason (it expects the U+2373 ⍳ 'APL iota', which isn't anywhere as easy to type)