Re: [Bug-apl] SVN 881 compile error

2017-02-08 Thread Juergen Sauermann
Hi Peter, thanks, hopefully fixed in SVN 882. /// Jürgen On 02/08/2017 04:46 AM, Peter Teeson wrote: Sorry forgot to include this ./configure --with-libapl --with-android --

Re: [Bug-apl] strange behavior of --

2017-02-08 Thread Juergen Sauermann
Hi Elias, I believe *--rawCIN* plus *--noColor *would be the equivalent of *--rawCOUT*. *--rawCIN*, despite of its name, **primarily affects the output by not sending escape sequences for positioning the cursor when the interpreter needs input. The only other escape sequences that I recall a

Re: [Bug-apl] using c libs in apl?

2017-02-08 Thread Juergen Sauermann
Hi, I had a quick look at both the C code from the www.jsoftware.com and fromhttps://github.com/libffi/libffi My first impression is that the former is quite hack-ish. But I haven't worked with libffi m

Re: [Bug-apl] using c libs in apl?

2017-02-08 Thread Juergen Sauermann
Hi Christian, The problem with floats for absolute times is that the standard ieee floats have a 48-bit mantissa. The seconds since epoch currently eats up about 32 bits of them, leaving only 16 bits for the sub-second part. That means that the precision of an absolute time expressed in floats

Re: [Bug-apl] using c libs in apl?

2017-02-08 Thread Elias Mårtenson
The main problem with quad-TS is that it doesn't provide a way to count seconds. This is because the date portion is not constant, it's sometimes 30 and sometimes 31. The other problem is that it's local time, which means that time measurements across DST changes are not predictable. What's neede

Re: [Bug-apl] using c libs in apl?

2017-02-08 Thread Elias Mårtenson
This is something I might want to take a look at. I think the most difficult part of implementing this is to decide on a nice way to map the libffi API to APL in a natural way. I'm thinking of providing a quad-function that allows you to declare a C function and their arguments (and associated typ

Re: [Bug-apl] using c libs in apl?

2017-02-08 Thread Juergen Sauermann
Hi Elias, the latest libapl API (libapl.h) may give some ideas. It uses a 2-step approach like GNU APL internally: first create a value with a given shape/rank and then set the elements of its ravel. The value must be released explicitly when no longe

[Bug-apl] )COPY with APL scripts

2017-02-08 Thread Juergen Sauermann
Hi, In GNU APL, copying an APL workspace (i.e. an .xml file) with the )COPY command is an atomic operation. However, )COPY of a script (i.e. an .apl file) is not atomic. The )COPY command opens the file and displays, as a result. when the

Re: [Bug-apl] )COPY with APL scripts

2017-02-08 Thread Alexey Veretennikov
Hi, If you can introduce the option to suppress output on )copy like "Dumped ..." it will reduce neccesity to use ⍎ with )copy. Personally I see )copy as similar to Java's import or Python's import, so it allows me to use functions and variables declared in another script. If it is too much for