Questions tagged [dyalog]

"Dyalog" refers to the APL implementation developed and distributed by British company Dyalog Ltd. Dyalog APL includes many additions over the ISO standard for APL. This tag should be used in addition to [apl] when asking for help with language features specific to Dyalog APL, or when a solution using such features is acceptable.

Dyalog APL, or simply Dyalog, is a nested APL by British company Dyalog Ltd. The name Dyalog is a portmanteau of Dyadic and Zilog since it was initially released for the Zilog Z8000 processor in 1983. Continuously developed since, Dyalog has added numerous core language features, and support for many programming paradigms including object-oriented programming based on .NET, Lisp-style lexically scoped anonymous functions (dfns), and leading axis and tacit programming support based on J. It supports several platforms and interoperability between them, and interfaces with other languages and runtimes including native shared libraries, .NET, the JVM, R, and Python.

Example

This defines m as a 4-row, 3-column matrix consisting of the first 12 natural numbers:

      m ← 4 3 ⍴ ⍳ 12

Now we can sum the columns:

      +⌿ m
22 26 30

Counting the number of rows:

      ≢ m
3

Average of each column using an anonymous tacit function:

      ( +⌿ ÷ ≢ ) m
5.5 6.5 7.5

Tag usage

This tag should be used together with (in addition to more subject-specific tags) when asking about features limited to Dyalog APL and similar dialects, or when asking for code to complete a task, and a solution using Dyalog features is acceptable. Due to the rapid development of the language, it is beneficial to also include which version number is used, e.g. 17.1 or 18.0.

Learn more

146 questions
1
vote
1 answer

Forms loosing caption on W10

I'm sorry, this will be a no-code question, but I think it is still the right place to ask. I'm using the (unfortunately) not so famous language APL and am having problems running my apps under W10 - the forms are shown without a caption: Only when…
MBaas
  • 7,248
  • 6
  • 44
  • 61
1
vote
3 answers

How do I implement accumulation in APL?

Consider the following simple piece of code: a ← ⍳5 el1 ← a+2 el2 ← +/el1 el1 el2 ┌─────────┬──┐ │3 4 5 6 7│25│ └─────────┴──┘ I am simply adding 2 to a and summing the array up, then returning array containing results of both…
syntagma
  • 23,346
  • 16
  • 78
  • 134
1
vote
2 answers

How is each operator optimized by the APL interpreter?

I am wondering whether I should heavily use the each operator when using APL or should I try to find another solution to a given problem? How is usage of this operator optimized in APL?
syntagma
  • 23,346
  • 16
  • 78
  • 134
1
vote
2 answers

How to assign APL expression to execute on pressing shortcut?

I have Dyalog APL 13.2.20611.0 64 Unicode session, and I have utility function, which I want to run on pressing shortcut. How can I configure this?
Oleksandr Nechai
  • 1,811
  • 16
  • 27
0
votes
2 answers

Boolean array in If guard

According to the Dyalog APL language reference the test condition to the right of :If must return a single element Boolean value 1 (true) or 0 (false) Is there any particular reason why the value is allowed to be an array rather than requiring it…
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
0
votes
1 answer

How to use compose operator in APL?

I'm not able to understand compose operator in APL. I have tried but precedence is the issue that I am facing.
0
votes
0 answers

Is it possible to open devtools on the network tab?

I am developing an application in Dyalog APL using its HtmlRenderer object (which is based on the Chromium Embedded Framework). There is a facility to open DevTools - but is it possible to have DevTools initially open the Network tab so that I could…
MBaas
  • 7,248
  • 6
  • 44
  • 61
0
votes
1 answer

Why am I getting intermittent DELETE PENDING errors in Dyalog APL?

I'm getting DELETE PENDING errors intermittently when my program deletes a file and then quickly thereafter creates a new file with the same path as the deleted file. In the Dyalog APL session window, it's reported as FILE ACCESS ERROR. I can…
0
votes
1 answer

Idiomatic graphs in APL

APL is great for array type problems but I'm curious as to how best work with graphs in APL. I'm playing around with leet questions, for example question 662. Maximum Width of Binary Tree, the exercise works with Node objects with a value/left/right…
mazin
  • 395
  • 2
  • 7
0
votes
2 answers

Syntax error when attempting to amend a string with indexing

I'm studying APL from here. Why am I getting this syntax error? 'computer' [ 1 2 3 ] ← 'COM' SYNTAX ERROR 'computer'[1 2 3]←'COM' ^ But if I save 'computer' in a variable I don't get the error: T ← 'computer' T computer …
zeynel
  • 177
  • 1
  • 1
  • 12
0
votes
2 answers

Waiting between GUI events

I'm trying to write a test for a graphical component in Dyalog APL which will simulate button clicks which open new windows and keystrokes for filling in form fields. My first approach was to simply write a sequence of ⎕NQ statements for enqueuing…
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
1 2 3
9
10