Differences between revisions 6 and 7
Revision 6 as of 2009-01-09 13:22:40
Size: 1291
Editor: SimonMarsden
Comment:
Revision 7 as of 2009-01-09 14:13:12
Size: 1369
Editor: SimonMarsden
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
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. 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 7: Line 7:
To get our program into a state where we can do that requires a choice between a number of alternative routes. Using the session (as above) will work in all versions of APL, but you may want to do something more sophisticated like writing a GUI application. This can be very easy in APL, but the exact details vary from one APL vendor to another... 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. This can be very easy in APL, but the exact details vary from one APL vendor to another...
Line 11: Line 13:
 * [[HelloWorldSession|as above]]
Line 18: Line 19:
 * [[HelloWorldSessionAPLX|as above]]

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. 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:

CategoryHelloWorld CategoryDyalog CategoryAplx

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