Mnemonics: Difference between revisions
(Move images to gallery) |
|||
Line 11: | Line 11: | ||
<source lang=apl inline>⌶</source> ([[I-beam]]) calls system services. APL was originally developed at [[IBM]], so system services were also IBM services. <source lang=apl inline>⌶</source> is an [[wikipedia:I-beam|I-beam]] and ''I-beam'' is pronounced almost identically to ''IBM''. | <source lang=apl inline>⌶</source> ([[I-beam]]) calls system services. APL was originally developed at [[IBM]], so system services were also IBM services. <source lang=apl inline>⌶</source> is an [[wikipedia:I-beam|I-beam]] and ''I-beam'' is pronounced almost identically to ''IBM''. | ||
<source lang=apl inline>⍋</source> and <source lang=apl inline>⍒</source> give the indices ([[grade]]s) needed to sort ascending and descending respectively, and look like an ascending and descending supersonic transport, respectively. | <source lang=apl inline>⍋</source> and <source lang=apl inline>⍒</source> give the indices ([[grade]]s) needed to sort ascending and descending respectively, and look like an ascending and descending supersonic transport, respectively. | ||
<source lang=apl inline>⌽</source>, <source lang=apl inline>⊖</source>, and <source lang=apl inline>⍉</source> [[reverse]] or [[transpose]] an array over a given [[axis]]. The <source lang=apl inline>○</source> part of the glyphs symbolise the array, while the line component (<source lang=apl inline>|</source>, <source lang=apl inline>\</source>, or <source lang=apl inline>-</source>) indicates the line across which the reversal/transposal is done. | <source lang=apl inline>⌽</source>, <source lang=apl inline>⊖</source>, and <source lang=apl inline>⍉</source> [[reverse]] or [[transpose]] an array over a given [[axis]]. The <source lang=apl inline>○</source> part of the glyphs symbolise the array, while the line component (<source lang=apl inline>|</source>, <source lang=apl inline>\</source>, or <source lang=apl inline>-</source>) indicates the line across which the reversal/transposal is done. | ||
<source lang=apl inline>⍟</source> looks like the cross-section of a tree log | <source lang=apl inline>⍟</source> looks like the cross-section of a tree log | ||
Line 23: | Line 21: | ||
<source lang=apl inline>⌹</source> is [[matrix divide]] with a <source lang=apl inline>⎕</source> symbolising a matrix and an inscribed <source lang=apl inline>÷</source> for "divide". | <source lang=apl inline>⌹</source> is [[matrix divide]] with a <source lang=apl inline>⎕</source> symbolising a matrix and an inscribed <source lang=apl inline>÷</source> for "divide". | ||
<source lang=apl inline>⎕</source> is the prefix for all [[system name]]s, and also also manages input from the console as well as output to the console. For that, it is a stylised console. | <source lang=apl inline>⎕</source> is the prefix for all [[system name]]s, and also also manages input from the console as well as output to the console. For that, it is a stylised console. | ||
<source lang=apl inline>/</source> and <source lang=apl inline>⌿</source> are also called "by" which can be remembered as reduce by. | <source lang=apl inline>/</source> and <source lang=apl inline>⌿</source> are also called "by" which can be remembered as reduce by. | ||
<gallery> | |||
File:Bristol Type 223 top-view silhouette.png|The [[Grade]] glyphs <source lang=apl inline>⍋</source> and <source lang=apl inline>⍒</source> look like [[wikipedia:supersonic transport|supersonic transport]]s. | |||
File:TreeLog.jpg|The [[Log]] glyph <source lang=apl inline>⍟</source> looks like a tree log. | |||
File:Computer console.jpg|The [[Quad]] glyph <source lang=apl inline>⎕</source> looks like a console. | |||
</gallery> | |||
== Pairing glyphs/functionality with their keyboard locations == | == Pairing glyphs/functionality with their keyboard locations == |
Revision as of 09:25, 18 October 2020
Mnemonics can assist with remembering the meaning of APL glyphs where on they keyboard they are found for typing them. Both of these skills are essential for an effective APL programmer. This article currently provides examples such aide-mémoires, but will be completed in due time.
Pairing glyphs with their meaning
⋄
(Diamond) separates statements. That is, no functions or operators can break through ⋄
, just as diamonds are virtually indestructible.
⌺
looks like a ⋄
-shaped Stencil laid on a piece of paper, ⎕
.
@
applies a function or substitutes elements at specific locations.
⌶
(I-beam) calls system services. APL was originally developed at IBM, so system services were also IBM services. ⌶
is an I-beam and I-beam is pronounced almost identically to IBM.
⍋
and ⍒
give the indices (grades) needed to sort ascending and descending respectively, and look like an ascending and descending supersonic transport, respectively.
⌽
, ⊖
, and ⍉
reverse or transpose an array over a given axis. The ○
part of the glyphs symbolise the array, while the line component (|
, \
, or -
) indicates the line across which the reversal/transposal is done.
⍟
looks like the cross-section of a tree log
⍱
and ⍲
have the Not glyph ~
on top of or overlaid on the Or glyph ∨
and And glyph ∧
respectively.
⌹
is matrix divide with a ⎕
symbolising a matrix and an inscribed ÷
for "divide".
⎕
is the prefix for all system names, and also also manages input from the console as well as output to the console. For that, it is a stylised console.
/
and ⌿
are also called "by" which can be remembered as reduce by.
The Grade glyphs
⍋
and⍒
look like supersonic transports.The Log glyph
⍟
looks like a tree log.The Quad glyph
⎕
looks like a console.
Pairing glyphs/functionality with their keyboard locations
Below is a US English APL keyboard layout (from Dyalog APL), annotated with short mnemonics. Some of the mnemonics are then fully explained.
⋄
begins new APL expressions just like ` button begins the main section of the keyboard.
⌺
is a modified version of ⌺
, so it is Shift+⋄
.
¨
applies a function to each 1 of the argument elements, so it is on APL+1.
⌶
looks like a Roman numeral 1, so it also lives on the 1.
APL development [edit] | |
---|---|
Interface | Session ∙ Typing glyphs (on Linux) ∙ Fonts ∙ Text editors |
Publications | Introductions ∙ Learning resources ∙ Simple examples ∙ Advanced examples ∙ Mnemonics ∙ ISO 8485:1989 ∙ ISO/IEC 13751:2001 ∙ A Dictionary of APL ∙ Case studies ∙ Documentation suites ∙ Books ∙ Papers ∙ Videos ∙ APL Quote Quad ∙ Vector journal ∙ Terminology (Chinese, German) ∙ Neural networks ∙ Error trapping with Dyalog APL (in forms) |
Sharing code | Backwards compatibility ∙ APLcart ∙ APLTree ∙ APL-Cation ∙ Dfns workspace ∙ Tatin ∙ Cider |
Implementation | Resources ∙ Open-source ∙ Magic function ∙ Performance ∙ APL hardware |
Developers | Timeline of corporations ∙ APL2000 ∙ Dyalog ∙ IBM ∙ IPSA ∙ STSC |
APL glyphs [edit] | |
---|---|
Information | Glyph ∙ Typing glyphs (on Linux) ∙ Unicode ∙ Fonts ∙ Mnemonics ∙ Overstrikes ∙ Migration level |
Individual glyphs | Jot (∘ ) ∙ Right Shoe (⊃ ) ∙ Up Arrow (↑ ) ∙ Zilde (⍬ ) ∙ High minus (¯ ) ∙ Dot (. ) ∙ Del (∇ )
|