{"id":7849,"date":"2023-10-18T20:00:43","date_gmt":"2023-10-18T20:00:43","guid":{"rendered":"https:\/\/www.dyalog.com\/blog\/?p=7849"},"modified":"2023-12-15T14:06:34","modified_gmt":"2023-12-15T14:06:34","slug":"dyalog-23-day-4-so-many-problems-to-solve","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2023\/10\/dyalog-23-day-4-so-many-problems-to-solve\/","title":{"rendered":"Dyalog &#8217;23 Day 4: So Many Problems to Solve"},"content":{"rendered":"<p>We started Wednesday with an update to the <a href=\"https:\/\/github.com\/Co-dfns\/Co-dfns\" target=\"_blank\" rel=\"noopener\">co-dfns project<\/a> by Aaron Hsu. Aaron is trying to make APL more accessible to more people for tackling more problems. He explained how version 4 focusses on good performance on GPUs and detailed error reporting \u2013 including a parser that can be used for static analysis of APL code outside of Co-dfns \u2013 and how version 5 intends to target more platforms, improving integration of APL in other systems. There are even rumours of a JavaScript backend on the horizon! Dyalog available in the browser, wherever you go.<\/p>\n<div id=\"attachment_7955\" style=\"width: 210px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7955\" class=\"size-medium wp-image-7955\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-03-Brandon-200x300.jpg\" alt=\"\" width=\"200\" height=\"300\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-03-Brandon-200x300.jpg 200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-03-Brandon-768x1152.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-03-Brandon-683x1024.jpg 683w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><p id=\"caption-attachment-7955\" class=\"wp-caption-text\">Brandon Wilson presents the challenges of parsing YAML<\/p><\/div>\n<p>Brandon Wilson is a relative newcomer to APL. Although his main interest is in AI safety, he has significant experience in mainstream computer systems. This is part of what made him decide to write a YAML (YAML Ain&#8217;t Markup Language) parser in APL. Interestingly, most of the existing YAML parsers in use today fail some part of the test suite. This speaks to the complexity of the task and how there are many interactions between different parts of YAML that are not obvious. Brandon is hoping that writing a complete parser the APL way will lead to insights into the YAML specification that he can give back to the YAML community to help the specification developers better communicate what is needed to other parser maintainers.<\/p>\n<p>Next, Josh David highlighted the huge demand for statistics in data science, machine learning, and the increase of data-driven decision-making in business. Although data preparation is easy in APL, he noted the lack of ready-made code for doing statistics. Simple summaries and linear regression take just a few primitives, but Josh showed us a couple of libraries for doing more complex statistical analysis. He demonstrated rapid iteration on multiple linear regression using <a href=\"https:\/\/github.com\/JoshDavid\/KokoStats\" target=\"_blank\" rel=\"noopener\">KokoStats<\/a> by Dr. Bill Koko, performing multiple tests and seeing the impact of the selected data on the predictive power of the regression model. In Professor Stephen Mansour&#8217;s <a href=\"http:\/\/tamstat.com\/\" target=\"_blank\" rel=\"noopener\">TamStat<\/a> package, the use of operators reduces the overall number of functions that users need to memorise, and a cross-platform graphical interface makes a great environment for exploring and learning statistics.<\/p>\n<p>Jes\u00fas Galan Lopez returned to expand on something that he mentioned in his previous presentation \u2013 the modelling of grain growth in solid materials. Students at his university were tasked with reproducing models from published research. They wrote their solutions in Python because it was familiar to them, but Jes\u00fas wanted to see how array programming would compare. He found that his APL solution was generally shorter, cleaner, and faster. Of course, he had to compare more like-for-like programs by trying his solution in NumPy as well, and he found Dyalog had comparable performance.<\/p>\n<div id=\"attachment_7956\" style=\"width: 210px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7956\" class=\"size-medium wp-image-7956\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-09-Andrea-200x300.jpg\" alt=\"\" width=\"200\" height=\"300\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-09-Andrea-200x300.jpg 200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-09-Andrea-768x1152.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-09-Andrea-683x1024.jpg 683w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><p id=\"caption-attachment-7956\" class=\"wp-caption-text\">Grand Prize winner Andrea Piseri<\/p><\/div>\n<p>Then it was time for the presentation of prizes to winners of this year&#8217;s APL Problem Solving Competition. Brian Becker gave a brief history of the competition and overview of the contest website (which uses Dyalog-grown tools). He also announced future changes to the competition, such as quarterly sets of Phase-1-style one-liner problems. Gitte then presented certificates to the student grand prize winner, Andrea Piseri, and professional winner, Alexander Block.<\/p>\n<p>Alexander was first to introduce himself \u2013 he is an actuary using APL to solve problems, working in insurance companies in Germany \u2013 and talk us through a couple of his solutions. Having used Haskell, he is a big fan of point-free (tacit) programming, and liked his use of the <em>over<\/em> operator (<code class=\"language-apl\">\u2365<\/code>) in his solution to the Risk attack problem from <a href=\"https:\/\/problems.tryapl.org\/psets\/2023.html?goto=P5_Risky_Business\" target=\"_blank\" rel=\"noopener\">phase 1 (problem 5)<\/a>.<\/p>\n<div id=\"attachment_7957\" style=\"width: 210px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7957\" class=\"size-medium wp-image-7957\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-08-Alexander-200x300.jpg\" alt=\"\" width=\"200\" height=\"300\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-08-Alexander-200x300.jpg 200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-08-Alexander-768x1152.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-08-Alexander-683x1024.jpg 683w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><p id=\"caption-attachment-7957\" class=\"wp-caption-text\">Professional winner Alexander Block<\/p><\/div>\n<p>Andrea Piseri is a mathematics student with a particular interest in abstract algebra and mathematical logic, as well as a programming language enthusiast. Coming from the functional programming world, Andrea first solved the DNA reading frames problem (phase 2, problem 1, task 5) using the &#8220;flatmap&#8221; pattern, but then came up with another solution leveraging comparison and interval-index to process the whole input at once. When tackling the &#8220;make change&#8221; problem (phase 2, problem 2, task 3) he was surprised to find APL was not so opinionated and that he could quite easily map iterative and recursive patterns from Haskell onto dfns.<\/p>\n<p>This afternoon was the annual Viking Challenge, and this year the team from Midgaard Event set up a thrilling mystery in which we were split into teams to solve a variety of puzzles. The individual puzzles offered a range of challenges to suit all participants, with the ultimate challenge being to piece clues together in a process of elimination. There was temptation to write an APL program to solve the problem, but it was resisted as nine of the twelve teams managed to work out the solution with pen and paper. Eyes rolled with chagrin all around the auditorium when it was announced that the winning team was the team that included both Gitte and Stine!<\/p>\n<div id=\"attachment_7958\" style=\"width: 594px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7958\" class=\"size-large wp-image-7958\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-13-VikingChallenge-1024x683.jpg\" alt=\"\" width=\"584\" height=\"390\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-13-VikingChallenge-1024x683.jpg 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-13-VikingChallenge-300x200.jpg 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-13-VikingChallenge-768x512.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2023\/10\/20231018-13-VikingChallenge-450x300.jpg 450w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><p id=\"caption-attachment-7958\" class=\"wp-caption-text\">The winning team of this year&#8217;s Viking Challenge<\/p><\/div>\n<p>Today&#8217;s presentations:<\/p>\n<ul>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog23\/?v=6yfBlNKw7Ug\" target=\"_blank\" rel=\"noopener\"><strong>D15: Co-dfns Update 2023<\/strong> \u2013 Aaron Hsu<\/a><\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog23\/?v=bb6sIAJjMeM\" target=\"_blank\" rel=\"noopener\"><strong>U11: A YAML Parser in APL \u2013 Leveraging a Linear Dataflow Model to Unleash APL&#8217;s Expressiveness<\/strong> \u2013 Brandon Wilson<\/a><\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog23\/?v=69o40s_N2AE\" target=\"_blank\" rel=\"noopener\"><strong>D16: Statistical Libraries for Dyalog<\/strong> \u2013 Josh David<\/a><\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog23\/?v=yIUMrQHh-us\" target=\"_blank\" rel=\"noopener\"><strong>U12: Grain Growth and Array Programming<\/strong> \u2013 Jes\u00fas Gal\u00e1n L\u00f3pez<\/a><\/li>\n<li><a class=\"body\" href=\"https:\/\/dyalog.tv\/Dyalog23\/?v=LdMLaTsPQNk\" target=\"_blank\" rel=\"noopener\"><strong>D17: How I Won the APL Problem Solving Competition (Introduction and Prize Ceremony)<\/strong> \u2013 Brian Becker<\/a><\/li>\n<li><a class=\"body\" href=\"https:\/\/dyalog.tv\/Dyalog23\/?v=UM9nd0vhaHA\" target=\"_blank\" rel=\"noopener\"><strong>U13: How I Won the APL Problem Solving Competition (Non\u2011student Winner)<\/strong> \u2013 Alexander Block<\/a><\/li>\n<li><a class=\"body\" href=\"https:\/\/dyalog.tv\/Dyalog23\/?v=v_74VRpwsw4\" target=\"_blank\" rel=\"noopener\"><strong>U14: How I Won the APL Problem Solving Competition (Student Winner)<\/strong> \u2013 Andrea Piseri<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>We started Wednesday with an update to the co-dfns project by Aaron Hsu. Aaron is trying to make APL more accessible to more people for tackling more problems. He explained how version 4 focusses on good performance on GPUs and &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2023\/10\/dyalog-23-day-4-so-many-problems-to-solve\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,55,4],"tags":[],"class_list":["post-7849","post","type-post","status-publish","format-standard","hentry","category-student-competition","category-dyalog-23","category-events"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/7849","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=7849"}],"version-history":[{"count":21,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/7849\/revisions"}],"predecessor-version":[{"id":8088,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/7849\/revisions\/8088"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=7849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=7849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=7849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}