[Bug-apl] Error starting APserver

2014-06-29 Thread Elias Mårtenson
I upgraded to the latest version at home last night and everything ran fine. My home machine is running Ubuntu. When I did the same on my work machine which is using Arch Linux, I'm getting the following error: ::connect() to existing APserver failed: Connection refused *** using local Svar_DB

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

2014-07-01 Thread Elias Mårtenson
This is an interesting approach, to have the interpreter automatically apply the typical memory allocation optimisations rather than you having to do it yourself. That said, I think it needs to be a bit more clever. There are many occurrences where one appends a single element to a large array.

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

2014-07-01 Thread Elias Mårtenson
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 On 30 June 2014 22:26, Juergen Sauermann juergen.sauerm...@t-online.de wrote: Hi, I added some printouts showing port numbers involved in the

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

2014-07-01 Thread Elias Mårtenson
, Elias Mårtenson loke...@gmail.com wrote: This is weird. I only get the error when starting GNU APL from within Emacs. When I start it manually, using exactly the same arguments (including the --emacs part) it doesn't fail. If I manually start APserver and run apl from Emacs it also works

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

2014-07-01 Thread Elias Mårtenson
to be some type size confusion on 32-bit machines. The code runs on my 64-bit linux but not on my 32-bit linux. I'll look into this. /// Jürgen On 07/01/2014 12:31 PM, Elias Mårtenson wrote: This is weird. I only get the error when starting GNU APL from within Emacs. When I start

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

2014-07-01 Thread Elias Mårtenson
On Tue, Jul 1, 2014 at 1:22 AM, Elias Mårtenson loke...@gmail.com wrote: This is an interesting approach, to have the interpreter automatically apply the typical memory allocation optimisations rather than you having to do it yourself. That said, I think it needs to be a bit more clever

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

2014-07-01 Thread Elias Mårtenson
I agree with the general point, but is it really executed that often? (good) APL code tends to do a lot with few operations. It would perhaps make sense to benchmark how many comma functions are called in a typical program? Regards, Elias On 1 Jul 2014 21:25, Juergen Sauermann

Re: [Bug-apl] Identify function

2014-07-01 Thread Elias Mårtenson
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) as the identity function. Adding support for this in GNU APL is trivial. The attached patch implements this. Regards, Elias

Re: [Bug-apl] Identify function

2014-07-01 Thread Elias Mårtenson
-online.de To: Elias Mårtenson loke...@gmail.com Cc: bug-apl@gnu.org bug-apl@gnu.org Date: Tue, 01 Jul 2014 17:04:24 +0200 Subject: Re: [Bug-apl] Identify function Hi Elias, I looked in Mastering APL from Dyalog and could not find it. They call + the identity function. And what would

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

2014-07-01 Thread Elias Mårtenson
The standard says the following: *The initial value of random-link in a clear-workspace is that member of the internal-* *value-set for random-link given by the implementation-parameter initial-random-link.* So, setting it to 1 seems to be reasonable enough. Regards, Elias On 2 July 2014

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

2014-07-01 Thread Elias Mårtenson
The standard spec is not entirely clear on this, but the way I read it suggests that everything it supposed to be copied. Regards, Elias On 2 July 2014 09:58, Blake McBride blake1...@gmail.com wrote: According to the IBM APL2 Programming Language Reference (page 423), the )COPY command

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

2014-07-01 Thread Elias Mårtenson
not smart enough to understand that spec. IBM's language manual is readable, and the value it is clear about is what I expected. Also, I just tested IBM APL 2. Initial ⎕RL is 16807. If any value is valid, why not match IBM APL 2 and their Language Manual? On Tue, Jul 1, 2014 at 9:20 PM, Elias

Re: [Bug-apl] .apl.history

2014-07-02 Thread Elias Mårtenson
I have to agree with Blake here. Ideally there should be a call to getenv(HOME) and if that returns non-NULL, then use the .apl_history in $HOME/.apl/apl_history or something like that. If it returns NULL, well, then fall back to current directory I suppose. I could make the Emacs mode use the

Re: [Bug-apl] .apl.history

2014-07-02 Thread Elias Mårtenson
gave. On Wed, Jul 2, 2014 at 11:00 AM, Elias Mårtenson loke...@gmail.com wrote: Neat, although I believe directly looking at the PATH variable is more portable. It works on all Unices as well as Windows. Regards, Elias On 2 July 2014 23:54, Blake McBride blake1...@gmail.com wrote: I

Re: [Bug-apl] .apl.history

2014-07-02 Thread Elias Mårtenson
at 11:27 AM, Elias Mårtenson loke...@gmail.com wrote: Arguably, I can't think of a single situation where PATH isn't set while getpwuid would work. I could be wrong though. Regards, Elias On 3 July 2014 00:13, Blake McBride blake1...@gmail.com wrote: What was recommended is to use PATH

Re: [Bug-apl] .apl.history

2014-07-02 Thread Elias Mårtenson
. $HOME is set. On Wed, Jul 2, 2014 at 11:34 AM, Elias Mårtenson loke...@gmail.com wrote: Are you sure of that? I'm 99% sure that PATH is always set on OSX. Regards, Elias On 3 July 2014 00:31, Blake McBride blake1...@gmail.com wrote: A note from http://stackoverflow.com/questions

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

2014-07-03 Thread Elias Mårtenson
Elias, latest SVN? I fixed another issue in SVN 354 or so which caused execve() so fail. The *apl -l 37* and *APserver -v* outputs would help. /// Jürgen On 07/02/2014 06:03 AM, Elias Mårtenson wrote: It still doesn't work for me. Same error. Regards, Elias On 1 July 2014 20:29

Re: [Bug-apl] Fibonacci sequence

2014-07-03 Thread Elias Mårtenson
a generator that can produce the next number in the sequence, and a test to check whether you're done.You can run the generator and test in a tail-recursive loop while accumulating the results. I don't know that you'd need to use local functions, but don't forget that's available. From: Elias

Re: [Bug-apl] Fibonacci sequence

2014-07-03 Thread Elias Mårtenson
Chemical Engineer On Thu, 2014-07-03 at 22:12 +0800, Elias Mårtenson wrote: I was playing around with solving the Dyalog challenge, and I found them pretty easy with the exception of one. The goal was to write a lambda function that given a single integer, returns a list of the Fibonacci

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

2014-07-03 Thread Elias Mårtenson
, 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 has a dyadic

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

2014-07-03 Thread Elias Mårtenson
Oh wait... Forget it. I see it now. It's a clever way of seeing how many first-axis elements there are, with 1 being returned for scalars, yes? Regards, Elias On 4 July 2014 10:34, Elias Mårtenson loke...@gmail.com wrote: I have now been looking at the monadic form for a while, and I just

Re: [Bug-apl] Elias' SQL code

2014-07-06 Thread Elias Mårtenson
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 juergen.sauerm...@t-online.de wrote: Hi, I will look into it. ./configure should properly

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

2014-07-06 Thread Elias Mårtenson
When I build and install GNU APL, I specify --prefix=/home/elias/src/apl/dist. I then expect the PSYS to be /home/elias/src/apl/dist/lib/apl/wslib*[0-9]*. Now, typing )LIBS at the prompt gives me: /usr/local/lib/apl/wslib*[0-9]*. This is not correct, is it? Regards, Elias

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

2014-07-06 Thread Elias Mårtenson
by a stale apl binary in /usr/local/bin. /// Jürgen On 07/06/2014 03:59 PM, Elias Mårtenson wrote: When I build and install GNU APL, I specify --prefix=/home/elias/src/apl/dist. I then expect the PSYS to be /home/elias/src/apl/dist/lib/apl/wslib*[0-9]*. Now, typing )LIBS at the prompt gives

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

2014-07-07 Thread Elias Mårtenson
Ordering by size first makes very little sense to me. It makes it very hard to sort any list of strings. I was hoping that the following would have done so, but it also suffers from the length first issue: *z[⍋ ⎕UCS¨ z←'aa' 'xx' 'aaa' 'xxx']* aa xx aaa xxx What is the proper way to sort

Re: [Bug-apl] Request: lib_file_io additions

2014-07-07 Thread Elias Mårtenson
How about adding support for a dyadic form where the left-side argument is a glob pattern to be used when matching the file names? http://linux.die.net/man/3/glob Regards, Elias On 8 July 2014 00:52, David Lamkins dlamk...@gmail.com wrote: Thanks, Jüergen. I'll change my code tonight to use

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

2014-07-07 Thread Elias Mårtenson
strings as if they encode numbers in a sufficiently large base. If you want to sort strings, use dyadic grade. The left argument specifies a collating sequence. On Tue, 2014-07-08 at 11:43 +0800, Elias Mårtenson wrote: Ordering by size first makes very little sense to me. It makes it very

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

2014-07-07 Thread Elias Mårtenson
a default collating order (based upon ordinal value of the code points themselves) for the 8-bit ASCII subset: ⎕ucs ⎕io-⍨⍳256 On Tue, 2014-07-08 at 12:09 +0800, Elias Mårtenson wrote: Dyadic grade doesn't make much sense in the context of Unicode though. How do you grade an arbitrary

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

2014-07-08 Thread Elias Mårtenson
handy if that expression did what we'd like it to do. I guess it'd fall under the category of conforming extension. Neither IBM nor ISO APL define a behavior for dyadic grade with other than a character matrix as the right argument. On Tue, 2014-07-08 at 12:40 +0800, Elias Mårtenson wrote

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

2014-07-08 Thread Elias Mårtenson
said below) then it comes from the system's preference file. The question is then: which one? This is what apl -l 37 will 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

Re: [Bug-apl] Error building on OSX

2014-07-08 Thread Elias Mårtenson
The value should be SOL_SOCKET (also true for Linux). Regards, Elias On 8 July 2014 21:42, Juergen Sauermann 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

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

2014-07-08 Thread Elias Mårtenson
There is already the SIGINT signal which is processed by GNU APL to interrupt a function execution. However, this interruptability is not extended to the layout function. On 9 July 2014 09:09, Peter Teeson peter.tee...@icloud.com wrote: In Sharp APL (IPSA) we had a panic int which interrupted

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

2014-07-08 Thread Elias Mårtenson
Wow. This is the first I heard of χ. Shouldn't it be mapped to the keyboard somewhere? Regards, Elias On 9 July 2014 00:44, David Lamkins da...@lamkins.net wrote: Thanks, Jüergen. Confirmed fixed. On Sun, Jul 6, 2014 at 7:45 AM, Juergen Sauermann juergen.sauerm...@t-online.de wrote:

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

2014-07-08 Thread Elias Mårtenson
juergen.sauerm...@t-online.de wrote: 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

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

2014-07-08 Thread Elias Mårtenson
July 2014 10:58, Blake McBride blake1...@gmail.com wrote: I think the layout function need two modifications: 1. enable ^C 2. at least for large data, output as you go rather than format the whole thing and then output the whole thing --blake On Tue, Jul 8, 2014 at 9:27 PM, Elias

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

2014-07-08 Thread Elias Mårtenson
Yeah, and neither would Jürgen. Seems like I was in the minority on that one. :-) Regards, Elias On 9 July 2014 11:10, Blake McBride blake1...@gmail.com wrote: I wouldn't do that! On Tue, Jul 8, 2014 at 10:01 PM, Elias Mårtenson loke...@gmail.com wrote: I suggested some time ago

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

2014-07-08 Thread Elias Mårtenson
wondered what χ is used for right after the layout change. ;) On Wed, 2014-07-09 at 10:57 +0800, Elias Mårtenson wrote: Yes, you're right. :-) You know my code better than myself. Regards, Elias On 9 July 2014 10:50, David B. Lamkins dlamk...@gmail.com wrote: Hmm? It's

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

2014-07-08 Thread Elias Mårtenson
On 9 July 2014 11:17, David B. Lamkins dlamk...@gmail.com wrote: On Wed, 2014-07-09 at 11:14 +0800, Elias Mårtenson wrote: I'm still wondering what ⌺ (quad-diamond), ¢ (cent-sign) and £ (pound-sign) are used for. Well, the currency symbols are pretty obvious... At least to an American

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

2014-07-09 Thread Elias Mårtenson
It would be nice to be able to access the values of ⍵ and ⍺ (and I suppose χ) from the outer lambda from a nested lambda. I.e, I'd like to following to return the value 1100: * { ⍵ + {⍵×⍵⍵} 10 } 100* In other words, the ⍵⍵ in the inner lambda would refer to the value 100 (i.e. the value of

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

2014-07-09 Thread Elias Mårtenson
I can't say it makes much sense in non-opensource programs either. My guess is that these things are more of a relic of a time when people were experimenting with such things. There is a reason no other languages do this. However, I do see a different use for non-suspendible functions. I see it

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

2014-07-09 Thread Elias Mårtenson
How about having the )FNS, )OPS and )VARS commands filter out names that contain a ⍙ symbol by default? Since the idea is that those are internal names it would make sense to hide them (unless some other flag is given). Opinions? Regards, Elias

Re: [Bug-apl] Request: lib_file_io additions

2014-07-09 Thread Elias Mårtenson
() with readdir(). http://linux.die.net/man/3/fnmatch On Tue, 2014-07-08 at 11:44 +0800, Elias Mårtenson wrote: How about adding support for a dyadic form where the left-side argument is a glob pattern to be used when matching the file names? http://linux.die.net/man/3/glob Regards

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

2014-07-09 Thread Elias Mårtenson
I was looking at your code, and I noticed that it's SQLite-specific. WOuldn't it make sense to make it SQL-implementation-agnostic? Based on what I can see, the only SQLite-specific SQL you have in there is replace into which I had never heard about before. Regards, Elias On 9 July 2014 01:22,

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

2014-07-09 Thread Elias Mårtenson
... On Thu, 2014-07-10 at 10:25 +0800, Elias Mårtenson wrote: I was looking at your code, and I noticed that it's SQLite-specific. WOuldn't it make sense to make it SQL-implementation-agnostic? Based on what I can see, the only SQLite-specific SQL you have in there is replace

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

2014-07-09 Thread Elias Mårtenson
in favor of SQLite... On Thu, 2014-07-10 at 10:25 +0800, Elias Mårtenson wrote: I was looking at your code, and I noticed that it's SQLite-specific. WOuldn't it make sense to make it SQL-implementation-agnostic? Based on what I can see, the only SQLite-specific SQL you have

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

2014-07-09 Thread Elias Mårtenson
clear what it does. Maybe you like * { ⍵ + {⍵×WW} 10 ⊣ WW←⍵ } 100 1100 * imore? On 07/09/2014 04:08 PM, Elias Mårtenson wrote: I know, but it's much more ugly than my proposal, don't you think? Regards, Elias On 9 July 2014 22:06, Juergen Sauermann juergen.sauerm...@t-online.de

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

2014-07-09 Thread Elias Mårtenson
, Elias Mårtenson wrote: Yes, that's how I work too. My home server contains a Postgres instance that I use for pretty much everything. It's quite convenient. Regards, Elias On 10 July 2014 12:53, Blake McBride blake1...@gmail.com wrote: Greetings

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

2014-07-09 Thread Elias Mårtenson
the object type (or table name) and the other column holds the next id. Regards, Elias On 10 July 2014 13:38, Elias Mårtenson loke...@gmail.com wrote: Thank you for looking into this. Since the SQL API is database-agnostic, it would make sense to make your library the same. Instead of trying

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

2014-07-10 Thread Elias Mårtenson
. On Jul 9, 2014 10:38 PM, Elias Mårtenson loke...@gmail.com wrote: Thank you for looking into this. Since the SQL API is database-agnostic, it would make sense to make your library the same. Instead of trying to make sense of the file specification, why don't you just pass it along to the SQL API

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

2014-07-10 Thread Elias Mårtenson
On 11 July 2014 07:52, Blake McBride blake1...@gmail.com wrote: On Thu, Jul 10, 2014 at 6:28 PM, David Lamkins da...@lamkins.net wrote: That's a matter of opinion. I happen to believe that satisfying the spec is an excellent starting position. I live in Tenessee. One could make an

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

2014-07-10 Thread Elias Mårtenson
. Interesting! On Thu, Jul 10, 2014 at 10:16 PM, Elias Mårtenson loke...@gmail.com wrote: On 11 July 2014 10:23, Elias Mårtenson loke...@gmail.com wrote: I think what David really wants is an interface to Berkeley DB http://en.wikipedia.org/wiki/Berkeley_DB. I can build that if you want

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

2014-07-10 Thread Elias Mårtenson
Would you be willing to move the CF stuff on top of GDBM? It's a much better fit for it, and will give you everything you do with SQLite today, without the extra overhead (SQLite is also not very efficient if you open multiple databases). Regards, Elias On 11 July 2014 12:21, David B. Lamkins

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

2014-07-10 Thread Elias Mårtenson
databases? Any idea why? A global lock, perhaps...? On Fri, 2014-07-11 at 12:24 +0800, Elias Mårtenson wrote: Would you be willing to move the CF stuff on top of GDBM? It's a much better fit for it, and will give you everything you do with SQLite today, without the extra overhead (SQLite is also

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

2014-07-10 Thread Elias Mårtenson
that functionality without having to write it myself (at least in the initial implementation). SQL is optional to BDB on Linux builds. I can live without the SQL support... On Fri, 2014-07-11 at 12:24 +0800, Elias Mårtenson wrote: Would you be willing to move the CF stuff on top of GDBM? It's

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

2014-07-10 Thread Elias Mårtenson
, or is that a limitation of DBM as compared to GDBM. Either way, thanks. I'll start with BDB and compare it to SQLite. On Fri, 2014-07-11 at 13:07 +0800, Elias Mårtenson wrote: BDB is much heavier than DBM (of which GDBM is an implementation). DBM only allows a single process to open the database for writing

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

2014-07-11 Thread Elias Mårtenson
On 11 July 2014 22:15, Blake McBride blake1...@gmail.com wrote: 1. It seems that GDBM is really a file manager and not a database. What I mean by that is that there is a one-to-one relationship between a Unix file and a GDBM file. You can't store multiple files in one Unix file like SQLite.

[Bug-apl] Formal format for function documentation

2014-07-13 Thread Elias Mårtenson
Most modern (and some not-so-modern) languages have a standard way of attaching documentation to functions and other symbols. For example, in Java documentation looks like this: */*** * * Example method that adds 1 to its argument. The documentation* * * is a normal comment that comes

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

2014-07-13 Thread Elias Mårtenson
implemented using defined functions; no need to extend the built-in functions. Take advantage of the position of the header comment to either read or modify that comment using a simple utility based upon ⎕CR and ⎕FX. On Mon, 2014-07-14 at 00:04 +0800, Elias Mårtenson wrote: And here I am, replying

Re: [Bug-apl] Each bug

2014-07-13 Thread Elias Mårtenson
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')* comparing X= ┌─┐ │┌→──┐│ ││foo││ │└───┘│ └∊┘ Y=

Re: [Bug-apl] ⎕ES wrong message

2014-07-14 Thread Elias Mårtenson
Jürgen, Do you think it would be possible to implement some way of retrieving not only the error code, but also the )MORE text from an exception inside an ⎕EA? The reason for this is that in my SQL∆WithTransaction call, I need to call the rollback function if there is an error, but then I want

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

2014-07-14 Thread Elias Mårtenson
This information is already stored. The Emacs mode uses this when navigating to definition of a function. Regards, Elias On 15 Jul 2014 02:19, David Lamkins da...@lamkins.net wrote: I apologize for the confusion, but this proposal is about capturing the file location of a function's

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

2014-07-14 Thread Elias Mårtenson
Did you mean sqlite3.h? Then that is actually correct. ResultValue is specific to 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

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

2014-07-14 Thread Elias Mårtenson
:09, Blake McBride blake1...@gmail.com wrote: The thing that started this is that GNU APL was not able to compile without the SQLite .h files. In other words, GNU APL requires SQLite. I think he wants it to only use SQLite when ./configure finds it. On Mon, Jul 14, 2014 at 9:02 PM, Elias

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

2014-07-15 Thread Elias Mårtenson
.* into the if SQLITE3 part of the makefile. Jay. On 15 July 2014 03:12, Elias Mårtenson loke...@gmail.com wrote: It's not supposed to. I think the error is that it still tries to compile ResultValue.cc even though SQLite wasn't found during the ./configure phase. It's most definitely

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

2014-07-16 Thread Elias Mårtenson
Thanks. Could you update again so that you get the version that has the documentation strings included? Regards, Elias On 16 July 2014 21:39, Juergen Sauermann juergen.sauerm...@t-online.de wrote: Hi, thanks, updated in SVN 377. /// Jürgen On 07/15/2014 04:12 AM, Elias Mårtenson

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

2014-07-16 Thread Elias Mårtenson
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 loke...@gmail.com wrote: Thanks. Could you update again so that you get the version that has the documentation strings included? Regards, Elias On 16 July 2014

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

2014-07-16 Thread Elias Mårtenson
Well, that would be great too. My parsing of the comments right now is very simple, and I can easily change it if a different approach is proposed. If anything more complex than just a simple block of text is decided upon, I can add features to the Emacs mode to provide syntax highlighting and

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

2014-07-16 Thread Elias Mårtenson
Oh neat, I didn't know that. :-) Regards, Elias On 16 July 2014 22:20, Juergen Sauermann juergen.sauerm...@t-online.de wrote: Hi, actually *]SYMBOL *shows it as *Creator* attribute. /// Jürgen On 07/15/2014 04:39 AM, Elias Mårtenson wrote: Just some extra information

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

2014-07-16 Thread Elias Mårtenson
{_⍙∆¯} are recognized. Did you consider trimming the local variables list? To me, that doesn't seem especially useful in a documentation buffer. On Wed, Jul 16, 2014 at 3:38 AM, Elias Mårtenson loke...@gmail.com wrote: And it's completed. C-c C-h on a function should now display its documentation

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

2014-07-17 Thread Elias Mårtenson
{_⍙∆¯} are recognized. Did you consider trimming the local variables list? To me, that doesn't seem especially useful in a documentation buffer. On Wed, Jul 16, 2014 at 3:38 AM, Elias Mårtenson loke...@gmail.com wrote: And it's completed. C-c C-h on a function should now display its documentation

[Bug-apl] Another SQL module update

2014-07-18 Thread Elias Mårtenson
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 ⍬ as it's supposed to. Regards, Elias

Re: [Bug-apl] Additional APL options configurable in gnu-apl-mode?

2014-07-18 Thread Elias Mårtenson
Yes, I'll add that today. Sorry about that. Regards, Elias On 19 Jul 2014 08:02, David Lamkins da...@lamkins.net wrote: Elias, have you given any further thought to adding configurable APL options to gnu-apl-mode? I wouldn't necessarily want the ability to add any random option (due to the

Re: [Bug-apl] Additional APL options configurable in gnu-apl-mode?

2014-07-19 Thread Elias Mårtenson
It's fixed. I've added a new customisable variable gnu-apl-program-extra-args, that allows you to configure this. Please test it and let me know if it does what you need. Regards, Elias On 19 July 2014 08:34, Elias Mårtenson loke...@gmail.com wrote: Yes, I'll add that today. Sorry about

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

2014-07-20 Thread Elias Mårtenson
Point taken, and I have no intention to fight for this one right now. :-) Just to answer your question: ⍵⍵⍵ would refer to the outer-outer lambda, which ⍵⍵ would raise an error. The same goes for ⍶, ⍹ and χ. I'd say it's hard to argue for any other variant. That said, the workaround by assigning

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

2014-07-21 Thread Elias Mårtenson
I made the following small change. This changes the library name from lib_sql.so to simply lib_sql. This makes everything work properly on both Linux and OSX: https://github.com/lokedhs/apl-sqlite/commit/3b5c12ca3a465728ac909c91f705a9c1000c524f Regards, Elias

Re: [Bug-apl] Attention signal issues

2014-07-21 Thread Elias Mårtenson
Thanks. Reading this thread made me think that I would have to debug something. :-) On 22 Jul 2014 05:53, David B. Lamkins dlamk...@gmail.com wrote: Thank you. Confirmed not crashing in SVN 283. Tested in both Emacs and terminal, both with and without readline. Note that without readline,

Re: [Bug-apl] Another attention signal issue

2014-07-21 Thread Elias Mårtenson
This is correct. Emacs mode disables readline (it could work with it too, but it's more stable without it). Regards, Elias On 22 Jul 2014 06:01, David B. Lamkins dlamk...@gmail.com wrote: Emacs mode passes --rawCIN to APL. If I'm not mistaken, that bypasses readline. Therefore you should be

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

2014-07-21 Thread Elias Mårtenson
Fax: 615-377-6006 On Mon, Jul 21, 2014 at 9:53 AM, Elias Mårtenson loke...@gmail.com wrote: I made the following small change. This changes the library name from lib_sql.so to simply lib_sql. This makes everything work properly on both Linux and OSX: https://github.com/lokedhs/apl

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

2014-07-22 Thread Elias Mårtenson
* 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årtenson wrote: As soon as Jürgen brings it in. Until then you can just modify

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

2014-07-22 Thread Elias Mårtenson
: *svn export --force https://github.com/lokedhs/apl-sqlite/trunk https://github.com/lokedhs/apl-sqlite/trunk sql* Regards, Elias On 22 July 2014 19:19, Elias Mårtenson loke...@gmail.com wrote: Well, in my source repository the file is called sql.apl, while in yours, it's SQL.apl. Could

[Bug-apl] readline error when trying to compile the latest version on OSX

2014-07-23 Thread Elias Mårtenson
Here's the error: g++ -DHAVE_CONFIG_H -I. -I.. -rdynamic -g -MT NamedObject.o -MD -MP -MF .deps/NamedObject.Tpo -c -o NamedObject.o NamedObject.cc clang: warning: argument unused during compilation: '-rdynamic' Input.cc:67:39: warning: control reaches end of non-void function

Re: [Bug-apl] readline error when trying to compile the latest version on OSX

2014-07-23 Thread Elias Mårtenson
]: *** [Input.o] Error 1 make[3]: *** Waiting for unfinished jobs Regards, Elias On 23 July 2014 23:04, Elias Mårtenson loke...@gmail.com wrote: Here's the error: g++ -DHAVE_CONFIG_H -I. -I.. -rdynamic -g -MT NamedObject.o -MD -MP -MF .deps/NamedObject.Tpo -c -o NamedObject.o NamedObject.cc

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

2014-07-24 Thread Elias Mårtenson
these issues, please let me know if not. SVN 388. /// Jürgen On 07/24/2014 07:58 AM, Elias Mårtenson wrote: Here's a patch that fixes the readline bug that happens when readline is * disabled*. It also addresses the casing issue with SQL.apl. Now, the file is called sql.apl in the source

[Bug-apl] List columns function in SQL library

2014-07-24 Thread Elias Mårtenson
I've added a function number 9 to the SQL library. This function takes the name of a table and returns information about the columns in that table. The function has no name in SQL.apl yet, because I am currently overseas and my laptop has no Postgres, which means that it only works for SQLite so

[Bug-apl] Solved: Unix socket connection failed

2014-07-24 Thread Elias Mårtenson
I had never been able to get APserver to work properly, and particularly not with the Unix Domain Sockets. But, I finally figured it out. :-) In the following call can be found in bot Svar_DB.cc and the APserver.

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

2014-07-24 Thread Elias Mårtenson
wrote: 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

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

2014-07-24 Thread Elias Mårtenson
cleaner and maybe I should make that the default. /// Jürgen On 07/24/2014 12:59 PM, Elias Mårtenson wrote: Sorry, I accidentally hit send… Here's the rest: In the following call can be found in bot Svar_DB.cc and the APserver, you can find the following: strcpy(remote.sun_path

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

2014-07-24 Thread Elias Mårtenson
and the like. Also I have not found a reliable way to figure if a connection is closed or not. For example if I do *kill -9* of a process that is connected to *APserver* then *APserver* does not detect this in its *select()* loop. /// Jürgen On 07/24/2014 01:34 PM, Elias Mårtenson wrote

[Bug-apl] Without-readline: Fixed

2014-07-24 Thread Elias Mårtenson
Here's a patch that fixes the compilation error when disabling readline on OSX (and possibly non-OSX as well?). Regards, Elias Index: src/Input.cc === --- src/Input.cc(revision 392) +++ src/Input.cc(working copy) @@

[Bug-apl] imenu support added to Emacs mode

2014-07-25 Thread Elias Mårtenson
I've just added support for imenu http://camdez.com/blog/2013/11/28/emacs-rapid-buffer-navigation-with-imenu/ in the Emacs mode. It seems to work pretty well, and takes it a bit closer to making it a proper APL IDE. :-) If you really want to go deep into configuring imenu, you can check out the

[Bug-apl] SQL.apl file name

2014-07-27 Thread Elias Mårtenson
In the latest version from svn, the file in swlib5 is still sql.apl. I was under the impression that it would be installed as SQL.apl (but with the file in src/sql still being named in lower case). I.e. that the case would be changed as it's copied from src/apl to wslib5. Regards, Elias

[Bug-apl] SQL library updates

2014-07-27 Thread Elias Mårtenson
Postgres support for column listing is now implemented. You can pull the latest version from Git. Others: Please test if you have the chance. I came across to C++ incompatibility issues when moving the code from OSX to Linux. I think I've fixed it now. Regards, Elias

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

2014-07-27 Thread Elias Mårtenson
and in the wslib5 dir. Since you are the author, please decide and I will follow suit on my end. Jürgen On 07/27/2014 06:24 PM, Elias Mårtenson wrote: In the latest version from svn, the file in swlib5 is still sql.apl. I was under the impression that it would be installed as SQL.apl

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

2014-07-27 Thread Elias Mårtenson
I agree. I would love to see lexical scope and closures, for example. Regards, Elias On 28 Jul 2014 01:49, Blake McBride blake1...@gmail.com wrote: Dear Juergen, As I play with lambdas, I see many, many anomalies (like passing them, the difference between execution and passing,

Re: [Bug-apl] Committed value?

2014-07-27 Thread Elias Mårtenson
Under what circumstances would that be a problem? If you don't see a value during testing why would your code use that value? Regards, Elias On 28 Jul 2014 02:06, Blake McBride blake1...@gmail.com wrote: I hope not. I'd hate to not assign a value during a test, print nothing, only to have a

Re: [Bug-apl] Committed value?

2014-07-27 Thread Elias Mårtenson
Now that I think about it, there is actually. You use the monadic left-tack function. It's a variation of monadic right-tack which is the identity function. Regards, Elias On 28 Jul 2014 02:03, David B. Lamkins dlamk...@gmail.com wrote: Is there a way to have a defined function return a

[Bug-apl] Power operator, should it be implemented?

2014-07-28 Thread Elias Mårtenson
On Super-Shift-P we have the power operator ⍣. Its implementation in Dyalog seems to be quite useful. Passing a boolean right-hand argument, it acts as an IF for example. Wouldn't it make sense to implement it? It seems half of the examples I see using Dyalog uses it, so being compatible would

[Bug-apl] Remaining APserver issues

2014-07-28 Thread Elias Mårtenson
The following happens on my Arch Linux system. When I start the apl binary (without Emacs) I'm getting a connection refused error. The log with *-l 37* is reproduced below. The APserver is properly started (I can see it in the process listing), but after I call )OFF, it doesn't get killed. Note

[Bug-apl] Subtle parsing problem

2014-07-28 Thread Elias Mårtenson
I was writing an operator that acts as an if-statement, calling one of two functions depending on the value of the argument: ∇Z ← (then SEL else) arg →(arg=1)/do¯then →(arg=0)/do¯else ⎕ES 'Illegal value for arg' →0 do¯then: Z ← then arg →0 do¯else: Z ← else arg ∇ Note that the then

Re: [Bug-apl] Subtle parsing problem

2014-07-29 Thread Elias Mårtenson
. /// Jürgen On 07/29/2014 07:21 AM, Elias Mårtenson wrote: I was writing an operator that acts as an if-statement, calling one of two functions depending on the value of the argument: ∇Z ← (then SEL else) arg →(arg=1)/do¯then →(arg=0)/do¯else ⎕ES 'Illegal value for arg' →0 do

<    1   2   3   4   5   6   7   >