Re: Unexpectedly offline

2023-01-23 Thread Hans-Peter Sorge
Jürgen, gute Besserung. Am 22.01.23 um 14:07 schrieb Dr. Jürgen Sauermann: Gentlemen, I am sorry for not responding earlier to any emails to bug-apl@gnu.org. I was unexpectedly taken offline after new year and I am now online again, although only for a short period.  Just having returned from

Execute Each on Enclose '.0' errors out

2023-01-29 Thread Hans-Peter Sorge
Hi, I have some bigger data collections to analyze. Zeros are represented as .000 within the records. Reading the files with ⎕FIO[49], I get a vector of vector with numbers. ⊃⍎¨ file should return the matrix of numbers. ⍎¨ fails with RANK ERROR on .000 Short extract: ⍎¨⊂'.000' RANK ERROR+ μ-

Re: Reassignment of a nested array element

2023-03-04 Thread Hans-Peter Sorge
Hi, Works as expected ⊃'Sue' 'Maria' 'Annalisa' is an array 3 by 8. ⊂⊃'Susan' 'Mary' 'Annalisa' is an element (⊂) of a 3 by 8  array (⊃'Susan' 'Mary' 'Annalisa' ). Finally each element in  ⊃'Sue' 'Maria' 'Annalisa' gets assigned an array of  ⊃'Susan' 'Mary' 'Annalisa' Greetings Hans-Peter

Re: Reassignment of a nested array element

2023-03-05 Thread Hans-Peter Sorge
2 3 4 Sue 5 6 7 8 Maria 9 10 11 12 Annalisa 5 4 1 2 3 4 Susan 5 6 7 8 Mary 9 10 11 12 Annalisa APL+Win 4.0 var←0 0 0 ⋄ (1⊃var)←5 4 ⋄ (2⊃var)←3 4⍴⍳12 ⋄ (3⊃var)←⊃'Sue' 'Maria' 'Annalisa' ⋄ var ⋄ (3⊃var)←⊂⊃'Susan

Re: Reassignment of a nested array element

2023-03-06 Thread Hans-Peter Sorge
room for interpretation. However, both APL2 and Dyalog agree on case 1 and therefore I changed GNU APL to behave the same. Best Regards, Jürgen On 3/4/23 8:25 PM, Hans-Peter Sorge wrote: Hi, Works as expected ⊃'Sue' 'Maria' 'Annalisa' is an array 3 by 8. ⊂⊃&#x

Re: Reassignment of a nested array element

2023-03-07 Thread Hans-Peter Sorge
DOMAIN ERROR in this case. Best Regards, Jürgen On 3/6/23 9:16 PM, Hans-Peter Sorge wrote: Hello Jürgen, I agree with your case 1/2  Statement. The examples I was showing is actually "off by 1".  I was referring to (1/3⊃V)←1 having a←

Re: Reassignment of a nested array element

2023-03-08 Thread Hans-Peter Sorge
length 1 axis added by 1/ when*X* is scalar) and therefore *(3⊃V)←1 *and *(1/3⊃V)←1 *should IMHO yield the same. Best Regards, Jürgen On 3/6/23 9:16 PM, Hans-Peter Sorge wrote: Hello Jürgen, I agree with your case 1/2  Statement. The examples I was showing is actually "off by 1".

Re: Reassignment of a nested array element

2023-03-09 Thread Hans-Peter Sorge
3/8/23 9:05 PM, Hans-Peter Sorge wrote: Hello Jürgen, sorry that I'm so insistent in APL2 Programming:Language Reference it is stated: Selective Specification:Compress can be used for selective specification: M←32ρι6 M 12 34 56 (10/M)←'ABC' M A2 B4 C6 Using our example V V←

Re: Reassignment of a nested array element

2023-03-12 Thread Hans-Peter Sorge
e that in one way or the other seems not really satisfactory but somewhat arbitrary. I would therefore propose to avoid such constructs for the sake of portability. Best Regards, Jürgen On 3/9/23 6:56 PM, Hans-Peter Sorge wrote: Hi Jürgen, thank you for considering it. Your work is admirabl

Re: Reassignment of a nested array element

2023-03-13 Thread Hans-Peter Sorge
A  1 2 3 4 5   1 1 1     1 1 1     1 1 1   (1/3⊃V) ≡ 3⊃V 1   (3⊃V)←1   (1/3⊃V) ≡ 3⊃V 1* Best Regards, Jürgen On 3/12/23 7:02 PM, Hans-Peter Sorge wrote: Hi Jürgen, back from wintry Hahnenklee/Harz here are my thoughts. In ref.:  "like a variable

Output variants for pick and index operators

2023-03-14 Thread Hans-Peter Sorge
Hi Jürgen, looks like I have plenty of time, however, it's being usefully invested:-) (SVN 1660) This displays as expected.   X (8⎕CR  X ←1 2 3 ⊃¨⊂'A' 'CD' 'EF')  A CD EF   ┌→──┐    │A ┌→─┐ ┌→─┐│    │  │CD│ │EF││    │  └──┘ └──┘│    └ϵ──┘ A..CD 

Re: Output variants for pick and index operators

2023-03-15 Thread Hans-Peter Sorge
*⊃* give different results in GNU APL and also in IBM APL2 (PC version). Best Regards, Jürgen On 3/14/23 10:12 PM, Hans-Peter Sorge wrote: Hi Jürgen, looks like I have plenty of time, however, it's being usefully invested:-) (SVN 1660) This displays as expected.   X (8⎕CR  X ←1 2 3

Execute on empty element produces a stack trace

2023-09-27 Thread Hans-Peter Sorge
Hi, *This gives a stack trace:*     X←0 2⍴ ⊂'0'     ⍎¨X[;1] == Assertion failed: start <= body_from_to.low in Function:  set_error_info in file:  Executable.cc:602 C/C++ call stack: *** usele

)LOAD dumped WS had a name clash - intermittend

2023-09-29 Thread Hans-Peter Sorge
Hi, I have a function E (as simple as in test below)   in my workspace (WS size 2.9MB). )DUMP and )loading it produces an error: )LOAD DUMPED 2023-09-28  19:44:54 (GMT+2) VALENCE ERROR   ⎕CT←1 E-13   ^  ^ Just )ERASE E ∇E ∇  ⍝ recreate ist )DUMP )LOAD ... fix

Re: )LOAD dumped WS had a name clash - intermittend

2023-09-29 Thread Hans-Peter Sorge
L tends to use uppercase E and ¯ (like 1E¯13) in .apl files and lowercase e and ASCII - (like 1e-13) in .xml files. Therefore the combination of uppercase E and ASCII - is not supposed to occur in either file format. Best Regards, Jürgen On 9/29/23 14:28, Hans-Peter Sorge wrote: Hi, I have a fu

Re: )LOAD dumped WS had a name clash - ⎕FC affects )DUMP

2023-09-30 Thread Hans-Peter Sorge
l and .apl files are human readable). GNU APL tends to use uppercase E and ¯ (like 1E¯13) in .apl files and lowercase e and ASCII - (like 1e-13) in .xml files. Therefore the combination of uppercase E and ASCII - is not supposed to occur in either file format. Best Regards, Jürgen On 9/29/23 14:28,

Re: )LOAD dumped WS had a name clash - ⎕FC affects )DUMP

2023-10-02 Thread Hans-Peter Sorge
created with this bug then maybe the following can fix them: *)CLEAR** **∇Z←A E B** ** Z←A×10⋆B** **∇** **)COPY broken_WS** **)DUMP broken_WS** * Best Regards, Jürgen On 9/30/23 15:54, Hans-Peter Sorge wrote: Hi Jürgen, .. not every key-stroke. But this one:   ⎕FC←'.,⋆0_*-*'  

Re: Execute on empty element produces a stack trace

2023-10-02 Thread Hans-Peter Sorge
Hi Jürgen, thank you a lot. Best Regards, Hans-Peter Am 29.09.23 um 16:08 schrieb Dr. Jürgen Sauermann: Hi Peter, thanks, fixed in *SVN 1734*. Best Regards, Jürgen On 9/27/23 23:08, Hans-Peter Sorge wrote: Hi, *This gives a stack trace:*     X←0 2⍴ ⊂'0'

Error message references wrong line

2024-03-06 Thread Hans-Peter Sorge
Hi, Just for fun i did some "Home work" for my wife. Kids in  school were to guess (and calculate) numbers. For the calculation part I came up with an APL Funktion (No more school - right ?-). [0]   Mathe_Bug [1]   L←278 213 1046 2884 391 [2]   R←87 32 49 479 324 [3]   E←L∘.× R  ⍝ Possible cal

Re: Error message references wrong line

2024-03-10 Thread Hans-Peter Sorge
Jürgen, Thank you. Best Regards Hans-Peter Am 10.03.24 um 12:16 schrieb Dr. Jürgen Sauermann: Hi Hans-Peter, thanks, fixed in *SVN 1764*. Best Regards, Jürgen On 3/6/24 15:24, Hans-Peter Sorge wrote: Hi, Just for fun i did some "Home work" for my wife. Kids in  school were to

Re: GNU APL 1.9 Released

2024-07-01 Thread Hans-Peter Sorge
Jürgen,  thank you! Am 30.06.24 um 13:41 schrieb Dr. Jürgen Sauermann: Hi, I am happy to announce that *GNU APL 1.9* has been released. GNU APL is a free implementation of the ISO standard 13751 aka. "Programming Language APL, Extended". The 1.9 release contains: * Bug fixes Have fun! Dr

Selective specification with Quad IO fails

2024-08-25 Thread Hans-Peter Sorge
Hi, Just a simple test:   x.y ← 1 2 3   x.y 1 2 3   x.y[1] 1   1⊃x.y 1   ⎕IO⊃x.y 1   (⎕IO⊃x.y)←⊂ 'abc' SYNTAX ERROR+   (⎕IO⊃x.y)←⊂'abc'   ^    ^   (1⊃x.y)←⊂ 'abc'   x.y  abc 2 3 Greetings Hans-Peter

Re: Selective specification with Quad IO fails

2024-08-25 Thread Hans-Peter Sorge
Peter, according to the IBM language reference page 41 is selective specification limited to specific functions, and *'.'* is unfortunately not one of them. I will look into making this working, but it could be tricky and take a while, In the meantime you could use *x['y']* ins

Re: Selective specification with Quad IO fails

2024-08-29 Thread Hans-Peter Sorge
Hi Jürgen, thank you. Best Regards Hans-Peter Am 28.08.24 um 13:40 schrieb Dr. Juergen Sauermann: Hi Hans-Peter, thanks, fixed in *SVN 1779*. Best Regards, Jürgen On 8/25/24 18:35, Hans-Peter Sorge wrote: Hello Jürgen, the case stems from Simple_SQL.apl I was loading the Workspace, did

Re: [Bug-apl] Substring replacement in APL

2016-04-13 Thread Hans-Peter Sorge
Am 12.04.2016 um 13:18 schrieb Jay Foad: > 'foobartestfootest' replace 'foo' 'xy' Hi, there are some corner conditions ((1↓u),⍺ contains u, but ⍺ does not): replace←{(⍴v)↓∊(⊂v),¨(↑⍴u)↓¨(+\u⍷a)⊂a←u,⍺⊣(u v)←⍵} 'foobartestfootest' replace 'foo' 'xy' xybartestxytest 'fo

Re: [Bug-apl] Suggested change in rendering of ⎕CR

2016-04-13 Thread Hans-Peter Sorge
Hi, this looks more like a comma separated value list ( fds ⎕CSV Array ) fds: field delimiter string like fds←' ",;≡' fds[1] ←→ Numeric field quote - alt ⊂'()' or other brackets to output (field) fds[2] ←→ Character field quote - alt ⊂'<>' or other brackets to output fds[3

Re: [Bug-apl] Outer product with replicate error

2016-05-16 Thread Hans-Peter Sorge
Am 15.05.2016 um 03:49 schrieb David B. Lamkins: > While `$ info apl` speaks to the issues around function/operator ambiguity, > it does not make any mention of the outer product case. > > I suspect that the failure of "outer product expand" is an oversight. This > case is disambiguated by notic

[Bug-apl] Minor Typo: gnu.apl should be gnu-apl

2017-06-19 Thread Hans-Peter Sorge
Hi, in files trunk/README-9-post-installation and trunk/support-files/105-key-International-Keyboard/keyboard1.txt "gnu.apl" should be named "gnu-apl". fix: cd $YOURPATH/trunk sed -i s/gnu[.]apl/gnu-apl/ \ README-9-post-installation \ support-files/105-key-International-Keyboard/keyboard1

Re: [Bug-apl] Regex support

2017-09-29 Thread Hans-Peter Sorge
.. and further: dates ← '2017-01-02' '2017-01-03' (⊂'s/([0-9]+)-([0-9]+)-([0-9]+)/\1 \2 \3/') ⎕Regex ¨ dates results in ('2017' '01' '02') ('2017' '01' '03') and dates ← ⊃ '2017-01-02' '201

[Bug-apl] execute each takes exponential time

2018-01-05 Thread Hans-Peter Sorge
running < ⍎¨ 10 ⍴'0' > takes 2 sec running < ⍎¨ 50 ⍴'0' > takes 72 sec On a Lenovo W520. The time it takes to convert vectors with >> 50 elements is just too much. Can this be fixed? Hans-Peter

Re: [Bug-apl] execute each takes exponential time

2018-01-07 Thread Hans-Peter Sorge
ould there be a need for a fix anyway? aren't all 'lines' > (10/50) treated the same and run as fast as possible anyway? > > > On Fri, 5 Jan 2018 17:05:59 +0100 > Hans-Peter Sorge wrote: > >> running < ⍎¨ 10 ⍴'0' > takes 2 sec >&g

[Bug-apl] Quad_SVx.cc some border line condition.

2018-05-25 Thread Hans-Peter Sorge
Hello Juergen, in Quad_SVx.cc around line 570:     char filename[APL_PATH_MAX + 1];     int slen = snprintf(filename, APL_PATH_MAX, "%s/%s", dirname, entry->d_name);     if (slen >= APL_PATH_MAX)   filename[APL_PATH_MAX] = 0; filename will be returned at most

Re: [Bug-apl] Yet another editor thingy.

2018-08-02 Thread Hans-Peter Sorge
Hello Chris, thank you for this master piece. The line editing in GNU APL is a bit cumbersome. But the apl session gets blocked during editing (edif2). Currently I have no clue, how to analyze it. Thank you again. Hans-Peter Am 30.07.2018 um 20:52 schrieb Chris Moller: > > Thanks, Jürgen. >

[Bug-apl] quad IO bug

2018-08-02 Thread Hans-Peter Sorge
Hello Jürgen, this is off by one:   ∇qio_test [1] ⎕IO∇   qio_test 1   ⍎¨ 'qio_test' 'qio_test' 0 0 Naturally it affects indexing too. Greetings Hans-Peter

Re: [Bug-apl] quad IO bug

2018-08-02 Thread Hans-Peter Sorge
  ⍎¨'qio_test' 'qio_test' > 1 > 1* > > Which SVN version are you using? > > /// Jürgen > > > > On 08/02/2018 01:19 PM, Hans-Peter Sorge wrote: >> Hello Jürgen, >> >> this is off by one: >> >>   ∇qio_test >

Re: [Bug-apl] quad IO bug

2018-08-02 Thread Hans-Peter Sorge
test > [1]   ⎕IO >     ∇ >   ⍎¨'qio_test' 'qio_test' > 1 > 1* > > Which SVN version are you using? > > /// Jürgen > > > > On 08/02/2018 01:19 PM, Hans-Peter Sorge wrote: >> Hello Jürgen, >> >> this is off by one: &

Re: [Bug-apl] quad IO bug

2018-08-02 Thread Hans-Peter Sorge
occur only on 64 bit machines >> (strange enough). >> I will look into it. >> >> /// Jürgen >> >> >> >> On 08/02/2018 03:25 PM, Hans-Peter Sorge wrote: >>> Hello Jürgen, >>> >>> some drilling >>> >>>

Re: [Bug-apl] Yet another editor thingy.

2018-08-07 Thread Hans-Peter Sorge
itted the update to https://github.com/ChrisMoller/edif > > --Chris > > > On 02/08/18 07:12, Hans-Peter Sorge wrote: >> >> Hello Chris, >> >> thank you for this master piece. The line editing in GNU APL is a bit >> cumbersome. >> >> But the apl s

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-16 Thread Hans-Peter Sorge
Hello, The ⎕IO bug  is back. (note: ⎕IO ←→ 0 seems to be set to 0 using edif2)       ∇qio_test[⎕]∇     ∇ [0]   qio_test [1]   ⎕IO     ∇     ⎕IO←1   ⎕IO 1     qio_test 1     ⍎¨ 'qio_test' 'qio_test' 1 1   ⎕IO←0   ⎕IO 0     qio_test 0     ⍎¨ '

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-16 Thread Hans-Peter Sorge
Hi Jürgen, is fixed - thank You. Best Regards, Hans-Peter Am 16.08.2018 um 21:14 schrieb Juergen Sauermann: > Hi Hans-Peter, > > thanks, hopefully fixed in *SVN 1069*. > > Best Regards, > /// Jürgen > > > On 08/16/2018 07:29 PM, Hans-Peter Sorge wrote: >> >

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-17 Thread Hans-Peter Sorge
auermann wrote: >> Hi Hans-Peter, >> >> thanks, hopefully fixed in *SVN 1069*. >> >> Best Regards, >> /// Jürgen >> >> >> On 08/16/2018 07:29 PM, Hans-Peter Sorge wrote: >>> >>> Hello, >>> >>&

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-18 Thread Hans-Peter Sorge
> >> Best Regards, >> >> Hans-Peter >> >> >> Am 16.08.2018 um 21:31 schrieb Chris Moller: >>> >>> Not that I expected otherwise, but edif and edif2 still work as >>> expected. >>> >>> cm >>> >>

[Bug-apl] edif update / ⎕IO is 0

2018-08-20 Thread Hans-Peter Sorge
e queue, and > more signals being emitted.  I've put a patch in (but haven't > committed it yet, and it should fix the segfault) that prevents all > that, but my question is whether the "session blocked" bug happens > only after the second quad-fx.  I just can&

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-20 Thread Hans-Peter Sorge
t > > Mostly, what it does is detect multiple ⎕fx invocations of libedif2.so > and short-circuits them, leaving the inotify() process intact and the > message queue opened only once.  It also detects )clear and > closes/unlinks the queue, kills the inotify() process, and closes any &

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-20 Thread Hans-Peter Sorge
YES - Thank You - I'll have a good night sleep now:-) Peter Am 20.08.2018 um 21:17 schrieb Chris Moller: > Aha!  That both versions, edif and edif2, fail the same was a great > clue!  Another patch just committed... > > > On 20/08/18 13:03, Hans-Peter Sorge wrote: >>

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-22 Thread Hans-Peter Sorge
ould be great.  It works on my machines, but obviously that's no > guarantee. > > Thanks, > Chris > > (Now maybe I can get a good night's sleep...) > > > On 20/08/18 17:58, Hans-Peter Sorge wrote: >> >> YES - Thank You - >> >> I'll have a good night sleep now:-) >> >> Peter >> >> >

Re: [Bug-apl] edif update / ⎕IO is 0

2018-08-23 Thread Hans-Peter Sorge
t;corrupted > double-linked list" message comes from malloc, so I'm guessing > unallocated memory is being stepped on, but valgrind didn't catch any > of that so I'm not sure what's causing it. > > I'll look into the inotify stuff. > > Chris > > >

Re: [Bug-apl] bad character in execute+

2018-10-08 Thread Hans-Peter Sorge
Hello Jürgen, compile fails with Executable.cc: In member function 'void Executable::setup_lambdas()': Executable.cc:529:46: error: no matching function for call to 'Executable::setup_one_lambda(ShapeItem&, int&)'   b = setup_one_lambda(b, ++lambda_num) - 1;   // -1 due to ++b in loop(b)

Re: [Bug-apl] bad character in execute+

2018-10-09 Thread Hans-Peter Sorge
.** > ** > * > Best Regards, > /// Jürgen > > > > On 10/08/2018 10:08 PM, Hans-Peter Sorge wrote: >> Hello Jürgen, >> >> compile fails with >> >> Executable.cc: In member function 'void Executable::setup_lambdas()': >> Execut

[Bug-apl] SYSTEM LIMIT not detected

2018-11-01 Thread Hans-Peter Sorge
Hello Jürgen, here comes an other corner case. The following two cases work as expected.   (⍳16)⍴'a' SYSTEM LIMIT (rank)   (⍳16)⍴'a'   ^    ^   (⍳16)⍴⊂'a' SYSTEM LIMIT (rank)   (⍳16)⍴⊂'a'   ^ ^ This case fails to detect the SYSTEM LIMIT and Kills the session:  

[Bug-apl] Stack trace with EQUAL

2018-11-04 Thread Hans-Peter Sorge
Hello Jürgen, This looks rather simple ...   )clear CLEAR WS   ' '=⊂⊂'yy' == Assertion failed: !sub_val->is_simple_scalar() in Function:  PointerCell in file:  PointerCell.cc:30 Call stack: ---

[Bug-apl] Index function returns extra elements.

2018-11-04 Thread Hans-Peter Sorge
Hi Jürgen, it looks like there is some inconsistency.   x←4 4⍴'XX' '' '' '' '' '' '' ''   s←(⍳4)∘.,⍳4   s  1 1  1 2  1 3  1 4  2 1  2 2  2 3  2 4  3 1  3 2  3 3  3 4  4 1  4 2  4 3  4 4   ((∊2=⍴¨x)/,s)⌷x   XX   XX - expected (no leading empty elements)  XX  XX   ⍴((∊2=

Re: [Bug-apl] Index function returns extra elements.

2018-11-06 Thread Hans-Peter Sorge
Hi Jay, My intend was to get each matrix element defined by a (row,column)-pair like:   1 3 5∘.,1 3 5 ⍝ the row,column pairs in a matrix  1 1  1 3  1 5  3 1  3 3  3 5  5 1  5 3  5 5   (1 3 5∘.,1 3 5)⌷¨⊂A ⍝ the matrix elements (in a matrix) ACE KMO UWY   (1 3 ∘.,1 3 )⌷¨⊂A  ⍝ works ni

[Bug-apl] Compiling on Raspberry 3 fails

2019-03-15 Thread Hans-Peter Sorge
Hi, Tokenizer.cc:764:4: error: floating constant exceeds range of 'long double' [-Werror=overflow]     exp_0_9(1E30)     ^~~ setting static const long double expo_tab[300] = and removing exp_0_9(1E30)  Fixes it. Thanks Hans-Peter

[Bug-apl] Raspberry 3, aarch64: config.guess is old version

2019-03-16 Thread Hans-Peter Sorge
Hi, on arm 64 bit *automake* returns with /./config.guess: unable to guess system type/ *uname -m*  returns  /aarch64/ to fix the problem run *automake --add-missing* If the most recent version of config.guess was included from svn it should fix it. Greetings HP

Corrupted Workspace

2020-03-01 Thread Hans-Peter Sorge
Hi, it rarely happens - here is one. [joy@joyw520 ~]$ apl     __ _   __ __  __    ___    __    / // | / // / / /   /   |   / __ \ / /   / / __ /  |/ // / / /   / /| |  / /_/ // / / /_/ // /|  // /_/ /   / ___ |

Function editing and line editing have inconsistencies.

2020-03-12 Thread Hans-Peter Sorge
Hi, There are two inconsistencies (and slightly annoying) when editing: 1 - is a small inconsistency when deleting lines in editor mode.     ∇X[⎕] [0]   X [1]   a [2]   b [3]   c [4]   d [5]   e [6]   f     ∇ [7] [∆1-3]   the editor only deletes lines 1 and 2 [6] [⎕]     ∇ [0]   X [3]   c [4]  

Fwd: Re: Function editing and line editing have inconsistencies.

2020-03-12 Thread Hans-Peter Sorge
Weitergeleitete Nachricht Betreff:Re: Function editing and line editing have inconsistencies. Datum: Thu, 12 Mar 2020 19:04:38 +0100 Von:Hans-Peter Sorge An: Blake McBride I'd like it that way. In IBM APL2 you can do full screen editing. But in Gn

Re: Fwd: Re: Function editing and line editing have inconsistencies.

2020-03-13 Thread Hans-Peter Sorge
d fantastic mode for GNU APL: https://github.com/lokedhs/gnu-apl-mode It makes working with GNU APL a pleasure and removes the necessity of the full screen editing. Br, /Alexey Hans-Peter Sorge mailto:hanspeterso...@netscape.net>> writes: > Weite

Re: Function editing and line editing have inconsistencies.

2020-03-14 Thread Hans-Peter Sorge
entry line 456 cursor up - display entry line 123 cursor down - display entry line 456 cursor down - display current entry line which looks OK to me. Best Regards, Jürgen On 3/12/20 3:40 PM, Hans-Peter Sorge wrote: Hi, There are two inconsistencies (and slightly annoying) when editing: 1 - is a

Re: Index-of function with structured left-argument

2020-04-15 Thread Hans-Peter Sorge
Hi, Your ⎕IO is 0 ⎕IO←1   Display (2 2 ⍴ 104 105 106 107) ⍳ (3 4 ⍴ 100+⍳100) ┏→━━┓ ↓┏⊖┓   ┏⊖┓   ┏⊖┓   ┏→━━┓┃ ┃┃0┃   ┃0┃   ┃0┃   ┃1 1┃┃ ┃┗━┛   ┗━┛   ┗━┛   ┗━━━┛┃ ┃┏→━━┓ ┏→━━┓ ┏→━━┓ ┏⊖┓  ┃ ┃┃1 2┃ ┃2 1┃ ┃2 2┃ ┃0┃  ┃ ┃┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━┛  ┃ ┃┏⊖┓   ┏⊖┓   ┏⊖┓   ┏⊖┓  ┃ ┃┃0┃  

Re: exercise 2019/02

2020-04-15 Thread Hans-Peter Sorge
Hi, how about   ∇find_grade[⎕]∇     ∇ [0]   r←find_grade g;gm;gl [1]   gm←0 65 70 80 90 [2]   gl←'FDCBA' [3]   r←,¨gl[+/[1]gm ∘.≤ g]     ∇   m,find_grade m←5 2⍴0 64  65 69  70 79  80 89  90 100   0  64 F F  65  69 D D  70  79 C C  80  89 B B  90 100 A A Regards Hans-Peter Am 14.04.2

Division by 0

2020-04-17 Thread Hans-Peter Sorge
Hi, I just noted some inconsistencies:   0÷0 1   0.1÷0 DOMAIN ERROR   0.1÷0   ^  ^   0.1÷0 1 DOMAIN ERROR   0.1÷0 1   ^  ^   0÷0 1 1 0   1 0 ÷ 0 DOMAIN ERROR   1 0÷0   ^  ^   0 0 ÷ 0 1 1   0 ÷ 0 0 1 1   1 ÷ 0 0 DOMAIN ERROR   1÷0

Re: exercise 2019/03

2020-04-17 Thread Hans-Peter Sorge
Hi, this case should be all zeros:   gradeDistri 'G' A 0 100 B 0 100 C 0 100 D 0 100 F 0 100 looks ok:   gradeDistri 'AG' A 1 100 B 0   0 C 0   0 D 0   0 F 0   0 Regards Hans-Peter Am 17.04.20 um 17:29 schrieb Otto Diesenbacher-Reinmüller: Hi APLers, first, many thanks to Mohammad, K

Re: Division by 0

2020-04-18 Thread Hans-Peter Sorge
10:26:09PM +0200, Hans-Peter Sorge wrote: Hi, I just noted some inconsistencies:   0÷0 1   0.1÷0 DOMAIN ERROR   0.1÷0   ^  ^   0.1÷0 1 DOMAIN ERROR   0.1÷0 1   ^  ^   0÷0 1 1 0   1 0 ÷ 0 DOMAIN ERROR   1 0÷0   ^  ^   0 0 ÷ 0 1 1   

Re: exercise 2019/03

2020-04-18 Thread Hans-Peter Sorge
   B 0   0.0   B 0   0.0  C 3  20.0   C 1  20.0   C 0   0.0   C 0   0.0   C 0   0.0  D 2  13.3   D 1  20.0   D 0   0.0   D 0   0.0   D 0   0.0  F 1   6.7   F 1  20.0   F 0   0.0   F 0   0.0   F 0   0.0 Regards Hans-Peter Am 17.04.20 um 22:29 schrieb Hans-Peter Sorge: Hi, this case should be all z

Re: Potential problem in diadic iota (⍳) or in Pick (⊃)

2020-08-07 Thread Hans-Peter Sorge
Hi, this boils down to: i←63   t←? 1000 ⍴ i   t = 2÷⍨ {⍵×2} fasteach t 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Re: Potential problem in diadic iota (⍳) or in Pick (⊃)

2020-08-07 Thread Hans-Peter Sorge
This is some intermittent bug.. with less than 255 elements the all elements are always equal   t←? 255 ⍴ i   +/t = 2÷⍨ {⍵×2} fasteach t 255   t←? 512 ⍴ i   +/t = 2÷⍨ {⍵×2} fasteach t 50   t←? 300 ⍴ i   +/t = 2÷⍨ {⍵×2} fasteach t 9   256 elements  random number of ele

Re: Could not compile gnu apl-1.8 on Fedora 32

2020-09-01 Thread Hans-Peter Sorge
Hi, just to let you know (FC32, most recent version). The dependency shows dnf deplist apl-1.8-0.x86_64.rpm .   dependency: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)    provider: libstdc++-10.2.1-1.fc32.x86_64   dependency: libtinfo.so.5()(64bit)    provider: ncurses-compat-libs-6.1-15.20191109.f

gnu apl emacs - Package cl is depricated

2020-09-02 Thread Hans-Peter Sorge
Hi, the recent update to emacs 27.1 gave me some headaches. Starting emacs FILE, the warning 'Package cl is depricated' popped up and did not open FILE. To make it short: Emacs started with  path /usr/share/emacs/27.1/site-lisp in mind. Then it did not find a proper file and continued to loo

⎕FIO non Zero Return Code related to ⎕FX

2020-10-29 Thread Hans-Peter Sorge
Hi, the Command is being correctly executed, the return codes are -10   Command←'echo "sad x asds" | sed "s/x/y/g"'   Handle←⎕FIO[24] Command   D←⎕FIO[6] Handle   ZN←⎕UCS D   ZN sad y asds   ⎕FIO[25] Handle ¯10   Command←'sed "s/x/y/g" <<< "sad x asds"'   Handle

⎕FIO Buffer limit is 5000 Bytes

2020-10-29 Thread Hans-Peter Sorge
Hi, the return size from ⎕FIO[24] / ⎕FIO[6] is limited to 5000B:   long←6000⍴'#'   Command←'echo "',long,'"'   Handle←⎕FIO[24] Command   D←⎕FIO[6] Handle   ZN←⎕UCS D   ⍴ZN 5000 Should be: What ever it takes :-) Regards Hans-Peter

take each question

2020-10-30 Thread Hans-Peter Sorge
Hi, ⍝ works as expected   (3) ↑ 'abcd' abc ⍝ works as expected too   (,3) ↑ 'abcd' abc ⍝ looks like a bug here - IBM APL is OK   (,3) ↑¨ 'abcd'  'wxyz'  '' LENGTH ERROR   (,3)↑¨'abcd' 'wxyz' ''   ^    ^ ⍝ needs to be a scalar   (,/,3) ↑¨ 'abcd'  'wxyz'  ''  

Re: ⎕FIO Buffer limit is 5000 Bytes

2020-10-30 Thread Hans-Peter Sorge
, Oct 29, 2020 at 10:22:52PM +0100, Hans-Peter Sorge wrote: the return size from ⎕FIO[24] / ⎕FIO[6] is limited to 5000B: (...) Should be: What ever it takes :-) It's not limited to 5000B, it's just the default size and you can use any other with dyadic form.  ⎕FIO is fairly low-lev

Re: ⎕FIO non Zero Return Code related to ⎕FX

2020-10-30 Thread Hans-Peter Sorge
Handle←⎕FIO[24] Command) ◊ ⎕FIO[25] Handle** **sad y asds** ** **768** * The *728* above is the exit code *3* shifted 8 bits. This is only to demonstrate the shift, normally you would use 0 instead of 3. Hope this helps, Jürgen On 10/29/20 9:06 PM, Hans-Peter Sorge wrote: Hi, the Command is b

edif2 corner condition.

2020-10-30 Thread Hans-Peter Sorge
Hi, working with an external editor under some circumstances some function content gets destroyed:   )wsid IS CLEAR WS   'libedif2.so' ⎕FX 'edif2' edif2   'emacs' edif2 'FN1'   - adding two lines, save and exit   'emacs' edif2 'FN1'   - body OK   'emacs' edif2 'FN2'   - n

Re: take each question

2020-10-30 Thread Hans-Peter Sorge
Hi Jürgen, thank you. Best Regards Hans-Peter Am 30.10.20 um 19:09 schrieb Dr. Jürgen Sauermann: i Hans-Peter, thanks for reporting this. Fixed in *SVN 1350*. Best Regards, Jürgen On 10/30/20 3:22 PM, Hans-Peter Sorge wrote: Hi, ⍝ works as expected   (3) ↑ 'abcd' abc

Re: ⎕FIO Buffer limit is 5000 Bytes

2020-10-31 Thread Hans-Peter Sorge
EIJHHH - never thought about it - COOOL. ⍝IBM APL: ⍎ ')HOST ls' VALUE ERROR   )HOST ls     ^   ⍎')HOST ls' ^ ⍝ GNU-APL: l ← ⍎ ')HOST ls -1' And it works:-)) Makes life much easier. f ← ⍎ ')HOST cat filename' ⍝ returns the file as nested vec

Another slow each (∨/¨)

2020-10-31 Thread Hans-Peter Sorge
Hi, the ∨/¨ on nested logical vectors is running slow.   )WSID IS CLEAR WS ⍝ get the data for testing   ⍴f ←  ⎕FIO[49] '/OTH/APL/trunk/src/Makefile.in' 5246 ⍝ timer     t←⎕FIO[50] 1 ⍝ Finding SQL-records is fast. The ∨/¨ is the slow guy - about 2 min. ⍝ I would expect that " (

stack trace on scan each

2020-11-01 Thread Hans-Peter Sorge
Hi, ⍝ this is OK:   C10←2⍴⊂'AB12EF12IJ'   C10 AB12EF12IJ AB12EF12IJ   P10←(⊂2/⍳5)⊂¨C10   S10←P10∊¨⊂⊂'12'   S10  0 1 0 1 0  0 1 0 1 0   S10/¨P10   12 12    12 12 ⍝ for a one element nested vector it ends in a stack trace: C10←,⊂'AB12EF12IJ'   P10←(⊂

Re: For your eyes

2020-11-01 Thread Hans-Peter Sorge
Hi Christian, I'm still learning .. errno -l  or errno NNN helps a lot. I had to install the moreutils package. Never before I got across this helpful stuff. Thank you for the eye opener:-) Best Regards Hans-Peter Am 01.11.20 um 07:46 schrieb Christian Robert: For your eyes,    strerr

Two workspaces

2020-11-01 Thread Hans-Peter Sorge
Hello Jürgen, I have a corrupted workspace and the still working backup. Do you want me to send them to you for analysis? It's just some experimental stuff and related to the previous reports I sent. Best Regards Hans-Peter

Re: Another slow each (∨/¨)

2020-11-01 Thread Hans-Peter Sorge
Hello Jürgen, amazing, thank you. Best Regards Hans-Peter Am 01.11.20 um 19:59 schrieb Dr. Jürgen Sauermann: Hi Hans-Peter, thanks, fixed in *SVN 1351*. Best Regards, Jürgen On 10/31/20 4:52 PM, Hans-Peter Sorge wrote: Hi, the ∨/¨ on nested logical vectors is running slow.   )WSID

Re: ⎕FIO Buffer limit is 5000 Bytes

2020-11-02 Thread Hans-Peter Sorge
most cases (and especially for interactive use cases) the current solution is more convenient since the result can be displayed directly (at least for text output). Best Regards, Jürgen On 10/31/20 4:10 PM, Hans-Peter Sorge wrote: EIJHHH - never thought about it - COOOL. ⍝IBM APL: ⍎ &

Re: ⎕FIO Buffer limit is 5000 Bytes

2020-11-02 Thread Hans-Peter Sorge
er becomes available at APL level and can be recovered by subtracting 0x10 from the codepoint) rather than raisong an error. *SVN 1352*. Best Regards, Jürgen On 11/2/20 10:05 AM, Hans-Peter Sorge wrote: Hi Jürgen, I agree. A *cat BIN_FILE*  in a terminal session is of artistically value on

Re: ⎕FIO Buffer limit is 5000 Bytes

2020-11-03 Thread Hans-Peter Sorge
Hello Jürgen, thank your for the insight. Best Regards Hans-Peter Am 03.11.20 um 11:29 schrieb Dr. Jürgen Sauermann: Hi Hans-Peter, see below. Best Regards, Jürgen On 11/2/20 8:02 PM, Hans-Peter Sorge wrote: Hello Jürgen, as far as some UTF study got me I have 2 questions: Two

Re: edif2 corner condition.

2020-11-08 Thread Hans-Peter Sorge
ller: Looks like it might be a concurrency problem--edif2 forks, IIRC, twice, serially, and I never was completely sure that I had the waitpid()s right.  I'll take a look. Chris On 10/30/20 11:22 AM, Hans-Peter Sorge wrote: Hi, working with an external editor under some circumstances some

Re: APL2 Compatibility

2020-11-26 Thread Hans-Peter Sorge
Hi, I thought so, APL is fun:-) The following 4 expressions are just a repeat: ⍝1 - a vector replicates a scalar. The result is a simple vector 1 2 3/'A' AA ⍝2 - scalar by scalar - simple vector as result   1 2 3/'ABC' ABBCCC ⍝3 - as in ⍝1 but  for each scalar  a vector replicates

Re: APL2 Compatibility

2020-11-27 Thread Hans-Peter Sorge
ples are showing something different, where you're introducing an extra level of nesting to the right argument but without changing its rank or shape. Jay. On Thu, 26 Nov 2020 at 23:56, Hans-Peter Sorge wrote: Hi Jay, .. not quite: (,6)/'a' aa (,6)/,¨&#x

Re: APL2 Compatibility

2020-11-30 Thread Hans-Peter Sorge
bound to /** ** AA BB CC *which corresponds to pattern (A O) P B above. This is almost as easy as using parentheses for values. Best Regards, Jürgen On 11/26/20 1:28 PM, Hans-Peter Sorge wrote: Hi, I thought so, APL is fun:-) The following 4 expressions are just a repeat: ⍝1 - a vector

Re: edif2 corner condition.

2020-12-02 Thread Hans-Peter Sorge
ieb Chris Moller: Looks like it might be a concurrency problem--edif2 forks, IIRC, twice, serially, and I never was completely sure that I had the waitpid()s right.  I'll take a look. Chris On 10/30/20 11:22 AM, Hans-Peter Sorge wrote: Hi, working with an external editor under some circumsta

Re: edif2 corner condition.

2020-12-02 Thread Hans-Peter Sorge
problem. Explanation: IN_NOTIFY gets fired if as soon as a file gets created. IN_CLOSE_WRITE as soon as the file content got fully written and the file got closed. So reading the file content is save Best Regard Hans-Peter Am 02.12.20 um 16:27 schrieb Hans-Peter Sorge: Hi Chris, I have done

Re: edif2 corner condition.

2020-12-03 Thread Hans-Peter Sorge
mitted and pushed. Chris On 12/2/20 7:24 PM, Hans-Peter Sorge wrote: Hi, sorry for the previous long mail. Here is quite a short solution:-) In edif2.cc replace     // int    inotify_rc = inotify_add_watch(inotify_fd, dir, IN_CREATE | IN_MODIFY ); by     int    inotify_rc = inotify

Fwd: Operator binding

2020-12-03 Thread Hans-Peter Sorge
10 10 10 10 10 10 10    but it is  625¨⍴5 10 15 20 25 Just asking ..:-) Best Regards Hans-Peter Am 02.12.20 um 17:27 schrieb Dr. Jürgen Sauermann: Hi, in following up the recent email discussions with Jay Foad and Hans-Peter Sorge, I have changed the operator-to-operator binding in

)DUMP entry with syntax error

2020-12-03 Thread Hans-Peter Sorge
Hi, a short test gives: $ apl -q   X←⊂'XXX'   )WSID DUMP_TEST WAS CLEAR WS   )DUMP 2020-12-03  18:20:00 (GMT+1)   )OFF )load DUMP_TEST.apl DUMPED 2020-12-03  18:20:00 (GMT+1) SYNTAX ERROR   ((⎕IO+)⊃X)←'XXX'   ^ ^ $ less DUMP_TEST.apl . X←00     ((⎕IO+)

Re: )DUMP entry with syntax error

2020-12-03 Thread Hans-Peter Sorge
irectory **: *find -exec sed -i 's/IO+)/⎕IO+⍬)/g' {} \;* Please note that the character to be inserted is ⍬(Zilde) and not 0(Zero); the difference is difficult to see with some fonts. Best Regards, Jürgen On 12/3/20 6:35 PM, Hans-Peter Sorge wrote: Hi, a short test gives: $ apl

Re: Fwd: Operator binding

2020-12-03 Thread Hans-Peter Sorge
nswer the tricky ones). Best Regards, Jürgen On 12/3/20 2:26 PM, Hans-Peter Sorge wrote: Sorry, did not hit the mailing list... Hi, frankly I try to find out what it does...    4/2 2⍴⍳4 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 basically replicates the last column    4//2 2⍴⍳4  2 2 2 2  4

Quad FX library_function causes stack trace

2020-12-04 Thread Hans-Peter Sorge
Hi, ⎕FX  'library_function'     should probably return 'Domain Error'   'libedif2.so' ⎕fx 'edif2' edif2 ⍝ just happened to be an accident ...   ⎕fx 'edif2' == Assertion failed: old_ufun in Function:  fi

Re: Quad FX library_function causes stack trace

2020-12-04 Thread Hans-Peter Sorge
Hans-Peter, thanks, see below. Best Regards, Jürgen On 12/4/20 10:54 AM, Hans-Peter Sorge wrote: Hi, ⎕FX  'library_function'     should probably return 'Domain Error' No. It defines a niladic function named library_function with an empty function body.   'libe

Re: Attention: Saving workspaces

2020-12-07 Thread Hans-Peter Sorge
Hi, is there a way that )DUMP preserves function fidelity - that is - keep empty lines and indents? It would improve readability a lot by eg. separating code and next comment by a space line. Best Regards Hans-Peter Am 08.11.20 um 20:07 schrieb Dr. Jürgen Sauermann: Hi everybody, I am curr

  1   2   >