Richard Stallman: Difference between revisions

Jump to navigation Jump to search
54 bytes added ,  21:54, 10 September 2022
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 3: Line 3:
'''Richard Matthew Stallman''', founder of the GNU Project, was an early adopter of APL, and used it to write a text editor as a high school student in the summer of 1969<ref>Stallman, Richard M. [http://www.lysator.liu.se/history/garb/txt/87-2-rms.txt "RMS Berättar"].</ref>. The same year, he also wrote a now famous rhyme:
'''Richard Matthew Stallman''', founder of the GNU Project, was an early adopter of APL, and used it to write a text editor as a high school student in the summer of 1969<ref>Stallman, Richard M. [http://www.lysator.liu.se/history/garb/txt/87-2-rms.txt "RMS Berättar"].</ref>. The same year, he also wrote a now famous rhyme:
<blockquote>Rho, rho, rho of X<br>Always equals 1<br>Rho is dimension, rho rho rank.<br>APL is fun!<ref>Stallman, Richard M. [https://stallman.org/doggerel.html#APL "Doggerel"]</ref></blockquote>
<blockquote>Rho, rho, rho of X<br>Always equals 1<br>Rho is dimension, rho rho rank.<br>APL is fun!<ref>Stallman, Richard M. [https://stallman.org/doggerel.html#APL "Doggerel"]</ref></blockquote>
This plays on the fact that <syntaxhighlight lang=apl inline>⍴X</source> gives the [[shape]] (length of each [[axis]]; "dimension") of <syntaxhighlight lang=apl inline>X</source> while <syntaxhighlight lang=apl inline>⍴⍴X</source> gives the [[rank]] (number of axes/dimensions) and since the number of axes is always a count, it is a single number, which has the shape <syntaxhighlight lang=apl inline>1</source> if a [[vector]], and <syntaxhighlight lang=apl inline>⍴</source> always returns a vector:
This plays on the fact that <syntaxhighlight lang=apl inline>⍴X</syntaxhighlight> gives the [[shape]] (length of each [[axis]]; "dimension") of <syntaxhighlight lang=apl inline>X</syntaxhighlight> while <syntaxhighlight lang=apl inline>⍴⍴X</syntaxhighlight> gives the [[rank]] (number of axes/dimensions) and since the number of axes is always a count, it is a single number, which has the shape <syntaxhighlight lang=apl inline>1</syntaxhighlight> if a [[vector]], and <syntaxhighlight lang=apl inline>⍴</syntaxhighlight> always returns a vector:


<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
Line 16: Line 16:
       ⍴⍴⍴X
       ⍴⍴⍴X
1
1
</source>
</syntaxhighlight>


== References ==
== References ==

Navigation menu