Get the latest tech news

TinyAPL part 1: Introduction and Arrays


In this series of articles, I will implement a simple APL dialect named TinyAPL in Haskell.

I've been learning APL for the past year and since the first day I've been wondering how difficult it might be to write an interpreter for a simplified dialect, named TinyAPL. I want to start by implementing the part I'm most interested in, that is, a representation of APL arrays, functions and operators in the Haskell typesystem. Because we cannot easily require that the invariant holds, I'll implement some helper functions to construct arrays.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of arrays

arrays

Photo of introduction

introduction

Related news:

News photo

Remembering the controversial iOS 7 introduction

News photo

Programming in Martin-Lof's Type Theory: An Introduction (1990)

News photo

Wavelet Trees: An Introduction (2011)