{"id":8401,"date":"2024-11-15T10:59:35","date_gmt":"2024-11-15T10:59:35","guid":{"rendered":"https:\/\/www.dyalog.com\/blog\/?p=8401"},"modified":"2024-11-15T13:48:29","modified_gmt":"2024-11-15T13:48:29","slug":"dyalog-24-videos-week-4-migrating-apl-code-and-new-gui-frameworks","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2024\/11\/dyalog-24-videos-week-4-migrating-apl-code-and-new-gui-frameworks\/","title":{"rendered":"Dyalog &#8217;24 Videos: Week 4 \u2013 Migrating APL Code, and New GUI Frameworks"},"content":{"rendered":"<p>The presentations released this week are about APL applications on the move. Some applications are moving from one APL implementation to another, for example from APL2 or APL+Win to Dyalog APL. Others are moving from one platform to another, for example from a mainframe or the Microsoft Windows desktop to Linux in docker containers in the cloud. Sometimes both moves are being considered \u2013 the need to switch platforms often triggers a review of which APL system to use on the new platform.<\/p>\n<h2>Migrating to Dyalog APL<\/h2>\n<p>OLE or ActiveX is an old technology which is being replaced by web services using tools like Jarvis. However, quite a few existing applications use it to make APL business logic available from tools like Microsoft Excel. Dyalog allows you to turn any namespace into an OLE Server with an API that is specific to your application \u2013 this requires the design of an object-oriented API. APL+Win comes with a simpler (evil tongues might say less secure) but in some ways easier-to-use framework in which a single OLE Server called WSEngine allows you to load any workspace and execute code within it. J\u00fcrgen Wiedemann from Dittrich und Partner Consulting (DPC) shows how the Dyalog framework can be used to implement something very similar to the APl+Win tool. Not only does this simplify some migrations, it also provides a simpler OLE Server framework for users of Dyalog who don&#8217;t need or want an application-specific API.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8446\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU10.jpg\" alt=\"\" width=\"1200\" height=\"630\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU10.jpg 1200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU10-300x158.jpg 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU10-768x403.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU10-1024x538.jpg 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU10-500x263.jpg 500w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>We are in the process of migrating the <a href=\"https:\/\/metsim.com\/\" target=\"_blank\" rel=\"noopener\">METSIM\u00ae application<\/a> from APL+Win to Dyalog. As part of this project, we are developing general-purpose tools for moving APL source code from other APL systems to Git, performing automated translation and\/or emulation of language features not directly supported by Dyalog. Karl Holt and I present the current state of these tools, including the current prototype of a function named <code class=\"language-apl\">\u2206WI<\/code>, which emulates <code class=\"language-apl\">\u2395WI<\/code> from APL+Win or MicroAPL APLX, and will help move GUI applications to Dyalog with minimal application code changes. All these tools will be made available free as public repositories on GitHub.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8429\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD09.jpg\" alt=\"\" width=\"1200\" height=\"630\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD09.jpg 1200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD09-300x158.jpg 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD09-768x403.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD09-1024x538.jpg 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD09-500x263.jpg 500w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>Markos Mitsos of ERGO insurance has taken a completely different approach to his migration from APL+Win to Dyalog. Rather than use tools like those described in the previous two presentations, which aim to minimise the changes required to application code, Markos has carefully studied the Dyalog APL language and tools, and decided to refactor his old code to take full advantage of the new platform. This obviously takes much longer than using semi-automated migration tools. In his presentation on workspace transformations, Markos explains why he feels the extra work was worth it.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8445\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU09.jpg\" alt=\"\" width=\"1200\" height=\"630\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU09.jpg 1200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU09-300x158.jpg 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU09-768x403.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU09-1024x538.jpg 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU09-500x263.jpg 500w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h2>New GUI Frameworks<\/h2>\n<p>First, a bit of fun: <a href=\"https:\/\/www.raylib.com\/\" target=\"_blank\" rel=\"noopener\">RayLib<\/a> is a simple and easy-to-use library for video game programming (although it can be used for more serious purposes). Brian Ellingsgaard is the creator of raylib-bqn, an interface from BQN, which is an array language with many similarities to Dyalog APL. He spent this summer with us as an intern, creating a similar interface from Dyalog \u2013 the result is <a href=\"https:\/\/github.com\/Brian-ED\/raylib-apl\" target=\"_blank\" rel=\"noopener\">raylib-apl<\/a>. In his presentation, he gives examples of 2D and 3D game programming using RayLib&#8230;including the mandatory 3D <a href=\"https:\/\/www.dyalog.com\/the-dyalog-duck.htm\">duck<\/a> rendering!<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8439\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU03.jpg\" alt=\"\" width=\"1200\" height=\"630\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU03.jpg 1200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU03-300x158.jpg 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU03-768x403.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU03-1024x538.jpg 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU03-500x263.jpg 500w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" style=\"margin-top: -30px\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/11\/U03_3D-Duck-300x229.png\" alt=\"\" width=\"300\" height=\"229\" class=\"aligncenter size-medium wp-image-8504\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/11\/U03_3D-Duck-300x229.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/11\/U03_3D-Duck-394x300.png 394w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/11\/U03_3D-Duck.png 731w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The original goal of our Everywhere WC project (EWC) was to allow existing applications using the Microsoft Windows GUI based on the <code class=\"language-apl\">\u2395WC<\/code> system function to be moved to other platforms, including Linux in the cloud. EWC provides cover-functions that emulate the <code class=\"language-apl\">\u2395WC<\/code> family of functions using a JavaScript (React) application to recreate equivalent GUIs. This allows applications to be migrated to Linux and macOS (or Microsoft Windows) desktops using the HTMLRenderer, or to any platform with a web browser to render the user interfaces \u2013 with minimal changes. However, the implementation also supports changing the look and feel using CSS styling, <span data-teams=\"true\"><span class=\"ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak\" dir=\"ltr\">Flex layout for responsive UI, and several new controls based on JavaScript libraries like the ApexCharts graphics package<\/span><\/span>. In this presentation, I also suggest that it has potential for completely new applications.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8427\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD07.jpg\" alt=\"\" width=\"1200\" height=\"630\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD07.jpg 1200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD07-300x158.jpg 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD07-768x403.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD07-1024x538.jpg 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostD07-500x263.jpg 500w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>In the 1980s, Pete Donnelly and Geoff Streeter oversaw the design and development of <code class=\"language-apl\">\u2395SM<\/code>, a system function for creating text-based (&#8220;80&#215;25&#8221;) user interfaces. When Graphical User Interfaces came with Microsoft Windows, Pete worked with John Daintree to design <code class=\"language-apl\">\u2395WC<\/code>, a system function for creating GUIs under Windows. In both cases, these features were quickly mastered by APL users, and subsequently used to build many of the most successful applications written in Dyalog. Now that <span data-teams=\"true\"><span class=\"ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak\" dir=\"ltr\">applications increasingly need to be cross-platform and\/or remotely controlled<\/span><\/span>, Pete has been Noodling*, searching for intuitive ways for APL users to define cross-platform, HTML-based UI, based on popular widget libraries. Given his track record, it is worth paying attention to Pete&#8217;s Noodles!<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8448\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU12.jpg\" alt=\"\" width=\"1200\" height=\"630\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU12.jpg 1200w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU12-300x158.jpg 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU12-768x403.jpg 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU12-1024x538.jpg 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2024\/10\/Dyalog24blogpostU12-500x263.jpg 500w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>* John Daintree refers to experiments as &#8220;Noodles&#8221;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>This week&#8217;s videos:<\/p>\n<ul>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog24\/?v=WVWXm1Oyo0Q\" target=\"_blank\" rel=\"noopener\">U10: Deployment of the Dyalog Interpreter as an OLE Server for Interactive Use (Microsoft Windows Only)<\/a> (J\u00fcrgen Wiedemann)<\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog24\/?v=zhc2uuxYBlg\" target=\"_blank\" rel=\"noopener\">D09: Migrating APL+Win Applications<\/a> (Morten Kromberg and Karl Holt)<\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog24\/?v=GxQ70_7j8n4\" target=\"_blank\" rel=\"noopener\">U09: Migrating to Dyalog from APL+Win: Workspace Transformation<\/a> (Markos Mitsos)<\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog24\/?v=aSSub9-CBD8\" target=\"_blank\" rel=\"noopener\">U03: raylib-apl \u2013 A Simple Cross-Platform Library for Graphics, Sound, Interactivity, and more<\/a> (Brian Ellinsgaard)<\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog24\/?v=sKJDTiW7v0k\" target=\"_blank\" rel=\"noopener\">D07: Everywhere WC<\/a> (Morten Kromberg)<\/li>\n<li><a href=\"https:\/\/dyalog.tv\/Dyalog24\/?v=OwLhyI1liaQ\" target=\"_blank\" rel=\"noopener\">U12: Noodle, A Cross-Platform, Object-Oriented Framework for Developing Single-User Desktop Dyalog GUI Applications<\/a> (Pete Donnelly)<\/li>\n<\/ul>\n<p>Materials for all presentations can be downloaded from the <a href=\"https:\/\/www.dyalog.com\/user-meetings\/dyalog24.htm\" target=\"_blank\" rel=\"noopener\">Dyalog &#8217;24 webpage<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The presentations released this week are about APL applications on the move. Some applications are moving from one APL implementation to another, for example from APL2 or APL+Win to Dyalog APL. Others are moving from one platform to another, for &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2024\/11\/dyalog-24-videos-week-4-migrating-apl-code-and-new-gui-frameworks\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,57,4,6],"tags":[],"class_list":["post-8401","post","type-post","status-publish","format-standard","hentry","category-cto","category-dyalog-24","category-events","category-videos"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/8401","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=8401"}],"version-history":[{"count":13,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/8401\/revisions"}],"predecessor-version":[{"id":8494,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/8401\/revisions\/8494"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=8401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=8401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=8401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}