Re: [Bug-apl] Command::process_line breakup

2014-06-10 Thread Juergen Sauermann
Hi Elias and Peter, first of all, I am planning to put the commands )LOAD, )SAVE, ... into a separate function. That will replace lines 72-132 in Command.cc by a call to a new function. The remaining lines cannot be broken down further - they are the "main loop" of APL Regarding terminal I/O

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

2014-06-10 Thread Juergen Sauermann
)WSID test WAS CLEAR WS )SAVE 2014-06-10 10:57:14 (GMT-5) test )LOAD test SAVED 2014-06-10 11:57:14 (GMT-5) On Tue, Jun 10, 2014 at 10:43 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, thanks, should be fixed in SVN 317. ///

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

2014-06-10 Thread Juergen Sauermann
EFN ERROR+ ∇gg[⎕]∇ ^ On Mon, Jun 9, 2014 at 1:00 PM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, thanks, fixed in SVN 316. /// Jürgen On 06/07/2014 06:17 PM, Blake McBride wrote: Listing a non-existent function shoul

Re: [Bug-apl] Failed assertion

2014-06-10 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 318. /// Jürgen On 06/09/2014 05:15 PM, Blake McBride wrote: == Assertion failed: 0 in Function: init in file: Cell.cc:48 Call stack: --

Re: [Bug-apl] Strange domain error

2014-06-11 Thread Juergen Sauermann
Hi, I have changed the code so that near-zero complex numbers in ⊤ are demoted to integer 0, see SVN 319. This isn't quite in line with the standard who says that ⎕CT is not used in ⊤, but makes more sense to me. /// Jürgen On 06/11/2014 07:05 AM, Blake McBride wrote: Even simpler: )

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

2014-06-11 Thread Juergen Sauermann
) Thanks. Blake On Tue, Jun 10, 2014 at 11:19 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, works on my machine: *)wsid QQQ** **WAS CLEAR WS** ** )SAVE QQQ** **2014-06-10 18 :15:14 (GMT+2)** ** )LO

Re: [Bug-apl] Trace & stop control

2014-06-11 Thread Juergen Sauermann
TEST 1 2 TEST[3] →3 3 4 )SI TEST 1 2 TEST[3] Thanks. Blake On Mon, Jun 9, 2014 at 12:53 PM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, thanks, fixed in SVN 316. /// Jürgen On 06/02/2014 02:20 AM, Blake McBride w

[Bug-apl] Commands made executable

2014-06-11 Thread Juergen Sauermann
Hi, as of SVN 321 I have made commands executable with ⍎. Since this is a rather new feature, expect surprises (and please report them). Not sure how user-defined commands work with this (eg. if they fail) and if they should be allowed in the first place. The answer to Blake's question below

Re: [Bug-apl] Strange domain error

2014-06-11 Thread Juergen Sauermann
alse. Conditional statements control the flow of a program. What happens if we cannot rely on zero being zero? With deep respect and appreciation for what you have done, Blake On Wed, Jun 11, 2014 at 7:54 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi,

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

2014-06-11 Thread Juergen Sauermann
Hi Blake, thanks! I have changed the time display to a method that does not use localtime() and friends. SVN 322. /// Jürgen On 06/11/2014 06:16 PM, Blake McBride wrote: Dear Juergen, Sorry, still seeing the problem. Thanks. Blake On Wed, Jun 11, 2014 at 7:57 AM, Juergen Sauermann

Re: [Bug-apl] Commands made executable

2014-06-12 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 323. /// Jürgen On 06/11/2014 07:10 PM, David Lamkins wrote: That's a nice addition. We get the benefits of access to session commands without a bunch of new quad-foos. I don't really care one way or the other about providing access to usercmds. One the one h

Re: [Bug-apl] Android and the )OFF command

2014-06-12 Thread Juergen Sauermann
Hi Elias, we have the HAVE_ANDROID macro already, so I can return from )OFF without doing anything under android. Note that cmd_OFF is called from other places as well, not sure how they react if we return instead of exit()-ing. /// Jürgen On 06/12/2014 05:20 PM, Elias Mårtenson wrote: On And

Re: [Bug-apl] Android and the )OFF command

2014-06-12 Thread Juergen Sauermann
to do. Is there a way to do this without exiting? Regards, Elias On 12 Jun 2014 17:43, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, we have the HAVE_ANDROID macro already, so I can return from )OFF without doing anything under an

Re: [Bug-apl] Android and the )OFF command

2014-06-12 Thread Juergen Sauermann
st of the user interface in place there may be a more obvious thing that should be done. Regards, Elias On 12 Jun 2014 17:55, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, normally )CLEAR does the job. Could be that some .so files remai

Re: [Bug-apl] )CONTINUE crashes

2014-06-13 Thread Juergen Sauermann
Hi David, thanks for preparing the testcase. I believe I have found the reason (some well known constants like '' are not being saved), but I need a little longer to fix it. /// Jürgen On 06/13/2014 05:13 AM, David Lamkins wrote: Here's the smallest test case I've been able to isolate: ---

Re: [Bug-apl] )CONTINUE crashes

2014-06-14 Thread Juergen Sauermann
7;', it's the presence of *all* of those lines (or some important subset that I failed to isolate) that somehow tickles the bug. Just so you know: this bug is *not* blocking my work. On Fri, 2014-06-13 at 20:02 +0200, Juergen Sauermann wrote: Hi David, thanks for preparing the testcase

Re: [Bug-apl] Trace and Stop control

2014-06-14 Thread Juergen Sauermann
Hi, in ISO they are called ⎕STOP and ⎕TRACE. Both variants S∆/T∆ and ⎕STOP/⎕TRACE are now implemented n GNU APL. For some reason S∆ and T∆ are case sensitive while ⎕STOP and ⎕TRACE are not. /// Jürgen On 04/06/2014 09:56 AM, David B. Lamkins wrote: Oops. Never mind. That's an IBM-ism; not p

Re: [Bug-apl] )CHECK output stream inconsistency

2014-06-14 Thread Juergen Sauermann
Hi David, this is on purpose. Stale variables or indices are an (internal) error, Stale functions are not an error. They aremcreated when a function is erased while pending on the SI stack. The )CHECK command removes stale functions and prints debug info about what it does (or not does). If I

Re: [Bug-apl] )HELP shows wrong args for )MORE command

2014-06-14 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 324. /// Jürgen On 06/12/2014 09:22 PM, David Lamkins wrote: )HELP shows ... )MORE [lib] ws-name ... -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkin

Re: [Bug-apl] Mismatched comment in wslib5/HTML.apl

2014-06-14 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 324. /// Jürgen On 06/12/2014 09:45 PM, David Lamkins wrote: In wslib5/HTML.apl there's a comment: ⍝ )COPY 3 HTML ... which doesn't match the current location of the library. -- "The secret to creativity is knowing how to hide your sources." Albert Ei

Re: [Bug-apl] Several bugs

2014-06-14 Thread Juergen Sauermann
Hi Анастасия, thanks, the first two problems are fixed in SVN 325. Regarding repeated 10?10 always giving the same result I believe this is what the ISO standard wants. It has the advantage that APL programs behave the same way when run several times. IBM APL2 behaves in the same way. For ra

Re: [Bug-apl] Axis argument documentation

2014-06-14 Thread Juergen Sauermann
Hi Blake, thanks, I have added a sentence mentioning that axes have no constraints (SVN 325). There was an example already (function *Z←Average[X] B*). /// Jürgen On 06/13/2014 12:57 AM, Blake McBride wrote: Greetings, Reviewing the docs for axis argument function, it seems to me that th

Re: [Bug-apl] Axis argument functions don't check for duplicate variable names

2014-06-14 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 326. /// Jürgen On 06/13/2014 01:00 AM, Blake McBride wrote: )CLEAR CLEAR WS ∇z←test z [1] z [2] ∇ Duplicate symbol z!!! DEFN ERROR+ ∇z←test z ^ ∇x test x [1] x [2] ∇ Duplicate symbol x!!! DEFN ERROR+ ∇x test x

Re: [Bug-apl] Error when starting

2014-06-14 Thread Juergen Sauermann
Hi Elias, as far as I remember, I haven't changed anything around the shared memory. Please check the permissions and the existence of the parents of /dev/shm/apl-svars: *eedjsa@server64:~/projects/juergen/apl-1.3/src$ ls -l /dev/shm/apl-svars** **-rw-rw-rw- 1 eedjsa eedjsa 20396 2014-06-14 1

Re: [Bug-apl] )IN crashes

2014-06-15 Thread Juergen Sauermann
Hi David, thanks for isolating the fault. I fixed it in SVN 327. The fault was created by native functions being )OUT-ed and )IN-ed. They are now handled properly, but the file created by )OUT is no longer suitable as workspace exchange file when it contains native functions (because native func

Re: [Bug-apl] Error when starting

2014-06-15 Thread Juergen Sauermann
(name, oflag, mode) (-1) # define shm_unlink(name) (-1) #endif For some reason HAVE_LIBRT is not defined on OSX, but it does have shm_open(). If I just remove this block, the resulting binary works find on OSX. Regards, Elias On 15 June 2014 00:28, Juergen Sauermann mailto:juergen.sauerm...@t

Re: [Bug-apl] Error when starting

2014-06-15 Thread Juergen Sauermann
22:28, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, in which library is *shm_open()* contained under OSX? It is *librt.so.1* in linux, but I can change *configure.ac <http://configure.ac>* for OSX. /// Jürgen On 06/14/201

Re: [Bug-apl] )IN crashes

2014-06-16 Thread Juergen Sauermann
ion; these don't seem to cause problems with )OUT and )IN, but neither are they standard APL notation. On Sun, 2014-06-15 at 16:19 +0200, Juergen Sauermann wrote: Hi David, thanks for isolating the fault. I fixed it in SVN 327. The fault was created by native functions being )OUT-ed and )IN-e

Re: [Bug-apl] Revision 327 minor warning

2014-06-16 Thread Juergen Sauermann
Hi Peter, thanks, fixed in SVN 329. I have also change the Makefiles a little to be more picky (-Wall) /// Jürgen On 06/15/2014 06:57 PM, Peter Teeson wrote: GNUAPL/apl-svn/src/UTF8_string.cc:273:1: Control reaches end of non-void function

Re: [Bug-apl] Android features

2014-06-16 Thread Juergen Sauermann
Hi Elias, thanks, included in SVN 329. /// Jürgen On 06/15/2014 10:06 PM, Elias Mårtenson wrote: Do you think it would be possible to apply this patch that avoids setting up the output streams when compiling for Android? The Android version installs its own that redirects the output to Java

Re: [Bug-apl] Question about )DUMP command output

2014-06-16 Thread Juergen Sauermann
Hi Fred, thanks, fixed in SVN 330. /// Jürgen On 06/16/2014 03:48 AM, Frederick H. Pitts wrote: Hello Juergen, For sometime now, I've noticed that the first line of the )DUMP command output is #!/usr/local/bin//usr/local/bin --script -- Is this correct? #!/usr/loca

Re: [Bug-apl] Android features

2014-06-16 Thread Juergen Sauermann
Hi Peter, I see a few problems with your proposal. Currently class *Input* has only static functions, so virtual methods can not be used to distinguish between different implementations of the same function. Suppose we would fix that by using *Input* instances. Instead of eg. #*ifdef HAVE_AN

Re: [Bug-apl] )IN crashes

2014-06-17 Thread Juergen Sauermann
to read an .atf file as written by GNU APL does not guarantee that the saved .atf file will load and run. In the case where program interchange is desired, it is the programmer's responsibility to write code that is compatible with all APL interpreters of interest." On Mon, 2014-06-16 at

Re: [Bug-apl] Android features

2014-06-17 Thread Juergen Sauermann
Hi Peter, the question where some code is hosted depends on a number of questions. There is no general rule for that, just some considerations. 1. the decision where some code shall be hosted is first of all a decision of the person that has written the code (assuming that she also has the cop

Re: [Bug-apl] Fix time inconsistencies

2014-06-17 Thread Juergen Sauermann
Hi David, I have improved the fix time handling a little, see SVN 331. As I have mentioned earlier there will not be full support for function attributes like ⎕AT in GNU APL because: 1. ⎕AT is non-standard and I believe the fix time of a function is not too useful. 2. ⎕AT has no way to set so

Re: [Bug-apl] Crash attempting to open nonexistent file from command line

2014-06-17 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 331. /// Jürgen On 06/17/2014 06:57 AM, David B. Lamkins wrote: $ apl -f nosuchfile __ _ __ __ _____ __ / // | / // / / / / | / __ \ / /

Re: [Bug-apl] Feature request: initial expression from command line

2014-06-17 Thread Juergen Sauermann
Hi David, good idea. I have called it --LX instead of --init because it is similar to ⎕LX. The creation of a .log file for non-testcase (.tc) files was actually a fault that has been fixed. SVN 332. /// Jürgen On 06/17/2014 07:18 AM, David B. Lamkins wrote: Feature request: Add a command-

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

2014-06-17 Thread Juergen Sauermann
Jun 2014 17:38, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: 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.

[Bug-apl] GNU APL Community Web Page

2014-06-17 Thread Juergen Sauermann
Hi, I have linked a "GNU APL Community " web page to the GNU APL home at http://www.gnu.org/software/apl/. The direct link is: http://www.gnu.org/software/apl/Community.html The purpose of this page is to collect links to all kinds of software developments using GNU APL or in relation to GNU

Re: [Bug-apl] Detection of shm_ functions fails on Android

2014-06-20 Thread Juergen Sauermann
Hi Elias, thanks. I am currently working on a shared variable database that works without shm_open() and friends. So the problem will disappear when I am finished. /// Jürgen On 06/19/2014 07:58 PM, Elias Mårtenson wrote: When cross-compiling for Android, the configure script seems to detect

Re: [Bug-apl] Trace doesn't display all lines

2014-06-20 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 334. In GNU APL, pure comment lines without statements do not go into the function body and can therefore not be traced. /// Jürgen On 06/20/2014 06:08 AM, Blake McBride wrote: I have to add, this problem with trace renders the trace facility very significantly

Re: [Bug-apl] Function editing finds missing quotes too early

2014-06-20 Thread Juergen Sauermann
Hi Blake, ythanks, I have changed the ∇-editor so that incorrect lines cause an immediate error message when entered, SVN 334. /// Jürgen On 06/20/2014 05:49 AM, Blake McBride wrote: GNU APL: ∇tt [1] 'aaa [2] x←1 [3] x←2 [4] x←3 [5] ∇ DEFN ERROR+ ∇tt ^ You loose lines 2

Re: [Bug-apl] Trace doesn't display all lines

2014-06-21 Thread Juergen Sauermann
] 33 test[4] 55 I need a trace line between the two trace lines that says: test[2] →4 IBM APL gives that additional trace line. Thanks. Blake On Fri, Jun 20, 2014 at 10:02 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, thanks, fixed in S

Re: [Bug-apl] Crash on )SAVE

2014-06-21 Thread Juergen Sauermann
Hi Blake, I have changed the code so that a backup file is created before )SAVE and )DUMP. This can be controlled via *BACKUP_BEFORE_SAVE yes* in the preferences file. SVN 337. I would still be interested in why the *)SAVE* crashed. What I can see in the xml file is that the )SI was not emp

Re: [Bug-apl] EBADRQC undefined symbol

2014-06-21 Thread Juergen Sauermann
hi Elias, thanks. fixed in SVN 338. /// Jürgen On 06/21/2014 05:40 PM, Elias Mårtenson wrote: In Svar_signals.hh, there is a reference to the error code EBADRQC. This symbol does not exist on OSX. There should be a configure test to see if this is defined, and if not, perhaps use EINVAL inst

Re: [Bug-apl] Crash on )SAVE

2014-06-22 Thread Juergen Sauermann
Hi Blake, a way to reproduce the fault would help. The stack dump on )LOAD does not give me too much information because it is caused by the corrupted .xml file caused by the prior crash on )SAVE. And the stack dump on )SAVE does not contain any information (except that a segfault happens).

Re: [Bug-apl] Programmatic path configuration?

2014-06-22 Thread Juergen Sauermann
Hi Elias, it depends on a number of things (*preferences* files, environment variable *APL_LIB_ROOT*, and *current directory)* see LibPaths::search_APL_lib_root(). You can view the resulting setting with command )LIBS in APL. I believe in your case *APL_LIB_ROOT* is the way to go. /// Jürg

Re: [Bug-apl] Programmatic path configuration?

2014-06-22 Thread Juergen Sauermann
o find one. Jürgen On 06/22/2014 03:42 PM, Elias Mårtenson wrote: Thanks. What about the workspaces paths? Regards, Elias On 22 Jun 2014 15:35, "Juergen Sauermann" mailto:juergen.sauerm...@t-online.de>> wrote: Hi Elias, it depends on a number of things (*prefe

Re: [Bug-apl] First, last parameters to system command doesn't work correctly

2014-06-23 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 339. I also changed from case-insensitive ranges to case-sensitive ranges in commands. /// Jürgen On 06/21/2014 03:39 PM, Blake McBride wrote: See APL2 Programming: Language Reference, page 431. In my case: )FNS Add Add∆days Ail Aln CAL CCJ CJ CR∆Lines

Re: [Bug-apl] )SYMBOLS probably not working as intended

2014-06-24 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 340. /// Jürgen On 06/23/2014 08:00 PM, David Lamkins wrote: )HELP says that )SYMBOLS accepts a from - to range. )SYMBOLS reports the same total symbol count regardless of provided range. (Note that the function of )SYMBOLS with an argument is different in IB

Re: [Bug-apl] Notes on )LIB

2014-06-25 Thread Juergen Sauermann
Hi, thanks, I will change )LIB to ]LIB and make )LIB APL2 compliant. In )LIB no extension will be shown and a + will be printed after the workspace name if both an .apl and an .xml exist in the directory. /// Jürgen On 06/25/2014 06:51 PM, Blake McBride wrote: Dear David, I proposed somethin

Re: [Bug-apl] Notes on )LIB

2014-06-26 Thread Juergen Sauermann
Hi, thanks, done in SVN 341. /// Jürgen On 06/25/2014 11:06 PM, David Lamkins wrote: Good solution. Thanks! On Wed, Jun 25, 2014 at 11:19 AM, Blake McBride <mailto:blake1...@gmail.com>> wrote: I like it. Thanks! On Wed, Jun 25, 2014 at 1:17 PM, Juergen

Re: [Bug-apl] BAD FUNCTION HEADER

2014-06-26 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 342. /// Jürgen On 06/25/2014 03:46 AM, Blake McBride wrote: )CLEAR CLEAR WS ∇test [1] [0] BAD FUNCTION HEADER [0] I noticed the bug when I attempted to edit the header of an existing function. Thanks. Blake

Re: [Bug-apl] BAD FUNCTION HEADER

2014-06-27 Thread Juergen Sauermann
ln [1] [0] [0] abc BAD FUNCTION HEADER [0] Aln [1] The system doesn't like name changing. Thanks. Blake On Thu, Jun 26, 2014 at 8:54 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, than

Re: [Bug-apl] Notes on )LIB

2014-06-27 Thread Juergen Sauermann
but ]LIB accepts only a library number. From: Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> To: David Lamkins mailto:da...@lamkins.net>> Cc: "bug-apl@gnu.org <mailto:bug-apl@gnu.org>" mailto:bug-apl@gnu.org>> Date: Thu,

Re: [Bug-apl] Keymap and underlined ⍺ and ⍵

2014-06-27 Thread Juergen Sauermann
Hi, Fred is correct. I have updated the ]KEYBOARD command to show the new layout (as for dyalog keyboards). ⍙ is Alt-shift-. (two keys right from M). SVN 345. /// Jürgen On 06/27/2014 05:15 PM, Frederick H. Pitts wrote: Elias, My keyboard is configured to have ⍶, ⍹, and ⍷ above ⍺, ⍵

[Bug-apl] Shared memory removed

2014-06-27 Thread Juergen Sauermann
Hi, as of SVN 345 I have changed the implementation of shared variables in GNU APL. So far shared variables used a shared memory (aka. /dev/shm/apl-svars) for the coordination between the different APL interpreters and APs. This has caused problems with environments that did not provide share

Re: [Bug-apl] Notes on )LIB

2014-06-28 Thread Juergen Sauermann
Hi David, thanks, included in SVN 346. /// Jürgen On 06/27/2014 06:39 PM, David Lamkins wrote: ]LIB still ignores symlinks. Patch attached. On Fri, Jun 27, 2014 at 7:43 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi David, thanks, fixed in S

Re: [Bug-apl] )CHECK and print_stale_info()

2014-06-28 Thread Juergen Sauermann
Hi David, this means that an apl value without an owner was detected, but that no more info about that value is available because the value history was disable. The history of a value can be enabled with *./configure VALUE_HISTORY_WANTED=yes* or with *make develop*. If this happens when *)SI

Re: [Bug-apl] Shared memory removed

2014-06-28 Thread Juergen Sauermann
example of how I do it: https://github.com/lokedhs/gnu-apl-mode/blob/master/native/UnixSocketListener.cc#L44 Regards, Elias On 28 June 2014 00:06, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi, as of SVN 345 I have changed the implementation of shared

Re: [Bug-apl] Keymap and underlined ⍺ and ⍵

2014-06-28 Thread Juergen Sauermann
, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi, Fred is correct. I have updated the ]KEYBOARD command to show the new layout (as for dyalog keyboards). ⍙ is Alt-shift-. (two keys right from M). SVN 345. /// Jürgen On 06/27/2014 05:15 PM, Frede

Re: [Bug-apl] [bug-apl] SVN 346 APserver error on startup

2014-06-29 Thread Juergen Sauermann
Hi apm, looks like APserver is not running. Normally APserver is forked automatically by the apl interpreter, but that can fail for numerous reasons. For the automatic start of APserver it must be: - executable, and - located in the same directory as the apl interpreter. You can also start APs

Re: [Bug-apl] Shared memory removed

2014-06-29 Thread Juergen Sauermann
, Juergen Sauermann wrote: I also doubt that anybody is using shared variables at all because I haven't received any trouble reports on them. /// Jürgen That's true in my case. Earlier this week I did make a first attempt to understand how SVs work. In the short term I'll need

Re: [Bug-apl] Command-line bug, apl-1.3

2014-06-29 Thread Juergen Sauermann
Hi Chris, thanks, will be fixed in the next SVN commit. /// Jürgen On 06/28/2014 06:49 PM, Chris Moller wrote: apl.texi and the files derived from it refer to a command line option "[no]COLOR," but in main.cc the options are "Color" and "noColor." apl --noColor works apl --noCOLO

Re: [Bug-apl] [bug-apl] SVN 346 APserver error on startup

2014-06-30 Thread Juergen Sauermann
r* on port *16366*, a connection from *apl* (ephemeral port *47228*) to *APserver*, followed by a connection from *APnnn* (ephemereal ort *48372*) to *APserver*. /// Jürgen On 06/29/2014 04:54 PM, apm wrote: On 29/06/14 05:16 AM, Juergen Sauermann wrote: Hi apm, looks like APserv

Re: [Bug-apl] ]KEYBOARD patch

2014-06-30 Thread Juergen Sauermann
Hi David, thanks, I have added an optional layout number to the ]KEYB command, see SVN 349. I have not changed the default display of ]KEYB because ⍷ is not a standard GNU APL operator (although accepted on input) and cut-and-paste from the default ]KEYB output would be messed up. Just do:

Re: [Bug-apl] Complete layout and config for WASD custom APL keyboard

2014-06-30 Thread Juergen Sauermann
Hi Blake, I have added your files to: support-files/WASD, SVN 350. Thanks for producing them. Please keep an eye on the files to make sure that they all are up-to-date (I lost the overview after all the keyboard/character related emails lately). /// Jürgen On 06/18/2014 03:55 AM, Blake McBr

Re: [Bug-apl] Keymap and underlined ⍺ and ⍵

2014-06-30 Thread Juergen Sauermann
Hi Blake, since the physical keycaps of the Dyalog keyboard shows ! and not ¡ we should leave matters as they are in order to not confuse the user. /// Jürgen On 06/29/2014 11:12 PM, Blake McBride wrote: Thanks. The ]KEYBOARD command now matches my keyboard. Subsequent to creating my Dya

Re: [Bug-apl] Keymap and underlined ⍺ and ⍵

2014-06-30 Thread Juergen Sauermann
Hi Blake, I removed ⍫ from SHIFT-ALT-G. I left ⍙ on the SHIFT-ALT-H key because in my opinion SHIFT-ALT-. makes no sense at all, while ⍙ = SHIFT-∆ does. So the keyboard layout shown in ]KEYB and also the config files shipped with GNU APL have ⍙ in two places. /// Jürgen On 06/29/2014 11

Re: [Bug-apl] ]KEYBOARD patch

2014-06-30 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 352. /// Jürgen On 06/30/2014 06:35 PM, David Lamkins wrote: Nice. Thank you. BTW, there's still an extra space after ≢ in both ]KEYB 0 and ]KEYB 1. On Mon, Jun 30, 2014 at 7:43 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrot

Re: [Bug-apl] [bug-apl] SVN 346 APserver error on startup

2014-07-01 Thread Juergen Sauermann
Hi ELias, sorry, my fault. Should have been -l 37 On 07/01/2014 08:41 AM, Elias Mårtenson wrote: Thank you. I tried to use the -l flag for apl, but it says the argument is not accepted. $ dist/bin/apl -l37 unknown option '-l37' Regards, Elias

Re: [Bug-apl] [bug-apl] SVN 346 APserver error on startup

2014-07-01 Thread Juergen Sauermann
rror. It seems to me as though when GNU APL is started within Emacs, the APserver doesn't have time to initialise before apl attempts to connect to it. That's the only explanation I can come up with right now. Regards, Elias On 1 July 2014 17:57, Juergen Sauermann <mailto:juerge

Re: [Bug-apl] [bug-apl] SVN 346 APserver error on startup

2014-07-01 Thread Juergen Sauermann
Hi, I guess I found the fault. Missing MSG_WAITALL flag in APserver. Fixed in SVN 353. /// Jürgen

Re: [Bug-apl] Patch to show directories in )LIB and ]LIB

2014-07-01 Thread Juergen Sauermann
Hi David, thanks, included in SVN 353. /// Jürgen On 06/30/2014 08:38 PM, David Lamkins wrote: Here's an improved patch that also sorts ]LIB output. On Sun, Jun 29, 2014 at 7:34 PM, David B. Lamkins > wrote: Since )LIB and ]LIB will accept path names, I tho

Re: [Bug-apl] Mastering Dyalog APL - link outdated

2014-07-01 Thread Juergen Sauermann
Hi David, thanks, updated in SVN 353. /// Jürgen On 06/30/2014 11:05 PM, David Lamkins wrote: In README-7-more-info, the link to Mastering Dyalog APL now redirects to the Dyalog home page. Use this link instead: http://www.dyalog.com/mastering-dyalog-apl.htm -- "The secret to creativity is

Re: [Bug-apl] Some thoughts regarding optimization of memory allocation

2014-07-01 Thread Juergen Sauermann
Hi David, I agree to your analysis below. The problem with "in place" modification like A←A,x is another one: the ownership of A may be unknown. Some time ago we had an optimization of A⍴B modifying B in place when A was ≤⍴B. That looked good initially but fired back when static APL values (l

Re: [Bug-apl] Identify function

2014-07-01 Thread Juergen Sauermann
Hi Elias, I looked in "Mastering APL" from Dyalog and could not find it. They call + the identity function. And what would be the use of it? /// Jürgen On 06/30/2014 06:24 AM, Elias Mårtenson wrote: I was looking at the Dyalog reference manual and realised that they support monadic ⊢ (right)

Re: [Bug-apl] .apl.history

2014-07-02 Thread Juergen Sauermann
Hi Blake, you can set the path in the preferences files: READLINE_HISTORY_PATH = /home/... /// Jürgen On 07/01/2014 11:14 PM, Blake McBride wrote: GNU APL creates a .apl.history in whatever directory APL is started up in. This is unlike all other system I've seen, and a problem when you do

Re: [Bug-apl] Identify function

2014-07-02 Thread Juergen Sauermann
number with the imaginary part negated. If the argument of conjugate is real or non-numeric, conjugate returns the argument unchanged. From: Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> To: "Elias Mårtenson" mailto:l

Re: [Bug-apl] ⎕RL wrong initial value

2014-07-02 Thread Juergen Sauermann
Hi, I agree with Elias that 16807 is a pretty arbitrary and useless value, but for the sake of IBM APL2 compatibility I have changed GNU APL to use it as well. SVN 355. Note that localizing ⎕RLis currently not fully correct, but this ts on my TODO list /// Jürgen On 07/02/2014 05:19 AM, B

Re: [Bug-apl] )COPY should not copy ⎕PW

2014-07-02 Thread Juergen Sauermann
Hi, I have changed the code so that ⎕PW is not copied when no objects are specified in the )COPY command, SVN As much as I like IBM APL2 compatibility there is a limit to it when it begins to make no sense anymore. For example if I would say: * )COPY some_WS A B ⎕PW* then IBM APL2 wo

Re: [Bug-apl] [bug-apl] SVN 346 APserver error on startup

2014-07-02 Thread Juergen Sauermann
20:29, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi, I guess I found the fault. Missing MSG_WAITALL flag in APserver. Fixed in SVN 353. /// Jürgen

Re: [Bug-apl] .apl.history

2014-07-02 Thread Juergen Sauermann
, although it may allow me to specify a config file location as you do, the default is always in the home directory. Thanks. Blake On Wed, Jul 2, 2014 at 6:24 AM, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi Blake, you can set the path in the prefe

[Bug-apl] rank operator with axis

2014-07-02 Thread Juergen Sauermann
Hi, I have changed the rank operator with axis, i.e. ?[X]. The old implementation tried to improve on the somewhat broken syntax specified in the ISO standard: * A ?[y] B ??A ? y B* * ?[y] B ??? y B* The new implementation follows NARS which uses *?[X] *instead of *?* when co

Re: [Bug-apl] .apl.history

2014-07-02 Thread Juergen Sauermann
emember to potentially edit that file for each user or machine I am on to account for the different home directory. I don't have to do that with my .gnu-emacs file. Either way is fine. Just sharing my opinion. Thanks! Blake On Wed, Jul 2, 2014 at 9:52 AM, Juergen Sauermann mailto:juer

Re: [Bug-apl] Alpha-underbar doesn't work in lambda functions

2014-07-03 Thread Juergen Sauermann
Hi Elias, thanks, fxed in SVN 357. /// Jürgen On 06/30/2014 05:51 AM, Elias Mårtenson wrote: I'm doing a simple test with alpha-underbar in a lambda function and getting an error message. To reproduce: *F ← { ⍺ ⍶ ⍵ }* *10 + F 20* VALUE ERROR F[1] λ←⍺ ⍶ ⍵ ^ Regards, Elias

Re: [Bug-apl] Fibonacci sequence

2014-07-03 Thread Juergen Sauermann
Hi, how about this: * F←{ ⍎ ↑(↑⍵>¯1↑⍵) ↓(1≠⍴,⍵) ↓'F ⍵,1 1' '¯1↓1↓⍵' 'F ⍵, +/¯2↑⍵' }** ** ** F 44** **1 1 2 3 5 8 13 21 34** * /// Jürgen On 07/03/2014 06:39 PM, Elias Mårtenson wrote: I am actually trying to do it with GNU APL. I just got the challenges from Dyalog. :-) I'll se

Re: [Bug-apl] Not-identical-to

2014-07-03 Thread Juergen Sauermann
Hi, thanks, added in SVN 358. It also has a monadic form returning ⍬⍴(⍴B),1. (according to NARS) /// Jürgen On 06/30/2014 04:35 PM, Elias Mårtenson wrote: Now that we have ≢ (not-identical-to) in the keymap, would it make sense to implement support for it as well? As far as I know, it only

Re: [Bug-apl] Not-identical-to

2014-07-04 Thread Juergen Sauermann
ds, Elias On 4 July 2014 01:23, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wrote: Hi, thanks, added in SVN 358. It also has a monadic form returning ⍬⍴(⍴B),1. (according to NARS) /// Jürgen On 06/30/2014 04:35 PM, Elias

Re: [Bug-apl] .apl.history

2014-07-04 Thread Juergen Sauermann
Hi David et al., I believe your proposal below does not work in general. Often (if not to say normally) GNU APL is installed by root, so $HOME would be /root. I believe most system administrators would not like programs to install config files there (and it would not even be readable by other

Re: [Bug-apl] [bug-apl] SVN 346 APserver error on startup

2014-07-04 Thread Juergen Sauermann
Hi Elias, works on my machine even with absolute paths. That's why I need the printouts when started with -l37 (that shows the binpath that is being used). Also the command line how apl was started because that is the basis for computing the binpath. /// Jürgen On 07/03/2014 08:22 AM, Elias

[Bug-apl] Elias' SQL code

2014-07-05 Thread Juergen Sauermann
Hi, I have added Elias' SQL code (native functions and APL workspace) so that it is now built and installed automatically with GNU APL. Elias, thanks for providing this! /// Jürgen

Re: [Bug-apl] Elias' SQL code

2014-07-06 Thread Juergen Sauermann
wxr-xr-x. 1 root root 569481 Jul 5 11:18 /usr/local/lib/apl/lib_sql.so.0.0.0 0 On Sat, 2014-07-05 at 16:03 +0200, Juergen Sauermann wrote: Hi, I have added Elias' SQL code (native functions and APL workspace) so that it is now built and installed automatically with GNU APL. Elias, thanks for providing this! /// Jürgen

Re: [Bug-apl] Elias' SQL code

2014-07-06 Thread Juergen Sauermann
noticed that the community web page says that the library supports mysql and postgres, when in fact it supports SQLite and PostgreSQL. Regards, Elias On 6 July 2014 17:29, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote: Hi, I will look into it. ./configu

Re: [Bug-apl] Elias' SQL code

2014-07-06 Thread Juergen Sauermann
/06/2014 11:32 AM, Elias Mårtenson wrote: I also noticed that the community web page says that the library supports mysql and postgres, when in fact it supports SQLite and PostgreSQL. Regards, Elias On 6 July 2014 17:29, Juergen Sauermann <mailto:juergen.sauerm...@t-online.de>> wrote:

Re: [Bug-apl] Elias' SQL code

2014-07-06 Thread Juergen Sauermann
Hi David, I believe there is (in *m4/ax_lib_sqlite3.m4*). /// Jürgen On 07/05/2014 08:24 PM, David B. Lamkins wrote: Nice. Should there be a ./configure check for the sqlite3.h file? On Sat, 2014-07-05 at 16:03 +0200, Juergen Sauermann wrote: Hi, I have added Elias' SQL code (n

Re: [Bug-apl] format by example and comma

2014-07-06 Thread Juergen Sauermann
Hi David, thanks, it is a bug. Fixed in SVN 361. /// Jürgen On 07/06/2014 05:48 AM, David B. Lamkins wrote: '5,550.05' ⍕9 9.0 '5,550.05' ⍕99 99.0 '5,550.05' ⍕100 ,100.0 '5,550.05' ⍕999 ,999.0 '5,550.05' ⍕1000 1,000.0

Re: [Bug-apl] Elias' SQL code

2014-07-06 Thread Juergen Sauermann
Hi Blake, yes, sorry. The bug-apl mailing list just passed the 2000'th email and I did not yet have the time to fully understand the different contributions related to file systems. When I briefly read the ISO standard I thought an SQL database with integers as keys and 10 ⎕CR of a value would

Re: [Bug-apl] SQL code duplicated

2014-07-06 Thread Juergen Sauermann
Hi Blake, correct. fixed in SVN 362. /// Jürgen On 07/06/2014 03:39 PM, Blake McBride wrote: SQL.apl is located in: workspaces/SQL.apl wslib5/SQL.apl I think it should only be in one place. Thanks. Blake

Re: [Bug-apl] Defined operator won't accept right constant function

2014-07-06 Thread Juergen Sauermann
Hi David, thanks, fixed in SVN 363. Please note that using a value as right function argument of an operator is IMHO a rather dubious construct. I know that IBM APL2 allows it, but the ISO standard is rather unclear about it. On one hand ISO defines the ⍤ operator using a value *y *as right op

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