Re: [Bug-apl] Can anything be done about the mailer's choice of encoding?

2014-02-04 Thread David Lamkins
That's true: I am subscribed to the digest. (Reading it in Gmail and Evolution; no difference among clients...) I'll switch to individual delivery for now. Thanks for the hint. :) On Tue, Feb 4, 2014 at 11:30 PM, Elias Mårtenson wrote: > He seems to be using the email digests. It's possible th

Re: [Bug-apl] Proposal for initial multicore support

2014-03-10 Thread David Lamkins
That's a good analysis of the larger landscape, Elias. Thanks for posting. I intend to avoid many of those issues by working on the (I think) simplest case of scalar functions that don't reshape the result. That obviously doesn't help with the more general cases... Regarding your first example of

Re: [Bug-apl] Experimental OpenMP patch

2014-03-11 Thread David Lamkins
Thanks, Jürgen. I'll try to work up some test cases this week. In my quick scan of the OpenMP document yesterday, I noted that there are different strategies for assigning work to threads. As with just about everything else in OpenMP, the strategy is configurable. My initial thought for putting

[Bug-apl] Test case generation?

2014-03-11 Thread David Lamkins
Are there any tools or techniques to assist in the generation of test cases? The use of specific Unicode characters for pattern-matching seems a bit fussy... -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnat

[Bug-apl] Crash upon throwing an error from quadSYL setters

2014-03-11 Thread David Lamkins
Any error thrown from a quadSYL setter triggers causes a heap error and backtrace. For example: ⎕syl[5;2]←1 INDEX ERROR ⎕SYL[5;2]←1 ^^ *** Error in `/usr/local/bin/apl': double free or corruption (fasttop): 0x008c66f0 *** === Backtrace: = /lib64/libc.

[Bug-apl] OpenMP performance: first result

2014-03-11 Thread David Lamkins
WIth the OpenMP patch I put together last night, adding two million-element vectors went from about 45ms without OpenMP to about 32ms with OpenMP. That's evidence that OpenMP is doing *something*, even though the speedup is nowhere near commensurate with the number of cores (8 on this machine). I

Re: [Bug-apl] Performance optimisations: Results

2014-03-14 Thread David Lamkins
This is interesting. The parallel speedup on your machine using TBB is in the same ballpark as on my machine using OpenMP, and they're both delivering less than a 2:1 speedup. I informally ran some experiments two nights ago to try to characterize the behavior. On my machine, with OpenMP #pragmas

Re: [Bug-apl] Feature request: UNWIND-PROTECT-like feature

2014-04-21 Thread David Lamkins
You may be able to construct that in APL. I'm on my phone now, so this is from memory and may be wrong: take a look at quad-EM (and maybe quad-EMX, although that may well be a Dyalog-ism); you should be able to capture the error information and rethrow using quad-ES. On Apr 21, 2014 8:09 PM, "Elia

Re: [Bug-apl] A really simple component-file implementation

2014-04-21 Thread David Lamkins
I intend to. I'll probably use Github. This project kind of took on a life of its own. It started with the realization that I might be able to layer a component file system on top of apl-sqlite. I really didn't expect to end up with something that'd actually be useful. (This is my first real APL p

Re: [Bug-apl] How do I convert a byte sequence to Unicode?

2014-04-27 Thread David Lamkins
I take it that this table describes the encoding of the byte stream: http://en.wikipedia.org/wiki/UTF-8#Description (I might actually attempt this in APL, just to see whether I can do it while waiting for a built-in translation...) On Sun, Apr 27, 2014 at 10:00 PM, Elias Mårtenson wrote: > T

Re: [Bug-apl] gdb and the Emacs mode segfault

2014-05-04 Thread David Lamkins
I can confirm that the update resolved the )load crashes I was seeing. Thank you! On May 4, 2014 12:07 AM, "Elias Mårtenson" wrote: > Actually, this one was being debugged last night, with the discussion > primarily being done off-list. > > Please let me know if there are still problems. > > Reg

Re: [Bug-apl] A modest proposal: user-defined commands

2014-05-06 Thread David Lamkins
Thank you. One more thing: ]usercmd definitions probably shouldn't survive )load and )clear. On May 6, 2014 10:57 AM, "Juergen Sauermann" wrote: > Hi David. > > thanks. Removing first and printing then was maybe not so smart. SVN 251. > > /// Jürgen > > > On 05/06/2014 06:47 PM, David B. Lamkin

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

2014-05-18 Thread David Lamkins
Thank you. On May 18, 2014 11:17 AM, "Juergen Sauermann" wrote: > Hi David, > > thanks, should be fixed in SVN 274. > > /// Jürgen > > > On 05/18/2014 06:27 AM, David B. Lamkins wrote: > >> I want to make sure that I correctly understand ⎕EA and ⎕EC. Should >> these be able to clean up after fail

[Bug-apl] Package manager nearing initial release - testers/readers requested

2014-05-21 Thread David Lamkins
https://github.com/TieDyedDevil/apl-pkg The APL Package Manager is nearly ready for its initial release. All of the first-release functionality is in place. Documentation is completed. There's a tutorial, a set of demonstration packages, and a roadmap outlining future releases. My intent at this

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

2014-05-27 Thread David Lamkins
Not the last dimension, but the rank. On Tue, May 27, 2014 at 7:24 PM, Elias Mårtenson wrote: > Perhaps the number of lines displayed is equal to the size of the last > dimension? > > > -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com

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

2014-06-02 Thread David Lamkins
Thanks, Jüergen. SVN 307 is, I think, *almost* correct. My reading of the IBM Reference suggests that 3⊃⎕ec should be character matrix having three rows. On Mon, Jun 2, 2014 at 7:10 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > Hi David, > > sorry, my fault. I hadn't read the

Re: [Bug-apl] Comments on package manager

2014-06-02 Thread David Lamkins
Thanks for your detailed comments, Jüergen. Point 1: use a file archive rather than git or svn. Agreed. I'll change my recommendation concurrent with the initial release of the package manager. It's certainly easier to rely on source control for updates while still in testing. Point 2: metada

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

2014-06-02 Thread David Lamkins
Excellent. Confirmed working as expected. Thank you. On Mon, Jun 2, 2014 at 11:03 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > Hi David, > > thanks, I see. SVN 310. > > /// Jürgen > > > > On 06/02/2014 06:49 PM, David Lamkins wrote: > >

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

2014-06-02 Thread David Lamkins
UserFunction.cc:254 -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins http://reverbnation.com/lcw http://lamkins-guitar.com/ http://lamkins.net/ http://successful-lisp.com/

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

2014-06-04 Thread David Lamkins
As noted elsewhere, I need to rethink installation of the package manager. There are two main issues: 1. I shouldn't (try to) drop the package manager into the same directory as workspaces [i.e. )lib 0]. The package manager should have its own home directory. 2. I need to find a way to handle th

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

2014-06-06 Thread David Lamkins
The quad-SYL listing in the info file does not match what is currently implemented. -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins http://reverbnation.com/lcw http://lamkins-guitar.com/ htt

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

2014-06-06 Thread David Lamkins
Is the output of )FNS supposed to wrap according to quad-PW? It seems that certain lines of the display overflow quad-PW by some amount related to the presence of long function names on a line. I haven't checked )OPS and )VARS since I only have a few of each. -- "The secret to creativity is kno

Re: [Bug-apl] Build error in 316

2014-06-10 Thread David Lamkins
Ditto. On Tue, Jun 10, 2014 at 8:55 AM, Blake McBride wrote: > Builds for me now. Thanks! > > > On Tue, Jun 10, 2014 at 10:39 AM, Juergen Sauermann < > juergen.sauerm...@t-online.de> wrote: > >> Hi David, >> >> thanks, hopefully fixed in SVN 317. >> >> /// Jürgen >> >> >> >> On 06/10/2014 05:3

Re: [Bug-apl] Commands made executable

2014-06-11 Thread David Lamkins
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 hand, it seems self-consistent to allow this case. On the other hand, it's another extension to IBM/I

[Bug-apl] )CHECK output stream inconsistency

2014-06-12 Thread David Lamkins
The first line of )CHECK output goes to CERR, while the other two go to the stream passed as a function argument. Is this the intended behavior? -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamki

[Bug-apl] )CONTINUE crashes

2014-06-12 Thread David Lamkins
This is a preliminary report. I haven't isolated a root cause. When my package manager is in the workspace, doing )CONTINUE crashes APL. Furthermore, APL can't be used (it launches, but never becomes ready for input) until CONTINUE.xml is removed. I'll see what I can do tonight to come up with a

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

2014-06-12 Thread David Lamkins
)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/lamkins http://reverbnation.com/lcw http://lamkins-guitar.com/ http://lamkins.net/ http://successful-li

[Bug-apl] )IN crashes

2014-06-12 Thread David Lamkins
Related to the report about )CONTINUE crashing when the package manager is loaded... When the package manager is in the workspace, )out foo succeeds. A subsequent )in foo crashes APL. Again, I'll try to find a root cause tonight unless you've already sussed it by loading the pack

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

2014-06-12 Thread David Lamkins
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 Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins http://reverbnation.c

Re: [Bug-apl] )CONTINUE crashes

2014-06-12 Thread David Lamkins
trace at main.cc:121 ---- 0x7f425d252d65 __libc_start_main 0x435f45 main 0x529967 Workspace::immediate_execution(bool) 0x5006eeTestFiles::apl_error(char const*) 0x7f425ef23750 0x48623a =

Re: [Bug-apl] )IN crashes

2014-06-12 Thread David Lamkins
I just spent two hours isolating the test case for the )CONTINUE crash; I'm done for today. Note that the isolated test I posted to )CONTINUE thread does not tickle the )IN crash... On Thu, Jun 12, 2014 at 12:27 PM, David Lamkins wrote: > Related to the report about )CONTINUE crash

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

2014-06-23 Thread David Lamkins
)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 IBM APL2; a numeric argument provides a hint to the interpreter regarding the amount of space to allo

Re: [Bug-apl] Notes on )LIB

2014-06-25 Thread David Lamkins
As much as I agree with the notion of cleaning up the )LIB display, I'm not a fan of using configuration options to change UI behavior. May I suggest an alternative? 1) Change the )LIB command to behave as-if GNU APL only deals with workspace files. 2) Add a new command - )LIBX, perhaps - to show

Re: [Bug-apl] Notes on )LIB

2014-06-25 Thread David Lamkins
> >> Dear David, >> >> I proposed something similar to your proposal before but it was nixed. >> My current proposal allows for differences of opinion as this issue is >> becoming increasingly problematic to me. >> >> Not displaying the .xml or .apl

Re: [Bug-apl] Notes on )LIB

2014-06-26 Thread David Lamkins
)HELP says ... ]LIB [lib or path] ... but ]LIB accepts only a library number. From: Juergen Sauermann > To: David Lamkins > Cc: "bug-apl@gnu.org" > Date: Thu, 26 Jun 2014 15:36:13 +0200 > Subject: Re: [Bug-apl] Notes on )LIB > Hi, > > thanks,

Re: [Bug-apl] Notes on )LIB

2014-06-26 Thread David Lamkins
Also: ]LIB does not see symlinks. On Thu, Jun 26, 2014 at 9:35 AM, David Lamkins wrote: > )HELP says > > ... > ]LIB [lib or path] > ... > > but ]LIB accepts only a library number. > > > From: Juergen Sauermann > >> To: David Lamkins >> Cc:

Re: [Bug-apl] Notes on )LIB

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

[Bug-apl] )CHECK and print_stale_info()

2014-06-27 Thread David Lamkins
I sometimes see output from )CHECK similar to the following: )check OK - no stale functions print_stale_info(): alloc(Cell.cc:119) flags(MC-) value history disabled addr=0x1201eb0 ≡1 ⍴⊏7⊐ flags: 0x0C00 MC- Cell.cc:119 OK - no stale values OK - no stale indices Is the

Re: [Bug-apl] ]KEYBOARD patch

2014-06-30 Thread David Lamkins
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 < juergen.sauerm...@t-online.de> wrote: > Hi David, > > thanks, I have added an optional layout number to the ]KEYB command, see > SVN 349. > > I have not

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

2014-06-30 Thread David Lamkins
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 thought that it would be > useful for them to display directories. > > Patch attached. > > Notes: > > 1) You must specify an absolute p

Re: [Bug-apl] ]KEYBOARD patch

2014-06-30 Thread David Lamkins
On Mon, Jun 30, 2014 at 7:43 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > > 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. > I

[Bug-apl] Mastering Dyalog APL - link outdated

2014-06-30 Thread David Lamkins
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 knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://r

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

2014-06-30 Thread David Lamkins
This is a long post. Part one is background to motivate the implementation outline in part two. If you already understand order analysis (i.e. the asymptotic analysis of program runtime), then you already understand everything I'll say in Part 1; you can skip to Part 2. Part 1 - Motivation So lon

Re: [Bug-apl] Identify function

2014-07-01 Thread David Lamkins
I looked this up yesterday. Dialog version 13 introduced the use of the tack as identity and repurposed + as conjugate. (Actually, they bound both left and right tacks identically, even though they call left tack "same" and right tack "identity".) If the argument of conjugate is imaginary, conjugat

Re: [Bug-apl] Identify function

2014-07-01 Thread David Lamkins
Digging further, it's interesting to note that ISO APL defines + as conjugate, but does not have a binding for the identity function. On Tue, Jul 1, 2014 at 9:42 AM, David Lamkins wrote: > I looked this up yesterday. Dialog version 13 introduced the use of the > tack as identity and

Re: [Bug-apl] Identify function

2014-07-01 Thread David Lamkins
er to standards conformance in this case. On Tue, Jul 1, 2014 at 9:56 AM, Elias Mårtenson wrote: > Exactly, and since an identity function is useful it makes sense to map it > to the same symbol as Dyalog. > > Regards, > Elias > > > On 2 July 2014 00:55, David Lamkins wrot

Re: [Bug-apl] Fibonacci sequence

2014-07-03 Thread David Lamkins
I assume you're trying to do this with Dyalog d-fns. You need 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

Re: [Bug-apl] Fibonacci sequence

2014-07-03 Thread David Lamkins
ges from > Dyalog. :-) > > I'll send you a link to it when I'm in front of a computer. > > Regards, > Elias > On 4 Jul 2014 00:32, "David Lamkins" wrote: > >> I assume you're trying to do this with Dyalog d-fns. >> >> You need a

Re: [Bug-apl] Elias' SQL code

2014-07-06 Thread David Lamkins
I have the ISO component file implementation up and running. Give me a few days to polish and test, then I'll post the code to Github. On Jul 6, 2014 1:47 PM, "David B. Lamkins" wrote: > I wasn't previously aware that an appendix of the ISO standard called > for a component file system. Thanks fo

Re: [Bug-apl] Request: lib_file_io additions

2014-07-07 Thread David Lamkins
Thanks, Jüergen. I'll change my code tonight to use the new calls. I like your solution to readdir() access. I fell asleep last night pondering how best to do that. On Mon, Jul 7, 2014 at 9:44 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > Hi David, > > I have added rename (FI

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

2014-07-07 Thread David Lamkins
Looking at the spec, it seems that monadic grade is defined only for numeric data. That leaves open the question of whether my example should have signaled a domain error. On Mon, Jul 7, 2014 at 11:25 AM, David Lamkins wrote: > Given a list of character vectors (and scalars), grade appears

[Bug-apl] Question about behavior of ⍋

2014-07-07 Thread David Lamkins
Given a list of character vectors (and scalars), grade appears to generate the permutation vector first by length then by content. ⍋'aaa' 'xx' 'y' 'bbb' 'cc' 3 5 2 1 4 This seems counterintuitive. It seems as if ⍋ treats character strings like numbers. Is this a bug? -- "The secret to cre

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

2014-07-08 Thread David Lamkins
Thanks, Jüergen. Confirmed fixed. On Sun, Jul 6, 2014 at 7:45 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > 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 I

Re: [Bug-apl] Request: lib_file_io additions

2014-07-08 Thread David Lamkins
Agreed. As noted, I had been using fileio's popen() to run a shell command for ls. It's a bit more work, but it's portable. The main difficulty of popen is that it requires a bit of effort to detect failure of the shell command, given that there's only one stream and no exit status. It is nice (no

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

2014-07-08 Thread David Lamkins
Thank you. Confirmed fixed. On Sun, Jul 6, 2014 at 6:21 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > 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,5

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

2014-07-09 Thread David Lamkins
Thank you. Confirmed working. With this change, I believe that the component function library conforms to the ISO spec. https://github.com/TieDyedDevil/iso-apl-cf On Wed, Jul 9, 2014 at 6:11 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > Hi David, > > thanks, I have changed t

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

2014-07-09 Thread David Lamkins
Regarding locked functions: I believe these came about at a time when vendors sold not only computer time, but also software services. No doubt this was used to hide details of a "proprietary" function from paying customers... On Wed, Jul 9, 2014 at 7:06 AM, Elias Mårtenson wrote: > I can't say

[Bug-apl] ISO Component File API preview

2014-07-09 Thread David Lamkins
I haven't yet written test scripts, but I've informally tested all of the functions and am reasonably confident that the component file API is complete and correct. If you'd like to try out the API while I'm working on scripted test cases, the repo is: https://github.com/TieDyedDevil/iso-apl-cf

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

2014-07-09 Thread David Lamkins
gt; How do I tell lib_sql to use a PostgreSQL server? >>> > >>> > The argument in favor of SQLite, of course, is that >>> > it's serverless. No >>> > additional setup (

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

2014-07-10 Thread David Lamkins
Oops. I forgot to do a reply all... Also: taking this opportunity to trim replies. :) -- Forwarded message -- From: David Lamkins Date: Thu, Jul 10, 2014 at 9:45 AM Subject: Re: [Bug-apl] ISO Component File API preview To: Blake McBride Please keep in mind that one of the key

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

2014-07-10 Thread David Lamkins
Since my last post I've fixed four small bugs (all involving return codes and error signals) and have provided both a functional test and a performance test. This is ready for general use. On Tue, Jul 8, 2014 at 10:22 AM, David Lamkins wrote: > I haven't yet written test scri

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

2014-07-10 Thread David Lamkins
Hi Blake, I feel that we're talking at cross purposes. What I've been trying to convey (and clearly have failed on every attempt so far) is that an APL component file system must be file-centric. Every APL component file system that I've worked with or have read about has created a file to contai

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

2014-07-10 Thread David Lamkins
No reason to not speak plainly. We're all working toward similar goals. Only the details differ. But the devil is in the details, isn't it...? :) For brevity, I've taken the liberty of excerpting your responses. On Thu, Jul 10, 2014 at 2:22 PM, Blake McBride wrote: > > Okay, I read the spec. I

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

2014-07-10 Thread David Lamkins
On Thu, Jul 10, 2014 at 3:07 PM, Blake McBride wrote: > So, SQL only sees varying length strings. APL sees arbitrary APL nested > (or not nested) arrays. > > > That's what my code does, too. It's not space-efficient, but it's easy to write and virtually impossible to get wrong (unless there's a

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

2014-07-10 Thread David Lamkins
onal benefits or concerns >> > when connecting to a >> > PostgreSQL server? >> > >> > As you've no doubt noticed, there's nothing in the >> > code (or in th

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

2014-07-11 Thread David Lamkins
On Fri, Jul 11, 2014 at 7:18 AM, Elias Mårtenson wrote: > On 11 July 2014 22:15, Blake McBride wrote: > > >> 2. I'm not sure if I fully understand the conclusion of David's last >> longish email. It sounded like he is abandoning the old code and moving >> towards a GDBM solution. That sounds

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

2014-07-11 Thread David Lamkins
On Fri, Jul 11, 2014 at 9:58 AM, Blake McBride wrote: > Does that sound agreeable to everyone? > > > Not at all. What you're proposing to create is not a component file implementation. -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/

[Bug-apl] Workspace name listing utility

2014-07-11 Thread David Lamkins
Here's a more developed version of the utility functions I posted a few days ago. I've added a ]usercmd wrapper. ⍝! ∇z←⍙class ni ⍙set ⍝ Return a character array of every workspace name which includes ⍝ all characters in ⍙set. The empty set matches everything. The ⍝ optional ⍙class argument

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

2014-07-11 Thread David Lamkins
ot a component file system? > > > On Fri, Jul 11, 2014 at 1:26 PM, David Lamkins wrote: > >> On Fri, Jul 11, 2014 at 9:58 AM, Blake McBride >> wrote: >> >>> Does that sound agreeable to everyone? >>> >>> >>> >> Not at all. Wha

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

2014-07-11 Thread David Lamkins
On Fri, Jul 11, 2014 at 1:54 PM, David Lamkins wrote: > >> If I understand your proposal (and I may not), my objection is that you >> don't intend to associate the name passed to CF_OPEN or CF_CREATE to a >> like-named file in the host filesystem. >> On Jul 11, 2

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

2014-07-11 Thread David Lamkins
n your > implementation, and it is appreciated by me and others. I mean no offense > with my proposal. I really think this is the right thing for all of the > many reasons I've given, plus many more I haven't mentioned yet. > > Respectfully, > > --blake > &g

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

2014-07-11 Thread David Lamkins
dden) intent, my implementation would meet their written > spec. > > > On Fri, Jul 11, 2014 at 3:36 PM, David Lamkins wrote: > >> WIth all due respect, Blake, I understand and appreciate the differences >> between filesystems and databases. >> >> I've already

Re: [Bug-apl] Additions to FILE_IO

2014-07-14 Thread David Lamkins
You can use popen() to run pwd in a shell. It'll give you the same answer as calling getcwd() from within the APL process. A file's presence can be probed using fstat(). A negative return value denotes the absence of the file. popen() and fstat() are already exposed via lib_file_io. Take a look

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

2014-07-14 Thread David Lamkins
Elias' thread about docstrings got me to thinking about other function metadata. One thing that might be nice to have is for APL to record the source location of a function's definition. If the function is defined in a file, record the path and the line number of the first line of the definition.

Re: [Bug-apl] Additions to FILE_IO

2014-07-14 Thread David Lamkins
You must set errno = 0 before calling access(). Otherwise the lib_file_io return value may be incorrect upon success. -- Forwarded message -- > From: Juergen Sauermann > To: Blake McBride > Cc: "bug-apl@gnu.org" > Date: Mon, 14 Jul 2014 18:01:09 +0200 > Subject: Re: [Bug-apl] A

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

2014-07-14 Thread David Lamkins
for *Erlang*. > > It would need some changes in GNU APL - multi-line comments and > proper storage of documentation information in the function so that it > can de *)DUMP*ed without loosing that information. > > /// Jürgen > > > > On 07/14/2014 07:56 PM, David Lamkins

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

2014-07-14 Thread David Lamkins
That's good to know. Thanks! On Mon, Jul 14, 2014 at 4:34 PM, Elias Mårtenson wrote: > 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"

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

2014-07-16 Thread David Lamkins
Picking up the function name at point doesn't quite work; it stops at _. You may want to make sure that all valid APL break characters {_⍙∆¯} 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,

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

2014-07-17 Thread David Lamkins
Thank you. Confirmed fixed. On Thu, Jul 17, 2014 at 7:16 AM, Elias Mårtenson wrote: > I have fixed the problem now. Please test it if you have the chance. > > Regards, > Elias > > > On 17 July 2014 08:02, David Lamkins wrote: > >> Picking up the function name a

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

2014-07-17 Thread David Lamkins
What's the expectation regarding support of GNU APL native libraries on non-Linux x86 platforms, e.g. iOS and Windows? -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins http://reverbnation.com

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

2014-07-18 Thread David Lamkins
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 risk of conflict with options used by the mode), but a selection of "safe" options would be nice to have available. I still ha

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

2014-07-19 Thread David Lamkins
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. -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.co

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

2014-07-19 Thread David Lamkins
By way of clarification, since there are multiple keyboard definitions in the support-files directory, the patch causes the apl.loadkeys file to conform to the Dyalog keyboard layout and GNU APL's ]KEYB display. On Sat, Jul 19, 2014 at 5:41 PM, David Lamkins wrote: > I've attach

[Bug-apl] *gnu-apl keymap* documentation patch

2014-07-19 Thread David Lamkins
I've attached a patch to get symbol documentation working in the keymap buffer. Note that I've rebound mouse-3 as the insert command in deference to platforms that don't have a convenient way to emulate the middle mouse button. I've also bound ? to bring up help on the symbol under point. Help i

[Bug-apl] Attention signal issues

2014-07-20 Thread David Lamkins
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:* )load foo loading )DUMP file /home/dlamkins/APL/workspaces/foo.apl... WAS CLEAR WS test test C-c C-c =

[Bug-apl] Another attention signal issue

2014-07-20 Thread David Lamkins
When the session is not executing APL code, the attention signal is not handled until the next newline. To see this, enter the characters Control-C, 1, Return. -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://rever

Re: [Bug-apl] Another attention signal issue

2014-07-22 Thread David Lamkins
J'uergen, I noticed this paragraph in the readline documentation: " Readline contains an internal signal handler that is installed for a number of signals (`SIGINT', `SIGQUIT', `SIGTERM', `SIGALRM', `SIGTSTP', `SIGTTIN', and `SIGTTOU'). When one of these signals is received, the signal handler

Re: [Bug-apl] Another attention signal issue

2014-07-22 Thread David Lamkins
r of tests with this and I am hoping that I > can commit > the solution tomorrow. That should include your ^C comments and also > Blake's printout > issues. > > /// Jürgen > > > > On 07/22/2014 08:03 PM, David Lamkins wrote: > > J'uergen, >

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

2014-07-22 Thread David Lamkins
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 reliably produces two stale values on my installations of GNU APL. -- "The secret to creativity is k

[Bug-apl] Revisiting localization of system variables

2014-07-22 Thread David Lamkins
On May 27th Jüergen wrote: "Note that there are some subtle differences between IBM APL2 and GNU APL when localizing ⎕-vars. In IBM APL2 they are undefined after localizing them. In GNU APL they are pre-initialized with their respective default values. This gives simpler (and therefore faster code

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

2014-07-24 Thread David Lamkins
$ apl --silent -- --option value could not open --option )off $ The command-line parser seems to keep looking for files to load past the `--`. -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com

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

2014-07-24 Thread David Lamkins
$ apl --silent -f - could not open - )off $ -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins http://reverbnation.com/lcw http://lamkins-guitar.com/ http://lamkins.net/ http://successfu

Re: [Bug-apl] Committed value?

2014-07-27 Thread David Lamkins
That works in an expression, of course. It doesn't survive return from a function, though. a←⊣3 a 3 ⎕cr 'foo' z←foo b z←⊣b foo 3 3 On Sun, Jul 27, 2014 at 7:43 PM, Elias Mårtenson wrote: > Now that I think about it, there is actually. > > You use the monadic left-tac

[Bug-apl] Typos in info

2014-07-29 Thread David Lamkins
1) In section 1.3, in the description of the `--` option, there's an em-dash rather than two hyphens. 2) In section 2.1.3, Example 1 the 37 (for some reason that I don't understand) displays as a header (large and bold). I've seen this on all of my installations. 3) In section 2.1.3, one of the i

[Bug-apl] ]usercmd left argument

2014-07-29 Thread David Lamkins
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 collapsed into a single token. -- "The secret to creativity is knowing how to hide your sources."

[Bug-apl] Minor build issues

2014-07-29 Thread David Lamkins
1) Sometimes a make complains that aclocal- is missing. It is in fact present, but a different version. It's possible to clear this warning by doing a make distclean followed by ./configure and make. I'm not sure what triggers this; I suspect that the `missing` script doesn't get rebuilt when the t

[Bug-apl] One more info issue

2014-07-29 Thread David Lamkins
I'm not sure where it'd best be noted, but the info file makes no mention of alternatively starting a .apl file with the lamp-bang sequence. -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins h

Re: [Bug-apl] Minor build issues

2014-07-29 Thread David Lamkins
To be clear w.r.t. issue #2: It's the /usr/local/share/info/dir file that gets munged. On Tue, Jul 29, 2014 at 10:05 AM, David Lamkins wrote: > 1) Sometimes a make complains that aclocal- is missing. It is in > fact present, but a different version. It's possible to clear t

Re: [Bug-apl] One more info issue

2014-07-29 Thread David Lamkins
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 in the Library > Guidelines document than a GNU APL feature. > > /// Jürgen > > > > On 07/29/2014 07:08 PM,

Re: [Bug-apl] Typos in info

2014-07-29 Thread David Lamkins
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 >>

  1   2   >