{"id":9360,"date":"2026-05-15T10:21:41","date_gmt":"2026-05-15T10:21:41","guid":{"rendered":"https:\/\/www.dyalog.com\/blog\/?p=9360"},"modified":"2026-05-15T12:30:26","modified_gmt":"2026-05-15T12:30:26","slug":"a-new-stack-for-the-apl-challenge","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2026\/05\/a-new-stack-for-the-apl-challenge\/","title":{"rendered":"A New Stack for the APL Challenge"},"content":{"rendered":"<p>In February 2026, the <a href=\"https:\/\/challenge.dyalog.com\">APL Challenge<\/a> quietly launched its next round on a rewritten stack. The previous infrastructure was retired and replaced by something considerably smaller and, I think, much more pleasant to maintain. This blog post describes how we got here, and shows off some of the Dyalog v20.0 idioms that shaped the rewrite along the way.<\/p>\n<h1 id=\"a-short-tour-of-competition-history\">A short tour of competition history<\/h1>\n<p>Dyalog Ltd has been running some form of programming contest for 17 years now, and almost every era has had its own stack.<\/p>\n<p><strong>2009-2012 \u2013 Email:<\/strong> The earliest competitions were essentially mailing lists: Brooke Allen seeded the very first <em>World Wide Programming Competition<\/em> with the first twenty Project Euler problems, and entrants emailed in their solutions. Subsequent <em>International APL Programming Contest<\/em> rounds described the tasks on the main Dyalog Ltd website. The 2011 winner, Joel Hough, observed that most popular programming languages had a &#8220;Try X&#8221; website that let newcomers experiment without installing anything, and that APL didn&#8217;t. Participation was restricted to those who could prove their student status; participants also needed to apply for a free educational licence. They could only access the full Dyalog product (and start solving problems) once the application was approved and they had downloaded and installed the system. Joel&#8217;s suggestion led directly to the creation of <a href=\"https:\/\/tryapl.org\/\" target=\"_blank\" rel=\"noopener\">TryAPL<\/a>, significantly lowering the bar to entry.<\/p>\n<p><strong>2013-2018 \u2013 StudentCompetitions\/Sqore:<\/strong> Task descriptions and submissions moved onto the third-party platform StudentCompetitions (later renamed Sqore), and the title went through a period of flux, eventually settling on the <em>APL Problem Solving Competition<\/em>, emphasising APL as a problem solving tool over the mechanical programming aspects. The problems were split into two &#8220;phases&#8221;: Phase 1 consisted of ten &#8220;one-liner&#8221; problems while Phase 2 had a PDF specification of more complex problems and included a template for answering. There wasn&#8217;t much code involved on our side, but submissions arrived in inconsistent formats and weren&#8217;t sandboxed in any way, so each one had to be inspected (and possibly reformatted by hand) before it could be run. We used Phase 1 as a filter; you could only enter Phase 2 if you had correctly answered a minimum of one problem from Phase 1. We wrote ad-hoc code for testing at least parts of Phase 2. From 2014, we also allowed non-student participants, but they could only win a free trip to the next <a href=\"https:\/\/www.dyalog.com\/user-meetings\/index.htm\">user meeting<\/a>, and not a cash prize like the student winners.<\/p>\n<p><strong>2019-2021 \u2013 Back in-house:<\/strong> The contest moved onto Dyalog-grown infrastructure. Almost everything we could write in APL, we wrote in APL:<\/p>\n<ul>\n<li><a href=\"https:\/\/miserver.dyalog.com\/\">MiServer<\/a> generated and served the website<\/li>\n<li><a href=\"https:\/\/github.com\/Dyalog\/HttpCommand\/\">HttpCommand<\/a> talked to remote services<\/li>\n<li><a href=\"https:\/\/github.com\/Dyalog\/SMTP\/\">SMTP<\/a> sent confirmation emails<\/li>\n<li><a href=\"https:\/\/github.com\/Dyalog\/DCL\">DCL<\/a> hashed passwords<\/li>\n<li><a href=\"https:\/\/github.com\/Dyalog\/Conga\">Conga<\/a> provided network communications for both MiServer and HttpCommand<\/li>\n<li>DrA logged and reported errors to the developers<\/li>\n<li>SQAPL communicated with a MariaDB database<\/li>\n<\/ul>\n<p>This is what it looked like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9365\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetition.png\" alt=\"APL Problem Solving Competition screenshot\" width=\"1920\" height=\"970\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetition.png 1920w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetition-300x152.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetition-768x388.png 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetition-1024x517.png 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetition-500x253.png 500w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>The sources were managed with Git and stored on GitHub in two repositories: one which held the MiSite code and styling, and one which held the per-round JSON test specifications and per-problem MiPages. The intention was that Jenkins&#8217; continuous integration using Docker containers deployed using Rancher (and later Docker Swarm, when Rancher went all-in on Kubernetes) would make content updates hot-swappable into a running site. In practice, this never worked reliably and content pushes regularly required a service restart anyway, and the split added co-ordination overhead between the two repositories.<\/p>\n<p>We used HAProxy for load balancing and reCAPTCHA to keep the bots out. Phase 1 validation was done by generating test scripts which were then sent to <a href=\"https:\/\/tio.run\/\" target=\"_blank\" rel=\"noopener\">Try It Online<\/a> for sandboxed execution. Phase 2 was a glorified file upload form. Brian Becker showed a simplified diagram of the moving parts in <a href=\"https:\/\/www.dyalog.com\/uploads\/conference\/dyalog19\/presentations\/D15_Problem_Solving_Competition.pdf#page=4\">his Dyalog &#8217;19 presentation<\/a>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9366\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetitionStack.png\" alt=\"Brian's diagram\" width=\"3080\" height=\"1590\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetitionStack.png 3080w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetitionStack-300x155.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetitionStack-768x396.png 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetitionStack-1024x529.png 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/ProblemSolvingCompetitionStack-500x258.png 500w\" sizes=\"auto, (max-width: 3080px) 100vw, 3080px\" \/><\/p>\n<p><strong>2022-2023 \u2013 Enhancements:<\/strong> The Try It Online dependency was replaced with <a href=\"https:\/\/github.com\/abrudz\/dyalog-safe-exec\/\" target=\"_blank\" rel=\"noopener\">Safe Execute<\/a>, itself derived from the original TryAPL code, and bespoke checks were added to verify that submitted Phase 2 entries followed the syntactic constraints of each task. Code quality still factored into the final score, so the automated tests were one input among several.<\/p>\n<p>In his introduction to the competition prize-giving ceremony during <a href=\"https:\/\/www.dyalog.com\/user-meetings\/dyalog23.htm\">Dyalog &#8217;23<\/a>, Brian outlined <a href=\"https:\/\/www.youtube.com\/watch?v=LdMLaTsPQNk&amp;t=692s\" target=\"_blank\" rel=\"noopener\">our thoughts for the future of the competition<\/a>.<\/p>\n<h1 id=\"enter-the-apl-challenge\">Enter the APL Challenge<\/h1>\n<p>In February 2024 we launched the first round of the <em>APL Challenge<\/em>, replacing the previous Phase 1. After a short break, Phase 2 also got a replacement: The <a href=\"https:\/\/forge.dyalog.com\/\">APL Forge<\/a>. The competition was now:<\/p>\n<ul>\n<li><strong>for everyone:<\/strong> While previous competitions exclusively or primarily targetted students, the APL Challenge is equally open to everyone. To facilitate participation by younger, new-to-APL, and foreign-language contestants, its descriptions of APL features and problems are deliberately written in a simplified style.<\/li>\n<li><strong>always open:<\/strong> Previously the competition was open for a few months each year. The APL Challenge is open (almost) continuously, with four rounds each lasting three months (with only a day\u2019s down-time between them), and each round is followed by the awarding of prizes.<\/li>\n<li><strong>self-contained:<\/strong> Previously, you had to learn APL on your own to be able to participate. With the APL Challenge, each round teaches everything that is needed as part of the problem statements, building up to a more demanding tenth problem (often inspired by \u2013 or lifted directly from \u2013 the old Phase 1 archive).<\/li>\n<li><strong>entirely automated:<\/strong> Every submission is quickly and fully checked, with prizes awarded only based on correctness.<\/li>\n<\/ul>\n<p>Initially, we recycled the existing server set-up, including the account system and the Phase 1 code for presenting problems and checking submissions. However, that code had already accumulated a significant amount of technical debt, and the changes needed to repurpose it didn&#8217;t help. MiServer&#8217;s performance characteristics meant that we had to run several parallel containers behind a load balancer, and the automated checker was slow because each submission was juggled across threads. When I showed the APL Challenge to a couple of classes at my children&#8217;s school, I also noticed that the account system was a significant barrier: the children either had no email addresses of their own, or couldn&#8217;t access them during school hours, which halted the sign-up flow before it began. Although none of this was really broken, it was a consideration for the list of &#8220;things to clean up when there&#8217;s time&#8221;.<\/p>\n<p>The front end of the site was also redesigned to align more closely with modern styling:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9370\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/MiServerChallenge.png\" alt=\"MiServer-based APL Challenge screenshot\" width=\"3422\" height=\"1716\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/MiServerChallenge.png 3422w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/MiServerChallenge-300x150.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/MiServerChallenge-768x385.png 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/MiServerChallenge-1024x513.png 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/MiServerChallenge-500x251.png 500w\" sizes=\"auto, (max-width: 3422px) 100vw, 3422px\" \/><\/p>\n<p>In late 2025 I finally found the time we needed. With Dyalog v20.0&#8217;s release approaching, I incorporated several of the <a href=\"https:\/\/docs.dyalog.com\/20.0\/release-notes\/introduction\/#release-highlights\" target=\"_blank\" rel=\"noopener\">key features introduced in that release<\/a> into my rewrite \u2013 especially <code>\u2395VGET<\/code>, the enhancements to <code>\u2395NS<\/code>, array notation, and the <em>behind<\/em> operator (<code>\u235b<\/code>), but even the new <code>\u2395SHELL<\/code> found a use in the code base. Most of the code is fairly straightforward, but one section constructs APL expressions, including single-line dfns, at run time to put the participant&#8217;s solution into an appropriate testing context. Traditional debugging tools fell short here, but inline tracing came to the rescue. The result has been live since February 2026.<\/p>\n<h1 id=\"the-new-stack\">The new stack<\/h1>\n<p>We&#8217;d accumulated a lot of experience with <a href=\"https:\/\/squidfunk.github.io\/mkdocs-material\/\">Material for MkDocs<\/a> from the <a href=\"https:\/\/docs.dyalog.com\">online documentation<\/a> overhaul for Dyalog v20.0 (compare it to the older <a href=\"https:\/\/help.dyalog.com\">v19.0 site<\/a> it replaced) and from rewriting the <a href=\"https:\/\/apl.quest\">APL Quest<\/a> site, which hosts the old APL Problem Solving Competition Phase 1 problems. Both sites are static MkDocs builds, although the APL Quest does automated checking using an external fork of <a href=\"https:\/\/ato.pxeger.com\">Attempt This Online<\/a>, and both have proven straightforward to maintain. Reusing Material for MkDocs as the APL Challenge frontend was the obvious move. Combined with <a href=\"https:\/\/github.com\/Dyalog\/Jarvis\">Jarvis<\/a> for the backend and a small amount of dynamic content, the new stack is:<\/p>\n<ul>\n<li><strong>APL code that builds a static site for each round<\/strong> using Material for MkDocs.<\/li>\n<li><strong>Jarvis<\/strong>\u00a0with one small enhancement, serving both the static site and a four-endpoint JSON API.<\/li>\n<li><strong>HttpCommand<\/strong>\u00a0to forward subscription requests to MailerLite.<\/li>\n<li><strong>Conga<\/strong>\u00a0for Jarvis and HttpCommand.<\/li>\n<li><strong>Git<\/strong>, <strong>GitHub<\/strong>, <strong>Docker Swarm<\/strong>, and <strong>Jenkins<\/strong>\u00a0(as before).<\/li>\n<\/ul>\n<p>By adding Material for MkDocs and Jarvis, we were able to remove MiServer, SMTP, DCL, DrA, SQAPL, HAProxy, Rancher, MySQL\/MariaDB, reCAPTCHA, Safe Execute, the load balancer, the multiple container replicas, the dual-repository arrangement, and seven JavaScript libraries used by the MiSite code.<\/p>\n<p>The database was replaced with two <a href=\"https:\/\/en.wikipedia.org\/wiki\/Tab-separated_values\" target=\"_blank\" rel=\"noopener\">TSV<\/a> (Tab-Separated Values) files in persistent storage. Authorisation, where it exists, is a token that is compared to an environment variable.<\/p>\n<p>After some deliberation, and consulting with our in-house <a href=\"https:\/\/en.wikipedia.org\/wiki\/General_Data_Protection_Regulation\" target=\"_blank\" rel=\"noopener\">GDPR<\/a> experts, we also found a way to remove the need to register: the participant&#8217;s email is now submitted along with each solution. This let us remove the whole signup-password-confirmation-email procedure, so children at school can use their own (or their parents&#8217;) email address without needing access to it immediately, and only receiving an email if they win a prize.<\/p>\n<p>The entire backend is now just over 400 short lines (averaging less than 25 characters) of APL across 16 functions, plus one namespace of 35 English phrases (we plan on adding internationalisation later). For comparison, the previous site used over 2,000 lines of APL and eight files of English phrases and email stubs.<\/p>\n<h2 id=\"one-static-site-per-round\">One static site for each round<\/h2>\n<p>Each round teaches a different progression of glyphs and concepts. Rather than rendering pages dynamically, we build one Material for MkDocs site for each round. Each round lives in its own uppercase single-letter directory (<code>A<\/code> through <code>I<\/code>, with <code>Z<\/code> reserved for the holding-period site that&#8217;s served between rounds). The previous system identified rounds by calendar slots (2024&#8217;s round 1 was <code>20241<\/code>, and so on). Decoupling round identity from the schedule means that a given round can be re-served later and a round can be designed and tested entirely independently of when it goes live.<\/p>\n<p>A single copy of the shared files and folders \u2013 assets, JavaScript, and the legal and front pages \u2013 are kept in <strong>add\/<\/strong>. Before the MkDocs build runs, these are copied into each round&#8217;s directory and <code>{{X}}<\/code> placeholders in markdown files are substituted with the round letter:<\/p>\n<pre class=\"apl\"><code> dirs\u2190\u2283\u22a2\u2364\/\/1=@1\u22a21 0 \u2395NINFO \u2395OPT 1\u22a2dir,'\/?'\r\n Copy\u2190{\r\n     dest\u2190d,'\/',\u237a\r\n     \u2395\u2190'COPY -',(2\u2193\u220a' &amp; '\u2218,\u00a8\u2286\u2375),' \u2192 ',\u220a1 \u2395NPARTS dest,'\/'\r\n     dest \u2395NCOPY \u2395OPT'IfExists' 'Replace'\u22a2(dir,'\/add\/',\u237a,'\/')\u2218,\u00a8\u2286\u2375\r\n }\r\n ls\u2190\u22a2\/\u00a8dirs\r\n incl\u2190ls\u220abuild\r\n :For d l :InEach incl\u2218\/\u00a8dirs ls\r\n     ''Copy'mkdocs.yml' 'overrides'\r\n     'docs'Copy'ass' 'js' 'legal.md','index.md'\/\u2218\u2282\u2368'Z'\u2260l\r\n\r\n     files\u2190(0\u220a2\u2218\u2283\u220a\u2395D\u2368)\u00a8\u2364\u2395NPARTS\u235b\/\u2283\u2395NINFO \u2395OPT 1\u22a2d,'\/docs\/*.md'\r\n     :For file :In files\r\n         cont\u2190\u2283\u2395NGET file 1\r\n         file 1 \u2395NPUT\u2368\u2282'{{X}}'\u2395R l \u2395OPT'Regex' 0\u22a2cont\r\n     :EndFor\r\n\r\n     :If build\u22290 1\r\n         {\u2395\u2190\u2375}\u00a8\u2283\u2283\u2395SHELL \u2395OPT'WorkingDir'd\u22a2'python -m mkdocs build'\r\n     :EndIf\r\n :EndFor<\/code><\/pre>\n<h2 id=\"a-hot-swappable-jarvis\">A hot-swappable Jarvis<\/h2>\n<p>Jarvis serves a static directory using its <code>HTMLInterface<\/code> setting. However, that setting was defined as a field that was read once when the server starts, and we needed to be able to switch which round&#8217;s <strong>site\/<\/strong> directory was being served while the server was running, on a fixed UTC schedule. So <a href=\"https:\/\/github.com\/Dyalog\/Jarvis\/pull\/107\/changes\">we amended Jarvis<\/a> to make <code>HTMLInterface<\/code> a property: assigning to it now adjusts the private fields that were previously only set at boot time.<\/p>\n<p>That small change is what makes the rest of the design work; round switching is a background thread that watches a single TSV file:<\/p>\n<pre class=\"apl\"><code> :Repeat\r\n     :Trap 0\r\n         newChange\u219013 \u2395NINFO filename\r\n         :If change\u2262newChange\r\n         :OrIf 0\u220a40 \u2395ATX'utc' 'dir'\r\n             change\u2190newChange\r\n             (utc dir)\u2190\u2283(TSV \u2395OPT'Invert' 2)filename \u236c 1 1\r\n             inst.Log'Schedule loaded from ',filename\r\n         :EndIf\r\n         begin\u21901 \u2395DT(2\u2283\u2395VFI)\u00a8' '@(~\u220a\u2218\u2395D)\u00a8utc\r\n         interval\u2190begin\u2378now\r\n         :If 900\u23360\r\n             newRound\u2190interval\u2283dir\r\n         :EndIf\r\n         :If round\u2262newRound\r\n             round\u2190newRound\r\n             html\u2190\u233dround@7\u22a2'\/',(\u2283\u220a'\/\\'\u2368)\u235b\u2193\u233dinst.HTMLInterface\r\n             inst.Log'Web interface changed: ',inst.HTMLInterface,' \u2192 ',html\r\n             inst.HTMLInterface\u2190html\r\n             file\u2190inst.CodeSource,'\/',round,'.json5'\r\n         :EndIf\r\n\r\n         newTestFileInfo\u2190FileInfo file\r\n         :If fileInfo\u2262newTestFileInfo\r\n             fileInfo\u2190newTestFileInfo\r\n             inst.Log'Test data updated from ',file\r\n             data\u21900 \u2395JSON \u2395OPT'Dialect' 'JSON5'\u2283\u2395NGET file\r\n         :EndIf\r\n\r\n         :If ~900\u23360\r\n             :Leave\r\n         :EndIf\r\n         t\u219020 \u2395DT'Z'\r\n         \u2395DL 1+1800|\u00af1-t \u235d wait until next half-hour\r\n     :Else\r\n         \u2026\r\n     :EndTrap\r\n :EndRepeat<\/code><\/pre>\n<p>Every half an hour, the thread re-reads <strong>schedule.tsv<\/strong> if its modification time has changed. If the round that should be live differs from the one currently being served, then the <code>HTMLInterface<\/code> property is updated; the corresponding test data is then (re-)loaded if either the test data file or the round has changed. The schedule itself is a two-column TSV mapping UTC start times to round letters:<\/p>\n<pre><code>utc                 dir\r\n\u2026\r\n2026-01-30 09:00    Z\r\n2026-02-11 09:00    G\r\n2026-04-30 08:00    Z\r\n2026-05-01 08:00    C\r\n2026-07-31 08:00    Z\r\n2026-08-02 08:00    H\r\n\u2026<\/code><\/pre>\n<p>Editing this file is the entire process for scheduling rounds. There&#8217;s no separate content repository, and there&#8217;s no longer an aspiration to swap content underneath a running site without telling the site about it. The builds tend to take less than 30 seconds, and the live site is swapped with only a few seconds of downtime:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9369\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMkDocsChallenge.png\" alt=\"Jenkins build times for the MkDocs-based APL Challenge\" width=\"3422\" height=\"1440\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMkDocsChallenge.png 3422w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMkDocsChallenge-300x126.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMkDocsChallenge-768x323.png 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMkDocsChallenge-1024x431.png 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMkDocsChallenge-500x210.png 500w\" sizes=\"auto, (max-width: 3422px) 100vw, 3422px\" \/><\/p>\n<p>A huge improvement over the previous architecture:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9368\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMiServerChallenge.png\" alt=\"Jenkins build times for the MiServer-based APL Challenge\" width=\"3422\" height=\"1440\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMiServerChallenge.png 3422w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMiServerChallenge-300x126.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMiServerChallenge-768x323.png 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMiServerChallenge-1024x431.png 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/JenkinsMiServerChallenge-500x210.png 500w\" sizes=\"auto, (max-width: 3422px) 100vw, 3422px\" \/><\/p>\n<h2 id=\"the-json5-test-catalogue\">The JSON5 test catalogue<\/h2>\n<p>Each round has a JSON5 file with members <code>P1<\/code> through <code>P10<\/code> describing how to test each problem. The format was inherited from the MiServer-based system; the test framework that consumes it has been completely rewritten. Here&#8217;s part of one:<\/p>\n<pre class=\"json5\"><code>{\r\n    P1: {\r\n        r:\"^ *\u2373 *\\\\d+\",\r\n        s:\"\u237324\",\r\n    },\r\n    \u2026\r\n    P7: {\r\n        a: [\r\n            \"'HELLO'\",\r\n            \"'DYALOG'\",\r\n            \"'APL'\",\r\n            \"{\u2375[?\u2262\u2375]}\u00a8'AEIOU' 'BCDFGHJKLM' 'NPQRSTVWXYZ' 'AEIOU'\",\r\n        ],\r\n        f: \"{(2\u2283\u2375),(2\u2283\u233d\u2375)}\",\r\n    },\r\n    \u2026\r\n}<\/code><\/pre>\n<p>Problems 1\u20136 ask the participant to type one specific expression that produces one specific value, so the specification carries a reference solution <code>s<\/code> and a regex <code>r<\/code> that describes the acceptable solutions. Problems 7-10 ask for a function: the specification carries a reference function <code>f<\/code>, an array of test arguments <code>a<\/code>, and (optionally) a preprocessor <code>p<\/code> to apply before comparing the user&#8217;s result with the reference&#8217;s. Since the JSON5 strings are APL expressions, we can generate random tests as needed to prevent participants from hard-coding answers.<\/p>\n<h2 id=\"submitting-an-answer\">Submitting an answer<\/h2>\n<p>JavaScript included in the frontend makes the user&#8217;s browser POST <code>[lang, problem, code, email]<\/code> to the <code>\/Submit<\/code> endpoint. First, we do some sanity checking:<\/p>\n<pre class=\"apl\"><code> (rc msg)\u2190req Submit(lang problem code email);anon;T\r\n lang \u2395C\u2368\u2190\u00af3\r\n :If ~lang\u2282\u235b\u220a##.\u2395NL \u00af9\r\n     lang\u2190'en'\r\n :EndIf\r\n T\u2190lang\u2218Text\r\n :If 'Z'\u2261round\r\n     (rc msg)\u21908(T'closed')\r\n :ElseIf ~problem\u2282\u2364,\u2364\u2355\u235b\u220a\u2355\u00a8\u237310\r\n     (rc msg)\u21908(T'badProbNo')\r\n :ElseIf 0\u220a\u220a' '=\u22830\u2374\u2282code\r\n     (rc msg)\u21908(T'badCode')\r\n :OrIf 255&lt;\u2262code\u2190\u220acode\r\n     (rc msg)\u21908(T'longCode')\r\n :ElseIf 0\u220a\u220a' '=\u22830\u2374\u2282email\r\n     email\u2190'^\\s+|\\s+$'\u2395R''\u220aemail\r\n :OrIf (''\u2262email)\u2227\u236c\u2261'\\S.*@.*\\S'\u2395S 3\u22a2email\r\n :OrIf email\u220a\u2368\u2395UCS 9\r\n :OrIf 254&lt;\u2262email\r\n     (rc msg)\u2190\u00af8(T'badEmail')\r\n :Else\r\n     \u2026<\/code><\/pre>\n<p>We then test the submission and add an entry to the <code>sub<\/code>[mission]<code>s<\/code> and, if correct, <code>wins<\/code> database files:<\/p>\n<pre class=\"apl\"><code>     \u2026\r\n     (rc msg)\u2190'data' 'problem' 'lang'\u2395NS\u235bTest code\r\n     \u2026\r\n     ((unixtime:20 \u2395DT'Z' \u22c4 code:'\\t'\u2395R'\u2409'\u22a2code)\u2395NS'problem' 'rc')AppendTSV dbDir,'\/subs.tsv'\r\n     :If 0=rc\r\n         req.Server.Log anon,' solved ',round,' problem ',problem\r\n         :Hold 'wins'\r\n             'email' 'problem' 'round'\u2395NS\u235bAppendTSV dbDir,'\/wins.tsv'\r\n         :EndHold\r\n     :EndIf\r\n :EndIf<\/code><\/pre>\n<p>Responses consist of a return code and a message, ready for the frontend to render as a Material admonition:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9367\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/Admonition.png\" alt=\"Example admonition\" width=\"2697\" height=\"708\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/Admonition.png 2697w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/Admonition-300x79.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/Admonition-768x202.png 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/Admonition-1024x269.png 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/05\/Admonition-500x131.png 500w\" sizes=\"auto, (max-width: 2697px) 100vw, 2697px\" \/><\/p>\n<p>The submission record uses two new Dyalog v20.0 features:<\/p>\n<pre class=\"apl\"><code>(unixtime:20 \u2395DT'Z' \u22c4 code:'\\t'\u2395R'\u2409'\u22a2code)\u2395NS'problem' 'rc'<\/code><\/pre>\n<p>The parenthesised expression is a namespace literal containing <code>unixtime<\/code> and <code>code<\/code> with their value expressions, and <code>\u2395NS'problem' 'rc'<\/code> amends the reference left argument (new!) with copies of those two variables. The result is a four-member namespace, ready to be appended as a TSV row. I chose to pass the row as a namespace rather than an ordered vector so that the table column order wouldn&#8217;t matter.<\/p>\n<h2 id=\"the-test-harness\">The test harness<\/h2>\n<p><code>Test<\/code> is the largest function in the codebase (110 lines), but mostly consists of validation; the actual evaluation is short. The function begins with more usage of new Dyalog v20.0 features:<\/p>\n<pre class=\"apl\"><code> (rc msg)\u2190params Test code;\u2026\r\n \u2395THIS \u2395NS params\r\n :Trap \u2395VGET\u2282'debug' 0\r\n     T\u2190lang\u2218Text\r\n     spec\u2190data \u2395VGET\u2282'P',problem\r\n     \u2026<\/code><\/pre>\n<p><code>\u2395THIS \u2395NS params<\/code> merges the entire <code>params<\/code> namespace into the current function&#8217;s scope, so <code>data<\/code>, <code>problem<\/code>, and <code>lang<\/code> (set up by the caller in <code>Submit<\/code>) are now ordinary local names with no <code>params.<\/code> qualifier required. <code>data \u2395VGET\u2282'debug' 0<\/code> decides whether to trap unexpected errors at the top level (during development, I set <code>debug\u21901<\/code> from the session), and <code>\u2395VGET<\/code> then reads the specification for the requested problem out of the test data.<\/p>\n<p>When initial validation is complete, the function proceeds based on the type of specification that was supplied (a regex-and-value check for problems 1-6, or a test-cases-and-function check for 7-10) and (after more specific validation) either runs the user&#8217;s code with <code>()\u234e<\/code> (to run it in a separate namespace) or composes a small expression that wraps the user&#8217;s function and the reference function side-by-side and runs both in turn. (Debugging the generated expression is where inline tracing came in handy for me.) If the answers match, the frontend gets <code>0 'Your answer is correct. Good job!'<\/code>. Otherwise the message tells them whether the answer was wrong, the methods used were wrong, the symbols used were wrong, or the code crashed.<\/p>\n<p>Security is delivered by a <code>safe<\/code> character set, which stops glyphs that are dangerous (<code>\u234e<\/code>, <code>\u2395<\/code>, <code>\u2192<\/code>, <code>\u2336<\/code>) or can lead to runaway execution (<code>\u235e<\/code>, <code>\u2207<\/code>, <code>\u2363<\/code>):<\/p>\n<pre class=\"apl\"><code>safe\u2190'+-\u00d7\u00f7\u2308\u230a*\u235f|!\u25cb~\u2228\u2227\u2371\u2372&lt;\u2264=\u2265&gt;\u2260.@\u2261\u2262\u2374,\u236a\u2373\u2191\u2193?\u2352\u234b\u2349\u233d\u2296\u220a\u22a5\u22a4\u2339\u2282\u2283\u222a\u2229\u2377\u2337\u2218\/\u233f\\\u2340\u00a8\u2368\u2286\u2365\u22a3\u22a2\u2364\u2338\u233a\u2378()[];\u22c4:\u235b\u236c{}\u237a\u2375\u00af '<\/code><\/pre>\n<p>This, together with limited memory, makes the new system light-weight enough that we can run it in the main thread, thus saving on thread juggling.<\/p>\n<h2 id=\"authorisation-as-a-one-liner\">Authorisation as a one-liner<\/h2>\n<p>There are only two protected endpoints \u2013\u00a0<code>Table<\/code> for reading the TSVs, and <code>Purge<\/code> for deleting records \u2013 both for our own administrative use. (Participants don&#8217;t authenticate at all; an email goes in with each submission, the browser remembers it client-side, and that&#8217;s it. The worst that can happen is that I submit a correct answer with your email address, and that you then get a single notification email about having won a competition you haven&#8217;t heard of. Your email is then purged from our systems.) A single dfn, evaluated once for each protected request, is sufficient:<\/p>\n<pre class=\"apl\"><code>Authorised\u2190{(\u2282\u2375.GetHeader'AuthToken')\u220a(\u2395VGET\u2282'authToken' '' \u22c4 Env'AUTHTOKEN')~\u2282''}<\/code><\/pre>\n<p>The valid token is whichever of the variable <code>authToken<\/code> (set manually for local testing) and the environment variable <code>$AUTHTOKEN<\/code> (set by Docker from a Jenkins credential) is non-empty. <code>\u2395VGET<\/code> returns its default of <code>''<\/code> if <code>authToken<\/code> isn&#8217;t defined. The request&#8217;s <code>AuthToken<\/code> header is compared against the resulting list.<\/p>\n<h2 id=\"the-database\">The &#8220;database&#8221;<\/h2>\n<p>The two storage tables are TSV files. They&#8217;re created at server start if they don&#8217;t exist. The combination of <code>:For<\/code>\u2026<code>:In<\/code> with multi-line array notation makes it easy to spot what goes where, whilst preventing the lines from getting too long:<\/p>\n<pre class=\"apl\"><code> :For name head :In (\r\n         'subs'('code' 'rc' 'problem' 'unixtime')\r\n         'wins'('email' 'problem' 'round')\r\n     )\r\n     pathfile\u2190dbDir,'\/',name,'.tsv'\r\n     :If ~\u2395NEXISTS pathfile\r\n         pathfile \u2395NPUT\u2368[head \u22c4 ]TSV''\r\n     :EndIf\r\n :EndFor<\/code><\/pre>\n<p><code>[head \u22c4 ]<\/code> is array notation for a one-row matrix containing the row <code>head<\/code>\u00a0\u2013 a header row. <code>TSV<\/code> is\u00a0<code>\u2395CSV<\/code> with the separator pre-set to the Tab character and quotes disabled (<code>Submit<\/code> already protected us against Tab characters in the submission by replacing them with the Unicode <em>control picture<\/em> <code>\u2409<\/code>):<\/p>\n<pre class=\"apl\"><code> TSV\u2190\u2395CSV \u2395OPT('Separator'(\u2395UCS 9) \u22c4 'QuoteChar' '')<\/code><\/pre>\n<p><code>subs.tsv<\/code> contains <code>code<\/code>, <code>rc<\/code>, <code>problem<\/code>, and <code>unixtime<\/code>\u00a0\u2013 every submission, with no email column. <code>wins.tsv<\/code> contains <code>email<\/code>, <code>problem<\/code>, and <code>round<\/code>\u00a0\u2013 correct submissions only, with no code column and no timestamp. The two tables share no column that would let you join a participant&#8217;s email to the code they typed. We can produce statistics (&#8220;how many people solved problem 7 of round G?&#8221;), and we can email prize winners, but we can&#8217;t, even ourselves, look at a piece of submitted code and say which person wrote it. That&#8217;s deliberate.<\/p>\n<p>Appending a record is a one-liner that takes a namespace whose names match the table&#8217;s columns, slots the values into a fresh row in the right column order, and asks <code>\u2395NPUT<\/code> to append (<code>2<\/code>):<\/p>\n<pre class=\"apl\"><code> r\u2190file 2 \u2395NPUT\u2368[ns.\u2395VGET\u2283\u233d(TSV \u2395OPT'Records' 1)file \u236c 4 1 \u22c4 ]TSV''<\/code><\/pre>\n<p><code>(TSV \u2395OPT'Records' 1)file \u236c 4 1<\/code> reads only the header row (one record), and <code>ns.\u2395VGET<\/code> then plucks the values out of the namespace in that order.<\/p>\n<p>Reading a whole table for the administrative <code>Table<\/code> endpoint is:<\/p>\n<pre class=\"apl\"><code> resp\u21900 \u2395JSON 1 \u2395JSON\u22822(TSV path \u236c 4)<\/code><\/pre>\n<p>Here, we read the file then round-trip through <code>\u2395JSON<\/code> to leverage a dataset wrapper \u2013 introduced in Dyalog v19.0 \u2013 that transforms a table into a vector of namespaces. To see what&#8217;s happening, here is a sample <code>wins<\/code> table:<\/p>\n<pre><code>      wins\u2190[\r\n            'email'           'problem' 'round'\r\n            'foo@example.com' 1         'A'\r\n            'bar@example.com' 2         'B'\r\n           ]\r\n      1 \u2395JSON\u22822 wins\r\n[{\"email\":\"foo@example.com\",\"problem\":1,\"round\":\"A\"},{\"email\":\"bar@example.com\",\"problem\":2,\"round\":\"B\"}]<\/code><\/pre>\n<p>Jarvis will respond with JSON data, but does the conversion from APL array for us, so we preempt the double-conversion with <code>0 \u2395JSON<\/code>. Yes, it is unnecessary work, but it happens rarely enough not to matter, and even with the round-trip it is faster than the alternative, more-involved,\u00a0<code>\u2283{()\u2395VSET(\u2191\u2375)\u237a}\u23641\/TSV path \u236c 4 1<\/code>.<\/p>\n<h2 id=\"behind-the-scenes-with-\">Behind the scenes with <code style=\"font-size: inherit!important\">\u235b<\/code><\/h2>\n<p>Dyalog v20.0 introduced\u00a0the new <em>behind<\/em> operator, <code>\u235b<\/code>. This uses the left operand to provide a left argument to the right operand:<\/p>\n<ul>\n<li><code>X f\u235bg Y<\/code> is <code>(f X) g Y<\/code><\/li>\n<li><code>f\u235bg Y<\/code> is <code>(f Y) g Y<\/code><\/li>\n<\/ul>\n<p>This is a very common pattern, and across the 400-line backend <code>\u235b<\/code> appears over 30 times. Here are some of the representative uses:<\/p>\n<table>\n<colgroup>\n<col \/>\n<col width=\"40%\" \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<th style=\"border-top: 1px solid #ddd\">New<\/th>\n<td><code>'data' 'problem' 'lang'\u2395NS\u235bTest code<\/code><\/td>\n<td style=\"text-align: left\" rowspan=\"2\">Make <code>Test<\/code> take a list of names representing a namespace,<br \/>\nrather than taking a namespace reference<\/td>\n<\/tr>\n<tr>\n<th>Old<\/th>\n<td style=\"border: none\"><code>(\u2395NS'data' 'problem' 'lang')Test code<\/code><\/td>\n<\/tr>\n<tr>\n<th style=\"border-top: 1px solid #ddd\">New<\/th>\n<td><code>lang\u2282\u235b\u220a##.\u2395NL \u00af9<\/code><\/td>\n<td style=\"text-align: left\" rowspan=\"2\">Make <code>\u220a<\/code> look for a single whole text,<br \/>\nrather than for each letter<\/td>\n<\/tr>\n<tr>\n<th>Old<\/th>\n<td style=\"border: none\"><code>(\u2282lang)\u220a##.\u2395NL \u00af9<\/code><\/td>\n<\/tr>\n<tr>\n<th style=\"border-top: 1px solid #ddd\">New<\/th>\n<td><code>mask~\u235b\/what<\/code><\/td>\n<td style=\"text-align: left\" rowspan=\"2\"><code>\/<\/code> means &#8220;filter in&#8221;; &#8220;keep the indicated&#8221;<br \/>\n<code>~\u235b\/<\/code> means &#8220;filter out&#8221;; &#8220;remove the indicated&#8221;<\/td>\n<\/tr>\n<tr>\n<th>Old<\/th>\n<td style=\"border: none\"><code>(~mask)\/what<\/code><\/td>\n<\/tr>\n<tr>\n<th style=\"border-top: 1px solid #ddd\">New<\/th>\n<td><code>(\u2228\/spec.s\u2218\u220a)\u235b\/\u00a8groups<\/code><\/td>\n<td style=\"text-align: left\" rowspan=\"2\"><code>\u235b\/<\/code> is a monadic filtering operator<br \/>\n<code>f\u235b\/\u00a8Y<\/code> filters each element of <code>Y<\/code> by the predicate function <code>f<\/code><\/td>\n<\/tr>\n<tr>\n<th>Old<\/th>\n<td style=\"border: none\"><code>((\u2228\/spec.s\u2218\u220a)\u00a8groups)\/\u00a8groups<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>I especially like how <code>\u235b<\/code> allows me to extend the primitive vocabulary of APL by providing oft-needed variants of existing primitives; <code>X\u2282\u235b\u220aY<\/code> and <code>X~\u235b\/Y<\/code> and <code>f\u235b\/Y<\/code> could easily have been primitives in their own right.<\/p>\n<h2 id=\"internationalisation-and-errors\">Internationalisation<\/h2>\n<p>Responses to submissions, including both success and failure messages, as well as reports about internal errors in the system (luckily, we&#8217;ve only had one minor error, and it was due to a mistake in the frontend), are sent as plain human-readable text together with a return code. The frontend renders it as a Material-style admonition with the colour and icon determined by the return code. English phrasings live in an array notation namespace in the file <strong>en.apla<\/strong>:<\/p>\n<pre class=\"apl\"><code>(\r\n and:'and'\r\n ansCorrect:'Your answer is correct. Good job!'\r\n ansErr:'Error&lt;p&gt;Your answer caused a'\r\n ansPass:'Your answer passed all tests. Good job!'\r\n arg:'argument'\r\n as:'as'\r\n badEmail:'Invalid email address'\r\n \u2026\r\n)<\/code><\/pre>\n<p>Jarvis loads <strong>.apla<\/strong> files together with the other application code. Now, you might have spotted the line <code>:If ~lang\u2282\u235b\u220a##.\u2395NL \u00af9<\/code> and thought that this looks error-prone; surely, a malicious actor could issue a POST with the language set to the name of an unrelated namespace! Worry not; the line <code>lang \u2395C\u2368\u2190\u00af3<\/code> makes sure only namespaces with entirely lowercase names are reachable as language packs, while all the system&#8217;s top-level namespaces begin with a capital letter. Phew, close!<\/p>\n<p>Adding a new language to the backend consists of adding one file. Of course, the problem statements and informational pages will also need translation, but Material for MkDocs supports internationalisation by having a separate directory per language. I only recently finished composing all nine planned rounds of content, and want to harmonise them a bit more before we begin translating, but at least the wiring is there.<\/p>\n<h1 id=\"looking-back-and-forwards\">Looking back and forwards<\/h1>\n<p>The previous stack was a very useful test of the code and tools that we supply: it exercised our libraries, gave us bug reports against our own tools, and kept us using what we were selling. However, it also accumulated technical debt, and as the system evolved, the seams started to show.<\/p>\n<p>The new stack also uses Dyalog technology (Jarvis, HttpCommand, Conga, and most of the newest language features) and these are really the things we&#8217;re selling today. It does so much more economically too: the whole thing runs on a single virtual CPU with 512 MB of RAM, whereas the old system used at least two virtual CPUs (more during peaks) with 1 GB of RAM each.<\/p>\n<p>Have a look at Jarvis! It is really easy to get started. Here&#8217;s the bare minimum to get from a clear workspace to a running service with a good architecture in a folder <strong>\/rot<\/strong> (replace with any other folder you want to use instead):<\/p>\n<ol>\n<li><strong>Design your API:<\/strong> We&#8217;ll make it really simple; create a single function <code>Rotate\u2190{\u2283\u233d\/\u2375}<\/code> in the workspace.<\/li>\n<li><strong>Create the folder and function source file:<\/strong> <code>]Create # \/rot<\/code><\/li>\n<li><strong>Create the Jarvis configuration file:<\/strong> The easiest is <code>]Repr (CodeLocation:'.' \u22c4 HTMLInterface:'.' \u22c4 IncludeFns:'Rotate') -f=json -o=\/rot\/jarvis.json<\/code><\/li>\n<li><strong>Create the HTML interface:<\/strong> Here&#8217;s one with two input fields, a button, and the minimal JavaScript needed to make the button work:\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;Jarvis Text Rotator&lt;\/title&gt;\r\n    &lt;script&gt;\r\n      Exec=()=&gt;{\r\n        fetch(\"\/Rotate\",{\r\n          method:\"POST\",\r\n          headers:{\"content-type\":\"application\/json; charset=utf-8\"},\r\n          body:JSON.stringify([steps.valueAsNumber, text.value])\r\n        }).then(r=&gt;r.json()).then(d=&gt;out.innerHTML=d)\r\n      }\r\n    &lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;input id=steps placeholder=Steps type=number&gt;\r\n    &lt;button onclick=Exec()&gt;\u233d&lt;\/button&gt;\r\n    &lt;input id=text placeholder=Text&gt;\r\n    &lt;br&gt;\r\n    &lt;output id=out&gt;&lt;\/output&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<p>Save this text to <strong>\/rot\/index.html<\/strong>.<\/li>\n<li><strong>Get Jarvis:<\/strong> <code>]Get github.com\/Dyalog\/Jarvis\/blob\/master\/Source\/Jarvis.dyalog<\/code><\/li>\n<li><strong>Start the server:<\/strong> <code>Jarvis.Run'\/rot\/jarvis.json'<\/code><\/li>\n<li><strong>Try it:<\/strong> Open <a href=\"http:\/\/localhost:8080\/\">localhost:8080<\/a> in your browser, fill in the fields, and click the button!<\/li>\n<\/ol>\n<p>Try HttpCommand, too! While the above server is running, we can easily use it as a micro-service, bypassing the HTML frontend:<\/p>\n<ol>\n<li><strong>Get HttpCommand:<\/strong> <code>]Get HttpCommand<\/code><\/li>\n<li><strong>Issue the command:<\/strong> <code>resp\u2190HttpCommand.GetJSON'POST' 'localhost:8080\/Rotate' (2 'Hello')<\/code><\/li>\n<li><strong>Inspect the response:<\/strong> <code>resp.Data<\/code>\u00a0\u2013 this will give the character vector <code>'lloHe'<\/code><\/li>\n<\/ol>\n<p>If you&#8217;ve made it all the way to here, congratulations! Don&#8217;t forget to promote the <a href=\"https:\/\/challenge.dyalog.com\">APL Challenge<\/a> and the <a href=\"https:\/\/forge.dyalog.com\/\">APL Forge<\/a>\u00a0\u2013 they are available year-round!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In February 2026, the APL Challenge quietly launched its next round on a rewritten stack. The previous infrastructure was retired and replaced by something considerably smaller and, I think, much more pleasant to maintain. This blog post describes how we &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/05\/a-new-stack-for-the-apl-challenge\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,56,33],"tags":[],"class_list":["post-9360","post","type-post","status-publish","format-standard","hentry","category-algorithms","category-apl-challenge","category-implementation"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/9360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=9360"}],"version-history":[{"count":82,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/9360\/revisions"}],"predecessor-version":[{"id":9476,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/9360\/revisions\/9476"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=9360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=9360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=9360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}