Employee Spotlight: Asher

Our newest developer, Asher, has been with us for more than a year now! In the time since we welcomed Asher, he has quickly settled in and worked on many diverse projects.

On the technical side of things, Asher has made some great progress on the performance of certain parts of the interpreter. At last month’s Dyalog ’26, Asher presented the work that he’s been doing on the performance of certain primitives, as well as the system functions for ingesting data formatted as CSV and array notation. Since then he’s also implemented a promising optimisation for ⎕JSON import, which will be available in Dyalog v22.0.

In addition to his performance work, Asher has been expanding our testing of the interpreter. “Whenever I write APL code for fun (which I often do!), that’s an opportunity for a new interpreter test” he says. He has also contributed to the Ullu project and increased the coverage of the interpreter’s fuzz tester. Testing is only one aspect though – Asher has invested a lot of time in fixing issues as they arise, making future versions of the interpreter more robust.

In the real world, we’ve sent Asher all over the place to talk about Dyalog. His first contracted day of employment was spent at DYNA Fall 2025 in New York City. He’s subsequently presented at DYNA26 and APL Germany (as well as Dyalog ’26).

That’s not all that Asher has been doing to tell the world about APL. He has also written posts for the Dyalog blog, covering APL programming techniques, events in the programming world, and even explaining a voting system by implementing it in APL.

Dyalog Ltd is unlike any other company, and everybody has a different experience settling in. Asher has this to say:

The independence we have at Dyalog Ltd really suits me. I’m free to explore and discover the things we didn’t know we needed. Some of my best work started that way! The biggest difference with my work at Dyalog Ltd, compared to my academic and hobbyist work, is the stakes. I know that the code I’m writing could be supporting applications for many years to come. I was worried that pressure would be suffocating, but instead it motivates me to ensure quality in everything I’m doing. The fact that there are users relying on us gives me a sense of purpose.

We look forward to seeing what Asher achieves in the years to come!

Welcome Jasmin Oriane

Jasmin – teacher, bagel shop owner, mother of three boys, PA/office manager, and now handling accounts at Dyalog Ltd!

Quite the journey.

Jasmin’s career began by studying to become a teacher, after which she spent several years working with children with disabilities. She loved this role, and it taught her a lot about patience, organisation, and finding creative solutions.

Then life took a delicious detour…when her favourite bagel shop in Berlin came up for sale, she decided to take it over! The official reason was a new challenge but the unofficial reason was much simpler – it was so that she could provide her son with his favourite food whenever he wanted it.

A few years later, while visiting a friend in Denmark, she fell in love with Copenhagen. In particular, she was attracted to the light over the harbour, the bikes everywhere, and the bakeries and the sea being so close. She packed up and moved, bringing her three boys with her.

In Denmark, she worked mainly as an Office Manager and PA, keeping other people’s busy lives and offices running smoothly. Having decided it was time for a change of direction, she joined Dyalog Ltd to help with accounts.

Jasmin did not know anything about APL before she started, and feels that all she knows now is that some aesthetically nice glyphs help us run this business! However, she is learning a little more every day, and is very grateful for a team that explains things patiently.

Outside work, Jasmin loves spending time with friends over good food, doing yoga, discovering the latest bakeries, and taking long walks by the sea. But what she really looks forward to is watching her boys play basketball. She is convinced that every close game shortens her lifetime by a couple of days, but she still would not miss one for anything. She also loves helping the team organise their events, which keeps her busy in a fun way.

Her only guilty pleasure is her collection of shoes… currently at 83 pairs and still counting…

Making the IDE My Own – Part 3 (Only Windows)

In Part 1, I built the machinery that runs a folder of small functions at startup, and in Part 2 I used that machinery to tune the Microsoft Windows IDE’s font, zoom, and keyboard shortcuts. Two extensions remain, and both are about information flowing in and out of the Session at a glance: one makes the title bar tell me exactly what I’m working with, and the other lets me drop things straight onto the Session.

What Am I Dealing With?

As mentioned in Part 1, the Session titlebar includes ⎕WSID by default, but setCaption solves another problem of situational awareness. I test various versions of many things, in particular, Link (I’m one of its main developers) and .NET (which Link uses to keep an eye on the file system). To distinguish my active interpreters, which often use disparate versions of Link and/or .NET, setCaption adds their version information to the Session titlebar while also abbreviating the interpreter characteristics:

∇ setCaption
 ⍝ Set Session caption to include Link and .NET versions
  ⎕SE.Caption←'{WSID} {NSID} - ',8↓¯1↓,(
      '(\d+\.\d+)[.\d]+'
      ' (\d*)(-bit)? (.)(nicode|lassic), BuildID \w+'
      '\.NET +\.NET( Framework)?'
      '  *'
  )⎕R(
      '\1'
      '\3\1'
      '.NET'
      ' '
  ),1 3 6⊂⍛⌷⎕SE.UCMD'TOOLS.Version'
∇

{WSID} and {NSID} are caption template fields that Dyalog keeps current in real-time, namely ⎕WSID (which autoLink sets to a fresh, timestamped working directory, as explained in Part 1) and ⎕THIS (the current namespace). After the dash comes the compact version string. I run ]TOOLS.Version, then 1 3 6⊂⍛⌷ plucks lines 1 (interpreter), 3 (Link), and 6 (.NET) out of the report.

An aside on ⊂⍛⌷: I usually want to select individual elements (major cells) rather than index along multiple axes. I’ve suggested adding this as a select primitive using the glyph ⊇; until that is implemented, to achieve this, the left argument of ⌷ needs to be enclosed. I have, therefore, learnt to read ⊂⍛⌷ as a single unit: select.

A small collection of regular expressions in one ⎕R then tidies the three lines – it strips the build ids, abbreviates “Unicode”/“Classic” to a single letter followed by the bits, squeezes runs of spaces, and collapses “.NET Framework” to “.NET” (“Framework” is implied if the version is 4.x):

Screenshot of Adám's Session showing lots of information in the titlebar.

My Session with lots of information in the title bar. Click to enlarge.

Drag, Drop, Done

I often want to import a function, some data, or even an entire source folder into the workspace. However, I was frustrated by the many ways in which this can be done:

  • ⎕FIX can read function/operator/object source files
  • ⎕CSV can read CSV (Comma-Separated Values) files, but needs variant options set for TSV (Tab-Separated Values), and so on
  • ⎕JSON can parse JSON (and with a variant option, JSON5), but cannot read files, so I have to first use ⎕NGET
  • ⎕XML can parse XML, but also needs ⎕NGET
  • ⎕SE.Dyalog.Array.Deserialise which handles array notation, as above
  • Link does source folders

In general, how a file should be imported is clear from its file extension (for example, .aplf, .csv, .tsv, .json, .json5, .xml, .apla), unless it is a folder. So, I wrote down all the file types I could think of with how I’d get their contents into Dyalog. That became the experimental ]Get user command, which I gave the slogan get pretty much anything from pretty much anywhere. Watch Rich Park’s webinar for an explanation of what it can do, or enter ]Get -?? in the Session for its documentation.

extStatusBar makes the status bar a drop target:

∇ extStatusBar
 ⍝ Extend Status bar to allow dropping files and folders
  ⎕SE.cbbot.bandsb1.sb.(AcceptFiles onDropFiles)←1 'Get'
∇

AcceptFiles←1 opts the status bar in, and onDropFiles←'Get' says which function to run when something lands on it:

∇ {msg}←Get(object event files item shift)
  :If 9≠40 ⎕ATX'get'
      {}⎕SE.UCMD'Get ]get'
  :EndIf
  ⎕←msg←# get.Get files,shift
∇

The function header decomposes the event message, although we only need two of the elements:

files
The list of dropped files and folders.
shift
The shifting state of the keyboard at the moment of the drop, encoded as a sum of 1 for Shift, 2 for Ctrl, and 4 for Alt (so 3 is Ctrl+Shift, and so on).

The first time the handler runs, the get namespace it relies on won’t be present – 40 ⎕ATX'get' won’t report 9 for “namespace” – so I fetch it by running the ]Get user command on itself! Thereafter, get.Get brings the dropped files into the workspace root (#). Fortunately, get.Get already used an encoded parameter, so I didn’t need to map the shifting state, just pass it on:

  • Holding Shift is equivalent to ]Get -sync: for example, a Link.Create rather than a plain Link.Import, which means that edits in the workspace are written back to disk (and vice versa where possible).
  • Holding Ctrl is ]Get -unpack: the contents are put directly into #, instead of into a namespace named after the dropped file or folder.
  • Alt does nothing yet, but I’m thinking of making it ask you how to import: ]Get allows a filename (or URL) to be followed by a colon and a file extension that overrides the existing extension. For example, ]Get data.csv:txt will import a CSV file as text rather than as a matrix. Let me know in a comment if you have a better idea!

With this, I can drop files, folders, and even zip files of data or code on the status bar, and everything simply appears in the workspace. Magical!

Screen recording showing drag-and-drop in action

Drag-and-drop of a data file, two code files, and a folder of code files.

Keep It Up!

That rounds out the series. In Part 1 I laid down the startup machinery, in Part 2 I tuned the font, zoom, and keys, and here I’ve made the title bar informative and the status bar a drop target.

In my next, and final, entry in this series, I’ll show you how to simplify some of this code using the new features of the recently released Dyalog v21.0. In the meantime, the easiest way to install everything is to paste all the function definitions from this series into a clear workspace and enter (with the directory that’s appropriate for you):

]LINK.Export # C:\Users\adam\Documents\Dyalog APL-64 20.0 Unicode Files\StartupSession\seext

Adding the next idea is a matter of writing a lowercase niladic function and dropping it in the folder (maybe together with some uppercase utilities for the functionality). And there is always a next idea; while writing these posts, I started thinking that I’d quite like to add a toolbar button that toggles ]Rows on and off…

Please comment if this was useful, and let me know if you have an idea for additional Session extensions!

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 you’ve not read that post yet, I recommend doing so before you continue!

So far, my extensions have been generally applicable. I’ll move onto things that are specific to the Windows IDE, as that’s where I spend my days. That said, it might still be interesting to you even if you don’t use Dyalog on Microsoft Windows. For example, shortcut keys can be configured in Ride, and the font can be used in Ride and in your terminal emulator of choice.

A Font Face I Can Read

The first thing any APLer wants is a font that renders the glyphs properly and at a comfortable size. You might expect to set this in a configuration parameter – but you can’t; the session font and size are not configuration values. The traditional route is to choose them from the UI and then save the session file, but it is easy to automate making these choices every time we start. For the font, setFont drives the real controls, exactly as if I had used them with mouse and keyboard:

∇ setFont
 ⍝ Set font face and size
  :With ⎕SE.cbtop.bandtb5.tb
      font.Text←'APL387 Unicode'
      ⎕NQ font'Select'
      size.Value←17
      ⎕NQ size'Change'
  :EndWith
∇

⎕SE.cbtop.bandtb5.tb is the toolbar band that holds the font name combo (font) and the size spinner (size). For each control, you need to assign the new choice, then fire a Select event to make the change take effect.

Did you spot the 7 instead of 5? You might find it strange that I don’t use the traditional default APL385 Unicode font. I personally prefer the new APL387 Unicode, which was drafted by a professional type designer as a successor to the venerable APL385 Unicode. The new font is now being refined and the up-to-date revision is installed with every new build of Dyalog v20.0. By the way, Madeline Vergani was the very first applicant to receive a grant from The APL Trust, and it was for this project. It is, in my opinion, the cleanest our beloved glyphs have ever looked:

Screenshot comparing APL385 and APL387

Comparison of APL385 Unicode and the new APL387 Unicode.

In the above image, the first two lines below the titles illustrate APL387’s superior distinguishing of glyphs that could potentially be confused, the next line shows APL387’s more consistent design, and the final line shows examples of where APL387 just has nicer glyph shapes.

In Ride, you can set the font face permanently in the Preferences:

Screenshot of Ride's Preferences dialog showing how to change APL font

Ride: Preferences>Style>”APL font”

In and Out

setFont also settled on a size, but where the face is a set-and-forget choice, the ideal size depends on the situation. When I show my APL session during a video call or presentation, I usually need to increase my Session font size; conversely, I sometimes want a smaller font size to get an overview of a large piece of code, a large array, or a text-form diagram printed into the Session. These contradictory requirements mean that I like having font size controls at my fingertips:

∇ extViewMenu;ZC
 ⍝ Extend View menu with Zoom items
  ZC←{(⊃⍵)⎕WC'MenuItem'(2⊃⍵)('Event' ⋄ 'Select' 'Resize',3⊃⍵)('Hint' ⋄ 4⊃⍵)('Accelerator' ⋄ 5⊃⍵)}
  '⎕SE.mb.view.sep'⎕WC'Separator'
  ZC¨(
      '⎕SE.mb.view.larger'  'Zoom &In'   1 'Make text larger (Ctrl+=)'  (187 2)
      '⎕SE.mb.view.smaller' 'Zoom &Out' ¯1 'Make text smaller (Ctrl+-)' (189 2)
  )
∇

ZC (for Zoom Create) is a small helper function that removes repetitive parts of the code. When the event specification has a third element after the event name and callback function, like 'Select' 'Resize' 1, the third element is used as the left argument to the callback function. That function is Resize in our case, which, like setFont, works on the native control. It uses the size spinner’s own list of sizes rather than guessing at point values:

∇ a Resize e
 ⍝ Resize Session font
  ;font;idx;new;sizes
  font←⎕SE ⎕WG'Font'
  sizes←⎕SE.cbtop.bandtb5.tb.size.Items
 
  idx←a+sizes⍸⍥{⌈⍵÷2}2⊃font
  new←sizes⊃⍨1⌈idx⌊≢sizes
 
  ⎕SE.cbtop.bandtb5.tb.size.(Value Thumb)←new idx
  ⎕NQ ⎕SE.cbtop.bandtb5.tb.size'Spin'idx
∇

This locates the current size’s location (with fuzzing) within the spinner’s Items, takes one step in the requested direction (while protecting against leaving the range), and writes it back into the control, then fires a Spin event so the session re-renders. Because the control owns the list of legal sizes, I can never land on one it wouldn’t have offered. Anyway, this is what my View menu looks like now:

Screenshot of Adám's View menu after running extViewMenu

What my View menu looks like after running extViewMenu

⎕PFKEY doesn’t reach Ride, but Ride’s own Preferences>Shortcuts accepts many of the same command codes if you’d like to reproduce the effect there; it allows you to assign any keystroke to an “F-key” too. (However, you don’t need to go through F-keys to have two keystrokes for a single action; Ride allows assigning multiple keystrokes to each action.) Ride also already has keyboard shortcuts for zooming in and out, and resetting the zoom:

Screenshot of Ride's Preferences dialog showing how to change font size

Ride: Preferences>Shortcuts>”font”

Function Keys Revisited

In 2018 I employed ⎕PFKEY to let the Tracer run up to a chosen line: I click on the line I’m interested in, which moves the text caret there, and the Tracer then executes up to that line and stops — a quick way to skip ahead to the part I actually want to inspect. In the 2020 follow-up I added the ability to select (part of) an expression in the Editor and have it executed in the session without (apparently) leaving the Editor. Both of those keys live on in setFKeys, alongside a good many friends (ignore the keystrokes mentioned in the comments for now – I’ll explain those in the next section):

∇ setFKeys
 ⍝ Set various F-keys
  ;PF
  PF←{}⊆⍛⎕PFKEY⍨
 
  5 PF' ' 'DB'                  ⍝ Mark for execution   F5
  6 PF'CP' 'JP' 'PT' 'ER' 'JP'  ⍝ Run selection in session  F6
 
  13 PF')' 'LL' '(' 'RL'  ⍝ Parenthesise left  Ctrl+0
  14 PF']' 'LL' '[' 'RL'  ⍝ Bracket left       Ctrl+]
  15 PF'}' 'LL' '{' 'RL'  ⍝ Brace left         Ctrl+}
 
  10 PF'BP' 'RM' 'TC' 'BP'       ⍝ Trace to here    F10
  34 PF'BP' 'RM' 'TC' 'BP' 'TC'  ⍝ Trace into here  Ctrl+F10
 
  43 PF'OP' 'IL'       ⍝ Insert open line below  Ctrl+I
  44 PF'ER' 'BK' 'RL'  ⍝ Execute and recall      Alt+Enter
 
  45 PF'BK'  ⍝ Ctrl+Z
  46 PF'FD'  ⍝ Ctrl+Y
 
  47 PF'Lw' 'DI'  ⍝ Delete word left   Ctrl+BkSp
  48 PF'Rw' 'DI'  ⍝ Delete word right  Ctrl+Del
∇

A word on the numbers: ⎕PFKEY programs numbered Programmable Function keys, but only some of them are literally function keys. So, while, for example, 5 and 6 are F5 and F6, numbers above 12 refer to shifted keys:

  • 13 through 24 are Shift+F1 through F12
  • 25 through 36 are Ctrl+F1 through F12
  • 37 through 48 are Ctrl+Shift+F1 through F12
  • 48 through 96 are as above, but while holding Alt

The whole function is held together by the first line: ⎕PFKEY takes the shortcut keys and symbols on the left and the F-key number on the right. However, I prefer to write the number on the left, so I assemble a tiny tacit function:

  • Commute (⍨) flips the arguments so I can give the number on the left.
  • Behind (⍛) allows nest (⊆) to ensure that the (new) left argument (the shortcut keys) is nested. This is so that a single code like 'BK' is treated as if I’d written ⊂'BK' – a small notational nicety that lets the single-code keys read as cleanly as the rest.
  • The leading {} swallows the returned result (the previous value for the F-key) so that the function is silent.

In Ride, some of these come pre-assigned. Many others can be constructed by typing key sequences into the input fields for PFn entries under Preferences>Shortcuts, where you can also assign any keyboard combination:

Screenshot of Ride's Preferences dialog showing how to change F-keys

Ride: Preferences>Shortcuts: “PF”

Keyboard Shortcuts

Options>Configure…>Keyboard Shortcuts allows us to assign custom shortcuts for the “keys”, up to number 48, to something more comfortable. That’s what I do with 13, 14, and 15; reassigning them to Ctrl+0, Ctrl+], and Ctrl+} for the three “wrap” keys (parenthesise/bracket/brace from here to the left), Alt+Enter to execute the current line and recall it for further tweaks (good for teaching), and Ctrl+Backspace and Ctrl+Delete to delete a word left or right (these are virtually a standard, but Dyalog’s IDE doesn’t have them as available commands).

Why am I assigning F-keys 45 and 46 to <BK> and <FD> when these actions can already be given keyboard shortcuts? Because they serve double (actually, triple!) duty: They both navigate the Session input history (and skip backwards/forwards in the Tracer) and Undo/Redo edits. In my head, those are completely different concepts, and everywhere else I use Ctrl+Z and Ctrl+Y for Undo and Redo, so I’d like to use them as such in Dyalog too — while simultaneously keeping the default keystrokes Ctrl+Shift+Backspace and Ctrl+Shift+Enter for navigating Session history and lines in the Tracer. By way of an unused F-key, I can have two keystrokes for the same shortcut!

Screenshot of Adám's Preferences window, showing many of the shortcuts involving the Ctrl key

My Preferences window, showing many of my shortcuts that use the Ctrl key.

To Be Continued…

So far in this post, I have tuned the font, put zoom controls within reach, and reprogrammed a batch of keys. In the next post of this series, I’ll enhance the Windows IDE title bar and status bar. In the meantime, the easiest way to install everything is to paste all the function definitions from this series into a clear workspace and enter (with the directory that’s appropriate for you):

]LINK.Export # C:\Users\adam\Documents\Dyalog APL-64 20.0 Unicode Files\StartupSession\seext

If any of this is useful to you, take it. If it doesn’t quite do what you want, adapt it. If you have an idea for additional Session extensions, let me know!

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 follow that until another distraction or tangent comes along and then…. well, you get the point. What started out as one blog post has morphed a few times into what you’re about to read!

Background and Original Goal

In a former life, I wrote an APL-based full-text search engine for searching legislative and regulatory texts. At the time, its speed rivalled any of the online search engines. In that governmental context, words like “the” and “of” have significance, for example, the “the” in “the white house” is significant, as are the “of” and “the” in “speaker of the house”. Most search engines would ignore those high-frequency “noise” words – mine couldn’t. My goal was to be able to search for such phrases without having to examine the data for the high-frequency words. I found this to be an interesting problem at the time (in the 1990s) and subsequently included it 25 years later as the 2015 APL Problem Solving Competition Phase 2 Applications Problem 2. My original idea for this blog post was to examine approaches to that problem.

The core of the problem was straightforward – you have a list of words (vector of character vectors) and a corresponding vector of frequencies for each word. We’ll call these two vectors Words and Freqs. For those interested, the source data I used for my recent effort came from a repository that tracks Wikipedia word frequencies. The task is to, for a given phrase, break the phrase up into individual words (we’ll call this words), look up words in Words, and use the indices to extract their frequencies from Freqs. This is basic APL, the sort of thing we do all the time: Freqs[Words ⍳ words]. If we want to consider the case where a word in words isn’t found in Words, we can append 0 to Freqs.

The source for Words and Freqs has 2,765,377 words. To emulate my original work done in the 1990s when we were using only ASCII characters, I decided to remove words containing non-ASCII characters. As a result, we’re left with 1,905,526 words.

Tangent #1 – ⎕CSV

If you’re interested in obtaining Words and Freqs yourself, you can download the raw data file and use ⎕CSV and a bit of code:

      (Words Freqs)←⎕CSV⍠('Separator' ' ')('Invert' 2)⊢'{your-path-here}/enwiki-2023-04-13.txt' ''(1 2)
      (Words Freqs)/⍨←⊂Words(∧/∊)¨⊂⎕C⎕A ⍝ limit words to ASCII alphabetics

⎕CSV can do some amazing things. Adám Brudzewsky made a very interesting video on Parsing content from text files using ⎕CSV.

From that list, the five most and least frequent words are:

      ⍉↑5(↑,-⍛↑)¨Words Freqs ⍝ look mom! I used ⍛ (behind)!
 the          186631452
 of            88349543
 in            76718795
 and           76039670
 a             54631147
 byodoinji            3
 houryuuji            3
 groendorpen          3
 witotoanas           3
 kimely               3

Interestingly, it seems a word must occur at least 3 times in Wikipedia to make it into this list. Okay, enough background information…

Distraction #1

In my testing, I found that, when words exceeded 3 elements, things slowed down a lot. For example:

      ]RunTime -c "Words⍳'the' 'big' 'dog'" "Words⍳'the' 'big' 'fuzzy' 'dog'"
  Words⍳'the' 'big' 'dog'         → 1.3E¯4 |       0%                                          
* Words⍳'the' 'big' 'fuzzy' 'dog' → 2.5E¯1 | +202400% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 

One would expect the performance to degrade linearly with the number of words. This appears to be true until you reach 4 elements in the right argument. Let’s create some test cases using lists of 1 to 6 words; since ‘the’ is the first word in the list, these searches should be as fast as possible.

      (p1 p2 p3 p4 p5 p6)←1 2 3 4 5 6⍴¨⊂'the'

Now let’s see what happens when we search for lists of 1 to 4 words:

      ]RunTime -c Words⍳p1 Words⍳p2 Words⍳p3 Words⍳p4
  Words⍳p1 → 2.1E¯2 |     0% ⎕⎕⎕                                      
* Words⍳p2 → 4.2E¯2 |  +102% ⎕⎕⎕⎕⎕⎕                                   
* Words⍳p3 → 6.2E¯2 |  +204% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕                               
* Words⍳p4 → 2.6E¯1 | +1147% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 

It looks linear for lengths 1 to 3, but jumps at length 4. If we look at lengths 4 to 6, we see a linear pattern, albeit considerably slower.

      ]RunTime -c Words⍳p4 Words⍳p5 Words⍳p6
  Words⍳p4 → 2.5E¯1 |  0% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕   
* Words⍳p5 → 2.5E¯1 | +1% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕  
* Words⍳p6 → 2.6E¯1 | +4% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 

What’s going on?! After a bit of research (I asked Morten!), I found that Dyalog is hashing Words extemporaneously when words exceeds 3 elements. Because the hash table is not retained, Words is hashed for each iteration in ]RunTime, causing the slowdown.

Since creating the hash table is a relatively expensive operation, it only makes sense to do if there is a mechanism to retain the table from which subsequent searches can benefit or the right argument is long enough to justify the upfront cost.

Tangent #2 – A Brief History of Hashing in Dyalog APL

First, a bit of terminology – search functions have a “principal” argument (the array being searched) and a “subject” argument (the items being searched for). In the example above, Words is the principal argument and words is the subject argument.

Hashing, in one form or another, has existed in Dyalog APL from its earliest days; it’s an industry standard technique. The interpreter decides, based on a number of factors, whether to hash an array extemporaneously or not. This hashing is an internal process and beyond the user’s control.

Dyalog v10.0, released in 2003, gave users the ability to bind a search function like ⍳ (index of), ∊ (membership), ∩ (intersection), ∪ (union), or ~ (without) to its principal argument, resulting in a derived function that will, on its first invocation, create and retain a hash table. The disadvantage of this is that the hash table is used exclusively for the bound search function. If you needed to use more than one search function you would bind them individually and each would have its own hash table.

Dyalog v15.0, released in 2016, introduced 1500⌶ (hash array). This allows the user to mark an array for hashing and, after the first search operation creates the hash table, the hash table is available for all applicable search functions. array←1500⌶array returns a copy of array that is marked for hashing. The hash is created on the first invocation of a search function on array. 1(1500⌶)array returns 0 if array has not been marked for hashing, 1 if array has been marked for hashing but the hash has not been created yet, and 2 if array has a hash table. For example:

      1 (1500⌶) Words ⍝ not marked yet
0
      Words←1500⌶ Words ⍝ mark for hashing
      1 (1500⌶) Words
1
      Words⍳⊂'the' ⍝ perform a search (this is a bit slow)
      1 (1500⌶) Words ⍝ Words now has a hash table
2
      Words,←⊂'thermoflocker' ⍝ add a new word to the tail end
      1 (1500⌶) Words ⍝ still hashed
2
      Words← 1 ↓ Words ⍝ drop something from the front end
      1 (1500⌶) Words ⍝ no longer hashed nor marked for hashing
0

The size of the hash table can impact performance. In general, larger hash tables result in faster lookups. Dyalog v19.0, released in 2024, introduced 8468⌶ (hash table size), which allowed the user to adjust the size factor of created hash tables. Its purpose was to allow users to evaluate the potential side effects of a proposed larger hash table size.

Hash tables in Dyalog APL work best with (mostly) static principal arrays. In general, modifying the array invalidates the hash and the array will need to be rehashed. However, there are three forms of modified assignment that will preserve and efficiently update the hash – notice that they all involve the tail end of the principal array.

      R,←Y    ⍝ only for scalar or vector R
      R⍪←Y
      R↓⍨←Y   ⍝ only for negative singleton Y

Dyalog v20.0, released in 2025, implemented hash tables that are 8 times (2*3) larger than previously and also removed 8468⌶. More on this later…

Why Hash?

The simplistic approach to search functions like ⍳ and ∊ is to perform a linear search, starting at the first element of the principal argument and iterating through its elements until you find a match. Obviously, elements that occur near the front will be found faster. In a worst case, searching for an element that’s not in the principal argument will have to search its entirety. Doing a linear search on the first word in Words and for a word not found in Words demonstrates this:

      ]RunTime -c "Words⍳⊂'the'" "Words⍳⊂'thermoflocker'"
  Words⍳⊂'the'           → 0.0E0  |    -100%                                          
* Words⍳⊂'thermoflocker' → 2.0E¯2 | +250200% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 

Hashing smooths out this variability and makes all lookups relatively similar in performance, not to mention considerably faster. Doing the same search on aWords, a hashed version of Words, shows this.

      ]RunTime -c "aWords⍳⊂'the'" "aWords⍳⊂'thermoflocker'"
  aWords⍳⊂'the'           → 2.1E¯7 |   0% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕     
* aWords⍳⊂'thermoflocker' → 2.4E¯7 | +11% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 

“I Feel the Need for Speed” (Top Gun, 1986)

Let’s revisit the issue that led us down the hashing path. We’ll create a hashed copy of Words, but leave Words alone so that we can compare performance. We’ll also create a function bound with ⍳.

      hWords←1500⌶Words ⍝ hWords is marked for hashing
      hWords⍳⊂'the'      ⍝ first search creates the hash table
1
      fWords←Words∘⍳      ⍝ also create the derived function  
      fWords ⊂'the'      ⍝ first search creates the hash table
1
      p←'the' 'big' 'fuzzy' 'dog'
      ]RunTime -c "hWords ⍳ p" "fWords p" "Words ⍳ p"
                                                                        
  hWords ⍳ p → 0.0E0  |    -100%                                          
  fWords p → 0.0E0    |    -100%                                          
  Words ⍳ p  → 3.5E¯1 | +556800% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 

Once we have a retained hash table, all lookups, no matter the length of words, will be faster.

Tangent #3 – When Does a Principal Argument Get Hashed?

The short answer is: it depends on a number of factors, such as:

  • whether a search function like ⍳ or ∊ is used
  • the sizes of the principal and subject arrays
  • the datatypes of the arrays – character, integer, floating point, complex
  • are the arrays simple (depth 0 or 1) or not?
  • the amount of workspace available – can it fit the hash table?

In short, Dyalog APL hashes an array when it “thinks” doing so will help. However, you know your application and its data better than the interpreter does. In my example above, the interpreter can’t know if my search is a one-time thing or something that will be executed many times.

How can you determine where hashing kicks in? What I did was to start with a single element subject argument and increase its length until I saw a “bump” in runtime:

      iv←1e7?2*24  ⍝ build 10-million element integer vector with no duplicates

      ⍝ now time lookups for subject arrays of length 1 to 15
      ⎕SE.UCMD 'runtime -c',∊' iv⍳iv['∘,¨(⍕¨⍳15),¨⊂'⍴5000000]'
  iv⍳iv[1⍴5000000]  → 1.0E¯3 |     0%                                          
* iv⍳iv[2⍴5000000]  → 2.1E¯3 |  +100% ⎕                                        
* iv⍳iv[3⍴5000000]  → 3.2E¯3 |  +206% ⎕                                        
* iv⍳iv[4⍴5000000]  → 4.3E¯3 |  +315% ⎕⎕                                       
* iv⍳iv[5⍴5000000]  → 5.3E¯3 |  +412% ⎕⎕                                       
* iv⍳iv[6⍴5000000]  → 6.2E¯3 |  +503% ⎕⎕⎕                                      
* iv⍳iv[7⍴5000000]  → 7.3E¯3 |  +609% ⎕⎕⎕                                      
* iv⍳iv[8⍴5000000]  → 8.4E¯3 |  +718% ⎕⎕⎕⎕                                     
* iv⍳iv[9⍴5000000]  → 9.3E¯3 |  +800% ⎕⎕⎕⎕                                     
* iv⍳iv[10⍴5000000] → 1.0E¯2 |  +909% ⎕⎕⎕⎕⎕                                    
* iv⍳iv[11⍴5000000] → 9.2E¯2 | +8784% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 
* iv⍳iv[12⍴5000000] → 9.1E¯2 | +8757% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 
* iv⍳iv[13⍴5000000] → 9.2E¯2 | +8818% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 
* iv⍳iv[14⍴5000000] → 9.2E¯2 | +8821% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 
* iv⍳iv[15⍴5000000] → 9.2E¯2 | +8806% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ 

Can you spot where hashing kicks in? That’s right – when the subject array exceeds 10 elements. But what if my subject array is only ever a single element? Then you need to determine whether the one-time cost of building the hash table is less than the accumulated time of subsequent lookups. Once hashed, all lookups are faster.

One caveat about using the ]RunTime user command – the cost of creating the hash table on the first lookup of a hashed array is lost because ]RunTime executes each expression once before collecting timing information. ⎕PROFILE provides a more accurate picture:

     ∇ r←test_iv;iv;hiv;_;d;l;t;i
[1]    iv←10000000?2*24 ⍝ 10,000,000 integers in the range 1-2*24
[2]    hiv←1500⌶iv      ⍝ hiv is marked for hashing
[3]    i←5000000⊃iv     ⍝ search for the middle element
[4]   l1:⎕PROFILE¨'stop' 'clear' 'start'
[5]    _←iv⍳i  ⍝ unhashed lookup
[6]    _←hiv⍳i ⍝ first hashed lookup (creates hash table)
[7]    _←hiv⍳i ⍝ subsequent hashed lookup     
[8]   l2:⎕PROFILE'stop'
[9]    d←⎕PROFILE'data'
[10]   l←l1+⍳l2-l1+1 
[11]   r←(↓'%',⍨⍕⍪⌊0.5+100ׯ1+t÷⌊/t),(⎕NR⊃⎕SI)[1+l],⍨3⍕⍪t←d[;4]⌿⍨d[;2]∊l
[12]   ⎕PROFILE'clear'
     ∇

      test_iv
   1044%   1.047  _←iv⍳i  ⍝ unhashed lookup
 236125% 216.147  _←hiv⍳i ⍝ first hashed lookup (creates hash table) 
      0%   0.092  _←hiv⍳i ⍝ subsequent hashed lookup

In this case, the cost of creating the hash table is about 200× the cost of doing a single lookup. Subsequent hashed lookups are about 10× faster. It’s up to you, and your understanding of your application, to determine whether retaining the hash table is worth it.

TANSTAAFL (There Ain’t No Such Thing As A Free Lunch)

The other cost of using hash tables for faster searching is that hash tables take up space. Remember when I mentioned that the default hash table size in Dyalog v20.0 is 8x larger than previously? The working theory is that larger hash tables ought to result in faster searches, but how much faster and at what cost in space? Unfortunately there isn’t a direct way to measure the hash table size. You have to look at the differential in ⎕WA before and after creating the hash table:

      ]Config MAXWS
 MAXWS  1GB
       
      cf ⎕SIZE'Words' ⍝ cf is a utility to comma-format numbers
97,547,968

      cf ⎕WA-⍨(hWords⍳⊂'the')⊢(hWords←1500⌶Words)⊢⎕WA
268,435,664

In my 1GB workspace, the hash table for Words is 268MB and 2.75× the size of the Words itself. In Dyalog v20.0, we removed 8468⌶ which would allow you to set a scaling factor for the hash table size; there is an experimental I-Beam currently being developed, 8470⌶1 which does much the same thing. 8470⌶1 factor, where factor is an integer in the range ¯3 to 3, will increase or decrease the hash table size by 2*factor times. When Dyalog v20.0 was initially released, the default value for factor was 0 but based on feedback it’s now ¯3 Let’s use this to examine its effect on hash table size. I wrote an ugly little operator, set, to build hash tables with specified scaling factors and look at the ⎕WA differential after each:

      ]Config MAXWS
 MAXWS  10GB
      'abcdefg' ('Words'set) ¯4+⍳7
 aWords  ¯3       33,555,104 
 bWords  ¯2       67,109,536 
 cWords  ¯1      134,218,400 
 dWords   0      268,436,128 
 eWords   1      536,871,584 
 fWords   2    1,073,742,496 
 gWords   3    2,147,484,320 

As expected, each hash table grows by a factor of 2.

Tangent #4 – Mapped Files

The ⎕MAP system function associates a mapped file with an array in the workspace. One of the client projects I’ve worked on involves loading CSV data with 47 million records of 85 fields, totalling about 7.5GB. Each field is stored in a separate ⎕MAP-compatible file. In a 4GB workspace, I’m able to map all 85 files and have it seemingly consume only a bit over 2MB of workspace:

      ]Config MAXWS
 MAXWS  4GB 

      ⍝ MapFiles maps 85 files into variables in a namespace named Data
      cf wa←⎕WA ⋄ MapFiles ⋄ cf wa-⎕WA 
4,284,076,808
2,009,600

      cf +/Data.(⎕SIZE ⎕NL ¯2)
7,577,998,192

Pretty neat huh? This makes 7.5GB of data available in a 4GB workspace!

One of the fields, Data.Record_ID, is a 16-column character matrix and has a size of about 760MB:

      ⍴Data.Record_ID
47647772 16
      cf ⎕SIZE 'Data.Record_ID'
762,364,392

Let’s bind ⍳ with Data.Record_ID:

      lFind←Data.Record_ID∘⍳     ⍝ create the bound function
      lFind 1↑Data.Record_ID     ⍝ create the hash table
WS FULL
      fRec 1↑Data.Record_ID
      ∧

Uh oh… It seems we don’t have enough room in a 4GB workspace for the hash table. Let’s start a new session with 10GB:

      ]Config MAXWS
 MAXWS  10GB 
      lFind←Data.Record_ID∘⍳
      cf ⎕WA-⍨(lFind 1↑Data.Record_ID)⊢⎕WA
8,589,934,752

With the Dyalog v20.0 default scaling factor, the hash table takes 8.5GB of my 10GB workspace. That’s a hefty chunk. What if we try the smallest scaling factor, ¯3?

      8470⌶1 ¯3
0
      sFind←Data.Record_ID∘⍳
      cf ⎕WA-⍨(sFind 1↑Data.Record_ID)⊢⎕WA
 1,073,741,984

That’s more manageable and would fit in my 4GB workspace. Why did I use a bound function rather than 1500⌶ on Data.Record_ID? Currently, 1500⌶ doesn’t work with mapped files, but this may be taken under consideration in the future.

      z←1500⌶Data.Record_ID
DOMAIN ERROR
      z←1500⌶Data.Record_ID
            ∧

Tangent #5 – What Timer Is It?

The ]runTime user command is a wonderfully easy tool to use to get a rough idea of performance and it remains a staple in my toolbox. runtime is based on cmpx which is found in the dfns workspace. I’ve found that runtime‘s results can sometimes vary significantly from one invocation to the next. Dyalog APL provides several system functions to help collect performance data:

  • ⎕AI, one of whose elements is cumulative CPU time of your session. You can use the before and after differential of ⎕AI to get an approximate idea of the speed of an expression. This is what runtime and cmpx use.
  • ⎕MONITOR, which can be used to turn monitoring on for specific lines of a function.
  • ⎕PROFILE, the “heavy hitter” of performance measurement. Even though its primary use case is profiling the performance of entire applications, I still find it useful to get impressive-looking, high-precision, performance data.

I have a template that I use when I want to use ⎕PROFILE to compare performance of expressions:

     ∇ r←timer n;i;d;l;t
[1]   ⍝ n is the number of iterations to run
[2]   ⍝ r is [;1] the relative percents based on the fastest expression
[3]   ⍝      [;2] the accumulated time in ms for the expression
[4]   ⍝      [;3] the expression
[5]    ⎕PROFILE¨'stop' 'clear' 'start'
[6]   l1: :For i :In ⍳n
[7]   ⍝ insert expressions to time between l1 and l2
[8]   l2: :EndFor
[9]    ⎕PROFILE'stop'
[10]   d←⎕PROFILE'data'
[11]   l←l1+⍳l2-l1+1
[12]   r←(↓'%',⍨⍕⍪⌊0.5+100ׯ1+t÷⌊/t),({⍵↓⍨+/∧\' '=⍵}¨(⎕NR⊃⎕SI)[1+l]),[1.1]⍨↓3⍕⍪t←d[;4]⌿⍨d[;2]∊l
[13]   ⎕PROFILE'clear'
     ∇

The Speed/Space Tradeoff

We saw earlier that different scaling factors result in different size hash tables, but what’s the impact on the speed of searching? Using our 7 hashed versions of Words and running 1,000,000 iterations:

 9%   547.303  _←aWords⍳phrase 
 6%   534.984  _←bWords⍳phrase 
 0%   504.180  _←cWords⍳phrase 
 0%   504.822  _←dWords⍳phrase 
 0%   505.082  _←eWords⍳phrase 
 0%   505.404  _←fWords⍳phrase 
 0%   504.561  _←gWords⍳phrase 

In this example, the smallest hash table, aWords runs 9% slower than the 8-times-larger default, dWords. There’s no significant speedup using a hash table larger than cWords, at half the default size.

Let’s take a look at my 47-million record table. Since 1500⌶ doesn’t work (yet) with mapped files, we’ll have to use function binding. First, we’ll use the default setting of 8470⌶1 0 to create an 8.5GB hash table and then use 8470⌶1 ¯3 to create a hash table 1/8 (2*¯3) the default size or about 1GB.

      {}8470⌶1 0 ⋄ b←⎕WA ⋄ lfind←Data.Record_ID∘⍳ ⋄ {}lfind 2↑Data.Record_ID ⋄ cf b-⎕WA
  8,589,934,808
      {}8470⌶1 ¯3 ⋄ b←⎕WA ⋄ sfind←Data.Record_ID∘⍳ ⋄ {}sfind 2↑Data.Record_ID ⋄ cf b-⎕WA
  1,073,742,040
      recs←Data.Record_ID[10?≢Data.Record_ID;]
      timer 1e6
  0%    920.916  _←lfind recs 
 11%   1025.790  _←sfind recs 

Is an 11% speedup worth an extra 7.5GB of workspace? That’s really up to you and your priorities for your application.

The Long and Winding Blog (with apologies to The Beatles)

Let’s try to summarize…

If your application needs to search data that’s “mostly” static, you can benefit from using retained hash tables. By “mostly”, I mean that the only changes to the array are adding or deleting elements from the end. A typical scenario might be, during application initialization, load the data into the workspace, or map a file, and do a search, thereby creating the hash table. Then all subsequent uses of search functions on that array will be considerably faster.

I’ve got some ideas on things that we at Dyalog Ltd might want to consider doing. Most of these involve empowering the user to have more control over how and when hashing is done. For example, we could:

  • make 8470⌶1 ready for release and publish it so that users can understand how to tune hash table size for their best space/speed tradeoff.
  • make 1500⌶ work with mapped files.
  • make it easier to query the size of a hash table rather than relying on ⎕WA differentials.
  • make it possible to mark an array as “unhashable”. Consider the scenario where hash-table-triggering searches are done on an array that’s not static. Whenever the array changes, the hash table is discarded, only for a new hash table to be generated on a subsequent search. In this case, it’s probably better that the interpreter fall back to a non-hashing approach.
  • Make it possible to monitor where, when, and how often extemporaneous hashing is done.

Disclaimers – YMMV (Your Mileage May Vary)

The examples shown in this post are a very small sampling of possible hashing scenarios. They were run on my 32GB Lenovo laptop using Windows 11 and Dyalog v20.0. Your environment and hashing opportunities are likely to be different. In writing this post, I hope to have accomplished spurring you on to do your own investigations as there are potentially significant benefits to be explored.

I was caught off guard by the apparent slowdown due to the interpreter repeatedly hashing Words extemporaneously. This led me to try to understand how and when hashing is done and what tools are available to the user. I feel I’ve been marginally successful at this, but it feels like there is still much to learn.

Addendum

I wrote the above in January 2026. Sharing my findings with the Dyalog development team set in motion an initiative to review some aspects of doing lookups. One result of this initiative was to change the default scaling factor for hash table size (8470⌶1 x) from 0 to ¯3. This means that, by default, hash tables in the latest releases of Dyalog v20.0 are 1/8 the size that they were before. Changing to a smaller hash table scaling factor results in slightly slower lookups, but at a significant savings in workspace consumed.

Other work looking at the performance of lookup functions is being undertaken.

Lookups are Complicated

When you use a lookup function like ⍳ or ∊, the interpreter attempts to pick the best technique, in order from simplest to most complex, between doing a linear search, using a lookup table, or using a hash table. The decision is based on datatype, size, and depth of the arguments, workspace available, and whether the cost of doing the setup of a more complex technique is likely to result in faster overall execution. In general, the interpreter does a good job of deciding. That doesn’t mean there aren’t exceptions. Again, this is where you come in – you know your data and how it’s used.

Employee Spotlight: Martin

When Martin joined Dyalog last year, he confessed to a secret identity… beneath the formal attire hides a medieval merchant! Twelve months later, we’ve noticed the resemblance runs deeper than the tunic. Martin is, in fact, a bit like Batman. He comes and goes at odd hours, responds best when there’s a symbol in the sky (or a ticket in the Technical Services queue!), and quietly solves problems wherever he lands, from cable management in the Copenhagen office to overhauling Dyalog Ltd’s internal IT infrastructure. His one true nemesis remains the office printer, which continues to resist all attempts at diplomacy. Replacing it may be next year’s headline project.

Since arriving, Martin has taken on the behind-the-scenes work that makes everyone else’s day run smoother, from setting up home offices to gathering the Technical Services team for their first conclave on collaboration. That variety is exactly what he enjoys most. “I do everything IT-related. I hadn’t changed printer toner or installed a router since I was a trainee, so getting to mix that with writing communication policies and migrating to Microsoft Exchange has been a lot of fun.”

Coming from more corporate environments, Martin found Dyalog Ltd’s culture to be a refreshing change of thinking. “Everyone here is extremely passionate about what they do, whether that’s developing new features, keeping the IT environment healthy, or making the business run smoothly. That energy is contagious, and it’s something I didn’t know I was missing.” What struck him most was the absence of a career ladder to climb or internal competition to navigate. Instead, there’s a flat hierarchy and an open culture where everyone’s opinion matters.

“I feel at home whether I’m in the office or working remotely. It’s very much the company culture, and one of the things I enjoy most about working here. Being based in Denmark, most of Martin’s collaboration happens with the team in Bramley, an arrangement that suits him nicely. “Nine-to-five has never really been for me. I’m a bit of a night owl, so being able to come in late and stay late has genuinely improved my wellbeing.”

Life outside the office has scaled up too. Over the past year, Martin has expanded his Merchant’s Guild. He now works more than one market at a time, and traded his central Copenhagen apartment for a farmhourse, a plot of land, and several old stables. So, when Martin is “on leave,” he is definitely not relaxing with a drink in hand but rather is out fixing the quirks of an old farmhouse, entertaining market guests, and adding to the general, glorious, chaos of it all.

After his first twelve months, his guiding philosophy hasn’t changed. “Technology should make life easier, not more complicated. I can’t develop features for the interpreter or decide the direction for APL, but if I can make the developers’ lives a little easier so that they can focus on what they’re brilliant at, then that’s success for me!”

The first year has gone by in a whirl, and Martin is looking forward to many more, plenty of projects to dive into, lots of debates to be had, and a Copenhagen office fridge full of Coke that is unlikely to empty itself.