Learn APL on the $5 Raspberry Pi
With Membership
Suggested price

Learn APL on the $5 Raspberry Pi

Your fast track from ideas to code

About the Book

APL has been around for decades, and it's still a popular tool for software development. Users love it because of its simple, terse syntax and its rich set of built-in functions.

Today the most widely used implementation is Dyalog APL.

You can run a free version of Dyalog APL on all the members of the Raspberry Pi family, including the new £4/$5 dollar Raspberry Pi zero.

You can also run free personal versions of Dyalog APL on Windows, other Linux computers, and Mac OS/X.

This introductory book has plenty of examples and code for you to try out. Written by an expert APL developer and instructor, it will give you a gentle introduction to one of the most powerful languages ever created.

If you're interested in scientific, financial or big data applications, APL's mathematical capabilities will help you build working code quickly. APL's lightning-fast array handling lets you build software that runs fast, too.

You can even take advantage of multiple CPU cores and write programs that share their work between multple networked computers.

You should read this book if you want to

  • find out what programming in APL is like
  • learn how to use the language effectively
  • decide if APL is appropriate for your project
  • take part in the Dyalog annual APL problem-solving competition

Dyalog APL comes with the SharpPlot package, and you'll learn how to create beautiful graphs to persent the reults of your calculations. Once you've worked through this introduction you can download other free materials to help you complete your mastery of APL.

Get started today!

About the Author

Romilly Cocking
Romilly Cocking

I'm a long-term lover of computing, robotics and AI.

I wrote my first program in 1958. I'm now semi-retired, but still learning, teaching, programming and building.

About the Contributors

Morten Kromberg
Morten Kromberg
Steve Freeman
Steve Freeman


Table of Contents

  • Introduction
    • Who should read this book
    • Early access
    • Online support
    • What you will learn.
    • Reasons to learn APL
    • Myths about APL
    • Reasons not to learn APL
    • APL power examples
    • The Try APL website
    • Running APL on your own hardware
    • Conventions in this book
  • Chapter 1
    • Getting started
    • Array programming without explicit loops
    • Assigning values to variables
    • A shortcut to counting
    • Illuminate your code - use comments
    • Catenate
    • System commands
    • Finishing your session
    • Exercises
    • The Dyalog APL keyboard
  • Chapter 2
    • More useful techniques
    • Plus Reduction
    • User-defined functions
    • APL Operators - reduction revisited
    • Another system command
    • Matrices
    • Rank
    • Monadic and Dyadic functions
  • Indexing
    • Indexing items from matrices
    • Indexed assignment
    • Exercises
  • Chapter 3
    • Character Data
    • Shape and reshape with character arrays.
    • Indexing character arrays
    • Catenate and Ravel revisited
    • Catenate and matrices
    • Specifying an axis
  • Appendix 1
    • Installing APL on the Raspberry Pi
  • Appendix 2
    • Installing and running APL on Windows, Linux and OS/X
  • About the author

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub