Re: Something is definitely askew in Unicode handling...

2023-06-08 Thread Christian Robert
Even in a standard function your code crash. Definitely a problem somewhere. Xtian. [xtian@fedora:/home/xtian] $ apl __ _ __ __ _____ __ / // | / // / / / / | / __ \ / / / / __ / |/ // / / / / /| | / /_

Re: Something is definitely askew in Unicode handling...

2023-06-08 Thread Christian Robert
In NARS200 it also give a "DOMAIN ERROR" )edit bar bar 3 DOMAIN ERROR bar[1] z←(+/(,(v⍴(1,Omega ⍴O))-m+.×⌹m←(v←2⍴ Omega)⍴(2*Omega)?Omega)*2)*÷2 ∧ so, the diagnostic is probably correct, only the displaying of the error is strange

Re: Something is definitely askew in Unicode handling...

2023-06-08 Thread Dr . Jürgen Sauermann
Hi Emmanuel, thanks. fixed in *SVN 1709*. Best Regards, Jürgen On 6/8/23 08:22, Emmanuel Charpentier wrote: From *SVN 1708*, used throug emacs' |gnu-apl| inferior mode : |This is the gnu-apl-mode interactive buffer. To toggle keyboard help, call M-x gnu-apl-show-keyboard (C-c C-k by defaul

Re: Something is definitely askew in Unicode handling...

2023-06-08 Thread Emmanuel Charpentier
It is indeed fixed. Thanks ! But now I have a question about a subtle difference between niladic "traditional" function and niladic "inline" functions. What is the right channel to ask ? Sincerely, -- Emmanuel Charpentier Le jeudi 08 juin 2023 à 12:39 +0200, Dr. Jürgen Sauermann a écrit : > Hi

Re: Something is definitely askew in Unicode handling...

2023-06-08 Thread Dr . Jürgen Sauermann
Hi Emmanuel, feel free post all your concerns to bug-apl@gnu.org. Sometimes a true APL specialist (which I am not) on the list responds, and sometimes myself (for more implementation related issues). The members on the list are generally friendly and helpful. Best Regards, Jürgen On 6/8/23 15

Niladic functions vs niladic lambdas

2023-06-08 Thread Emmanuel Charpentier
Dear list, It seems that niladic lambdas are treated like constants. Rough and naïve illustration : pasting this : ``` ⍝ What about niladic functions and lambdas ? ⍝ Example of a numeric timestamp generator ⍝ Simplifying assumptions : we want to measure about a few minutes ⍝ and not around midni

Re: Niladic functions vs niladic lambdas

2023-06-08 Thread Emmanuel Charpentier
FWIW, running the same code in a Dyalog APL Jupyter notebook gives similar results : Quid des fonctions et lambdas dyadiques ? ```APL ⍝ What about niladic functions and lambdas ? ⍝ Example of a numeric timestamp generator ⍝ Simplifying assumptions : we want to measure about a few minutes ⍝ and

Re: Niladic functions vs niladic lambdas

2023-06-08 Thread Kacper Gutowski
On Thu, 8 Jun 2023 at 17:38, Emmanuel Charpentier wrote: > It seems that niladic lambdas are treated like constants. > In GNU APL lambda is dyadic if it contains a reference to ⍺ or monadic if it uses ⍵. There is no way to distinguish a call of niladic lambda from a definition of niladic lambda in

Re: Niladic functions vs niladic lambdas

2023-06-08 Thread Dr . Jürgen Sauermann
Hi Emmanuel, first of all, lambdas are a bad construct which causes quite a number of syntactic inconsistencies. Simply speaking, the concept has not been thought out well. 1. A defined function created with ∇ or ⎕FX is unambiguously  that: a defined function. For that reason I sometimes call th

Re: Niladic functions vs niladic lambdas

2023-06-08 Thread Elias Mårtenson
You note an inconsistency, but the problem isn't worth the lambda syntax but rather with assignment. In the lambda syntax of Dyalog, the left arrow are used both to assign functions as well as values, which makes the evaluation rules complicated. I came across the same problem when I implemented i