2 ms·
I think I can kind of grasp why the Ackerman function is a good example of the language, but I feel it falls off a common cliff in programming exercises. It is
by taeric 9y ago
I think I can kind of grasp why the Ackerman function is a good example of the language, but I feel it falls off a common cliff in programming exercises. It is too far off of things that I will ever actually find myself programming for me to really grok it quickly. Which means often when I thought I understood it, I had a few misunderstandings.
To that end, I'm not sure how to take some of this letter. I don't take the claim that tools shape the users as a criticism directly. Indeed, it seems to be somewhat favorable with the violin example there.
So, the question then, is in what way does APL shape its users? If it is to lament not being able to easily type and share their programs without a specialized terminal, it is hard to argue against the point. Indeed, that I had to be given a glossary to even attempt to read the program is baffling to me.
My guess is APL also helps build the mental muscles to shift things on a stack and compute on them. I recall having that ability from the early HP calculators did seem helpful in ways I couldn't express. Are there other benefits?
- TheOtherHobbes 9y agoThe fact that APL uses special characters is almost completely arbitrary. It could trivially be turned into the usual pseudo-English syntax by replacing all the single-character symbols with conventional ASCII keywords. (As in J, etc.) Of course it wouldn't be as dense then, and the distance between the keywords and the mathematical notation they're based on would be greater. If that's the only reason EWD didn't like APL, it's a rather silly reason. It's also wrong. If anything, a couple of centuries of mathematical tradition suggest it's easier to reason about logic and formal correctness with terse arbitrary symbols than with English keywords, and that the terseness makes it easy to write down dense concepts that would be much less elegantly expressed in pseudo-prose. You have to learn the symbols to do math at that level, and most people don't find the learning all that hard. Given that you have to learn new keywords in every language anyway, it's not a huge stretch to learn some symbols instead. And of course after you do that there is absolutely no reason not to write and check code on paper, if you happen to think that's important.
- taeric 9y agoThis seems somewhat dishonest. It goes out of its way to introduce a new dense language that is just as far from the original math. The Ackerman function is demonstrative of that. I had to consult the wiki page to see what it actually did. The argument isn't to be against notation. But the most common hurdle to apl that he saw was complaints on lacking a specific terminal. If that is truly needed, maybe a change to not need the terminal would have been a wiser choice?
- JdeBP 9y agoThat is of course to implicitly accept that the criticism is in fact valid. It is rebutted later on the page, below the letter, with an argument that, in a modern form, would be something akin to You would reasonably expect a visiting professor teaching Web design to complain about the lack of a WWW browser.