Dyalog
Conways Game Of Life in APL
updated
This presentation looks at new features in Dyalog v20.0: array notation and programmatic variable assignment.
Adám starts by showing how the new array notation makes it easier to write and read arrays. He uses it to build a small utility function that’s simpler and cleaner than could be written pre-v20.0.
Next, he moves on to programmatic assignment — creating variable names in code and giving them values on the fly — useful for building flexible tools.
He also touches upon retrieving values by name.
To show how these features can work together, he puts together a simple DSL (domain-specific language) for defining and querying tabular data.
This talk picks up where Setting and Getting Variable Values Mk II (youtube.com/watch?v=f5_6NbfSTxM) left off, and gives a clear look at how Dyalog v20.0 helps you write better APL.
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
#DyalogV20 #ArrayNotation #VariableAssignment
Their response to this video: youtube.com/watch?v=I57buGfKm3w
The premise is that the basic "Hello, World!" program is insufficient to get a feel for a programming language, so they specify some interactivity to further demonstrate looping, conditions, I/O, and more. They show an implementation in GNU APL, but without fully explaining it. Besides, GNU APL is missing some features that can be used to make the code neater. Here are therefore four fully explained alternatives written in Dyalog APL.
The shell scripts are available at github.com/dyalog/bye-bye-hello-dyalog-apl
Adám's own YouTube channel: youtube.com/@abrudz
0:00 Intro
1:13 The premise
2:18 Implemenation structure
4:02 Command line arguments
5:40 GetCount function
9:23 Greet function
9:57 Aside: Converting string to number
12:40 Greet function continued
13:41 First run!
14:29 Removing unnecessary control structures
17:50 Functional approach
21:22 Conversion to one-liner
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Our Socials:
Dyalog on Facebook: facebook.com/DyalogAPL
Dyalog on Instagram: instagram.com/dyalogapl
Dyalog on LinkedIn: linkedin.com/company/dyalog-ltd-
Dyalog on Mastodon: https://mastodon.social/@dyalog
Dyalog on Twitter / X: twitter.com/DyalogAPL
Dyalog on YouTube: youtube.com/@DyalogLtd
Dyalog User Meetings on YouTube: youtube.com/@DyalogUserMeeting
Dyalog on Bluesky: https://bsky.app/profile/dyalog.bsky.social
Try it online now: https://is.gd/PfBfQt
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
This version uses partitioning and nested arrays.
Try the code now: https://is.gd/MuP2EL
tryapl.org
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
00:00 What are namespaces and what are they used for?
00:35 Overview of this video
01:00 Namespaces as a container for APL stuff which prevent name conflicts
01:46 How to create a namespace with the system function ⎕NS and assign names and execute other expressions within it
02:28 Viewing the contents of a namespace with the workspace explorer or ]map user command
03:14 Pass by reference semantics and mutability
05:12 The root namespace # and the session object ⎕SE
06:08 Find the parent of a namespace with ##
06:29 Check if two references point to the same namespace with the match function ≡
06:35 Named and unnamed, anonymous namespaces
07:03 The result of dyadic ⎕NS, the namespace path character vector
07:32 Syntax of ⎕NS with an empty right argument. Creating subnamespaces in a single call.
08:16 Copying contents, code and data, from one namespace into another
09:22 Namespaces references are simple scalars
09:40 Convenient arrays of namespace references
10:40 Organise your application and make it modular
11:56 Namespaces as a dictionary or JSON object
12:24 Passing optional arguments to a function with defaults
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
#Namespaces #CodeOrganisation #APL
APL operators (higher-order functions) offer powerful ways to apply functions to data. While Dyalog provides plenty of powerful operators, you can define your own to accomplish additional tasks. In this webinar, we show the basic syntax of user-defined operators and present a few utilities, compositions, and conceptual tools.
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_UserDefinedOperators.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_UserDefinedOperators.pdf
00:00 Introduction
01:42 What is an operator? Operator and derived function valence
05:50 How to define operators, traditional and dops
11:35 _S: Stack arguments on the result of applying a function
15:11 Make an operator derive ambivalent functions
16:50 _T: An operator to trace through an expression function-by-function
18:38 Get the definition of an operand function using ⎕ATX
20:28 _A_: Across: Apply a function with the arguments flipped both ways; apply a function and its commute. Particularly useful with set functions such as ∊ ⍳ ~
23:56 Reverse-compose AKA Hook to apply a function after pre-processing the argument
28:56 _W_: The While operator as a functional alternative to :While
33:16 _E_: The Error-Else operator to modify behaviour in the case of an error
34:47 Let operators use function or array operands using (⍺⍺⊣⊢) or (⍵⍵⊣⊢)
38:20 _0: Apply non-scalar functions to simple scalars AKA scalar pervasion, like dfns.perv but with selective assignment
42:57 Conclusion
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
This webinar covers the new and experimental ]Get which provides a unified way to bring data and code, in various forms and from various sources, into the workspace at development time. In addition, the the essential alternatives for integration into applications are discussed.
Get can download, unpack and import APL code and utilities directly from GitHub URLs, including sub-directories.
Some useful text processing methods are shown in "Parsing content from text files using Dyalog APL's ⎕CSV": https://is.gd/dyalog_csv
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_DataAndCode.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_DataAndCode.pdf
00:00 Introduction and overview
05:03 ]Get basic syntax
05:55 Importing utilities from local library sources
07:13 Importing APL code, APLAN and Acre-style data
08:18 Converting from common text-based data formats JSON, CSV and XML
10:10 Importing from the internet or other network
12:10 Import code from a zip format compressed archive
13:32 Importing and unpacking specified names from a workspace
16:15 Specifying how to treat your source data. For example, asking ]get not to convert json text.
17:40 Import into a particular namespace
18:00 Keep workspace and source code synchronised
20:00 Use system functions and utilities in your code
20:25 Bringing in normalised text data with ⎕NGET
20:55 Downloading text and JSON data from the internet into the workspace with HttpCommand
25:25 Downloading raw data from the internet on disk and into the workspace with cURL
27:30 Downloading extracting unzipping from a zip file cross-platform
29:55 Link import basic syntax
30:45 ⎕FIX define a function and synchronise with single-file APL source
32:48 ⎕CSV basic syntax
36:55 ⎕XML basic syntax and nested matrix representation
39:40 ⎕JSON basic syntax, nested matrix representation and JSON5 variant options
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
mastering.dyalog.com/First-Aid-Kit.html?highlight=tracer#trace-tools
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
- You can use Ctrl + Shift + Backspace to go back to previous lines you entered and you can use Ctrl + Shift + Enter to go forward again.
- You can use Shift + Esc to undo all changes to the current line.
- You can double-click an object to open the editor on it. (This works with most types of objects.)
- If you want to quickly go to the bottom of the session, you can use Ctrl + End (this shortcut is fairly universal and works in many other applications).
- If you want to close the editor and **discard** the changes you made, you can use Shift + Esc.
You will also learn that there are many actions that can be mapped to keyboard shortcuts, and the existing shortcuts can be customised.
Just go to Options - Configure... - Keyboard Shortcuts in the Windows IDE or Edit - Preferences - Shortcuts in RIDE.
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
- What is the language bar?
- Where can I find the language bar?
- How do I use it?
- How can I customise it?
- How can I change its font size?
And, for those of you using WIDE, you can also learn how to move the language bar around, how to dock it and undock it, and how to save your configuration preferences.
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
1. the menu;
2. the language bar;
3. the session;
4. the editor window (on the right);
5. the debugger window;
6. the status bar
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
1. the menu;
2. the toolbar;
3. the language bar;
4. the session;
5. the editor window (on the right);
6. the debugger window;
7. the status bar
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Dyalog version 18.2 ships with some user commands that provide new ways to inspect code and data in the active workspace at development time.
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_NewUCMDs182.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_NewUCMDs182.pdf
00:00 Introduction
02:00 View output and results in a separate window
04:00 View long output
05:20 View snapshots to compare old and new variable arrays and code definitions at the same time
07:18 Separate boxing level for session log and view windows
08:40 Easier to read list of names in a workspace or namespace
10:10 Group names by type of APL object (nameclass)
11:35 Filter search for names in current namespace
13:00 User command interface to aplcart
15:13 Represent APL objects in different formats
17:46 Quickly output arrays to file as JSON and other formats
18:05 Get an APL expression to generate any array to see the exact structure of function results
19:18 Get help decomposing function trains
20:20 Represent an array using APL Array Notation (APLAN)
20:57 Defining functions and operators
21:42 Represent namespaces in APL Array Notation (APLAN)
22:40 Represent namespaces in JavaScript Object Notation (JSON)
25:30 Represent APL arrays as XML
26:10 Represent APL arrays as CSV TSV SSV PSV
27:05 Getting help with user commands
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Morten gives a brief overview of version 18.2's many new features aimed at improving developer productivity and the ease with which solutions based on Dyalog APL can be deployed and maintained.
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_IntroducingV182.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_IntroducingV182.pdf
0:00 Introduction
0:34 Overview
1:03 Release Dates & Windows Patches
2:45 Basic Licence
5:05 Launching from Text Files
11:42 Windows Explorer Integration
14:19 Docker Support
17:01 RIDE v4.4
18:35 RIDE 4.4 Highlights
24:25 New Win32 GUI (OWC) features!!!
25:09 Developer Productivity
29:50 Summary
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_DataVisualisation.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_DataVisualisation.pdf
Links shown in this video:
The Future of SharpPlot and RainPro (2013): dyalog.tv/Dyalog13/?v=Xo3vRQMaPxo
Cross-Platform Charting (2018): dyalog.tv/Webinar/?v=wapJgEXSzvc
APL Cultivations #44 and #45 on simple plotting (2020): https://apl.wiki/APL_Cultivation
sharpplot.com
vega.github.io/vega-lite/docs
vector.org.uk/making-images-and-videos-of-the-buddhabrot
github.com/mkromberg/bmprenderer
github.com/dyalog/DUI
miserver.dyalog.com
github.com/the-carlisle-group/Abacus
observablehq.com/d/6a1e6c903d368d69
0:00 Introduction
5:33 Previous graphics and data visualisation videos
9:45 SharpPlot basics
12:45 Vega plotting grammar
14:13 Vega specification in APL using ⎕JSON
17:45 Outputting SharpPlot graphics
19:26 Embed SharpPlot graphics in Windows GUI
20:30 Embed SharpPlot graphics in HTMLRenderer
22:50 Which format is suitable for a Mandelbrot set?
25:47 SharpPlot demonstration with SVG output
37:30 DUI and Abacus
45:28 Send data to Observable notebook using Jarvis web service
51:30 Data visualisation theory and 3rd party graphics frameworks
56:30 Upcoming media and signing off
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_ComputingNumbersFast.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_ComputingNumbersFast.pdf
0:00 Introduction
2:45 Algorithm Overview
4:45 Algorithm Implementation
8:00 Algorithm Optimisation with Arithmetic
16:44 Extension to high rank arrays
18:50 Use column store for mechanical sympathy
25:22 Compile with co-dfns
27:35 Conclusion
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_ErrorHandlingPt5.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_ErrorHandlingPt5.pdf
Start: (0:00)
Series recap: (0:30)
Capsules and signal scoping in tradfns: (1:50)
Overview: (6:00)
Special events (exceptions, errors and interrupts): (6:50)
Interrupts: (8:28)
Exceptions: (15:48)
.NET exceptions: (18:40)
Resetting system constants: (23:00)
Using error messages instead of error numbers: (24:40)
Summary and upcoming events: (30:20)
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_PresentingTryAPLv3.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_PresentingTryAPLv3.pdf
Start: (0:00)
Introduction and overview: (1:08)
New in version 3: (2:25)
Now open source: (7:07)
Using Jarvis and Safe Executor: (8:00)
Open TryAPL API: (11:08)
New front end: (14:45)
Multiline input: (19:00)
Jupyter notebook support: (22:46)
Workspace files: (25:55)
Summary: (29:20)
Future features: (32:55)
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_ErrorHandlingPt4.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_ErrorHandlingPt4.pdf
Start: (0:00)
Introduction and series recap: (0:04)
Example - convert text to hexadecimal encoding: (2:52)
An expected error: (4:18)
Turn off error trapping with a debug switch: (8:08)
Multi-level trapping for unexpected errors: (11:00)
Collecting error information: (19:05)
Scoping issues in dfns: (23:33)
Collecting error information in dfns: (28:00)
Scope capsules: (32:33)
Episode recap and conclusion: (38:12)
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Slides PPTX: dyalog.com/uploads/files/presentations/Webinar_DatabaseBasics.pptx
Slides PDF: dyalog.com/uploads/files/presentations/Webinar_DatabaseBasics.pdf
Dyalog ]demo file TXT: dyalog.com/uploads/files/presentations/Webinar_DatabaseBasics.txt
Start: (0:00)
Introduction: (1:00)
What is a database?: (3:10)
What is a DBMS?: (4:20)
Types of databases: (5:48)
Creating a relational data model: (7:55)
Query languages: (18:00)
APL arrays vs DBMS: (19:26)
OLTP and OLAP types of relational databases: (23:08)
Relational data technologies - matrices, inverted tables, dataframes and DBMS: (25:10)
Nested matrix example: (29:13)
Inverted tables and performance: (34:46)
Reference to Table2JSON (to do: publish utility): (41:05)
Ideas for creating a query language DSL in APL: (41:16)
Existing inverted table columnar database systems: (43:26)
Column names cover function: (45:37)
When to use an OLTP or OLAP system: (49:56)
SQAPL SQL Dyalog APL interface demonstration: (50:52)
Conclusion: (1:02:14)
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
0:00 Introduction
0:19 Error Handling - Part 2
1:47 Overview
3:04 Signalling an Event
6:00 Extended Diagnostic Message
6:38 Signal Error
14:41 Assert: Use-case
23:17 Resignal
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Useful links from the webinar:
- Jupyter notebook on the Mandelbrot set – github.com/Dyalog/dyalog-jupyter-notebooks
- Brian Becker’s post on Mandelbrot + isolates – dyalog.com/blog/2014/08/isolated-mandelbrot-set-explorer
- Nicolas Delcros’s “Making images and videos of the Buddhabrot” article in Vector (with Png namespace) – vector.org.uk/making-images-and-videos-of-the-buddhabrot
- Webinar’s code as a namespace – github.com/RojerGS/fractals/tree/master/mapl
Start: (0:00)
Intro: (0:53)
The complex plane: (2:10)
The Mandelbrot set: (3:54)
Determining if a number is in the set: (5:17)
Taking a sip of water: (8:28)
Sampling the complex plane: (9:28)
Sample an axis: (10:20)
Create a grid of complex numbers: (11:08)
Rescale and translate the grid: (13:00)
Iterative function applied to the grid: (15:40)
Boolean mask approximating the Mandelbrot set: (17:14)
First pictorial representation of the set: (18:40)
Improving the pictorial representation: (21:04)
Computing the escape time: (23:10)
Nicer character-based Mandelbrot set: (24:10)
Refine the approximation: (24:58)
Ignore numbers that already escaped: (25:51)
Really nice character-based Mandelbrot set: (27:29)
Implement function to create generic grid: (30:10)
Implement the Mandelbrot function: (35:37)
Creating greyscale gradient to colour the set: (41:02)
How to create PNG images: (44:50)
Greyscale Mandelbrot set: (46:56)
Colour palette: (48:15)
Coloured Mandelbrot set: (50:10)
Remarks & zooming-in: (51:20)
Code recap: (53:20)
Useful links: (55:50)
Awkward wait for questions: (57:50)
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
0:00 Introduction
0:59 Overview
1:45 Preventing the build-up of a stack
2:47 Including scope info in an error report
4:16 Trap Error OTRAP
6:24 Trap Error: Execute there
9:15 Trap Error: OTRAP value normalisation
10:16 Trap Error: Resetting OTRAP
11:40 Trap Error: Multiple handlers in one
13:33 Trap Error: Use-case
17:49 Extended Diagnostic Message: use case
22:16 Construct error message aplcart.info?q=dmx 1
22:45 Upcoming webinars
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Start: (0:00)
Intro: (1:12)
Sixteen logical functions: (5:10)
The relationship between scans and reductions: (8:55)
Mark first occurance with less-than scan: (11:08)
Mark sections with not-equal scan: (14:16)
Flat array partitioned function application: (23:20)
Efficient implementation: (34:40)
Sixteen boolean reductions: (37:08)
Further reading: (39:40)
The content of this webinar is also available as an interactive Jupyter Notebook: tryapl.org/?notebook=github.com/Dyalog/dyalog-jupyter-notebooks/blob/master/Boolean%20Scans%20and%20Reductions.ipynb
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Intro: (0:00)
Overview: (1:12)
Error: (2:40)
Error numbers: (4:20)
Error messages: (6:15)
Error trapping with colon-trap: (8:10)
Converting numbers to messages: (14:05)
Dfn error guards: (18:18)
Summary: (24:05)
0:00 Introduction
1:11 Overview
5:19 Error Number
6:40 Error Message
9:01 Trapping an Error: : Trap structure
15:30 Messages instead of Numbers: namespace
18:55 Trapping an Error: :: error guard
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Split- and Enclose-with-Axis ↓[] ⊂[] are equivalent to Enclose-with-Rank and Dyadic-Transpose. The former offers a concise syntax to those who grok it and the latter more explicitly states the structural transformation.
Ravel- and Catenate- with-Axis ,[] are convenient constructs for merging data along specified axes. In simple cases Ravel- and Catenate-with-Rank ,⍤ and Dyadic-Transpose are easy to write and reason about, but a general operator equivalent to ,[] proves unwieldy.
Start: (0:00)
Intro: (4:30)
Merge axes using ravel: (11:18)
Last axis primitives: (18:35)
Split- and Enclose-with-Axis: (22:08)
General purpose structural array algorithm: (32:50)
Summary: (37:20)
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
0:00 Introduction
1:43 Evolution
3:42 Use case: partitioning into bins
7:33 Use case: partitioning at given indices
11:49 Max boxing
18:02 Prepending axes
24:13 Mixing shapes
27:19 The Rank Operator and Dyadic Transpose Richard Park
28:37 Thinking in APL: Array-Oriented Solutions Richard Park OVALOC
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
aplwiki.com/wiki/Leading_axis_theory
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Please do not link there for reference as a change of location is highly likely! Link to this video via a YouTube or a dyalog.tv link instead:
- youtu.be/1hW2qvHzxbg
- dyalog.tv/Webinar/?v=hs90SdUc9dE
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
In an array-oriented programming language, it turns out to be a lot.
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
The presentation slides and notebook:
http://rikedyp.uk/webinar/FastAPL
dyalog.com/uploads/files/presentations/Webinar_FastAPL.zip
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
LINKS:
Train Spotting in Version 14.0 (John Scholes): dyalog.tv/Dyalog13/?v=7-93GzDqC08
Function Trains in APL (Dan Baronet): youtube.com/watch?v=A2LqqBosvY0
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
⎕WC has been the mainstay of Dyalog GUI creation since the advent of Microsoft Windows, offering a clean and simple interface between Dyalog APL and Windows-based applications. The aim of qWC is to emulate ⎕WC beyond the Windows environment, allowing GUIs created using ⎕WC to run cross-platform and on the web.
In this webinar, Chris Hughes (MJH Software Ltd) will be introducing us to qWC and updating us on the future of the project.
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
In the Grille problem (14:30) we see two approaches to conditionally selecting elements from arrays ([] square bracket indexing and ,/ compress and ravel). In the minesweeper (CountMines) problem (17:50), Richard discusses different approaches to stencil codes in APL. The polybius square (TapEnc and TapDec) solutions (23:10) demonstrate clever uses of ⊤ (encode) and Jamin Wu's invertible solution using ⍣¯1 (power negative one). In the data cleaning (Merge) problem (28:35), we see the difference between symmetric and non-symmetric (commutative and non-commutative) solutions. Two different solutions to the Boggle problem (35:00) illustrate different graph traversal algorithms, one iterative and one which uses transitive closure.
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
Lennard-Jones MD Jupyter notebook:
nbviewer.jupyter.org/github/rikedyp/APLPhys/blob/master/Jupyter/LJmelt.ipynb
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
github.com/dyalog/link
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------
7:30 What is meant by "array-oriented thinking" and "generality" in regards to entries?
10:46 Different versions of Greatest Common Divisor in APL
16:20 Anagram checker in APL
19:40 Split text by delimiter, tradfns vs dfns vs tacit
22:40 General advice for Phase 2, image convolution in APL
--------------------
GET STARTED
Download the latest version of Dyalog:
dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
forge.dyalog.com
--------------------


