Re: [Bug-apl] Emacs lib loaded automatically

2014-05-17 Thread Juergen Sauermann
Hi Elias, my proposal would be this: 1. we give the --emacs command line option an argument. So apl would be started like: *apl --emacs emacs_arg* 2. the libemacs library provides a function emacs_start() with two char * arguments: *void emacs_start(const char * emacs_arg, const c

Re: [Bug-apl] Locked functions do not stay locked after )LOAD

2014-05-17 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 270. Please note that ⎕AT is not standard and that the attributes other than "locked" will not be supported by GNU APL. Note also that ⎕CR shows an empty result when a function is locked, while 10 ⎕CR and )DUMP display it even if locked. This is because I believe

Re: [Bug-apl] Emacs lib loaded automatically

2014-05-17 Thread Juergen Sauermann
Hi Elias, SVN 271. I think emacs mode is special because it survives )LOAD and is not visible on APL level. If we would allow that in general then troubleshooting could become rather tricky because you cannot easily figure the state of the interpreter. By enforcing the use native functions

Re: [Bug-apl] quad-FX

2014-05-17 Thread Juergen Sauermann
Hi David, I have changed the handling of function pending on the SI. You can now ⎕FX functions if the pending function name is localized. This is, I believe, what the standard tries to say ("locally-erasable") but does not go as far as IBM. I guess in practice this will be confusing anyhow. SV

Re: [Bug-apl] Emacs lib loaded automatically

2014-05-18 Thread Juergen Sauermann
Hi Elias, my original plan was to have multicore support in GNU APL 1.4. Maybe I should shift that to 1.5 and make 1.4 a bugfix release, given the many changes since 1,3, In the meantime I can update the emacs_mode subdir in SVN with your latest changes so that SVN is in sync again. Just le

Re: [Bug-apl] A question about ⎕EA and ⎕EC

2014-05-18 Thread Juergen Sauermann
Hi David, I am afraid that your understanding is correct. I will look into this. /// Jürgen On 05/18/2014 06:27 AM, David B. Lamkins wrote: I want to make sure that I correctly understand ⎕EA and ⎕EC. Should these be able to clean up after failed execution of a defined function? What I'm see

Re: [Bug-apl] Emacs lib loaded automatically

2014-05-18 Thread Juergen Sauermann
override the location of the native library is needed (mainly for development purposes). Regards, Elias On 18 May 2014 17:24, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, my original plan was to have multicore support in GNU APL 1.4.

Re: [Bug-apl] Emacs lib loaded automatically

2014-05-18 Thread Juergen Sauermann
is in order to still support the old model if the user tries to use the old Emacs Lisp code. Regards, Elias On 18 May 2014 19:14, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, I have reverted to --emacs with no argument, and added --e

Re: [Bug-apl] A question about ⎕EA and ⎕EC

2014-05-18 Thread Juergen Sauermann
Hi David, thanks, should be fixed in SVN 274. /// Jürgen On 05/18/2014 06:27 AM, David B. Lamkins wrote: I want to make sure that I correctly understand ⎕EA and ⎕EC. Should these be able to clean up after failed execution of a defined function? What I'm seeing is that ⎕EA and ⎕EC perform as

Re: [Bug-apl] Segfault in outer product with empty argument

2014-05-19 Thread Juergen Sauermann
Hi Kacper, thanks, fixed in SVN 275. /// Jürgen On 05/19/2014 02:04 PM, Kacper Gutowski wrote: Outer product of any function with empty left or right argument, results in segmentation fault: 'abc' ∘.= '' SEGMENTATION FAULT -

Re: [Bug-apl] Segfault in PrintBuffer

2014-05-19 Thread Juergen Sauermann
Hi Kacper, thanks, fixed in SVN 275. /// Jürgen On 05/19/2014 09:08 AM, Kacper Gutowski wrote: Apparently, when array contains a big number that is to be displayed in exponential notation, the whole column containing it is printed with exponent. If array of mixed type has char and such big n

Re: [Bug-apl] Assertion failure in scalar function with empty right argument

2014-05-19 Thread Juergen Sauermann
Hi Kacper, thanks, fixed in SVN 274. Normally one should exit() after an assertion failed. Sometimes, however, staying in the program gives an opportunity to collect more information. Most of the time, though, a failed assertion causes a subsequent segfault which makes even simple faults look

Re: [Bug-apl] Assertion failure after reduction of empty array

2014-05-20 Thread Juergen Sauermann
Hi Kacper, thanks, fixed in SVN 277. I also fixed the bug in Assert() and made ⎕ES 0 2561 simulate Assert(). /// Jürgen On 05/19/2014 08:52 PM, Kacper Gutowski wrote: Another one. Reduction of an empty array along the last non-singleton AND non-zero axis produces a weird value which crashes

Re: [Bug-apl] Handling of unterminated strings

2014-05-20 Thread Juergen Sauermann
Hi Blake, Elias, OK, I changed this in SVN 278. /// Jürgen On 05/20/2014 07:29 AM, Blake McBride wrote: I agree. I was surprised a couple of times when GNU APL automatically terminated a string. I don't remember APL automatically terminating strings. I think I'd rather see an error too.

Re: [Bug-apl] Complex number display

2014-05-20 Thread Juergen Sauermann
Hi Fred, Elias, fixed in SVN 279. I dared to print the (non-zero) imaginary part even if the standard tells otherwise. /// Jürgen On 05/20/2014 07:35 AM, Frederick H. Pitts wrote: Elias, The part before the "Then:" states the obvious. Numeric output conversion converts numbers in

Re: [Bug-apl] Handling of unterminated strings

2014-05-20 Thread Juergen Sauermann
Hi Elias, thanks, fixed in SVN 278. /// Jürgen On 05/20/2014 04:07 PM, Elias Mårtenson wrote: By the way, I notice that if you type: * 'foo* Then you get a SYNTAX ERROR which has )MORE information, but there is no plus sign after the error message. When typing *⍎"foo'"* you do get t

Re: [Bug-apl] SVN revision and ARCHIVE_SVN

2014-05-20 Thread Juergen Sauermann
Hi David, long-term ARCHIVE_SVN should be the SVN revision of Archive.cc so that I can detect if a workspace was written with a different version than the one reading it. Currently ARCHIVE_SVN is written to a workspace.xml file but ignored when read. I also saw that I should have used "Last C

Re: [Bug-apl] Complex number display

2014-05-21 Thread Juergen Sauermann
initely 10 orders of magnitude less than the imaginary part magnitude and should display with a 0 for the real part. Regards, Fred On Tue, 2014-05-20 at 18:09 +0200, Juergen Sauermann wrote: Hi Fred, Elias, fixed in SVN 279. I dared to print the (non-zero) imaginary part even if the stan

Re: [Bug-apl] Segmentation fault in zero take on scalar

2014-05-21 Thread Juergen Sauermann
Hi Kacpet, thanks, fixed in SVN 280. /// Jürgen On 05/21/2014 05:47 AM, Kacper Gutowski wrote: 0↑0 SEGMENTATION FAULT -- Stack trace at main.cc:122

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-21 Thread Juergen Sauermann
18 February 2014 18:36, Elias Mårtenson <mailto:loke...@gmail.com>> wrote: Thank you. This is a lot better. I was doing that just because I didn't see a better way to do it. Clearly, this is a better way to do it. :-) Regards, Elias On 18 February 2014 18:34, Juerg

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-21 Thread Juergen Sauermann
to the left of quad-cr. :-) Regards, Elias On 21 May 2014 20:28, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, not sure what you mean by 'CR-level' ? /// Jürgen On 05/21/2014 06:32 AM,

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-21 Thread Juergen Sauermann
. :-) I was focused on the other solution to set a custom PW. Obviously adding pw as an argument to do_CR is a better idea. Regards, Elias On 21 May 2014 20:52, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: H Elias, that sounds more like making t

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-21 Thread Juergen Sauermann
Hi Elias, the *operator<<(ostream & out, const Value & v)* calls *v.print(out)* which then does the line break at *⎕PW*. The cr_formatted below is probably OK but printing it introduces line wrapping. You could have used UCS_string(*cr_formatted) instead of *cr_formatted to avoid that. /// J

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-22 Thread Juergen Sauermann
r/lib/libpthread.so.0 #15 0x7f228d1814bd in clone () from /usr/lib/libc.so.6 Do you have any idea? Regards, Elias On 22 May 2014 00:21, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, the *operator<<(ostream & out, const Value & v)*

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-22 Thread Juergen Sauermann
t I don't see how I can solve my problem then? Regards, Elias On 22 May 2014 20:44, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, yes, sorry. Forgot to mention that the APL values used in the constructor of UCS_string must have rank ≤

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-22 Thread Juergen Sauermann
enders as a lot of private use symbols (U+). I've attached a screenshot of what it looks like. Regards, Elias On 22 May 2014 21:10, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, if the values was a matrix then you may have another proble

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-22 Thread Juergen Sauermann
al with it? Also, how can I use do_CR to render with the default (non-CR) output style? Regards, Elias On 22 May 2014 21:47, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, I see, the private use symbols can be made visible with ./config

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-22 Thread Juergen Sauermann
On 22 May 2014 21:47, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, I see, the private use symbols can be made visible with ./configure VISIBLE_MARKERS_WANTED-yes in case you are interested in the details of APL output formatting. They ca

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-05-22 Thread Juergen Sauermann
ic left argument being the values 1 to 9. Again, without any line wrapping. That's really all I'm trying to do. Regards, Elias On 22 May 2014 22:38, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi again, it is actually somewhat difficult to

Re: [Bug-apl] stdin still echoed to stdout even with --noCIN

2014-05-23 Thread Juergen Sauermann
Hi Peter, the decision if a cin character, say *c*, should be echoed or not is made in *CinOut::overflow(int c)* by asking *uprefs.echo_current_file()*. Note that *uprefs.echo_current_file() *not only depends on the command line option *--noCIN* but also on its position in relation to *-f *(if u

Re: [Bug-apl] Error after make developer

2014-05-23 Thread Juergen Sauermann
Hi Peter, thanks, fixed in SVN 286. /// Jürgen On 05/22/2014 08:18 PM, Peter Teeson wrote: I did ./configure ; make develop; make /Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/Value.cc:1319:9: Goto into protected scope Value.cc:1319:9: error: goto into protected scope got

Re: [Bug-apl] Element types in mixed arrays

2014-05-23 Thread Juergen Sauermann
Hi, if M is mixed and possibly nested, then you can try this: M←3 3 'a' (4 'b') ⍝ M mixed and nested (∈Y)←{0=↑0⍴⍵}¨∈Y←M M ◊ Y 3 3 a 4 b 1 1 0 1 0 /// Jürgen On 05/23/2014 06:30 PM, Elias Mårtenson wrote: That one checks for numbers, of course. Compare to ' ' to check f

Re: [Bug-apl] Execute gives incorrect VALUE ERROR

2014-05-24 Thread Juergen Sauermann
Hi Blake, thanks, should be fixed in SVN 288. /// Jürgen On 05/24/2014 07:58 AM, Blake McBride wrote: I have code that depends on it, and it is a technique I used for years. I wrote an APL function editor in APL 30 years ago. I discovered the problem while entering the system into GNU APL.

Re: [Bug-apl] Xcode debug console vs GNU APL

2014-05-24 Thread Juergen Sauermann
Hi Peter, I believe you are close. I can't tell what happens on your machine; the output below is on mine... If the terminal echoes (which is the default in most shells) then we are probably in cooked mode and input is echoed by the shell: *eedjsa@server64:~/projects/juergen/apl-1.3/src$ st

Re: [Bug-apl] Major dimension problem

2014-05-25 Thread Juergen Sauermann
Hi, Oops - this is created by an optimization that fired back: ]log 38 Log facility 'optimization messages ' is now ON ⍴⍬ 0 0 42 42⍴⍬ optimizing A⍴B ⍴⍬ 0 42 42 I will look into this. In the meantime you could change line 144 in PrimitiveFunction.cc fro

Re: [Bug-apl] quad-PW and text

2014-05-25 Thread Juergen Sauermann
Hi David, actually ⎕PW works quite differently than its output suggests. Just resetting the print position after \n works for simple text vectors but not for text matrices, mixed values or nested values. My proposal would rather be to use FILE_IO[22] (aka *printf()*) in your use case: *

Re: [Bug-apl] Format returns wrong rank

2014-05-25 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 290. As far as ⍕ is concerned there seems to be no right or wrong. The IBM APL2 language reference contradicts itself (e.g. pages 135 vs. 136 for nested values) and the ISO standard always wants a result rank ≥ 2 while IBM sometimes gives rank = 1. I have trie

Re: [Bug-apl] quad-PW and text

2014-05-25 Thread Juergen Sauermann
wouldn't have worked. On Sun, 2014-05-25 at 13:43 +0200, Juergen Sauermann wrote: Hi David, actually ⎕PW works quite differently than its output suggests. Just resetting the print position after \n works for simple text vectors but not for text matrices, mixed values or nested values. My pr

Re: [Bug-apl] Format returns wrong rank

2014-05-26 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 291. /// Jürgen On 05/25/2014 08:13 PM, Blake McBride wrote: I am getting a GPF now: ⍴⍕2 1⍴6 2 1 ⍴⍕1 1⍴6 1 1 ⍴⍕0 1⍴6 SEGMENTATION FAULT -- Stack t

Re: [Bug-apl] Bug in quad-quote

2014-05-26 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 291. /// Jürgen On 05/26/2014 05:51 AM, Blake McBride wrote: ∇test[⎕]∇ ∇ [0] test [1] ⍞←'11 ' [2] zz←⍞ [3] ⍞←'22 ' [4] zz←⍞ ∇ test 11 11 22 I just hit Enter at the end of each line. 11 should not be displa

Re: [Bug-apl] Announce: Keyed File System for GNU APL

2014-05-26 Thread Juergen Sauermann
eater. key less, next record, previous record, etc.). This package depends upon the following: GNU APL by Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> http://www.gnu.org/software/apl/apl.html Subversion: http://svn.savannah.gnu.org/svn/apl/trunk SQL Interface by E

Re: [Bug-apl] Assertion failed

2014-05-26 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 292. /// Jürgen On 05/26/2014 05:39 PM, Blake McBride wrote: I haven't looked into what is causing this yet, but I thought the message may be self explanatory to you. Please let me know if you need more. Thanks! =

Re: [Bug-apl] Restrictions on localization of system variables?

2014-05-27 Thread Juergen Sauermann
Hi, thanks, should be fixed in SVN 294. Note that there are some subtle differences between IBM APL2 and GNU APL when localizing ⎕-vars. In IBM APL2 they are undefined after localizing them. In GNU APL they are pre-initialized with their respective default values. This gives simpler (and there

Re: [Bug-apl] Loading a dumped file doesn't execute the Latent Expression

2014-05-27 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 294. /// Jürgen On 05/26/2014 11:04 PM, Blake McBride wrote: The title says it all. I understand why a dumped file would not keep the SI. That makes sense. But it doesn't make sense for it not to execute ⎕LX. Blake

Re: [Bug-apl] Is there a way to clear the screen?

2014-05-27 Thread Juergen Sauermann
Hi, in immediate execution mode you can do: * )HOST tput clear* which is rather portable. In programs, you can do the same: *'lib_file_io.so' ⎕FX 'FILE_IO' ◊ FILE_IO[25] FILE_IO[24] 'tput clear > /dev/tty'* Interestingly the ^L (aka ⎕AV[13]) is printed:: *eedjsa@server64:~/projects/j

Re: [Bug-apl] Quad-IO localization problem

2014-05-27 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 294. /// Jürgen On 05/27/2014 04:59 AM, Blake McBride wrote: )CLEAR CLEAR WS ⎕IO 1 'abc'⍳'a' 1 ∇test;⎕IO [1] ⎕IO←0 [2] ∇ test ⎕IO 1 'abc'⍳'a' 0 Although ⎕IO seems to be correct, the iota lookup shows that the wrong ⎕I

Re: [Bug-apl] quote-quote should display a blank line

2014-05-28 Thread Juergen Sauermann
Hi, I agree with David that this is counter-intuitive, but I will make it IBM APL2 compatible. /// Jürgen On 05/27/2014 11:37 PM, David B. Lamkins wrote: On Tue, 2014-05-27 at 15:19 -0500, Blake McBride wrote: Dear David, First, I assure you, this is how it works. I'm certainly not arguin

Re: [Bug-apl] Parse error

2014-05-28 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 296. /// Jürgen On 05/27/2014 12:53 AM, Blake McBride wrote: )CLEAR CLEAR WS ⎕IO 1 (4 5)[1]≥12 0 (⎕TS[4 5])[1]≥12 VALENCE ERROR (⎕TS[4 5])[1]≥12 ^

Re: [Bug-apl] Restrictions on localization of system variables?

2014-05-28 Thread Juergen Sauermann
Hi David, of course. It came back in SVN 296. /// Jürgen On 05/27/2014 08:18 PM, David B. Lamkins wrote: Thanks. One more thing: quad-IO should be on that list. See UserFunction.cc, around line 252. On Tue, 2014-05-27 at 18:06 +0200, Juergen Sauermann wrote: Hi, thanks, should be fixed

Re: [Bug-apl] Patch for ]usercmd

2014-05-28 Thread Juergen Sauermann
Hi David, sorry, no idea where it went. Will be in SVN 297. /// Jürgen On 05/28/2014 06:59 AM, David B. Lamkins wrote: Jürgen, I submitted this patch in a slightly different form once before; it didn't make it into GNU APL. After having lived with the patch for a while on my own system, I'v

Re: [Bug-apl] Loading dump files

2014-05-28 Thread Juergen Sauermann
Hi Blake, I have fixed the WSID, see SVN 297. I also aligned some messages. If both an .xml and a .apl file with the same name, a warning is printed and the .xml file is loaded (for backward compatbility). I found the )SAVE message a bit sparse so I took the freedom to be more verbose on )DUMP

Re: [Bug-apl] Restrictions on localization of system variables?

2014-05-29 Thread Juergen Sauermann
06:06, Juergen Sauermann wrote: Note that there are some subtle differences between IBM APL2 and GNU APL when localizing ⎕-vars. In IBM APL2 they are undefined after localizing them. In GNU APL they are pre-initialized with their respective default values. This gives simpler (and therefore faster code) be

Re: [Bug-apl] Leftover debug code?

2014-05-29 Thread Juergen Sauermann
Hi David, thanks, will be removed in the next SVN version 299. /// Jürgen On 05/29/2014 07:52 AM, David B. Lamkins wrote: QuadFunction.cc:1425 ⎕es 'DOMAIN ERROR' error.error_code:'1' at QuadFunction.cc:1425 DOMAIN ERROR ⎕ES 'DOMAIN ERROR' ^

Re: [Bug-apl] Rank error

2014-05-29 Thread Juergen Sauermann
Hi Blake, according to IBM [] binds stronger than vector notation (APL2 language reference, page 34). IBM APL2 also gives RANK ERROR in the examples below. Eg. 1 2 3[2] is evaluateded as 1 2 ( 3[2] ). /// Jürgen On 05/28/2014 06:41 PM, Blake McBride wrote: )CLEAR CLEAR WS 1 2 3

Re: [Bug-apl] )COPY copies extra stuff - sometimes

2014-05-29 Thread Juergen Sauermann
Hi Blake, I am a little behind in the mailing list. But your )COPY problems are next. I believe the problems caused by ⎕IO missing should be fixed. So what I believe is missing is: 1. )COPY copies extra stuff - sometimes 2. "but the original problem (May 27, 2014 at 9:23 PM) remains." Regarding

Re: [Bug-apl] ?(3⍴5) (2 3⍴10) gives a domain error.

2014-05-29 Thread Juergen Sauermann
Hi Akiva, thanks, should be fixed in SVN 299. /// Jürgen On 05/29/2014 12:54 AM, Akiva Avraham wrote: http://i.imgur.com/7vMrDan.jpg ?(3⍴5) (2 3⍴10) DOMAIN ERROR ?(3⍴5)(2 3⍴10) ^^ (3⍴5) (2 3⍴10) 5 5 5 10 10 10 10 10 10 ?(3⍴5

Re: [Bug-apl] Revisiting the APL 2 empty-array display behavior

2014-05-29 Thread Juergen Sauermann
Hi, output formatting is one of the most challenging tasks in an APL2 interpreter. The rules governing this are spread over different chapter in the APL2 language reference and seem to be different in the ISO standard. Even the examples in the language reference and in the standard differ occasio

Re: [Bug-apl] )COPY copies extra stuff - sometimes

2014-05-30 Thread Juergen Sauermann
Hi Blake, this should be fixed in SVN 300. Work on #2 is ongoing. /// Jürgen On 05/29/2014 07:50 PM, Blake McBride wrote: Dear Juergen, Thanks for your reply. For problem #1 I am only using a .xml (workspace) file. There is no .apl file. I am doing: )CLEAR )COPY Devices ∆SS

Re: [Bug-apl] Can't )LOAD a dumped file anymore

2014-05-30 Thread Juergen Sauermann
Hi Blake, thanks, fixed it already. But then a svn revert rolled it back. This issue (and also the #2) should be fixed in SVN 301 but tests are ongoing. The only thing left over right now is selective )COPY with .apl files. I wonder if this is needed or not? I could (1) add a warning that this i

Re: [Bug-apl] Loading a dumped file doesn't execute the Latent Expression

2014-05-30 Thread Juergen Sauermann
st DUMPED WORKSPACE 'test' TO FILE '/home/blake/workspaces/test.apl' (1 FUNCTIONS, 18 VARIABLES) )load test loading )DUMP file /home/blake/workspaces/test.apl... DOMAIN ERROR ⎕PS←65536 ^ ^ On Tue, May 27, 2014 at 11:08 AM, Juergen Sauermann mailto:juergen.s

Re: [Bug-apl] quad-EC fails with function that doesn't return a value

2014-05-30 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 303. /// Jürgen On 05/29/2014 05:06 AM, David B. Lamkins wrote: ⎕fx 'bar' '1' bar ⎕ec 'bar' 1 unexpected result tag 0x56020011 in eoc == Assertion failed: 0 in Function:

Re: [Bug-apl] quad-ET doesn't follow SI

2014-05-31 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 304. This changed some data structures, so make install is needed. /// Jürgen On 05/29/2014 05:45 AM, David B. Lamkins wrote: quad-ET should always reflect the error that caused the top suspension on the SI. When the SI is empty, quad-ET should yield 0 0.

Re: [Bug-apl] Boehm garbage collector

2014-05-31 Thread Juergen Sauermann
Hi, in GNU APL the only performance relevant data structures are APL values. There are two kinds of values: small values and large values. small and large refer to the number of ravel elements, i.e. *?,VALUE*. The borderline between small and large is ./configurable (SHORT_VALUE_LENGTH_WANTED,

Re: [Bug-apl] Revisiting the APL 2 empty-array display behavior

2014-05-31 Thread Juergen Sauermann
Hi, I believe the dyadic ⍕ with character left argument (called *Format by Example* in IBM APL2) is more powerful than ⎕FMT (which is a bit too FORTRAN-like for my taste) and is already implemented in GNU APL. And then we have good old printf() in FILE_IO. /// Jürgen On 05/29/2014 04:33 PM

Re: [Bug-apl] Revisiting the APL 2 empty-array display behavior

2014-05-31 Thread Juergen Sauermann
Hi Jay, as the GNU APL info manual says: /GNU APL supports direct functions (aka. lambdas), but only in a rather// //limited form./ No plan to change this. /// Jürgen On 05/29/2014 04:44 PM, Jay Foad wrote: On 29 May 2014 15:28, Juergen Sauermann <mailto:juergen.sauerm...@t-online

Re: [Bug-apl] Limit what )LIB shows

2014-05-31 Thread Juergen Sauermann
Hi Blake, In MS windows, file extensions are everything (so important that they have spent extra efforts to hide them for the dumb user). In Linux they are more like a convention but not a must. GNU APL searches first for a file with the name provided by the user and only looks for .xml or .ap

Re: [Bug-apl] Limit what )LIB shows

2014-05-31 Thread Juergen Sauermann
specified exactly which to load. Is that true? Thanks. Blake On Sat, May 31, 2014 at 9:10 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, In MS windows, file extensions are everything (so important that they have spent extra efforts to hide t

Re: [Bug-apl] Messed up indentation with )DUMP

2014-05-31 Thread Juergen Sauermann
Hi Daniel, I cant confirm this but would need additional information. A few hints, though: 1. the del editor (?) removes leading spaces from lines entered: * ?foo [1] 1 [2] 2 [3] 3 [4] [?] ? [0] foo [1] 1 [2] 2 [3] 3 ? [4] ?* This is a bit strange but for IBM APL2 comp

Re: [Bug-apl] Is this output incorrect?

2014-05-31 Thread Juergen Sauermann
Hi Peter, looks OK to me. (Note: as of recently *apl -s* does the same as your command line options). --rawCIN reads directly from the file (stdin in this case) without outputting any prompts. The line numbers in the ?-editor count as prompts and are therefore suppressed as well. However w

Re: [Bug-apl] New release?

2014-05-31 Thread Juergen Sauermann
Hi Blake, in principle yes. Normally I wait until the number of emails on bug-apl goes down a little (which wasn't the case lately). Creating a release is more work than just committing a bug-fix to SVN. I had also planned a bit more for the next release - multi-core and better documentation

Re: [Bug-apl] Boehm garbage collector

2014-05-31 Thread Juergen Sauermann
Hi, I have implemented the linked list of deleted values as discussed below. SVN 305. If you want to benchmark it change line 509 of Value.hh to enable (#if 1) or disable (#if 0) the new memory management. /// Jürgen On 05/31/2014 03:25 PM, Juergen Sauermann wrote: Hi, in GNU APL the

Re: [Bug-apl] ⎕TC presents as Unix, not APL

2014-06-01 Thread Juergen Sauermann
Hi David, I believe that the IBM specified behavior is only achievable (if at all) with platform specific (actually terminal specific) APL variants. The header on page 335 says: *⎕TC Contains a three-item character vector of terminal control characters: ⎕TC[1]—backspace ⎕TC[2]—new line (return

Re: [Bug-apl] Is this output incorrect?

2014-06-01 Thread Juergen Sauermann
p - 1]; ungetc(cc & 0xFF, stdin); } } etc Much appreciated and respect… Peter On 2014-05-31, at 11:13 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Peter, looks OK to me. (Note: as of recently *apl -s* does the same as your command l

Re: [Bug-apl] ⎕EC return values are incorrect for user-defined errors

2014-06-01 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 306. /// Jürgen On 05/31/2014 07:51 PM, David B. Lamkins wrote: See the IBM Reference, page 280, paragraph 3. When ⎕EC executes an expression that signals a user-defined error, the second and third items of the result should be the same as the expression's ⎕ET

[Bug-apl] Comments on package manager

2014-06-02 Thread Juergen Sauermann
Hi David, I have a few small comments after reading the documents of your package manager. 1. Distribution format. I believe it is OK to download the package manager with git or svn as long as it is under development. But the normal distribution format should be something more common such a

Re: [Bug-apl] ⎕EC return values are incorrect for user-defined errors

2014-06-02 Thread Juergen Sauermann
vered elsewhere on page 280 of the IBM Reference. I apologize for having left the `paragraph 3' reference in my first email. On Sun, 2014-06-01 at 18:53 +0200, Juergen Sauermann wrote: Hi David, thanks, fixed in SVN 306. /// Jürgen On 05/31/2014 07:51 PM, David B. Lamkins wrote: See the IBM Refer

Re: [Bug-apl] Android code compatibility issues

2014-06-02 Thread Juergen Sauermann
Hi Elias, I have removed langinfo.h (a left-over from internationalization which I removed earlier, SVN 307. shm_open() and shm_unlink will go away long-term because I will move the shared memory database to a separate thread. Just didn't have enough time yet to do that. /// Jürgen On 06/

Re: [Bug-apl] Dynamic install location (Android related)

2014-06-02 Thread Juergen Sauermann
Hi Elias, you could try --prefix=. to build in the current directory and set --bindir= and friends to where GNU APL shall be installed. You need some information regarding the install directories (like /usr/bin, /usr/lib and /etc). I need to understand better in which way Android provides the

Re: [Bug-apl] Android code compatibility issues

2014-06-02 Thread Juergen Sauermann
t the UDP-based IPC will also go away? (doing that is problematic on Android, and one should use a different API which has very different semantics. I'd rather not have to mess with that at all. :-) ). Regards, Elias On 2 June 2014 22:41, Juergen Sauermann <mailto:juergen.sauerm..

Re: [Bug-apl] ⎕EC return values are incorrect for user-defined errors

2014-06-02 Thread Juergen Sauermann
eference. I apologize for having left the `paragraph 3' reference in my first email. On Sun, 2014-06-01 at 18:53 +0200, Juergen Sauermann wrote: Hi David, thanks, fixed in SVN 306. /// Jürgen On 05/31/2014 07:51 PM, David

Re: [Bug-apl] Defining APL functions with [ ]

2014-06-03 Thread Juergen Sauermann
Hi, yes, the reason is this: Sometimes you want to have (user-defined) wrapper functions around primitives, for example to get some statistics about their use (how often called, averge size of arguments, etc). It is pretty easy to convert a normal APL program to one using the wrappers instead

Re: [Bug-apl] Format by example problems

2014-06-03 Thread Juergen Sauermann
Hi Elias, I guess you need format characters 1, 2 and/or 3 for that: '-12' ⍕ ¯42 42 -42 42 Those cannot be combined with normal text. The decorators are not meant as a shortcut for inserting text into ⍕ but rather to improve formatting of signed numbers such as -42 or (42) or 42 printe

Re: [Bug-apl] Crash when using format by example

2014-06-03 Thread Juergen Sauermann
Hi Elias, thanks , fixed in SVN 311. /// Jürgen On 06/03/2014 07:31 AM, Elias Mårtenson wrote: To reproduce, type the following: * 'X4.55Y' ⍕ 12345.98765* This results in the following stack trace: == Asse

Re: [Bug-apl] Announce: APL function editor written in APL

2014-06-03 Thread Juergen Sauermann
Hi, the link to the ISO standard is a gzip'ed file despite of its .pdf extension. I have updated README-7-more-info to explain how to fetch it. The ISO standard seems to have a few more operators than IBM APL2. /// Jürgen On 06/03/2014 06:07 AM, Daniel H. Leidisch wrote: Hello! Blake McBri

Re: [Bug-apl] Defining APL functions with [ ]

2014-06-03 Thread Juergen Sauermann
, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi, yes, the reason is this: Sometimes you want to have (user-defined) wrapper functions around primitives, for example to get some statistics about their use (how often called, averge size of argument

Re: [Bug-apl] Debug code in UserFunction::UserFunction()

2014-06-03 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 313. /// Jürgen On 06/03/2014 02:06 AM, David Lamkins wrote: UserFunction.cc:254 -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins http://reverbnation.com/l

Re: [Bug-apl] Split main() function to make embedded use easier

2014-06-03 Thread Juergen Sauermann
Hi Elias, thanks, included in SVN 314. /// Jürgen On 06/03/2014 05:55 PM, Elias Mårtenson wrote: I've been working on making the interpreter embeddable and controllable from the Android user interface. To do this, I need to be able to initialise the interpreter without actually entering the

Re: [Bug-apl] Package Manager installation issues and proposal - feedback requested

2014-06-05 Thread Juergen Sauermann
Hi David, I am planning to generate the preferences file with ./configure so that the libdirs for GNU APL in the default preferences file (in /etc/gnu-apl.d or in /usr/local/etc/gnu-apl.d depending on the nature of the target system) points to typically /usr/lib/apl or to /usr/local/lib/apl. S

Re: [Bug-apl] Assertion failure in index with axis on vector

2014-06-05 Thread Juergen Sauermann
Hi Kacper, thanks, fixed in SVN 315. /// Jürgen On 06/05/2014 12:40 AM, Kacper Gutowski wrote: Hi, Using index with axis on a vector results in assertion failure. It works correctly with arrays of higher dimension or without axis. 1⌷[⎕IO]⍳1 ==

Re: [Bug-apl] Comments on package manager

2014-06-05 Thread Juergen Sauermann
lease will support other APLs and other operating systems. The package manager's architecture is already leaning in this direction even though the implementation does not fully support the intention of the architecture. Full multiplatform support comes late on the roadmap, just before rem

Re: [Bug-apl] Package Manager installation issues and proposal - feedback requested

2014-06-05 Thread Juergen Sauermann
Hi Elias, you can already. All commands that accept library reference numbers (like 0 ... 9) should already support absolute and relative paths (starting with '/' or '.') instead. /// Jürgen On 06/05/2014 05:19 PM, Elias Mårtenson wrote: We do? Then forget that part. I had no idea. :-) I

Re: [Bug-apl] Trace & stop control

2014-06-09 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 316. /// Jürgen On 06/02/2014 02:20 AM, Blake McBride wrote: Just offering an opinion - Since APL trace and stop are quite useful, and are part of the standard, my opinion is that these should be top priority - second only to bug fixes. These should come bef

Re: [Bug-apl] Listing a function shouldn't create one

2014-06-09 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 316. /// Jürgen On 06/07/2014 06:17 PM, Blake McBride wrote: Listing a non-existent function shouldn't create a new function. This is a problem when you make a typo. GNU APL: )CLEAR CLEAR WS ∇GG[⎕]∇ ∇ [0] GG ∇ )FNS GG IBM APL

Re: [Bug-apl] )LOAD time message wrong

2014-06-09 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 316. /// Jürgen On 06/07/2014 07:25 PM, Blake McBride wrote: Look at the reported time the system gives on )LOAD )CLEAR CLEAR WS )WSID test WAS CLEAR WS ⎕TS 2014 6 7 12 22 28 840 )save 2014-06-07 12:22:32 (GMT-5) test )LOAD test S

Re: [Bug-apl] Package Manager installation issues and proposal - feedback requested

2014-06-10 Thread Juergen Sauermann
Hi, I have added $HOME/.config/gnu-apl/preferences in SVN 317. The files read are now: *1. /etc/gnu-apl.d/preferences (or /usr/local/etc/gnu-apl.d/preferences)** **2. $HOME/.gnu-apl/preferences, and** **3. $HOME/.config/gnu-apl/preferences**(if 2.failed).** * I believe that paths on the com

Re: [Bug-apl] Build error in 316

2014-06-10 Thread Juergen Sauermann
Hi David, thanks, hopefully fixed in SVN 317. /// Jürgen On 06/10/2014 05:36 PM, David B. Lamkins wrote: I'm seeing the same thing. $ gcc --version gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7) On Mon, 2014-06-09 at 14:48 -0500, Blake McBride wrote: ... mv -f .deps/apl-Bif_F12_FORMAT.Tpo .de

Re: [Bug-apl] Documentation: quad-SYL description in info file does not match current implementation

2014-06-10 Thread Juergen Sauermann
Hi David, thanks, should be fixed in SVN 317. /// Jürgen On 06/06/2014 07:55 PM, David Lamkins wrote: The quad-SYL listing in the info file does not match what is currently implemented. -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud

Re: [Bug-apl] Debug message on )LOAD

2014-06-10 Thread Juergen Sauermann
Hi David, thanks, should be fixed in SVN 317. /// Jürgen On 06/07/2014 05:29 PM, Blake McBride wrote: )LOAD Utils LOC: 'SystemVariable.cc:421' at SystemVariable.cc:421 SAVED 2014-6-3 5:23:27 (GMT-5)

Re: [Bug-apl] )FNS output and quad-PW

2014-06-10 Thread Juergen Sauermann
Hi David, thanks, should be fixed in SVN 317. /// Jürgen On 06/07/2014 12:30 AM, David Lamkins wrote: Is the output of )FNS supposed to wrap according to quad-PW? It seems that certain lines of the display overflow quad-PW by some amount related to the presence of long function names on a l

Re: [Bug-apl] )LOAD time message wrong

2014-06-10 Thread Juergen Sauermann
Hi Blake, thanks, should be fixed in SVN 317. /// Jürgen On 06/07/2014 07:25 PM, Blake McBride wrote: Look at the reported time the system gives on )LOAD )CLEAR CLEAR WS )WSID test WAS CLEAR WS ⎕TS 2014 6 7 12 22 28 840 )save 2014-06-07 12:22:32 (GMT-5) test )LO

<    1   2   3   4   5   6   7   8   9   10   >