[Bug-apl] incompatible workspace 1.4 vs 1.5

2015-03-30 Thread Fausto Saporito
Hello, I found a strange bug loading a workspace previously saved with apl 1.4 == Assertion failed: !Avec::is_quad(sym_name[0]) in Function: lookup_symbol in file: SymbolTable.cc:83 Call stack: ---

[Bug-apl] gnu apl svn version on Mac OS X

2015-03-30 Thread Fausto Saporito
Hello, I tried to compile the svn version under Mac OS X 10.10, but I got a problem about PATH_MAX undefined. I'm currently using gcc from macports, because with native compiler (clang) there're some issues about APL symbols in the source code. By the way, I fixed the building (with gcc) adding

[Bug-apl] SVN 582 and CLANG ... error in PrintBuffer.cc

2015-03-31 Thread Fausto Saporito
Hello, I trying to compile again the latest version with CLANG. The previous errors has been fixed, but now I have this new: PrintBuffer.cc:128:9: error: variable length array of non-POD element type 'PrintBuffer' DynArray(PrintBuffer, pcols, cols); ^ ./APL_types.hh:465:46: not

Re: [Bug-apl] incompatible workspace 1.4 vs 1.5

2015-03-31 Thread Fausto Saporito
Thanks Jürgen. 2015-03-31 16:18 GMT+02:00 Juergen Sauermann : > Hi Fausto, > > the bug should be fixed in SVN 582. It was an old ⎕-function (⎕PT) that was > removed in the meantime. > > /// Jürgen > > > On 03/31/2015 11:22 AM, Fausto Saporito wrote: > >

[Bug-apl] planning of future features

2015-03-31 Thread Fausto Saporito
Hello, I'm trying to convert an old workspace (designed I suppose for Dyalog APL) related to multi precision arithmetic operation. It uses these non standard feature: 1) quad-D 2) quad-FMT 3) quad-SIGNAL The first one is quite trivial, the other two are more complex. Is there any way to replica

Re: [Bug-apl] planning of future features

2015-04-01 Thread Fausto Saporito
pabilities of printf() and friends in C/C++. See 'info apl'. > > /// Jürgen > > > On 03/31/2015 04:34 PM, Fausto Saporito wrote: > > Hello, > > I'm trying to convert an old workspace (designed I suppose for Dyalog > APL) related to multi precision arithmeti

[Bug-apl] SVN 585 ... new clang errors

2015-04-01 Thread Fausto Saporito
Hello, I updated to svn 585, and I got a different error in this case: Bif_F12_FORMAT.cc:682:28: error: no matching function for call to 'strchr' const char * dot = strchr(data_buf, '.'); ^~ /usr/include/string.h:76:7: note: candidate function not viable:

Re: [Bug-apl] SVN 585 ... new clang errors

2015-04-01 Thread Fausto Saporito
t; 2. limited support of dynamic arrays ( = clang) > 3. no support of dynamic arrays ( = ???) > > Please let me know if it works now. > > /// Jürgen > > > On 04/01/2015 10:33 AM, Fausto Saporito wrote: > > Hello, > > I updated to svn 585, and I got a different er

Re: [Bug-apl] SVN 585 ... new clang errors

2015-04-01 Thread Fausto Saporito
regards, Fausto 2015-04-01 16:06 GMT+02:00 Fausto Saporito : > Hi Jürgen, > > it seems ok now. > But I have this error when I run apl with emacs: > > Could not find shared library 'libemacs' > The following directories and file names were tried: > file /usr/

Re: [Bug-apl] SVN 585 ... new clang errors

2015-04-07 Thread Fausto Saporito
? > > And was the make in the src/emacs_mode directory successful? > > If this is on Apple, we have made some progress there (SVN 592). > > Could also be a /usr/local/xxx vs. /usr/xxx conflict (which should > now work better). > > /// Jürgen > > > On 04/01/2015 0

Re: [Bug-apl] SVN 585 ... new clang errors

2015-04-07 Thread Fausto Saporito
238 7 Apr 11:56 wslib5 and the permissions are ok... As far as I know, everything seems ok... I mean I can use the interpreter without any problem, until now... regards, Fausto 2015-04-07 11:58 GMT+02:00 Fausto Saporito : > Hi Jürgen, > > now all is ok. The latest snapshot compiles ver

[Bug-apl] SVN 595

2015-04-07 Thread Fausto Saporito
Hello, starting new thread, maybe it's better :) I noticed after I sent my last email that a make clean (on my system) doesn't clean everything. Some object files were still present. So I did a make distclean, and reconfigured everything... now I can confirm with clang the libemacs error is not

Re: [Bug-apl] SVN 595

2015-04-08 Thread Fausto Saporito
useful for debugging. > > Regarding APserver/Svar_DB, please start apl with -l 37 and let me know what > it says. > > /// Jürgen > > > On 04/07/2015 07:03 PM, Fausto Saporito wrote: > > Hello, > > starting new thread, maybe it's better :) > > I notic

Re: [Bug-apl] SVN 595

2015-04-08 Thread Fausto Saporito
th IBM APL2 in order to provide shared variables > and is not needed/used by most people. > > /// Jürgen > > > > On 04/08/2015 12:45 PM, Fausto Saporito wrote: > > Hello Jürgen, > > thanks for the hints about the configure/make. > > About SVar_DB , here is

Re: [Bug-apl] SVN 595

2015-04-08 Thread Fausto Saporito
gt; be sure which one is being used. > > /// Jürgen > > > On 04/08/2015 04:04 PM, Fausto Saporito wrote: > > Hi Jürgen, > > yes... I had in my $HOME a directory called apl... :) > > but I have a strange behavior: if I start apl (simply without any > parameters) al

Re: [Bug-apl] SVN 595

2015-04-08 Thread Fausto Saporito
Svar_DB::is_registered_id() )off 󰃁 Goodbye. regards, Fausto 2015-04-08 17:28 GMT+02:00 Fausto Saporito : > Hi Jürgen, > > ok. for some reason if I run "/usr/local/bin/apl --noColor" I have no > error, if I run "apl --noColor" without the full path I got the

Re: [Bug-apl] SVN 595

2015-04-08 Thread Fausto Saporito
by FIGlet: www.figlet.org > > This program comes with ABSOLUTELY NO WARRANTY; > for details run: /usr/local/bin/apl --gpl. > > This program is free software, and you are welcome to redistribute it > according to the GNU Public License (GPL) ve

Re: [Bug-apl] SVN 595

2015-04-09 Thread Fausto Saporito
ad given it 200 ms but it seems like it was > only 20 ms. > > Since we all know how slow emacs is, I gave APserver 2 seconds extra when > GNU > APL was started in emacs mode. > > /// Jürgen > > > On 04/08/2015 07:54 PM, Fausto Saporito wrote: > > Hi Jürgen, > >

[Bug-apl] axis specification issue... (?)

2015-04-13 Thread Fausto Saporito
Hello, as I wrote before I'm trying to use the Sullivan multi precision package with GNU APL. That workspace was written with Dyalog APL in mind, so there're some Dyalog feature we saw before ([]SIGNAL, []FMT). Those are now ok. But I have this problem: {delta}6:{->}(0^.=x{<-}(-{rho}f),1 {neg}1[

Re: [Bug-apl] axis specification issue... (?)

2015-04-14 Thread Fausto Saporito
Hello Jay, thanks a lot! regards, Fausto 2015-04-14 10:09 GMT+02:00 Jay Foad : > On 14 April 2015 at 07:31, Fausto Saporito wrote: >> Hello, >> >> as I wrote before I'm trying to use the Sullivan multi precision >> package with GNU APL. >> That workspace w

[Bug-apl] defining new operator

2015-04-14 Thread Fausto Saporito
Hello all, sorry if I bother you again, but I tried to find some hints in the APL2 Language Reference Manual without luck. In the Sullivan's paper, there's the reference to a "scan" operator quite fast more suited to be used with his multi precision package. This is its definition: ∇ z←(F scan)x

Re: [Bug-apl] defining new operator

2015-04-14 Thread Fausto Saporito
ge 30 (Defined Functions and Operators) explains it. > In your example below F is expected to be a function because it > is inside () in the header while the variable(s) are outside (). > > /// Jürgen > > > On 04/14/2015 12:42 PM, Fausto Saporito wrote: > > Hello all, > > s

Re: [Bug-apl] defining new operator

2015-04-14 Thread Fausto Saporito
Dyalog "migration > level" thing) > - replace modified assignment z,← with z←z, > > Jay. > > On 14 April 2015 at 12:06, Fausto Saporito > wrote: > > Hi Jürgen, > > > > thanks... my fault. I wrote without space after the right parenth

Re: [Bug-apl] defining new operator

2015-04-14 Thread Fausto Saporito
> On 14 Apr 2015 19:39, "Fausto Saporito" wrote: > >> Hello Jay, >> >> I'm using emacs and gnu-apl-mode but when I try to define the operator >> without the space I receive an error: "unable to parse". >> >> Generally I use emacs,

Re: [Bug-apl] defining new operator

2015-04-14 Thread Fausto Saporito
Hi Peter, I didn't mean it was not working, I meant I was not able :-) Thanks for the doc, I read it several days ago, but for some reasons I was not able to load the keyboard layout. Now I deleted the previous file, and copied it again and everything seems ok :-) Thanks again, Fausto 2015-04-

Re: [Bug-apl] defining new operator

2015-04-14 Thread Fausto Saporito
Hello Elias, yes now it's working fine. thanks, Fausto 2015-04-14 15:40 GMT+02:00 Elias Mårtenson : > OK, I believe I have fixed it. Please check the latest version in git. > > Regards, > Elias > > On 14 April 2015 at 19:38, Fausto Saporito > wrote: > >> H

[Bug-apl] recursive functions - ackerman

2015-04-15 Thread Fausto Saporito
Hello all, I'm trying to implement ackerman function, but I got no luck ... and I cannot understand why this code doesn't work: z←m ack n →(m=0)/∆1 →(n=0)/∆2 z←(m-1) ack (m ack (n-1)) ∆1: z←n+1 ⋄ →0 ∆2: z←(m-1) ack 1 is the double recursion permitted in APL2 ? thanks, fausto

Re: [Bug-apl] recursive functions - ackerman

2015-04-15 Thread Fausto Saporito
> Fred > > On Wed, 2015-04-15 at 21:03 +0200, Fausto Saporito wrote: > > Hello all, > > > > > > I'm trying to implement ackerman function, but I got no luck ... and I > > cannot understand why this code doesn't work: > > > > z←m ack n > &

Re: [Bug-apl] recursive functions - ackerman

2015-04-15 Thread Fausto Saporito
This could be the reason... even if I'm not still sure about it :-) thanks again, Fausto 2015-04-16 0:01 GMT+02:00 Frederick H. Pitts : > On Wed, 2015-04-15 at 23:24 +0200, Fausto Saporito wrote: > Hello Fausto, > > Because during the recursion each time >

[Bug-apl] using XFRPC11.w3

2015-04-24 Thread Fausto Saporito
Hello all, I'm trying to used the workspace XFRPC11.w3 (downloaded from APL wiki) in order to transfer file from Dyalog APL to GNU-APL. When I try to load XFRPC11 I have an internal error. I suppose the 'w3' format is only for APL2000... correct ? Is there a way to use such method with GNU-APL

Re: [Bug-apl] using XFRPC11.w3

2015-04-24 Thread Fausto Saporito
riables are handled similarly (2 ⎕TF handles both functions and > variables). > > I all cases except )IN and )OUT you will most likely need the interpreter > that has produced the workspace > in order to )LOAD the workspace file before you can convert it yo a > different format

Re: [Bug-apl] using XFRPC11.w3

2015-04-24 Thread Fausto Saporito
⎕TF handles both functions and >> variables). >> >> I all cases except )IN and )OUT you will most likely need the interpreter >> that has produced the workspace >> in order to )LOAD the workspace file before you can convert it yo a >> different format. >> >

Re: [Bug-apl] using XFRPC11.w3

2015-04-24 Thread Fausto Saporito
read them back into GNU APL using command )IN. > > /// Jürgen > > > > > On 04/24/2015 07:00 PM, Fausto Saporito wrote: > > Hello Jürgen, > > thanks for the clarification. > I found this page http://aplwiki.com/Transfer%20code and it's talking > about

Re: [Bug-apl] using XFRPC11.w3

2015-04-26 Thread Fausto Saporito
Hi Jürgen, I tried the SVN 616, and I have this when I try to load the workspace. There are some warnings from the "tolerant" parser :) but I don't know if they are ok, because I have a DEFN ERROR and also an unknown symbol (!) )in xfrpcv5.atf Warning: SYNTAX ERROR in function ∆xfrfrom Wa

[Bug-apl] problem importing atf file

2015-05-06 Thread Fausto Saporito
Hello, I generated this atf file under Dyalog 14.0, but when I try to load under GNU APL, I receive an assertion failed: == Assertion failed: tos[s - skipped].get_Class() == TC_VALUE in Function: tf2_remove_UCS in fi

Re: [Bug-apl] problem importing atf file

2015-05-08 Thread Fausto Saporito
the > differences first). > > /// Jürgen > > > On 05/06/2015 05:49 PM, Fausto Saporito wrote: > > Hello, > > I generated this atf file under Dyalog 14.0, but when I try to load

[Bug-apl] tensor product

2015-05-20 Thread Fausto Saporito
Hello all, I don't understand why the tensor product in APL (∘.×) between two matrices, gives a multidimensional array as result. >From linear algebra, tensor product (or kronecker product) gives a matrix as result, for example if I2 is identity matrix 1 0 0 1 I2 (tensor product) I2 gives 1

Re: [Bug-apl] tensor product

2015-05-20 Thread Fausto Saporito
Foad > Date: 20 May 2015 at 14:55 > Subject: Re: [Bug-apl] tensor product > To: Fausto Saporito > > > "Why" does it give a multidimensional result? Because that's the way > it's defined in APL. APL has generalised outer product in a way that > works v