Tips and Tricks

This category collects practical Tips and Tricks for working with Dyalog APL day to day: customising the session and IDE, keyboard shortcuts and input methods, and techniques for squeezing more performance out of your code, including flat-array alternatives to nested data. Expect concrete, applied advice rather than language theory.

Making the IDE My Own – Part 2 (Mostly Windows)

In my previous post, I laid the groundwork for extending the development environment by running a collection of small functions at startup time. If... Read

Hashing It Out: Lookup Performance in Dyalog APL

Sometimes it seems that I have the attention span of a cocker spaniel puppy. I start to look at one thing, and then something pops up to distract me and I... Read

Working with LLMs and Dyalog

Working with an AI coding “agent” can make us more productive by automating boiler plating, helping with testing, and so on. LLMs are very good at... Read

Making the IDE My Own – Part 1

Sometimes I want additional functionality in the IDE. Over the years I have collected a small collection of “tweaks”. I have a single tidy folder of small... Read

Taking Back Ctrl: Keyboard Shortcuts in the Dyalog IDEs

In this blog post post I describe: I don’t personally use the official Dyalog IME for Microsoft Windows as my daily APL input method. My only complaints... Read

Enhanced Debugging with Function Keys – Evaluate selection

See also Enhanced Debugging with Function Keys. When tracing through a complex dfn and reaching a guard (condition:result), I am often wary of tracing into... Read

Towards Improvements to Stencil

Background The stencil operator ⌺ was introduced in Dyalog version 16.0 in 2017. Recently we received some feedback (OK, complaints) that (a) stencil does... Read

Enhanced Debugging with Function Keys

Sometimes I want an additional functionality in the IDE. (Are you a RIDE user? We’ll cover that too!) For example, the other day, I was tracing through... Read

I-Beam Mnemonics

I-Beam (⌶) is an operator that takes as its operand a numeric code and derives a function which isn’t really considered to be part of the APL language... Read

Loops, Folds and Tuples

For-loops Given an initial state defined by a number of variables, a for-loop iterates through its argument array modifying the state.     A←... ⋄... Read

Quicksort in APL Revisited

A message in the Forum inquired on sorting strings in APL with a custom comparison function. First, sorting strings without a custom comparison function... Read

Zero-length Regular Expression Matches Considered Harmful

I was asked by a colleague why ⎕S reports two matches in the following example: ('\d*'⎕S 0 1)'321' ┌───┬───┐ │0 3│3 0│... Read

Three-and-a-bit

The most obvious expression for computing π in APL is ○1. But what if you can’t remember how ○ works, or your O key is broken, or you feel like... Read

Solving the 2014 APL Problem Solving Competition – it’s as easy as 1 1 2 3…

The winners of the 2014 APL Problem Solving Competition were recognized at the Dyalog ’14 user meeting and had a chance to share their... Read

A Speed-Up Story

The first e-mail of the work week came from Nicolas Delcros. He wondered whether anything clever can be done with ∘.≡ on enclosed character strings. I... Read

Creating Shortcuts (Microsoft Windows)

At Dyalog, a developer not only needs access to all of the readily available editions of the interpreter but also to earlier versions that are no longer... Read