Hi Koki,
I believe that GNU APL adds a newline at the end of the
program as part of the restoration of terminal properties
before apl was started.
It is, in general, not desirable if a program may ends with an
incomplete output lin
A simple way to fix this might be e.g.:
*apl --silent --noCIN
eley, CA'
((⎕IO+(⊂0 3))⊃APL_DATA)←'1543 Spruce St.'
((⎕IO+(⊂1 0))⊃APL_DATA)←'Jane Doe'
((⎕IO+(⊂1 2))⊃APL_DATA)←'Berkeley, CA'
((⎕IO+(⊂1 3))⊃APL_DATA)←'1543 Spruce St.'
when )DUMPed.
Good point / reminder for *x['y'] <=>
Hi again,
sorry, (1⊃x['y']) does not work either with selective specification.
On 8/25/24 17:57, Dr. Juergen Sauermann wrote:
Hi Hans-Peter,
according to the IBM language reference page 41 is
selective specification limited to specific functions,
and *'.'* is unfortuna
Hi Hans-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']* instead of
==
Machine is x86_64 Debian 9, apt-get update && apt-get upgrade as of this morning:
Linux pgvm 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux
Cheers
Patrick
- Original Message -
From: "Juergen Sauermann"
To: bug-apl@gnu.org
Sent: We
Hi,
I have added a new system function ⎕PLOT in SVN 1104.
With that function you can easily plot APL vectors
and matrices (requires X).
See:
info apl
for details.
Enjoy,
/// Jürgen
s
Hi Jerome,
looking at https://en.wikipedia.org/wiki/Java_Native_Interface
and in particular at
https://en.wikipedia.org/wiki/SWIG
tt should be fairly simple to call libapl from Java.
I am not a Java programmer myself (I tried it 20 years ago but the
Hi Hans-Peter,
I tried to check your example with IBM APL2 and it
gives me a RANK ERROR on
((∊2=⍴¨x)/,s)⌷x
⍴((∊2=⍴¨x)/,s) is 3 and ⍴x is 4 4.
I have earlier noticed some differences in nesting levels between different APL interpreters that
could be traced bac
Hi Hans-Peter,
thanks, fixed in SVN 1093.
Best Regards,
/// Jürgen
On 11/04/2018 04:45 PM, Hans-Peter
Sorge wrote:
Hello Jürgen,
This looks rather simple ...
)clear
CLEAR WS
' '=⊂⊂'yy'
=
Hi Hans-Peter,
thank you dor reporting this. See my questions/comments below.
On 11/01/2018 01:53 PM, Hans-Peter
Sorge wrote:
Hello Jürgen,
here comes an other corner case.
The following two cases work as expected.
(⍳16)⍴'a'
SYS
Message -
From: "Juergen Sauermann"
To: "Patrick Giagnocavo" , bug-apl@gnu.org
Sent: Tuesday, October 16, 2018 3:02:59 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Bug-apl] startup time, and, is there a way to run under FastCGI?
Hi,
fixed in SVN 1083 . Time is down t
(365 12 30 24 60 60 1000⊥⎕TS-T) 'ms'
11 ms
/// Jürgen
On 10/16/2018 08:00 PM, Juergen
Sauermann wrote:
Hi Patrick,
as far as I can see most of the time is spent in the
Hi Patrick,
as far as I can see most of the time is spent in the WITHOUT
function (A∼B):
F5000←⊂[2]'0123456789'[?5000 10⍴10]
F1750←⊂[2]'0123456789'[?1750 10⍴10]
WITHOUT:
T←⎕TS
7: note: 'class Executable' defined here
class Executable
^~
Thanks,
Hans-Peter
Am 01.10.18 um 17:17 schrieb Juergen Sauermann:
Hi Kacper,
thanks, fixed in *SVN 1082*.
/// Jürgen
On 10/01/2018 01:11 AM, Kacper Gutowski wrote:
On Sun, Sep 30, 2018 at
Hi Kacper,
thanks, fixed in *SVN 1082*.
/// Jürgen
On 10/01/2018 01:11 AM, Kacper Gutowski wrote:
> On Sun, Sep 30, 2018 at 03:42:53PM -0600, Nathan Rogers wrote:
>> When using the diamond operator, the repl returns "bad character in
>> execute+"
>>
>> simple example: \
>> {1:2◊3}
>> Bad char
Hi Kacper,
thanks, fixed in SVN 1082.
/// Jürgen
On 10/01/2018 01:48 AM, Kacper Gutowski
wrote:
Hi,
Tokenizer fails to catch unbalanced brackets when input is just "{⋄}"
which triggers assertion in setup_one_lambda:
{
Hi Nathan,
thanks for reporting this.
The error has been corrected already, please fetch the latest GNU
APL from SVN.
See https://savannah.gnu.org/svn/?group=apl.
/// Jürgen
On 09/30/2018 03:59 AM, Nathan Rogers
Hi,
I have added a new primitive function variant: ⊢ with axis.
⊢ with axis
selects, according to its axis argument, its left argument, or
its right argument, or a mix of items from both arguments:
A←2
3⍴'abcdef' ⍝ left va
Hi,
your example looks like you are not waiting until ⎕SVO has
succeeded.
You assign to a shared variable before it was entered into the
shared variable
database.
Have a look at testcases/AP100.tc for how to use it
(hint: check the
Hi Kacper,
I have not documented the aplscript trick because I see it
more as a hack that helps in a specific situation
than a fully supported feature.
A general problem of symbolic links to the apl binary (which was the
use case for introducing the
/// Jürgen
On 08/21/2018 07:18 PM, Hudson Flavio
Meneses Lacerda wrote:
On Tue, 21 Aug 2018 18:36:27 +0200
Juergen Sauermann wrote:
Hi Hudson,
Hi,
aas far as I know you can use a relative path to apl as long as the
apl bi
quot;
⍝--
'⍝ Body of script'
⎕RL←×/⎕TS~0
?⍨ 20
'⍝ End of script'
)off
-->8---
(That can work fine with bash or dash, but not with sash.)
By the way, why APL files need to start with "#!" to b
Hi Hudson,
you can ./configure
GNU APL with prefix=/usr
and then recompile and install.
/// Jürgen
On 08/21/2018 03:34 AM, Hudson Flavio
Meneses Lacerda wrote:
Hi.
Some of my scripts use `#!/usr/bin/apl --script
Hi Kacper,
cool, thanks. Didn't know that trick.
/// Jürgen
On 08/18/2018 08:17 PM, Kacper Gutowski
wrote:
On Sat, Aug 18, 2018 at 02:14:35PM -0300, Hudson Flavio Meneses Lacerda wrote:
How to run a subproces
Hi Hudson,
You may want to try ⎕FIO[57] or similar (read: ⎕FIO[24] aka.
popen() and
⎕FIO[25] aka. pclose() if
the communication with the new process is unidirectional).
The & is a shell feature that is not available if a command
is
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,
The ⎕IO bug is back.
(note: ⎕IO ←→ 0 seems to be set to 0 u
Chris
On 10/08/18 09:11, Juergen Sauermann
wrote:
Hi Chris,
does that mean that I can revert the patch that I have put in
for edif recently?
Best Regards,
Hi,
I have added a new system function ⎕GTK to GNU APL.
⎕GTK is based on libgtk+ version 3 and provides a simple
(and
therefore somewhat restricted) way of creating and managing GUIs
from an APL program.
Think of it as a replaceme
Hi Chris,
does that mean that I can revert the patch that I have put in for
edif recently?
Best Regards,
/// Jürgen
On 08/07/2018 07:09 PM, Chris Moller
wrote:
Hans-Peter,
If you want to try it again
cluded in the workspace with:
>>>
>>> 'libedif.so' ⎕fx 'edif'
>>>
>>> and edif2 with:
>>>
>>> 'libedif2.so' ⎕fx 'edif2'
>>>
>>> Of course, you can use any function names you like and
Hi,
fixed in *SVN 1061*.
/// Jürgen
On 08/02/2018 04:13 PM, Juergen Sauermann wrote:
> Hi
>
> I can now reproduce it, it seems to occur only on 64 bit machines
> (strange enough).
> I will look into it.
>
> /// Jürgen
>
>
>
> On 08/02/2018 03:25 PM, Hans-Pete
⍎'qio_test'
1
⍎¨⊂'qio_test'
0
Greetings
Hans-Peter
Am 02.08.2018 um 14:23 schrieb
Juergen Sauermann:
Hi Hans-Peter,
interestin
Hi Hans-Peter,
interesting. I am getting this:
∇qio_test[⎕]∇
∇
[0] qio_test
[1] ⎕IO
∇
⍎¨'qio_test' 'qio_test'
1
1
Which SVN version are you using?
///
Hi Chris,
thanks, done in SVN 1060.
/// Jürgen
On 07/30/2018 03:59 PM, Chris Moller
wrote:
Here's an even simpler, more direct, patch:
Index: LineInput.cc
=
Hi,
I have added a new directory named HOWTOs for
descriptions of how not-so-obvious things can be done in GNU APL.
The first file in that directory is Peter's Macintosh document
which was copied from the doc directory.
The second file is a ne
Hi,
I have now switched anything off in my email program that is even
remotely
related to encryption.
I will be AFK for two days and send the next email after that.
Best Regards,
/// Jürgen
, Blake McBride
wrote:
All
we're getting is an empty email with two attachments: noname &
encrypted.asc
On Wed, Jul 25, 2018 at 11:55 AM Juergen
Sauermann <juergen.sauerm...
binianRHZN5rO.bin
Description: PGP/MIME version identification
encrypted.asc
Description: OpenPGP encrypted message
Hi,
I have added a new ⎕FIO[57] aka. FIO∆execve to GNU
APL.
Handle←⎕FIO[57] Filename
forks a new process running program Filename
and connects it to GNU APL. GNU APL and the new program
can then communicate using Hand
this type of email. I don’t understand why.
>
> respect…
>
> Peter
>> On Jul 24, 2018, at 3:38 PM, Juergen Sauermann
>> wrote:
>>
>>
>
signature.asc
Description: OpenPGP digital signature
binvBweryF7Yo.bin
Description: PGP/MIME version identification
encrypted.asc
Description: OpenPGP encrypted message
binuuE2Puesp6.bin
Description: PGP/MIME version identification
encrypted.asc
Description: OpenPGP encrypted message
Hi Chris,
thanks, fixed in SVN 1057.
/// Jürgen
On 07/21/2018 05:05 PM, Chris Moller
wrote:
This is the same as the last batch--don't know
how I missed it the first time:
Inde
bin6ixwN92Lz7.bin
Description: PGP/MIME version identification
encrypted.asc
Description: OpenPGP encrypted message
Hi Chris,
thank you for contributing this. I have added a link on our
community page
http://www.gnu.org/software/apl/Community.html.
I believe the function would be even more useful it could create or
modify
an APL function in a running workspace r
Hi Peter,
I suppose the line
libapl_la_LDFLAGS
+= -avoid-version
in src/Makefile.am prevents the creation of libapl.0.dylib.
I suppose if
you remove that line then libapl.0.dylib will show up.
Please note that libapl.0.dy
Hi Peter,
congratulations! And thanks for effort that you have put into
this.
/// Jürgen
signature.asc
Description: OpenPGP digital signature
ything.
Chris
On 26/06/18 13:43, Juergen Sauermann
wrote:
Hi Chris,
the svn E155007 happens if you unpack a GNU APL tar
file (as opposed to
checking out GNU APL f
hecks for the operating system and chooses the correct
extension based on it.
If you ever wish to support Windows in the future, they use
.DLL.
On 2 July 2018 at 22:15, Juergen
Sauermann <juergen.sauerm...@t-o
ib name.
This conforms to Apple’s Dynamic Libraries Programming Topics documentation
So far so good… I will now proceed with the original experiment….
Thanks for the help and support…..
respect….
Peter
On Jun 30, 2018, at 6:00 AM, Juergen Sauermann wrote:
Hi Peter,
Hi Peter,
great! My conclusion is that one or more of the linker options -module,
-shared, and
-export-dynamic has caused the problem.
I have removed these options for all libraries now, hoping that they
are not needed by other
people. I left -avoid-
Hi Peter,
if I compare the rules in Makefile.am for the libraries mentioned
below, then it seems
like there is one line which sets the xxx_la_LDFLAGS for
those libraries xxx that then fail
to properly build the dylibs. Removing that line may fix your
t.net 4.16.13-300.fc28.x86_64 #1 SMP Wed
May 30 14:31:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[0] ~/Downloads/apl-1.7 >
I'm no C++ guy, but I was going to look more
closely into this when I got time. I've had other recent
Hi Chris,
even after a close look at the GNU APL code I can't see anything
wrong with how realpath() is being called.
To me it looks more like a bug in glibc 2.3, although the valgrind
message suggests that this bug causes no harm
(a memory are
Jun 13, 2018, at 2:49 PM, Juergen Sauermann wrote:
Hi Peter,
I don't know what a MH_BUNDLE vs. a MH_DYLIB is but meybe this helps:
https://github.com/yallop/ocaml-ctypes-inverted-stubs-example/issues/4
/// Jürgen
On 06/13/2018 09:26 PM, Peter Teeson wrote:
Hi Jürgen:
IB) file '.libs/libapl.so' for
architecture x86_64
clang: error: linker command failed with
exit code 1 (use -v to see invocation)
Hi Peter,
a simple C program, say libapl_test.c would be this:
#include
"libapl.h"
int
main(int argc, char * argv[])
{
init_libapl(argv[0], 0);
return apl_exec("⎕←2 3⍴⍳6");
}
Hi Peter,
no, the make all target builds libapl if ./configure'd
to do so:
1. ./configure
--with-libapl
2. make all
3. sudo make install
Step 3. is kind of optional: in copies the libraries to the
installati
Hi Kevin,
thanks for reporting this. It looks like an old issue that has
been corrected in the meantime.
Please use the latest GNU APL version from the GNU APL subversion
repository
(see https://savannah.gnu.org/svn/?group=apl)
/// Jürgen
— back in
> the 60’s.
> Never needed to for Macintosh….or anyUnix for that matter.
>
> respect
>
> Peter
> On May 25, 2018, at 8:48 AM, Juergen Sauermann
> mailto:juergen.sauerm...@t-online.de>>
> wrote:
>>
>> Hi Peter,
>>
>> I am not familiar
Hi Kacper,
thanks, fixed in SVN 1053.
/// Jürgen
On 05/26/2018 12:07 PM, Kacper Gutowski
wrote:
Hi,
Thanks for the division fixes.
I'm not sure if the below are outright bugs,
but I find these rather unexpected:
A←'a
Hi Hans-Peter,
these changes were introduced recently and only to suppress newly
introduced warnings in gcc 8.1.
So, yes, line 3 does nothing, but in order to suppress the
warnings one has
to use the return value of snprintf somehow.
The
correct?
Thanks & respect…
Peter
On May 20, 2018, at 4:59 PM, Dirk Laurie wrote:
2018-05-20 21:44 GMT+02:00 Juergen Sauermann :
As far as I understand, there are two ways to link libapl with your
application:
1. link it at compile time (with the -lapl link
et(this, 0, sizeof(Svar_record)); }
^
Svar_record.hh:174:8: note: 'struct Svar_record' declared here
struct Svar_record
^~~
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:1176: libapl_la-Archive.lo] Error 1
Fred Weigel
On Thu, 2018
Hi Fred,
thanks, hopefully fixed in SVN 1051.
The -Wclass-memaccess
warning is not documented in the gcc 8,1 manual, therefore
the warnings in Svar_record.cc and/or Svar_record.hh
may have survived my attempt
to fix them. If so, then please send
Hi Kacper,
thanks, fixed in SVN 1050.
/// Jürgen
On 05/23/2018 04:20 AM, Kacper Gutowski
wrote:
Hi,
I'm pretty sure it worked at some point before,
but now (r1049) I encountered the following:
1.1÷0 ⍝ should signal DOMAIN
return ⊂13
14 which seems more sensible. I am not sure why ISO has (or
needs) that special case. It seems wrong to me.
Jay.
On 18 May 2018 at 16:03, Juergen
Sauermann <juergen.sauerm...@t-online
On May 20, 2018, at 9:40 AM, Juergen Sauermann
<juergen.sauerm...@t-online.de>
wrote:
Hi Peter,
Hi Peter,
thanks, I have added a typedef in libapl.h. SVN 1049.
/// Jürgen
On 05/19/2018 09:53 PM, Peter Teeson
wrote:
Thank you all for your replies. I removed the configure arg
—with-android.
Now there
Hi Jay,
yes. Even worse: there is another subtle difference in the inner
products of IBM APL2 and the
ISO standard.
IBM APL2 states (language reference, page 165) and also does this:
A f.g B ←→ f/¨
(⊂[⍴⍴A]A) ∘.g ⊂[1]B
The
Hi Peter,
Not sure. First of all, GNU APL does not use the symbol _CERR,
only CERR without underscore.
However, sometimes linkers add a leading underscore to symbol
names under certain circumstances,
snf I duppodr thst is the case here.
N
Hi David,
GNU APL shows the same behavior as IBM APL2 (except that the IBM
result is nested one more level)):
1 2 3,.,4 5
6
1 2 3 4 5 6
⍴1 2 3,.,4 5 6
≡1 2 3,.,4 5 6
2
4 ⎕
Hi Dirk,
thank you very much for your proposal.
Introducing new errors in GNU APL would also require new error
numbers in ⎕ET and
friends, and that could break existing programs of other GNU APL
users.
For that reason I took a differ
Hi Kaspar,
GNU APL closely follows IBM APL2 and the ISO standard for APL.
Your syntax below is
not valid in APL2 or in ISO APL.
The IBM APL2 documentation used to be downloadable from IBM's APL2
web page (file apl2lrm.pdf).
In theo
Hi David,
thanks, fixed in SVN 1046.
/// Jürgen
On 04/20/2018 10:16 PM, David Tran
wrote:
Hi,
a ← 2 3 5 6
b ← 4 5 5 6
a -.= b
¯2
Hi again
I have analyzed the problem and it looks like the GNU APL behavior
is sort of correct even
though not very elegant. The background is this:
IBM APL2 says (see ⎕ES, page 282 in the language reference
manual):
When R Is a Ch
Hi Bill,
I can;t really tell what your program is doing and how the fault
resp. feature can be reproduced
in a simpler way. What I observed is, however, that the failed
line seems to be the only one
where proto is a character scalar:
Work
not usable.
Best Reghards,
/// Jürgen
On 02/01/2018 04:22 PM, Elias Mårtenson
wrote:
I thought the default was to use the terminfo
data? I recall submitting a patch for that long ago?
On 1 Feb 2018 11:07 pm, "Ju
Hi Clouds,
thanks, fixed in SVN 1044.
Please note that there is a zoo of vt100 compatible terminals
around that differ
considerably in terms of the colour schemes that they support. The
only reliable
way to handle this in a "portable" way
Hi,
thanks, included in SVN 1043. I had to make a small change
in RunCommand.cc, so maybe
Elias wants to sync once more.
Best Regards,
/// Jürgen
On 01/19/2018 09:51 AM, Alexey
Veretennikov wrote:
On 8 January 2018 at 12:26, Juergen
Sauermann <juergen.sauerm...@t-online.de>
wrote:
Hi Jay,
maybe SVN 1036 works better.
he information you need? https://en.m.wikipedia.org/wiki/IEEE_754
On 9 Jan 2018 12:14 am, "Juergen
Sauermann" <juergen.sauerm...@t-online.de>
wrote:
Hi Jay,
I am still puzzled by the ISO description (and can
seems very wrong.
Jay.
On 8 January 2018 at
11:49, Juergen Sauermann <juergen.sauerm...@t-online
.
Jay.
On 8 January 2018 at 11:49, Juergen
Sauermann <juergen.sauerm...@t-online.de>
wrote:
Hi Jay,
thanks, fixed in SVN 1035.
principle applies.)
Jay.
On 6 January 2018 at 11:56, Juergen
Sauermann <juergen.sauerm...@t-online.de>
wrote:
Hi,
Hi,
On 01/07/2018 05:52 PM, Elias Mårtenson wrote:
To me, it's a lot better if the primary code stays in the main GNU APL
repository.
Agreed. The current problem is that your git repository is a little
behind the
main GNU APL repository. I made some code clean-ups already some time ago
whic
en the
GNU APL repo and Elias' git would remain out of sync, which is
generally undesirable.
/// Jürgen
On 01/07/2018 05:29 PM, Alexey Veretennikov wrote:
Hi,
The files I've attached are based on the sources from SVN, not git.
Br
/Alexey
On Jan 7, 2018 4:52 PM, "Juergen Sauerman
Hi Blake,
thanks, fixed in SVN 1034.
/// Jürgen
On 01/07/2018 03:42 PM, Blake McBride
wrote:
Just FYI - I had to update all of my
dump'ed workspaces (with VI) because quad-PS changed from a
scalar to a
Hi Blake,
fixed in SVN 1033.
/// Jürgen
On 01/07/2018 01:50 AM, Blake McBride
wrote:
Hi.
I was updating some dump files and noticed a small change
that I'd think was uninte
tory is the official
source.
Regards,
Elias
On 7 January 2018 at 22:53, Juergen
Sauermann <juergen.sauerm...@t-online.de>
wrote:
Hi,
it seems like Elias' sou
Hi,
it seems like Elias' sources in git are slightly out of sync with
the current GNU APL sources.
For example (emacs.hh around line 55):
-
return string((const char *)&utf[0], utf.size());
+ return string((const char *)(utf.g
bably it is not
necessary?
Juergen Sauermann writes:
Hi Alexey,
I have added a description of the help_def() parameters at the beginning of Help.def.
SVN 1031.
/// Jürgen
On 01/06/2018 12:05 PM, Alexey Veretennikov wrote:
First mail was declined by the mail server by some reason.
Hi Alexey,
I have added a description of the help_def() parameters
at the beginning of Help.def.
SVN 1031.
/// Jürgen
On 01/06/2018 12:05 PM, Alexey
Veretennikov wrote:
First mail was declined by the mail server by som
Hi Hans-Peter,
thanks for reporting this. Fixed in SVN 1030.
/// Jürgen
On 01/05/2018 05:05 PM, Hans-Peter
Sorge wrote:
running < ⍎¨ 10 ⍴'0' > takes 2 sec
running < ⍎¨ 50 ⍴'0' > takes 72 sec
On a Lenovo W5
Jay.
On 5 January 2018 at 15:24, Xiao-Yong
Jin <jinxiaoy...@gmail.com>
wrote:
1e¯200|1e200
hangs on my mac.
> On Jan 5, 2018, at 6:57 AM, Juergen Sauermann <juergen.sauerm
Hi Jay,
hmm, interesting. I am getting this:
A←(-⌽A),0,A←1e¯200 1e¯100 1 1e100 1e200
A∘.|A
0E0 0E0 0 0E0 0E0 0 0E0 0E0 0 0E0 0E0
0E0 0E0 0 0E0 0E0 0 0E0 0E0 0 0E0 0
,
Could you please hint me how to specify these flags so I can
experiment myself?
Br,
/Alexey
2017-12-11 16:19 GMT+01:00 Juergen
Sauermann <juergen.sauerm...@t-online.de>:
Hi
to exprt the variable before starting apl.
Regards,
Elias
On 4 December 2017 at
01:56, Juer
case they want to jump in and call me
out :)
And yes, I think this has come up for other projects too, hence the
proposal of the S_D_E environment variable (for both setting a build
date and to indicate that this build should be reproducible).
Thanks again!
-Santiago.
On Tue, Dec 05, 2017 at
Hi Elias,
thanks, fixed in SVN 1025.
Best Regards,
/// Jürgen
On 12/05/2017 11:46 AM, Elias Mårtenson
wrote:
I made a typo and was presented with an APL stack trace
which suggests a bug in GNU APL.
1 - 100 of 1721 matches
Mail list logo