A Programming Language: Difference between revisions
imported>Eric Evers (New page: APL APL: A Programming Languge, invented by Ken Iverson. It is a language influenced by mathematics in general and by arrays and vector mathematics in particular and is somewhat functiona...) |
imported>Eric Evers mNo edit summary |
||
Line 3: | Line 3: | ||
APL: A Programming Languge, invented by Ken Iverson. It is a language influenced by | APL: A Programming Languge, invented by Ken Iverson. It is a language influenced by | ||
mathematics in general and by arrays and vector mathematics in particular and is somewhat functional. | mathematics in general and by arrays and vector mathematics in particular and is somewhat functional. | ||
As a vector/array language it also had elements of parallel programming implicit in its syntax. | As a vector/array oriented language, it also had elements of parallel programming implicit in its syntax. | ||
APL was quite odd looking because it used many non-keyboard | APL was quite odd looking because it used many non-keyboard | ||
characters borrowed from mathematics, these characters were repurposed for programming operations. | characters borrowed from mathematics, these characters were repurposed for programming operations. | ||
Line 16: | Line 16: | ||
APL was an influential programming language used to psudo-code papers for industry and research | APL was an influential programming language used to psudo-code papers for industry and research | ||
in the 1960's and 1970's. APL started out as a compact psudocode only on paper for computer | in the 1960's and 1970's. APL started out as a compact psudocode only on paper for computer | ||
scientists to communicate. It was made flesh later, on an actual machine, hence its strange | scientists to communicate (1962). It was made flesh later,(1967) on an actual machine, | ||
character set. It was commonly joked that APL looked like a language for martians. | hence its strange character set. It was commonly joked that APL looked like a language for martians. | ||
-------------------------------- | |||
The following expression finds all prime numbers from 1 to R. In both time and space, | |||
the calculation is O(R²). -From Wikipedia | |||
(∼R∈R°.×R)/R←1↓ιR | |||
-------------------------------- |
Revision as of 18:23, 8 November 2008
APL
APL: A Programming Languge, invented by Ken Iverson. It is a language influenced by mathematics in general and by arrays and vector mathematics in particular and is somewhat functional. As a vector/array oriented language, it also had elements of parallel programming implicit in its syntax. APL was quite odd looking because it used many non-keyboard characters borrowed from mathematics, these characters were repurposed for programming operations. The oddity of its character set kept is from ever being very popular in practical circles. It is a very terse language and inspired its successor, the J programming language, which is type of ascii version of APL. To this day, APL and J still code the shortest versions of many algorithms(MDL,Miniumum Description Length theory). Readability is another issue.
History
APL was an influential programming language used to psudo-code papers for industry and research in the 1960's and 1970's. APL started out as a compact psudocode only on paper for computer scientists to communicate (1962). It was made flesh later,(1967) on an actual machine, hence its strange character set. It was commonly joked that APL looked like a language for martians.
The following expression finds all prime numbers from 1 to R. In both time and space, the calculation is O(R²). -From Wikipedia
(∼R∈R°.×R)/R←1↓ιR