Differences between revisions 1 and 13 (spanning 12 versions)
Revision 1 as of 2008-02-26 12:50:21
Size: 655
Editor: anonymous
Comment:
Revision 13 as of 2014-02-17 10:23:29
Size: 1586
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
The simplest way to do this in APL is by starting APL and typing this: = Hello world =
Line 3: Line 3:
{{{⎕←'Hello World!'}}} Many programming language manuals start by showing how easy it is to write a "Hello world" program in that language. In APL we pride ourselves with the shortest ... start APL and type:
Line 5: Line 5:
However, for the rest of the world this might not qualify as a program. Aplers are used to the idea of using the session as an input/output interface. Others might not be. In mswindows for instance a program is something we can call from the '''Run...''' dialog box. To get our program into a state where we can do that requires a choice between a number of alternative routes probably none of which will actually use {{{⎕←}}}. {{{'Hello World'}}}
Line 7: Line 7:
Here are three possible approaches: APLers are used to the idea of using the session as an input/output interface. The rest of the world might not consider that this qualifies as a program. In mswindows for instance a program might be defined as something we can call from the '''Run...''' dialog box or set up as a shortcut on the desktop.
Line 9: Line 9:
 * [:HelloWorldGui:GUI]
 * [:HelloWorldHtml:HTML]
 * [:HelloWorldOle:OLE]
To get our program into a state where we can do that requires a choice between a number of alternative routes. The easiest way is to create an APL workspace which executes 'Hello World' when loaded. Here's an example [[HelloWorldSession]] which uses Dyalog APL, but you can do something similar in most implementations of APL.

You may want to do something more sophisticated like writing a GUI application or creating an HTML web page. This can be very easy in APL, but the exact details vary from one APL vendor to another...

Here are a few possible approaches if you are using Dyalog APL:

 * [[HelloWorldGui|GUI]]
 * [[HelloWorldHtml|HTML]]
 * [[HelloWorldOle|OLE]]

Here are some possibilities if you are using APLX:

 * [[HelloWorldGuiAPLX|GUI using built-in classes]]
 * [[HelloWorldNetAPLX|GUI using .Net]]
 * [[HelloWorldHtml|HTML]]
 * [[HelloWorldOleAPLX|OLE]]

Here is a TCP/IP communications example using APL+WIN

 * [[HelloWorldTcpIp|TCP/IP Communications]]

CategoryHelloWorld - CategoryDyalog - CategoryAplx

Hello world

Many programming language manuals start by showing how easy it is to write a "Hello world" program in that language. In APL we pride ourselves with the shortest ... start APL and type:

'Hello World'

APLers are used to the idea of using the session as an input/output interface. The rest of the world might not consider that this qualifies as a program. In mswindows for instance a program might be defined as something we can call from the Run... dialog box or set up as a shortcut on the desktop.

To get our program into a state where we can do that requires a choice between a number of alternative routes. The easiest way is to create an APL workspace which executes 'Hello World' when loaded. Here's an example HelloWorldSession which uses Dyalog APL, but you can do something similar in most implementations of APL.

You may want to do something more sophisticated like writing a GUI application or creating an HTML web page. This can be very easy in APL, but the exact details vary from one APL vendor to another...

Here are a few possible approaches if you are using Dyalog APL:

Here are some possibilities if you are using APLX:

Here is a TCP/IP communications example using APL+WIN

CategoryHelloWorld - CategoryDyalog - CategoryAplx

HelloWorld (last edited 2017-02-16 18:45:23 by KaiJaeger)