Re: [Bug-apl] Incorrect library path when installed in non-default location

2014-07-06 Thread Juergen Sauermann
Hi Elias, )LIBS is currently computed from the location of the running apl binary. This is sometimes convenient and sometimes not. A secure way of handling this is to have the paths in the user's preferences file. I believe that some of the libs (wslib3, 4, and 5) are installed in the locati

Re: [Bug-apl] Incorrect library path when installed in non-default location

2014-07-06 Thread Juergen Sauermann
tell us. /// Jürgen On 07/06/2014 05:21 PM, Elias Mårtenson wrote: Actually I don't have any APL binary installed anywhere else. Regards, Elias On 6 Jul 2014 23:16, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, )LIBS is currently

Re: [Bug-apl] Request: lib_file_io additions

2014-07-07 Thread Juergen Sauermann
Hi David, thanks, I'll do that. /// Jürgen On 07/07/2014 09:31 AM, David B. Lamkins wrote: There are two functions that I'd like to access via lib_file_io: readdir() and rename(). I'm currently implementing these via popen() through lib_file_io, but that seems inelegant... I have immediate

Re: [Bug-apl] Request: lib_file_io additions

2014-07-07 Thread Juergen Sauermann
Hi David, I have added rename (FILE_IO[27]), SVN 364. I didn't do readdir() because that would need you to opendir(), loop around readdir() and closedir(). Instead FILE_IO[28] returns the entire directory as a matrix in one go. Every row is a dirent struct but with a different order: *

Re: [Bug-apl] Question about behavior of ⍋

2014-07-08 Thread Juergen Sauermann
Hi, the reason is roughly this: In GNU APL there is an order between *all* APL values, not only between numeric vectors or character vectors. The order should also include nested APL values. Once such an order is defined, not only ⍋ but also other operators can be generalized to use it inste

Re: [Bug-apl] Incorrect library path when installed in non-default location

2014-07-08 Thread Juergen Sauermann
the file /home/emartenson/src/apl/dist/etc/gnu-apl.d/preferences: LIBREF-3 /usr/local/lib/apl/wslib3 LIBREF-4 /usr/local/lib/apl/wslib4 LIBREF-5 /usr/local/lib/apl/wslib5 Regards, Elias On 6 July 2014 23:49, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote:

Re: [Bug-apl] Error building on OSX

2014-07-08 Thread Juergen Sauermann
Hi Elias, how is it called then? And what is its value? 6 for PROTO_TCP? /// Jürgen On 07/08/2014 03:05 PM, Elias Mårtenson wrote: A new error when building on OSX: g++ -DHAVE_CONFIG_H -I. -I../..-I .. -g -O2 -DAP_NUM=210 -g -MT AP210-UdpSocket.o -MD -MP -MF .deps/AP210-UdpSocket.Tpo -c

Re: [Bug-apl] Question about behavior of ⍋

2014-07-08 Thread Juergen Sauermann
Hi Elias, nice trick! /// Jürgen On 07/08/2014 08:58 AM, Elias Mårtenson wrote: By the way, I found a workaround to the string ordering. The workaround requires memory on the order of ↑(⍴V)×⌈/⍴¨V for a vector V. This should be enough justification for the proposed extension. Here's what I

Re: [Bug-apl] Error building on OSX

2014-07-08 Thread Juergen Sauermann
, Elias On 8 July 2014 21:42, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, how is it called then? And what is its value? 6 for PROTO_TCP? /// Jürgen On 07/08/2014 03:05 PM, Elias Mårtenson wrote: A new error when building on OS

[Bug-apl] AF_UNIX (aka AF_LOCAL) sockets

2014-07-08 Thread Juergen Sauermann
Hi, Following an earlier proposal from Elias, I have changed from *TCP *sockets to *AF_UNIX* sockets for the communication between *apl* and *APserver* if the platform supports it (*linux* does). See SVN 368. The long-term goal is to get rid of the *APnnn* processes that are forked with every

Re: [Bug-apl] Request: lib_file_io additions

2014-07-08 Thread Juergen Sauermann
Hi David, fixed in SVN 366. FILE_IO[28] now returns an N by 5 matrix with columns ordered like in struct dirent. I used -1 instead of ⍬ for missing fields because I found it a bit awkward to produce different depths on different platforms. I also added FILE_IO[29] which returns only the fi

Re: [Bug-apl] Error building on OSX

2014-07-08 Thread Juergen Sauermann
Hi Kacper, yes - many names for 6 over the rime. I just need a confirmation that IPPROTO_TCP exists on OS-X. /// Jürgen On 07/08/2014 06:43 PM, Kacper Gutowski wrote: On 2014-07-08 18:03:21, Juergen Sauermann wrote: SOL_SOCKET is 1 on linux but according to the man page of TCP(7) SOL_TCP

Re: [Bug-apl] Execution properties - "cannot be suspended" bit

2014-07-09 Thread Juergen Sauermann
Hi David, thanks, I have changed the code so that all user-defined functions with the cannot be suspended" attribute at the top of the )SI stack are pop'ed before a new immediate execution context is pushed onto )SI. SVN 369. I hope this is what the standard wants - the information about these c

Re: [Bug-apl] Extension proposal: ⍵⍵ to access outer lambda

2014-07-09 Thread Juergen Sauermann
Hi Elias, that would be very easy to implement: * { ⍵ + { ⍵ × OUTER_OMEGA } 10 ⊣ OUTER_OMEGA←⍵ } 100 1100 * /// Jürgen On 07/09/2014 10:53 AM, Elias Mårtenson wrote: It would be nice to be able to access the values of ⍵ and ⍺ (and I suppose χ) from the outer lambda from a nested lambda.

Re: [Bug-apl] Extension proposal: ⍵⍵ to access outer lambda

2014-07-09 Thread Juergen Sauermann
2014 22:06, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, that would be very easy to implement: * { ⍵ + { ⍵ × OUTER_OMEGA } 10 ⊣ OUTER_OMEGA←⍵ } 100 1100 * /// Jürgen On 07/09/2014 10:53 AM, Elias Mårtenson wrote: It

Re: [Bug-apl] Request: lib_file_io additions

2014-07-09 Thread Juergen Sauermann
Hi, I think we have to draw the border between FILE_IO and convenience functions somewhere. Otherwise we would end up with the entire libc accessible via FILE_IO. And, remember, we have this nice language called APL to do such things. /// Jürgen On 07/08/2014 05:56 AM, David B. Lamkins wrot

Re: [Bug-apl] Can't break out of the middle on a display operation

2014-07-09 Thread Juergen Sauermann
Hi, not so. I implemented ⎕SYL[⎕IO+26;] for that case. Just try: * ⎕SYL[⎕IO+26]←2000 ⍳100 ...* /// Jürgen On 07/09/2014 05:11 AM, Elias Mårtenson wrote: Yeah, and neither would Jürgen. Seems like I was in the minority on that one. :-) Regards, Elias On 9 July 2014 11

Re: [Bug-apl] Filter fns with ⍙ (delta-underbar) in the name by default?

2014-07-10 Thread Juergen Sauermann
Hi, as to opinions, I believe I don't like that either. Please remember that we have user-defined commands now, so you can easily create your own commands that do things in the way you prefer. /// Jürgen On 07/10/2014 03:43 AM, David B. Lamkins wrote: Personally, I'm not a fan of having tool

Re: [Bug-apl] ISO Component File API preview

2014-07-13 Thread Juergen Sauermann
Hi, sorry for answering that late, but I was busy with a major restructuring of GNU APL (APserver/shared variables). That created a bit of an headache but is looking fine now. Blake has asked for my opinion earlier. I am not really a database specialist though. The last database I worked with

Re: [Bug-apl] Syntax error defining a function

2014-07-14 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 371. /// Jürgen On 07/12/2014 06:27 PM, Blake McBride wrote: )CLEAR CLEAR WS ∇test [1] 5∇ SYNTAX ERROR [1] You should be able to end a line with a del to close the function and end the edit. It works on IBM APL 2. Thanks. Blake

Re: [Bug-apl] ⎕ES wrong message

2014-07-14 Thread Juergen Sauermann
Hi Blake, I believe the ⎕ES related bugs reported recently should be fixed in SVN 372. This one is not, though. The reason is that fixing it would have considerable performance impacts (we would need a copy of every defined function argument only for the rare case that ⎕ES is called), I also

Re: [Bug-apl] Each bug

2014-07-14 Thread Juergen Sauermann
Hi, thanks, fixed in SVN 373. /// Jürgen On 07/14/2014 05:36 AM, Elias Mårtenson wrote: Interesting. Given the following definition of pp: ∇Z←X pp Y ⎕←'comparing' ⎕←' X=' (8⎕CR X) ⎕←' Y=' (8⎕CR Y) Z←X≡Y ∇ I get the following output: *(⊂'foo') pp¨ (,⊂'foo')* compar

Re: [Bug-apl] Additions to FILE_IO

2014-07-14 Thread Juergen Sauermann
Hi Blake, thanks, added in SVN 373. Left argument of access() is a string consisting of R, W, X, and F rather than a single integer. /// Jürgen On 07/14/2014 01:21 PM, Blake McBride wrote: Greetings, It would be very helpful to have the following C functions added to the FILE_IO interface

Re: [Bug-apl] Warning SVN 371 on OS X

2014-07-14 Thread Juergen Sauermann
Hi Peter, thanks, should be fixed in SVN 373. /// Jürgen On 07/14/2014 03:34 PM, Peter Teeson wrote: /Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/APserver.cc:609:1: Control reaches end of non-void function #else int open_UNIX_socket(const char * listen_name) { cerr << "*** t

Re: [Bug-apl] Changes to README-1-prerequisits

2014-07-14 Thread Juergen Sauermann
Hi, should be fixed in SVN 374. The sqlite should be optional - Elias, there is a *#include "apl-sqlite.hh"* in *ResultValue**.hh* - that looks wrong. *execinfo* is a separate lib on some platforms and part of *glibc* on others. It is OK if the test for it fails. /// Jürgen iOn 07/14/201

Re: [Bug-apl] ⎕ES wrong message

2014-07-14 Thread Juergen Sauermann
s in the spec - section 11.5.7. Thanks. Blake On Mon, Jul 14, 2014 at 9:15 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, I believe the ⎕ES related bugs reported recently should be fixed in SVN 372. This one is not, though. The

Re: [Bug-apl] Function definition information (extension proposal)

2014-07-14 Thread Juergen Sauermann
Hi, my favourite for code documentation is *Doxygen*. It does not currently support APL comments but we might be able to change that. Or use one of the existing tags like --- for *VHDL* or %%% for *Erlang*. It would need some changes in GNU APL - multi-line comments and proper storage of documen

Re: [Bug-apl] Equal incorrect for non-real arguments

2014-07-15 Thread Juergen Sauermann
Hi Kacper, thanks , fixed in SVN 376. Except that (not so obviously) : * 1E¯15 = 1E¯14 0 * **/// Jürgen On 07/15/2014 11:55 AM, Kacper Gutowski wrote: When either of arguments of = has imaginary part of magnitude greater than comparison tolerance, a domain error is thrown. ⎕CT

Re: [Bug-apl] 2 Quad TF incorrect for complex numbers

2014-07-15 Thread Juergen Sauermann
Hi Kacper. thanks, fixed in SVN 376. /// Jürgen On 07/15/2014 12:18 PM, Kacper Gutowski wrote: 2⎕TF re-uses real part for imaginary part: X←5J0 10⎕CR'X' ◊ 2⎕TF'X' X←5J0 X←5J5 -k

Re: [Bug-apl] Changes to README-1-prerequisits

2014-07-16 Thread Juergen Sauermann
the SQLite provider. If SQLite support is not enabled, that file shouldn't be compiled. Perhaps it would be best if that file is renamed SqliteResultValue... Regards, Elias On 15 July 2014 01:36, Juergen Sauermann mailto:juergen.sauerm...@t

Re: [Bug-apl] Changes to README-1-prerequisits

2014-07-16 Thread Juergen Sauermann
Hi Elias, yes, thanks. SVN 378. /// Jürgen On 07/16/2014 03:54 PM, Elias Mårtenson wrote: Actually, it may be that you simply didn't copy sql.apl into the wslib? Regards, Elias On 16 July 2014 21:53, Elias Mårtenson > wrote: Thanks. Could you update again so

Re: [Bug-apl] Equal incorrect for non-real arguments

2014-07-16 Thread Juergen Sauermann
Hi Kacper, thanks, fixed in SVN 378. /// Jürgen On 07/15/2014 09:49 PM, Kacper Gutowski wrote: On 2014-07-15 20:09:40, Juergen Sauermann wrote: Except that (not so obviously) : 1E¯15 = 1E¯14 0 Sorry, my mistake. You're, of course, right. Current (r376) behaviour seems

Re: [Bug-apl] Function definition information (extension proposal)

2014-07-16 Thread Juergen Sauermann
omments. My lead sentence was just an indicator that the earlier discussion of comments triggered this new line of thought... On Mon, Jul 14, 2014 at 11:14 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote:

Re: [Bug-apl] Access to preferences

2014-07-16 Thread Juergen Sauermann
Hi Blake, I think it would not be good to have everything in one file. The reason is that this makes updates of the preferences file more difficult. For example I could not change the file format if I needed to and updates of a file that contains a lot of other information would become awkward fo

Re: [Bug-apl] Formal format for function documentation

2014-07-16 Thread Juergen Sauermann
Hi, sorry, I sent this one to the wrong topic.., /// Jürgen On 07/14/2014 08:14 PM, Juergen Sauermann wrote: Hi, my favourite for code documentation is *Doxygen*. It does not currently support APL comments but we might be able to change that. Or use one of the existing tags like --- for

Re: [Bug-apl] Question regarding GNU APL native library platform support

2014-07-18 Thread Juergen Sauermann
Hi David, I would expect that the platform supports shared libraries or similar via *dlopen()*. Windows on Cygwin should be OK, Windows without Cygwin maybe not or needs wrappers for dlopen() and friends Don't know anything about iOS; if it is linux-like then it probably has it. /// Jürgen

[Bug-apl] Shared variables reworked

2014-07-20 Thread Juergen Sauermann
Hi, as of SVN 380, I have changed the implementation of shared variables in GNU APL. The old implementation used a separate *APnnn* process for the communication between APs and APL workspaces and a shared memory to coordinate the state and control vectors. The /*usr/bin/APnnn* (or */usr/lo

Re: [Bug-apl] Patch attached for support-files/apl.loadkeys

2014-07-20 Thread Juergen Sauermann
Hi David, thanks, included in SVN 380. /// Jürgen On 07/20/2014 02:41 AM, David Lamkins wrote: I've attached a patch to make the apl.loadkeys file match the recent keyboard layout changes. Also, the file now includes comments to document the Unicode code points used in the mapping. -- "T

Re: [Bug-apl] Another SQL module update

2014-07-20 Thread Juergen Sauermann
Hi Elias, thanks, I have updated the GNU APL SVN today, SVN 380. /// Jürgen On 07/18/2014 07:10 PM, Elias Mårtenson wrote: I found a bug where the application would crash if you tried to list the tables when you didn't have any tables in the database. I've fixed it now so that it returns ⍬ a

Re: [Bug-apl] Extension proposal: ⍵⍵ to access outer lambda

2014-07-20 Thread Juergen Sauermann
:03 AM, Kacper Gutowski wrote: On 2014-07-09 16:14:32, Juergen Sauermann wrote: Hi, actually - no. I called it OUTER_OMEGA to make clear what it does. Maybe you like { ⍵ + {⍵×WW} 10 ⊣ WW←⍵ } 100 1100 imore? I think the main problem isn't the length of variable's name but the

[Bug-apl] show ./configure'd directories

2014-07-20 Thread Juergen Sauermann
Hi, I have added a few command line options by which other programs (like libraries) can figure how GNU APL was configured. For example: eedjsa@Server65:~/apl/apl-1.3/src$*apl --show_src_dir** **/home/eedjsa/apl/apl-1.3/src* See *apl -h* for all such options. /// Jürgen

Re: [Bug-apl] Can't break out of the middle on a display operation

2014-07-21 Thread Juergen Sauermann
Hi Blake, I guess the proposed solution for both was ⎕SYL. Like: * ⎕SYL[27] ← 1* /// Jürgen On 07/21/2014 12:26 AM, Blake McBride wrote: Are my two items below a dead issue? Thanks! Blake On Tue, Jul 8, 2014 at 9:58 PM, Blake McBride > wrote: I

Re: [Bug-apl] Attention signal issues

2014-07-21 Thread Juergen Sauermann
Hi David, thanks, should be fixed in SVN 381. /// Jürgen On 07/20/2014 07:40 PM, David Lamkins wrote: Jüergen and Elias, I think there might be something here for each of you. See comments in attached test case. There are two transcripts following: _1. From within gnu-apl-mode:_ )lo

Re: [Bug-apl] Can't break out of the middle on a display operation

2014-07-21 Thread Juergen Sauermann
ake On Mon, Jul 21, 2014 at 4:47 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, I guess the proposed solution for both was ⎕SYL. Like: * ⎕SYL[27] ← 1* /// Jürgen On 07/21/2014 12:26 AM, Blake McBride wrote:

Re: [Bug-apl] Another attention signal issue

2014-07-21 Thread Juergen Sauermann
Hi David, I have changed readline to display a new line right after ^C, see SVN 382. For reasons that I don't fully understand, the next character after ^C will be eaten by readline; I tried a number of things to prevent this but haven't succeeded. I believe readline will be one of the next t

Re: [Bug-apl] Another attention signal issue

2014-07-21 Thread Juergen Sauermann
On Mon, 2014-07-21 at 18:23 +0200, Juergen Sauermann wrote: Hi David, I have changed readline to display a new line right after ^C, see SVN 382. For reasons that I don't fully understand, the next character after ^C will be eaten by readline; I tried a number of things to prevent this but

Re: [Bug-apl] Attention signal issues

2014-07-21 Thread Juergen Sauermann
ignal. On Mon, 2014-07-21 at 12:24 +0200, Juergen Sauermann wrote: Hi David, thanks, should be fixed in SVN 381. /// Jürgen On 07/20/2014 07:40 PM, David Lamkins wrote: Jüergen and Elias, I think there might be something here for each of you. See comments in attached test case. There ar

Re: [Bug-apl] Another attention signal issue

2014-07-22 Thread Juergen Sauermann
w you'd go about this, but the binding <http://hackage.haskell.org/packages/archive/readline/latest/doc/html/System-Console-Readline.html> seems rich enough to achieve it. On Mon, Jul 21, 2014 at 12:39 PM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi

Re: [Bug-apl] Fix to SQL library that makes it work on OSX

2014-07-22 Thread Juergen Sauermann
Hi, SVN 384 should have it. On the other hand I have not seen an update of *src/sql* in SVN 384. If something is missing can you please have a look at the *git-pull *target in *src/Makefile.am* and see if it is OK? I'm not really a git expert. /// Jürgen On 07/22/2014 01:28 AM, Elias Mårtenso

Re: [Bug-apl] Another attention signal issue

2014-07-22 Thread Juergen Sauermann
Hi Blake, I tried, but it did not work. The deeper I go into readline the more weird it gets. If I do nothing then I get the first ^C delivered as signal but not subsequent ones. I would have preferred if two ^Cs (i.e. INTERRUPT rather than ATTENTION) would stop printouts, but readline deliv

Re: [Bug-apl] Fix to SQL library that makes it work on OSX

2014-07-22 Thread Juergen Sauermann
while in yours, it's SQL.apl. Could that be the cause? Regards, Elias On 22 July 2014 18:26, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi, SVN 384 should have it. On the other hand I have not seen an update of *src/sql* in SVN 384. If some

Re: [Bug-apl] Another attention signal issue

2014-07-22 Thread Juergen Sauermann
program makes me itch... ;) If you don't get to this today, I may have some time tonight to experiment with case (2). On Tue, Jul 22, 2014 at 7:36 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, I tried, but it did not work.

Re: [Bug-apl] Revisiting localization of system variables

2014-07-23 Thread Juergen Sauermann
Hi David, thanks. The statement is still valid. Just forgot to overload *Quad_IO::push().* Fixed in SVN 386. /// Jürgen On 07/22/2014 10:58 PM, David Lamkins wrote: On May 27th Jüergen wrote: "Note that there are some subtle differences between IBM APL2 and GNU APL when localizing ⎕-vars.

Re: [Bug-apl] Another attention signal issue

2014-07-23 Thread Juergen Sauermann
smaller than before. /// Jürgen On 07/22/2014 09:28 PM, David Lamkins wrote: Good to hear that a solution is in sight. :) On Tue, Jul 22, 2014 at 12:04 PM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi David, thank you very much. I read the paragraph

Re: [Bug-apl] Very minor apl.html adjustments

2014-07-23 Thread Juergen Sauermann
Hi Blake, thanks, will be fixed in SVN 387. /// Jürgen On 07/21/2014 01:47 PM, Blake McBride wrote: I found the following small typos in apl.html: 1. Section 2.2 "max. rank for APL values" repeated twice. 2. Section 2.2.1 Missing "[" in section title Thanks. Blake

Re: [Bug-apl] Fix for some OSX compilation issues

2014-07-24 Thread Juergen Sauermann
Hi Elias, thanks. I made some changes rot readline to be more portable. Including the Function problem. It is really not nice to typedef a fundamental name like "Function" in a library because you can't un-typedef it (can you?). In my readline version you could prevent that by #defining_FUNCTI

Re: [Bug-apl] Stale values - minimal test case attached

2014-07-24 Thread Juergen Sauermann
Hi David, thanks , fixed in SVN 388. /// Jürgen On 07/22/2014 10:47 PM, David Lamkins wrote: I finally managed to isolate the cause of )CHECK's state value report for my package manager. The attached test case has a two-line function, a call to that function, and the )CHECK command. This r

Re: [Bug-apl] Stale files in SQL source directory

2014-07-24 Thread Juergen Sauermann
Hi Elias, I have lower-cased everything even though I would argue that SQL, being an abbreviation, should be uppercase. I have removed the stale files (they were only in SVN not in the packages built). /// Jürgen On 07/24/2014 10:41 AM, Elias Mårtenson wrote: The src/sql directory contains

Re: [Bug-apl] Solved: Unix socket connection failed

2014-07-24 Thread Juergen Sauermann
Hi Elias, Unix Domain Sockets were your proposal if I remember correctly :-) . They caused a few extra problems, for example select() does not notice when a connection is closed. Not sure which call you mean? /// Jürgen On 07/24/2014 12:55 PM, Elias Mårtenson wrote: I had never been able to g

Re: [Bug-apl] Solved: Unix socket connection failed

2014-07-24 Thread Juergen Sauermann
Hi Elias, the idea is this: man 7 unix says: /abstract: an abstract socket address is distinguished by the fact// // that sun_path[0] is a null byte ('\0'). The socket's address in// // this namespace is given by the additional bytes in sun_path that are// //

Re: [Bug-apl] Solved: Unix socket connection failed

2014-07-24 Thread Juergen Sauermann
to be clean after shutdown). * When automatically starting the backend (as opposed to manually creating it), compute the filename so that it's reasonably unique. I.e. append the process ID to it or something. What do you think of this? Regards, Elias On 24 July 2014 19:26, Juergen

Re: [Bug-apl] Solved: Unix socket connection failed

2014-07-24 Thread Juergen Sauermann
elect(), you should be able to detect this state. Add a listener for the event POLLPRI. Regards, Elias On 24 July 2014 19:57, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, given that hardly anybody uses shared variables these days this discus

Re: [Bug-apl] Unexpected results for the power function

2014-07-25 Thread Juergen Sauermann
Hi Fred, thanks for reporting this. I made some improvements in the power functions, see SVN 393. /// Jürgen On 07/23/2014 06:16 PM, Frederick H. Pitts wrote: Jurgen, The last comment in the listing below summarizes the issue. The input file for the listing is attached. Regards F

Re: [Bug-apl] Command-line option -f doesn't recognize - to denote standard input

2014-07-26 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 394. /// Jürgen On 07/25/2014 12:49 AM, David Lamkins wrote: apl --silent -f -

Re: [Bug-apl] Command-line option -- not working as described

2014-07-26 Thread Juergen Sauermann
Hi David, I did some rework of the command line option handling. A few small things have changed - see apl.info which has been updated as well. SVN 394. The example below should work now. /// Jürgen On 07/24/2014 11:30 PM, David Lamkins wrote: $ apl --silent -- --option value could not open

Re: [Bug-apl] Without-readline: Fixed

2014-07-26 Thread Juergen Sauermann
Hi Elias, thanks, included in SVN 395. /// Jürgen On 07/25/2014 06:50 AM, Elias Mårtenson wrote: Here's a patch that fixes the compilation error when disabling readline on OSX (and possibly non-OSX as well?). Regards, Elias

Re: [Bug-apl] Error declaring nihilic operator with index

2014-07-26 Thread Juergen Sauermann
Hi Elias, you cannot define a niladic function with axis because you could not call it. There is no reduction pattern defined for that - not in ISO and not in IBM APL2. N[X] computes N and then indexes it with X and does not call N with axis X. The other problem was a missing check for valid

Re: [Bug-apl] Can't create lambda with execute

2014-07-27 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 397. /// Jürgen On 07/25/2014 11:57 PM, Blake McBride wrote: )CLEAR CLEAR WS a←{1+⍵} a 5 6 ⍎'b←{1+⍵}' VALUE ERROR b←{1+⍵} ^

Re: [Bug-apl] Failed assertion on local lambda

2014-07-27 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 397. /// Jürgen On 07/25/2014 11:51 PM, Blake McBride wrote: )CLEAR CLEAR WS ∇test;add [1] add←{1+⍵} [2] add 4 [3] ∇ == Assertion failed: tidx < text.size() in Function: se

Re: [Bug-apl] Problem with shared variable query

2014-07-27 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 398. /// Jürgen On 07/26/2014 12:58 AM, Blake McBride wrote: ⎕SVQ⍳0 Could not open /usr/local/bin/APs : No such file or directory Svar_DB not connected in Svar_DB::get_offering_processors() 100 210

Re: [Bug-apl] Very cool function assignments!!

2014-07-27 Thread Juergen Sauermann
Hi Blake, that probably works more by chance than on purpose. /// Jürgen On 07/27/2014 06:56 PM, Blake McBride wrote: ∇test;fun1;fun2 [1] fun1←{1+⍵} [2] fun1 22 [3] fun2←fun1 [4] fun2 44 [5] ∇ test 23 45

Re: [Bug-apl] SQL.apl file name

2014-07-27 Thread Juergen Sauermann
Hi Elias, aha, I wasn't sure because Blake complained about the two different names. And I didn't know what other users use in their )LOAD commands (I thought it might be lowercase if people download sql.apl from your git repo directly). Long-term we should have the same casing in the src/sql d

Re: [Bug-apl] Problem with shared variable query

2014-07-27 Thread Juergen Sauermann
/2014 07:54 PM, Blake McBride wrote: Is this what you intended? ⎕SVQ⍳0 Svar_DB not connected in Svar_DB::get_offering_processors() 100 210 On Sun, Jul 27, 2014 at 12:25 PM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, thanks, fixed in S

Re: [Bug-apl] Committed value?

2014-07-28 Thread Juergen Sauermann
Hi David, monadic ⊣ turns any value into a committed value. But it has to be used by the caller. In the called function there is nothing that can turn the result into a committed value. I guess your 'principle of least surprise' wouldn't allow that either. /// Jürgen On 07/27/2014 08:03 PM, D

Re: [Bug-apl] Problem with shared variable query

2014-07-28 Thread Juergen Sauermann
later. ⎕SVQ⍳0 Svar_DB not connected in Svar_DB::get_offering_processors() 100 210 On Sun, Jul 27, 2014 at 1:05 PM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, not exactly. More like this: Welcome to GNU APL versio

Re: [Bug-apl] SQL.apl file name

2014-07-28 Thread Juergen Sauermann
only reason it's in lower case in the source directory is because our looks better in the file list. I can change that if you want. :-) Regards, Elias On 28 Jul 2014 01:37, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, aha, I wasn'

Re: [Bug-apl] Problem with shared variable query

2014-07-28 Thread Juergen Sauermann
APSERVER_PORT 16366 /// Jürgen On 07/28/2014 03:03 PM, Blake McBride wrote: $ APserver -d --port 16366 cannot specify both --path and --port On Mon, Jul 28, 2014 at 6:51 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, interesting. I would propo

Re: [Bug-apl] Problem with shared variable query

2014-07-28 Thread Juergen Sauermann
about --path. I didn't specify --path. On Mon, Jul 28, 2014 at 8:49 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, the --port was for older versions of APserver. The absolute latest should only require -d without --port 16336. The mess

Re: [Bug-apl] Problem with shared variable query

2014-07-28 Thread Juergen Sauermann
Hi Blake, so *APserver* starts up properly. But: On 07/28/2014 04:39 PM, Blake McBride wrote: uprefs.user_do_svars: 0 Is there maybe anything like *SharedVars no* in one of your your *preferences* files? /// Jürgen

Re: [Bug-apl] Problem with shared variable query

2014-07-28 Thread Juergen Sauermann
ago and forgot about it. Really sorry about the run-around. Perhaps the error message could more directly lead one to that setting. Thanks for the help. Blake On Mon, Jul 28, 2014 at 10:00 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, so *AP

Re: [Bug-apl] SQL.apl file name

2014-07-28 Thread Juergen Sauermann
Regards, Elias On 28 Jul 2014 20:01, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi, OK, I will uppercase everything. I beleve you should also uppercase it in your directory because otherwise somebody do

Re: [Bug-apl] Subtle parsing problem

2014-07-29 Thread Juergen Sauermann
Hi Elias, this is because your lambdas are niladic. The right lambda is called before SEL, while the left lambda is called by SEL. From SEL's perspective, 'then'; is a function while 'else' is a value. /// Jürgen On 07/29/2014 07:21 AM, Elias Mårtenson wrote: I was writing an operator that

Re: [Bug-apl] Subtle parsing problem

2014-07-29 Thread Juergen Sauermann
gards, Elias On 29 July 2014 19:55, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, this is because your lambdas are niladic. The right lambda is called before SEL, while the left lambda is called by SEL. From SEL's perspective, '

Re: [Bug-apl] Remaining APserver issues

2014-07-29 Thread Juergen Sauermann
Hi Elias, looks like either no APserver is running or the APserver listens on another socket. Check with netstat -l -p. That should show a line like: tcp0 0 localhost:16366 *:* LISTEN 2631/APserver If the APserver does not get killed then this is the pr

Re: [Bug-apl] Remaining APserver issues

2014-07-29 Thread Juergen Sauermann
erver, it's not very strange that it's not killed when apl exits. In the case where I start a second apl that connects to the first APserver, it does get killed properly. Regards, Elias On 29 Jul 2014 21:02, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>>

Re: [Bug-apl] One more info issue

2014-07-29 Thread Juergen Sauermann
Hi David, it is not mentioned because GNU APL accepts ⍝! as a library marker (and makes such libraries readable by other APL interpreters because ⍝! is just an ordinary APL comment) but such files will most likely not be understood by execve. So this is more a library convention and mentioned

Re: [Bug-apl] Typos in info

2014-07-29 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 403. For 2) I don't know. Looks OK in my xterm when doing 'info apl'. Wrong editor? /// Jürgen On 07/29/2014 06:50 PM, David Lamkins wrote: 1) In section 1.3, in the description of the `--` option, there's an em-dash rather than two hyphens. 2) In section 2

Re: [Bug-apl] Minor build issues

2014-07-30 Thread Juergen Sauermann
Hi David, thanks. I have simplified the info directory entry for GNU APL a little. Maybe they don't like quotes in the entry. SVN 405. I have added ACLOCAL_AMFLAGS = -I m4 to the top-level Makefile.am Not sure if that fixes the aclocal problem; if not then I need more information (actual pri

Re: [Bug-apl] Build error SVN 403 on OS X 10.8.5

2014-07-30 Thread Juergen Sauermann
Hi Peter, thanks, fixed in SVN 405. /// Jürgen On 07/29/2014 08:49 PM, Peter Teeson wrote: Did a brand new checkout, ./configure, make /Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/FloatCell.cc:393:39: Call to 'pow' is ambiguous FloatCell.cc:393:39: error: call to 'pow' is ambiguo

Re: [Bug-apl] ANSI escapes, readline and quote-quad

2014-07-30 Thread Juergen Sauermann
Hi David, thanks. readline is unpredictable at times. It looks like they intercept the output, discarding 27 91 55 and leaving only the final 109 (*m* in ASCII). My plan is to remove readline completely, but this is a bigger thing to do so it won't be in the 1.4 release. /// Jürgen On 07/

Re: [Bug-apl] ]usercmd left argument

2014-07-30 Thread Juergen Sauermann
Hi David, yes. Done in SVN 406. /// Jürgen On 07/29/2014 06:53 PM, David Lamkins wrote: For a mode-1 ]usercmd, the left argument passed to the user function is a list of tokens. Would it be possible to pass the ravel of each token? Currently, a sequence of single-character tokens get colla

Re: [Bug-apl] Subtle parsing problem

2014-07-30 Thread Juergen Sauermann
s. To do so, however, would require first looking at how other APL's do it, as there is no reason to reinvent the wheel. Also, there are more important things to do first. :-) Regards, Elias On 29 Jul 2014 20:48, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> w

Re: [Bug-apl] Minor build issues

2014-07-30 Thread Juergen Sauermann
top-level make target SVNUP that does this (see top-level 'make help'). /// Jürgen On 07/30/2014 02:22 PM, Juergen Sauermann wrote: Hi David, thanks. I have simplified the info directory entry for GNU APL a little. Maybe they don't like quotes in the entry. SVN 405

[Bug-apl] Component FIle Systems

2014-07-30 Thread Juergen Sauermann
Hi, I have added David's and Blake's Component File Systems. Thank you very much for contributing them! Please check if the files are OK (two folders below wslib5). From my side everything is ready for GNU APL 1.4 now - I will build the release package shortly if nobody objects. /// Jürgen

Re: [Bug-apl] Strange T∆ output... OS X 10.8.5

2014-07-31 Thread Juergen Sauermann
Hi Peter, thanks, fixed in SVN 408. /// Jürgen On 07/31/2014 04:04 AM, Peter Teeson wrote: I launched apl --noColor --silent Version / SVN: 1.3 / 7603 When I trace this line: i←(2|j)/j←⍳×/k←⍴Y it produces this display Please display the tiff because when I copy/paste mail shows this 1357

Re: [Bug-apl] Remaining APserver issues

2014-07-31 Thread Juergen Sauermann
Hi Elias, thanks - that explains a lot. I changed the code to use popen() rather than fork() + execve(). That way I can see when APserver has bound its socket. SVN 409. /// Jürgen On 07/31/2014 12:24 PM, Elias Mårtenson wrote: I did another test and added a two-second sleep after attempting t

Re: [Bug-apl] FILE_IO library

2014-07-31 Thread Juergen Sauermann
Hi Elias, I changed/removed the _5000 functions as proposed What are docstrings? /// Jürgen On 07/31/2014 09:36 AM, Elias Mårtenson wrote: I checked out the helper library for FILE_IO. Very nice. First of all, how about adding docstrings in the same form as the SQL library? I'm willing to

Re: [Bug-apl] FILE_IO library

2014-07-31 Thread Juergen Sauermann
I've also written an APL function to extract this information (not ready for common use): https://github.com/lokedhs/apl-tools/blob/master/doc.apl Regards, Elias On 31 July 2014 22:59, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, I changed/r

Re: [Bug-apl] FILE_IO library

2014-07-31 Thread Juergen Sauermann
first comment block. If you want to define a more complex format, please go ahead. I'll update the Emacs code to make something clever with it. :-) On 31 July 2014 23:26, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, so its simply an A

Re: [Bug-apl] Error loading the HTML library

2014-07-31 Thread Juergen Sauermann
Hi Elias, thanks, fixed in SVN 410. /// Jürgen On 07/31/2014 06:06 PM, Elias Mårtenson wrote: Getting the following error when loading HTML.sql: * )copy 5 HTML* loading )DUMP file /home/elias/src/apl/dist/lib/apl/wslib5/HTML.apl... SYNTAX ERROR Regards, Elias

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