Pervasion of Ambivalence in APL Functions

John 'Jake' JacobAPLLeave a Comment

Introduction I was recently tasked with modifying a Dyalog class currently running under Dyalog 16 so that it would run under Dyalog 17.1. The class in question was used to serialize APL data into a JSON format and back again. The problem was that it made use of the two I-beams 7159 and 7160. These are deprecated in 17.1 so … Read More

Setting Coding Priorities and Quality Bars as Project Groundwork

John 'Jake' JacobAPLLeave a Comment

APL Coding Priorities

Introduction – Laying the groundwork for a software development project is fundamental to ensuring the quality of an implementation. Whilst setting project objectives will drive the direction of a project, setting coding priorities will drive the implementation of the code for that project. Coding priorities help focus on the factors that have a bearing on the quality of the development … Read More

Nudge Theory – What drums do you dance to?

John 'Jake' JacobFunLeave a Comment

A highly popular science book “Nudge: Improving Decisions About Health, Wealth and Happiness” (Thaler and Sunstein, 2008) is now ten years old. BBC Radio 4 programme “Nudge Nudge” investigates the growing influence of Nudge Theory in government and business (broadcast 8th July and 23rd October 2018). Nudge holds that rather than making decisions on a rational basis, innate behaviours of … Read More

Dyalog ’17 Elsinore – Day 2

John 'Jake' JacobAPLLeave a Comment

Morton Kromberg at Dyalog '17 Day 2

Dyalog ’17 Day 2 – Tuesday September 12th 2017 Day two and the weather is holding up for now on what was to be a full day of presentations from both Dyalog and User Delegates. Moving bits faster with Dyalog 16 – Marshall Lochbaum, Dyalog New techniques for manipulating bit Booleans in Dyalog have led to significant improvements in the … Read More

RegEx with ⎕R and ]locate

John 'Jake' JacobAPLLeave a Comment

When the British APL Association met in August Dan Baronet gave us a taster for the sort of thing that could be done with RegEx in Dyalog. I have a recording I am cleaning up but in the meantime here is a taster. First create a formatting function to push a string through ⎕xml twice just to make it easier … Read More

Needleinahaystack

John 'Jake' JacobAPLLeave a Comment

The Problem A string of text has had all of the spaces removed: This e-mail is confidential and may be privileged. If you have received it in error, please contact the sender immediately by return e-mail then delete the e-mail and do not disclose its contents to any person. Becomes Thise-mailisconfidentialandmaybeprivileged.Ifyouhavereceiveditinerror,pleasecontactthesenderimmediatelybyreturne-mailthendeletethee-mailanddonotdiscloseitscontentstoanyperson. How do we get the words back? Suggested Approach … Read More

The Skirting Board Problem

John 'Jake' JacobAPLLeave a Comment

The object of this weeks problem is to find the best way to cut the boards as purchased into lengths of skirting so that joins in the skirting are avoided when fitted to the walls. For example:⍝ from boards in metres b←5.2 4.6 4.3 4.3 4 3.8 ⍝ cut skirts in metres s←3.2 1.2 0.25 0.15 0.15 0.25 1.2 0.8 … Read More