Re: Support for 'where' primitive '⍸' ?

2020-11-27 Thread Russtopia
> I cannot judge to which kind of extensions ⍸ belongs since I do not know > what it actually does. I will consider > any opinions posted on bug-apl@gnu.org, though. > > Best Regards, > Jürgen > > > > On 11/26/20 11:15 PM, Russtopia wrote: > > Hi, newbie to APL so my si

Re: APL Christmas 2020 doodle: Tree

2020-12-24 Thread Russtopia
) I hope I do not have to choose! So far, trying both dialects while learning has illuminated some concepts for me, but I fear I might confuse myself with implementation differences. Again, thank you very much for the insight. -Russ On Wed, 23 Dec 2020 at 23:21, Kacper Gutowski wrote: > On Wed,

Documentation on supported line editor commands (the '∇-editor')

2020-12-29 Thread Russtopia
The [GNU APL documentation][1] on the line editor seems to assume one already knows how to use it. I only see brief mention of what commands/syntax '... are not fully supported in GNU APL'. I looked through the SVN trunk's various README- files and in doc/, but not exhaustively so my apologies if

Use of Local Variables in Lambdas (Direct Functions) ?

2021-07-09 Thread Russtopia
Hi, reading GNU APL documentation, in the section 2.7 "2.7 Direct Functions (Lambdas)", It states that lambdas do not support multiple expressions (amongst other features). If this is the case, what purpose does allowing local variable declarations serve? Allowing SUM ← { ⍺ + ⍵ ;C;D } .. but

Bugs (perhaps?) in behaviour of )COPY, )PCOPY with named lambda fns

2021-07-09 Thread Russtopia
I have noticed what I believe are some inconsistencies (bugs?) with how GNU APL handles reloading/overwriting/erasing of symbols which are 'trad fns' versus 'lambda fns'. Consider the following )DUMP file: --8<-- #!/usr/local/bin/apl --script

Re: Bugs (perhaps?) in behaviour of )COPY, )PCOPY with named lambda fns

2021-07-10 Thread Russtopia
or a boolean vector for ⎕EX). > > Best Regards, > Jürgen > > > On 7/10/21 6:41 AM, Russtopia wrote: > > I have noticed what I believe are some inconsistencies (bugs?) with > > how GNU APL handles reloading/overwriting/erasing of symbols which are > > 'trad

Patch: Allow ctrl-d to act as del-char and re-assign ^D (EOT) to ctrl-z

2021-07-04 Thread Russtopia
Hello, Please see below a small patch proposal for a new configure option to move the ^D (EOT) behaviour to a different key (^Z which is currently unassigned), which allows keyboard ctrl-D to act as delete-char. I did this because I found my muscle-memory from bash, emacs etc. caused me to hit

Is anyone using APL-Pkg?

2021-03-24 Thread Russtopia
Recently on the list I mentioned this package: https://github.com/blakemcbride/APL-Pkg The current github holder inherited it from the original author, but there's little to no activity on the project it would appear. I ran into issues actually importing packages after a fresh install; I have

GNU APL on Android

2021-03-14 Thread Russtopia
I was happy to find out a few weeks ago that it's possible to build GNU APL on Android within the termux environment (a kind of Debian container that runs inside Android). I forgot to capture the exact configure options I used, as I was running out of storage on my phone so I had to remove the SVN

Gtk_server "-rdynamic" issue following APL Gtk UI tutorial

2021-02-25 Thread Russtopia
bian 8.3.0-6) gtk+3.0_3.24.5-1 --- $ ./my-application.apl Loading GUI: /home/russtopia/GNUAPL/workspaces/my-application.glade Top-level widget: window1 See class='GtkWindow' and id='window1' See class='GtkGrid' and id='grid1' See class='GtkLabel' and id='label1' property name='lblEmploy

Attn: Blake McBride: APL-Pkg issue

2021-02-25 Thread Russtopia
russtopia@rlm-devuan:~/GNUAPL$ apl

GNU APL versus 'tacit' style

2021-02-24 Thread Russtopia
What is the general consensus among GNU APL users here on the newer 'tacit style' that seems so prevalent in many online APL resources nowadays? ('forks', 'trains', etc.) As a new, inexperienced APLer, exploring a bit more with GNU APL, I wonder if it discourages people new to APL to find, as I

Re: GNU APL versus 'tacit' style

2021-02-24 Thread Russtopia
Oh that is a very nicely-formatted version. Thank you so much! On Wed, 24 Feb 2021 at 13:12, wrote: > With attachment.. > > > -- Original Message -- > *Received: *01:09 PM PST, 02/24/2021 > *From: *edxmail-jo...@usa.net > *To: *Russtopia , > *Subject: *R

APL idiom search for various dialects [was Re: GNU APL versus 'tacit' style]

2021-02-24 Thread Russtopia
. without forks/trains', but still quite useful. It seems a tenuous place to publish such a useful resource, within a sample site that may disappear. I hope it doesn't go away... https://miserver.dyalog.com/Examples/Applications/Idiom_Search.mipage -Russ On Wed, 24 Feb 2021 at 12:30, Russtopia wrote

Linux virtual console key map for GNU APL

2021-03-02 Thread Russtopia
Hi all, Maybe there's already a standard mapping somewhere but I wanted one that matched what I've been using from X that worked similarly in virtual console terminals; so I made one tonight. APL key is CAPSLOCK (eg CAPS+e = ∊), or right-ALT key to lock into APL mode. Key mappings are for GNU

Bug? Cannot )erase free-standing '⍺', '⍵' vars created by parse error

2021-03-06 Thread Russtopia
It is expected that parsing errors can result in 'free' ⍺,⍵ variables in the workspace (outside of any lambda), and that they do not show up in )vars and cannot be deleted short of a )clear? In a new, clear GNU APL session: {(⊂⍺){⍺[⍵;]}¨⍳≢⍵}⍨(3 4⍴⍳12) 1 2 3 4 5 6 7 8 9 10 11 12 ⍺

Re: Bug? Cannot )erase free-standing '⍺', '⍵' vars created by parse error

2021-03-06 Thread Russtopia
]* > *⋆* > > Use → or )SI to clear the )SI entry: > > * →* > * ⍺* > *VALUE ERROR* > * ⍺* > * ^* > > Best Regards, > Jürgen > > > > On 3/6/21 6:21 PM, Russtopia wrote: > > It is expected that parsing errors can result in 'free' ⍺,⍵ va

WS remains full after large aborted computations?

2021-02-22 Thread Russtopia
Hi, I saw this behaviour tonight: +/⍳10 WS FULL+ +/⍳10 ^ ^ ⍳4 WS FULL+ +/⍳10 ^ ^ 4 WS FULL+ +/⍳10 ^ ^ .. seems the only way to recover is call )CLEAR but that erases the entire active workspace. Is there a way

Re: Gtk_server "-rdynamic" issue following APL Gtk UI tutorial

2021-02-26 Thread Russtopia
Thank you for the response. I looked in src/Gtk/Makefile and indeed the LDFLAGS did not specify -rdynamic. I just added it and that solved the issue. -Russ On Fri, 26 Feb 2021 at 07:03, Dr. Jürgen Sauermann wrote: > Hi Russtopia, > > i have noticed in the past that -rdynamic is

APL Keyboard stickers now available

2021-09-09 Thread Russtopia
I hope this does not violate mailing list decorum but I thought there might be interest here. I have produced a set of APL keyboard stickers for those who wish to adapt their current desktop or laptop keyboards to have APL symbols. Dedicated desktop PC APL keyboards are over $100 USD, and laptop

Re: Bug-apl Digest, Vol 95, Issue 3

2021-08-02 Thread Russtopia
n replying, please edit your Subject line so it is more specific > than "Re: Contents of Bug-apl digest..." > > > Today's Topics: > >1. Typo in help text for monadic | (Magnitude) (Russtopia) > > > --

Question on scalar extension of left arg

2021-07-29 Thread Russtopia
Hello, I am trying an exercise that finds anagrams of a word from a list of candidate words. I am having issues with scalar extension of the left arg, which I thought should automatically repeat the scalar left arg to match each item in the right vector arg. It seems to work only if I do the

Re: Bug-apl Digest, Vol 94, Issue 7

2021-07-30 Thread Russtopia
> When replying, please edit your Subject line so it is more specific > than "Re: Contents of Bug-apl digest..." > > > Today's Topics: > >1. Question on scalar extension of left arg (Russtopia) >2. Re: Question on scalar extension of left arg (Kacp

Re: Question on scalar extension of left arg

2021-07-30 Thread Russtopia
the left arg though, to avoid needing either of these manual expansions to match a single left arg with the list of right args. -Russ On Thu, 29 Jul 2021 at 22:48, Russtopia wrote: > Hello, I am trying an exercise that finds anagrams of a word from a list > of candidate words. > >

How to represent Jot (∘) in GNU APL Help.def

2021-10-17 Thread Russtopia
I noticed tonight that the jot (∘, Compose) operator is only indirectly mentioned in GNU APL ]HELP. Unlike most core APL symbols GNU APL doesn't output anything for ]HELP ∘ However, looking at the source code it appears that this pseudo-operator doesn't really fall into any of the classes

Re: APL Keyboard stickers now available

2021-09-26 Thread Russtopia
in one go and leaving the key > stickers on the paper carrier. > > After that, peeling off the individual key sticker has become considerably > easier. > > Best Regards, > Jürgen > > > On 9/10/21 7:57 AM, Russtopia wrote: > > I hope this does not violate mailing list

Absolute limits of rank 2 bool matrix size in GNU APL?

2021-12-27 Thread Russtopia
Hi, doing some experiments in learning APL I was writing a word frequency count program that takes in a document, identifies unique words and then outputs the top 'N' occurring words. The most straightforward solution, to me, seems to be ∘.≡ which works up to a certain dataset size. The main

Re: Absolute limits of rank 2 bool matrix size in GNU APL?

2021-12-31 Thread Russtopia
Hi Hans-Peter, do you mind if I post a cleaned-up version of your solution to the word count/frequency problem on Rosettacode.org ? http://rosettacode.org/wiki/Word_frequency That was the original motivation for my attempting a solution, as there was no APL example yet posted there. Regards,

Re: Bug-apl Digest, Vol 99, Issue 13

2021-12-28 Thread Russtopia
ou create a partition vector from it > pv?+\1,~2?/swv > pv > > 1 2 2 3 3 4 5 > > partition for wc > ?pv?pv > 1 ?2 2 ?3 3 ?4 ?5 > > Then the wc is > wc pv ? pv > ?wc > > and the unique words are > uw?1?? pv ? swv > ?uw > aa bb cc ff

Re: Absolute limits of rank 2 bool matrix size in GNU APL?

2021-12-28 Thread Russtopia
same size (e.g. 24 byte on a 64-bit CPU, see *apl > -l37*) even if the cells contain only > Booleans. > > The workaround for really large Boolean arrays is to pack them into the > 64-bits of a GNU APL integer > and maybe use the bitwise functions (⊤∧, ⊤∨, ...) of GNU APL to ac

Exit status from APL; and expected exit code with CORE_COUNT_WANTED=n vs. without

2021-11-28 Thread Russtopia
Hi, while investigating using GNU APL for scripting (--script), I have two questions: 1) Is there a way to specify an exit code in APL scripts? I didn't see any ⎕FIO or system call interface to invoke the host OS exit() with a code other than the implied 0 code in GNU APL's source function

Crash on empty assoc array index

2021-12-12 Thread Russtopia
$ apl --version BUILDTAG: - Project:GNU APL Version / SVN: 1.8 / SVN: 1505M Build Date: 2021-12-07 02:34:36 UTC Build OS: Linux 5.7.0rlabs x86_64 config.status: 'CORE_COUNT_WANTED=4' 'RATIONAL_NUMBERS_WANTED=y' '--with-ctrld_del=y' '--with-gtk3'

Patch: CTRL+R command history substring search

2021-07-22 Thread Russtopia
Hello, I read in the documentation that some time ago, the line edit logic was re-written to no longer use GNU readline, for better context-aware behaviour. However I miss the ability to jump back in history based on substrings. Holding up-arrow or CTRL-P to sequentially go back through history

Assertion failed in expression ​⍎¨1⊂⍕345

2022-02-12 Thread Russtopia
$ apl --version checking ⎕AV BUILDTAG: - Project:GNU APL Version / SVN: 1.8 / SVN: 1523M Build Date: 2022-02-08 06:24:33 UTC Build OS: Linux 5.7.0rlabs x86_64 config.status: 'CORE_COUNT_WANTED=4' 'RATIONAL_NUMBERS_WANTED=y' '--with-ctrld_del'

Re: [EXTERNAL]Building GNU APL with clang

2023-10-02 Thread Russtopia
aduate Program Director, ITWS@RPI > > Director, Rensselaer Cybersecurity Collaboratory > > Office: Lally 304 > > > > *From:* bug-apl-bounces+callab5=rpi@gnu.org rpi@gnu.org> *On Behalf Of *Russtopia > *Sent:* Monday, October 2, 2023 8:08 PM > *To:* bug-apl

Building GNU APL with clang

2023-10-02 Thread Russtopia
Hello, See topic. I would rather not, but in this case I am trying to re-build GNU APL in Termux on my newer Android phone, and Termux decided some time ago to remove gcc entirely from its packages, in preference to clang. :( I am not up to date at all on modern C++, but this conversation on

Re: [EXTERNAL]Building GNU APL with clang

2023-10-02 Thread Russtopia
laer Cybersecurity Collaboratory > > Office: Lally 304 > > > > *From:* bug-apl-bounces+callab5=rpi@gnu.org rpi@gnu.org> *On Behalf Of *Russtopia > *Sent:* Monday, October 2, 2023 8:08 PM > *To:* bug-apl@gnu.org > *Subject:* [EXTERNAL]Building GNU APL with c

Latin-American APL keyboard layout?

2022-10-11 Thread Russtopia
Hello, I was asked today by someone from Chile about APL layouts for Latin-American keyboards. It seems the ; : + * " / symbols are placed differently, which would make for problematic mapping wrt. the US layout. Has anyone come up with a good 'standard' layout for this region? (Interestingly

Re: Latin-American APL keyboard layout?

2022-10-14 Thread Russtopia
matter which layout, Dvorak, Qwerty, etc. > > For more information and my sample .Xcompose and > DefaultKeyBinding.dict see my blog-post at > https://diesenbacher.net/blog/entries/apl-symbols.html > > Regards, > > – *okflo* > > * From*: Peter Teeson <%22peter+teeso

Re: Strange issue as of r1616

2022-11-15 Thread Russtopia
1. ./configure CORE_COUNT_WANTED=0 > > > > - or - > > > > 2. let me know the declarations (function names and argument types), > > and #include files for these functions on your platform. > > > > Best Regards, > > Jürgen > > > > > > &

Strange issue as of r1616

2022-11-14 Thread Russtopia
Hi, I recently pulled latest svn and saw these strange messages right after the GNU APL banner. Backing up, it appears to have begun with r1616 for me. I did a `make clean` and fresh `./configure` for each build to narrow down when the issue began. System: Devuan GNU/Linux, x86_64 ---

Re: Link errors with latest GNU APL on Linux Devuan Chimaera (stable)

2023-07-04 Thread Russtopia
> PARALLEL_ENABLED*. > Fixed in *SVN 1716*. > > Best Regards, > Jürgen > > > On 7/4/23 20:05, Russtopia wrote: > > Hi, thanks for looking at this. I upgraded my laptop recently so I might > still be missing other packages... > > I did install libx11-xcb-dev no

Re: Link errors with latest GNU APL on Linux Devuan Chimaera (stable)

2023-07-04 Thread Russtopia
-parentheses -I sql -I /home/russtopia/pkgs/apl/trunk -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango

Re: Bug-apl Digest, Vol 123, Issue 3

2023-12-20 Thread Russtopia
There is an online APL tutorial that is good for beginners as well, and AFAIK it is mostly only APL2 syntax: http://tutorial.apl2000.com:9005 On Wed, Dec 20, 2023 at 9:02 AM wrote: > Send Bug-apl mailing list submissions to > bug-apl@gnu.org > > To subscribe or unsubscribe via the

Should GNU APL write to .apl.history when invoked with the --eval option?

2024-02-03 Thread Russtopia
): -- russtopia@tripe /ext0 $ apl --eval "+/ 12 552 14 20 262 254 7.2" 1121.2 Cannot write history file .apl.history: Permission denied --- Since --eval seems intended to enable use of the APL interpreter outside of any workspace, might it be better to avoid writing to .apl.history when