John Scholes was born on 24 April 1948 to Gerry and Amy Scholes. He grew up in Leamington Spa, Warwickshire, England, and attended Leamington College for Boys between 1960 and 1966. Between 1966 and 1969 he attended the University of Manchester and received a BSc (with honours) in mathematics.[2]
Scholes enjoyed poetic and romantic qualities in his life. Apart from APL, he also found beauty in nature, opera, the music of Tom Waits, the literature of James Joyce,[3] the poetry of W. B. Yeats. He was a member of the Joyce society in Dublin. In 2013, he and his wife Flora Dowling went to Sligo to the W. B. Yeats Summer School and met the poet Seamus Heaney the summer before Heaney died.[2]
The APL side and the romantic side often met: The Depth-First Search video[4] (below) was recorded at dawn on the summer solstice of 2014, with birdsong in the air, while he and his wife were on a 21-day Zen retreat in France led by Thích Nhất Hạnh. Scholes was pleased with both the technical content and the circumstances of that work.[2]
Career
Scholes's first job was as a trainee computer programmer with International Computers Limited (ICL) (1969–70) and from there he went on to the Operations Research Department of WS Atkins in Epsom, Surrey (1971–75) and then to the Sales Support Department in Warrington, Lancashire (1976–77). Between 1977 and 1978 he worked with the European Space Agency in Madrid, Spain as a programmer for the International Ultraviolet Explorer project. He then returned to ICL Dataskil working on APL for the VME/B operating system (1978–82). In 1982, he started the Dyalog APL project for Unix machines,[5][6] and in 1988 became a partner and director of the Dyalog Company. In 2004, Scholes sold his shares in the company, but continued as a consultant and, in his words, pursued his passionate interest in APL programming on various mathematical topics in general and functional programming and dfns in particular. Or "nerding", as he also called it.[2]
Kenneth E. Iverson, the inventor of APL, was dissatisfied with the way user functions were defined. In 1974, he devised "formal function definition" or "direct definition" for use in exposition.[7] A direct definition has two or four parts, separated by colons:
Within a direct definition, ⍺ denotes the left argument and ⍵ the right argument. In the first instance, the result of expression is the result of the function; in the second instance, the result of the function is that of expression0 if proposition evaluates to 0, or expression1 if it evaluates to 1. Assignments within a direct definition are dynamically local. Examples of using direct definition are found in the 1979 Turing Award Lecture[8] and in books and application papers.[9][10][11][12][13]
Direct definition was too limited for use in larger systems. The ideas were further developed by multiple authors in multiple works,[14][15][16][17][18][19][20] but the results were unwieldy. Of these, the "alternative APL function definition" of Bunda in 1987[19] came closest to current facilities, but is flawed in conflicts with existing symbols and in error handling which would have caused practical difficulties, and was never implemented. The main distillates from the different proposals were that (a) the function being defined is anonymous, with subsequent naming (if required) being effected by assignment; (b) the function is denoted by a symbol and thereby enables anonymous recursion.[13]
In 1996, Scholes invented direct functions or dfns (pronounced "dee funs"), a major distinguishing advance of early 21st century APL over prior versions.[21][22][23][24] Dfns are a unique combination of array programming, higher-order functions, and functional programming. The ideas originated in 1989 when he read a special issue of The Computer Journal on functional programming.[25] He then proceeded to study functional programming and became strongly motivated ("sick with desire", like Yeats) to bring these ideas to APL.[23][24] He initially operated in stealth because he was concerned the changes might be judged too radical and an unnecessary complication of the language; other observers say that he operated in stealth because Dyalog colleagues were not so enamored and thought he was wasting his time and causing trouble for people. Dfns were first presented in the Dyalog Vendor Forum at the APL '96 Conference and released in Dyalog APL in early 1997.[21] Acceptance and recognition were slow in coming. As late as 2008, in Dyalog at 25,[6] a publication celebrating the 25th anniversary of Dyalog Ltd, dfns were barely mentioned (mentioned twice as "dynamic functions" and without elaboration). As of 2019, dfns are implemented in Dyalog APL,[26] NARS2000,[27] and ngn/apl.[28] They also play a key role in efforts to exploit the computational capabilities of a GPU (graphics processing unit).[29][13]
Dfns are illustrated here with an example. Much more extensive explanation and examples are found in the direct functions article and in the references.[22][13][30]
Quicksort on an array ⍵ works by choosing a "pivot" at random among its major cells, then catenating the sorted major cells which strictly precede the pivot, the major cells equal to the pivot, and the sorted major cells which strictly follow the pivot, as determined by a comparison function ⍺⍺. Defined as a dop (direct operator) Q:
Q3 is a variant that catenates the three parts enclosed by the function ⊂ instead of the parts per se. The three parts generated at each recursive step are apparent in the structure of the final result. Applying the function derived from Q3 to the same argument multiple times gives different results because the pivots are chosen at random. In-order traversal of the results does yield the same sorted array.
The above formulation is not new; see for example Figure 3.7 of the classic The Design and Analysis of Computer Algorithms.[31] However, unlike the pidgin ALGOL program in Figure 3.7, Q and Q3 are executable, and the partial order used in the sorting is an operand, the (×-) the examples above.[13]
2015 Future Operator Proposals: Cut, Under, and Merge (video)[78] (text)[79]
2016 New Primitive Functions and Operators (video)[80] (text)[81] (script)[82]
2016 Dyalog Implementation: The Early Years (video)[83]
2017 A Case Study: Recoding from Procedural to Denotative Style (video)[84] (text)[85]
2018 Dfns—Past, Present and Future (video)[23] (text)[24]
Wit
Scholes was well known among colleagues for his wit, sense of humor, and comic timing. His "after dinner" presentations at Dyalog conferences were highly anticipated events. A selection of them from the list above:
^Polivka, Ray (March 1998). "An Interview with Peter Donnelly and John Scholes". APL Quote Quad. 28 (3): 7–12. doi:10.1145/309730.309731. S2CID28437582.
^ abDyalog (September 2008). "Dyalog at 25"(PDF). Vector. Retrieved 20 September 2019.
^Taylor, Stephen; Streeter, Geoff; Scholes, John (12 October 2016). Dyalog Implementation: The Early Years (video). Dyalog '16 User Meeting. Retrieved 21 September 2019.