Main Page: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
(logo vote ad)
(voting ended)
Line 4: Line 4:
| style="background:#f9f9f9;border:1px solid #ddd;" colspan="2" |
| style="background:#f9f9f9;border:1px solid #ddd;" colspan="2" |
{| style="border-spacing: 1em;"
{| style="border-spacing: 1em;"
| colspan=2 | <h2 style="text-align:center;margin:0;background:#eeeeee; border:1px solid #ddd; color:#222; padding:0.2em 0.4em; font-size:120%; font-weight:bold; font-family:inherit;"><span style="display:inline-block">We're in the process of choosing</span> <span style="display:inline-block">a universal vendor-agnostic logo for APL.</span></span> <span style="display:inline-block"><span style="display:inline-block">Head to the [[APL logo]] article</span> <span style="display:inline-block">for instructions on how to vote!</span></h2>
|-
|-
| style="width:50%;text-align:center;" | <span style="font-size:xx-large">Welcome to [[APL Wiki]],</span></br>
| style="width:50%;text-align:center;" | <span style="font-size:xx-large">Welcome to [[APL Wiki]],</span></br>

Revision as of 17:02, 14 February 2022


Welcome to APL Wiki,

458 articles about APL that anyone can edit

APL is an array-oriented programming language. Its natural, concise syntax lets you develop shorter programs while thinking more about the problem you're trying to solve than how to express it to a computer.

Running APL

Traditionally a commercial language, quite a few implementations are now free without feature limitations, several can be tried online, and many are open source.

Running APLTry APL online

Hello world

Taking up a new programming language can be a daunting task. While it can appear cryptic at first, you can learn to read, write and remember APL with little effort. There is plenty of material to help you in the process.

IntroductionsLearning resourcesLanguage overview

Who uses it?

APL is used by both hobbyists and application developers. There are active user groups all around the globe, many of these hold regular in-person meet-ups. There are also multiple online chat rooms and forums.

Case studiesJob listingsCommunity overview

Contributing

APL Wiki is an online open-content wiki; that is, a voluntary association of individuals and groups working to develop a common knowledge resource. The structure of the project allows anyone with an Internet connection to alter its content.

How to contributeNew pages Wanted pages

Examples

APL's terseness means that substantial programs are expressible in a small space, relative to many other programming languages. Below are just a taste. Many more, and fully explained, examples are in the simple examples article.

Split text by delimiter

With the introduction of tacit programming, many functions can be expressed in fewer characters than even the shortest fitting name. For example ≠⊆⊢ is but three characters, while you would need five for the name Split:

Try it now!

      ','(≠⊆⊢)'comma,delimited,text'
┌─────┬─────────┬────┐
│comma│delimited│text│
└─────┴─────────┴────┘
Works in: Dyalog APL

Full explanation…

Conway's "Game of Life"

John Scholes is famous for the following implementation of Conway's Game of Life:

Try it now!

      ⎕←world←2 2 2 2⊤0 12 5 2 4 1
0 1 0 0 0 0
0 1 1 0 1 0
0 0 0 1 0 0
0 0 1 0 0 1
      {↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵} world
1 1 0 1 0 0
0 1 1 1 0 0
0 1 0 1 1 0
0 0 1 0 0 0
Works in: Dyalog APL, ngn/apl

Full article…

Further simple examplesAdvanced examples