9 ms·
Notation as a Tool of Thought (1979) [pdf]
- deleted 5y ago[deleted]
- narush 5y agoCool paper - thanks for posting! I love the typesetting of the math in these old papers - I have no idea how it was done, but it's ~good vibes~ for me. If you're interested in reading a more recent take on notation, check out this post [1] by Terence Tao on MathOverflow. It's pretty cool, and a shorter read than this PDF - if you're in a rush. While I'm posting overflow questions I like, check out this gem [2] on parsing HTML with a regex. [1] https://mathoverflow.net/questions/366070/what-are-the-benefits-of-writing-vector-inner-products-as-langle-u-v-rangle/366118#366118 https://mathoverflow.net/questions/366070/what-are-the-benef... [2] https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454 https://stackoverflow.com/questions/1732348/regex-match-open...
- abainbridge 5y ago> I love the typesetting of the math in these old papers I agree except that the first thing the paper does is define "1" to be a function that "produces a vector of the first N integers". Highly confusing. It turns out that symbol isn't a "1" and rather is a weird squiggle that unfortunately looks like one.
- adrian_b 5y agoIt should be the Greek letter iota (i.e. I from indices). Besides iota, APL uses frequently the Greek letter rho (i.e. R from rank; rho applied once gives a vector with the array dimensions and applied twice it gives the dimension of the rho vector, i.e. the tensor rank of the array).
- deleted 5y ago[deleted]
- xigoi 5y agoInteresting. I don't think "ι" looks like "1" at all.
- selfhoster11 5y agoIncidentally, what font is being used for the main text?
- civilized 5y agoAPL is a write-only language. [1] This will be a controversial statement to devotees, but there's a simple argument that should clarify why this is true: 1. APL's inventor claims that APL is a tool of thought. Specifically, it is designed to facilitate the development of algorithms. 2. Tools of thought, like mathematical notation or writing in general, are used wherever people think. 3. When people think about algorithms, they write code or pseudo-code. 4. Thus, if APL were truly a tool of thought, it would be adopted as a pseudo-code. Academics would use it to more easily, concisely, and precisely express algorithms and programs. Software engineers would use it in their whiteboard planning. Etc. 5. In reality, essentially no one uses APL as a pseudo-code. Even by its devotees, it used exclusively as a programming language. The process of coding something into APL's idiosyncratic logography can only happen after the idea is already clear by other means. And virtually no one finds themselves understanding an algorithm via APL code which they did not already understand via more accessible languages or pseudo-code. 6. Therefore APL is not a tool of thought. On the contrary, it is what its notation indicates to virtually everyone who sees it: a write-only language. Admittedly, there's some appeal in this idea that a super-concise notation might be a sort of life-hack for thinking about algorithms. If you could just get your brain to think in this notation, all sorts of new concepts would be accessible to you! But that's just not how reality has unfolded, at least in the case of APL. Perhaps there is a yet-undiscovered notation that truly realizes the promise of a Tool of Thought about algorithms. But I have no idea what it would be. This letter from Dijkstra and the discussion underneath it [2] further strengthens the argument above. Note how APL is marketed as a tool of thought, but those who would teach it are distressed at the idea of teaching it without a terminal to execute it on. As Dijkstra notes, this is inconsistent with what we'd expect from a true tool of thought. Such a thing should have no trouble expressing its appeal through writing. [1] https://en.wikipedia.org/wiki/Write-only_language https://en.wikipedia.org/wiki/Write-only_language [2] https://www.jsoftware.com/papers/Dijkstra_Letter.htm https://www.jsoftware.com/papers/Dijkstra_Letter.htm
- pfortuny 5y agoIt may be a tool but you know? Jewelry hammers are also tools but too specific to be used by many. Guess the same happens with APL.
- 5y ago
- tannhaeuser 5y ago(1979)
- abainbridge 5y agoI think this is a fascinating subject that touches on how human general purpose intelligence works. I've spent decades working with C like languages and by now I find them hugely helpful thinking tools. I did some optimization work on a bilinear bitmap upscaler recently [1]. There were times in the middle of that work where I felt like I was sitting watching someone else do it for me. Not physically watching, but more like a part of my brain was doing it automatically. The amount of state in scope at once is too big to fit into my working memory (maybe I'm weak at this), so the work has to be symbolic manipulation. It feels like there are patterns in the symbol manipulation that my brain can do with minimal effort. Somehow the result is that I can write (hopefully) correct code that is beyond my ability to comprehend without the notation. The fact that I don't understand how I understand it contributes to the feeling that someone else wrote it for me. The problem I have looking at APL is that it doesn't look like it would help with this kind of work. The examples in the paper are all mathematical and abstract. I'd like to see some real-world practical examples, where performance matters, IO is fiddly and memory layout is part of the API. And instead of the problem domain being "differentiating a polynomial", I'd rather it was decoding the Huffman data out of a JPEG, or implementing a video game's collision detection system. My feeling is that C like notations are better for that type of thing. Maybe that isn't what APL is supposed to be good at. However, the paper starts by saying APL is needed because maths notation is not universal. [1] https://stackoverflow.com/a/69633678/66088 https://stackoverflow.com/a/69633678/66088
- abainbridge 5y agoOne possible reason for me not thinking APL is a good notation is that it seems to avoid assigning names to things. I believe good names are a vital tool for a thinking notation. In my bilinear upscaler example, I was initially struggling to understand the code I had found on the web. The variable names were all things like "x1a", "x2". I changed them to things like "srcX" and "weightX". That helped a lot.
- abainbridge 5y agoAnd another: types. They seem to be under emphasised in APL. In my bilinear example the original code had lots of "(pixel >> 8) & 0xff" kinds of things to access the colour components. I created a type to allow those to become "pixel.g". That immediately made the code feel easier to understand. (Pleasingly it made the code run faster too).
- alexpetralia 5y agoRelated: https://github.com/hypotext/notation https://github.com/hypotext/notation
- swayvil 5y agoConsider that without a good tool it can be hard to think about or discuss certain subjects. (And thus they become, to a degree, invisible.) For example, I have seen conversations where altered states of consciousness are discussed. Drugs, meditation, etc. I've seen it characterized various ways via cartoons, impressionistic drawings, frames from movies. But never really well done. Such an important subject. But really no good tool for talking/thinking about it. Such a tool would be a class of invention. A variety of technical writing. Consider the creative metaphors used in Physics for talking about strange subjects like time, space, gravity. Consider the "Feynman Diagram".