Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Juergen Sauermann
Hi, the ⍝⍝ comes from way doxygen works. For example, // is a C/C++ comment while /// is a C/C++ comment understood by doxygen. In VHDL, -- is a VHDL comment while --- is a VHDL comment understood by doxygen. etc. I didn't want to go as far as using ⍝⍝⍝ (and no need to since ⍝ alone is a co

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Elias Mårtenson
So, should we settle for double ⍝ then? In other words, like this: ∇Z←foo X ⍝⍝ Doc comment ⍝⍝ This one too ⍝ But not this one Z←X+1 ∇ Regards, Elias On 1 August 2014 17:56, Juergen Sauermann wrote: > Hi, > > the ⍝⍝ comes from way doxygen works. > > For example, // is a C/C++ comment w

Re: [Bug-apl] Matching ]keyb on WASD keyboard

2014-08-01 Thread Juergen Sauermann
Hi Blake, thanks, applied. Will be contained in the next SVN. /// Jürgen On 08/01/2014 06:14 AM, Blake McBride wrote: Enclosed is an update to my WASD keyboard configuration. The GNU APL distribution should be updated with this. I added/corrected the following: χ ¥ ⍹ ⍶ ⍙ £ ¢ I now exact

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Juergen Sauermann
Hi, from my side - yes. /// Jürgen On 08/01/2014 12:00 PM, Elias Mårtenson wrote: So, should we settle for double ⍝ then? In other words, like this: ∇Z←foo X ⍝⍝ Doc comment ⍝⍝ This one too ⍝ But not this one Z←X+1 ∇ Regards, Elias On 1 August 2014 17:56, Juergen Sauermann mailto

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Juergen Sauermann
Hi, do you have an example? Seems to work outside emacs: * ⎕FX 'FOO' '1' '' '3'** **FOO** ** ⎕CR 'FOO'** **FOO** **1 ** **3 ** * /// Jürgen On 08/01/2014 04:15 AM, Elias Mårtenson wrote: Oh yeah, now that you mention it I remember seeing the same thing. Blank lines gets eaten wh

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Elias Mårtenson
OK, I'll update the Emacs code to do this. Regards, Elias On 1 August 2014 18:11, Juergen Sauermann wrote: > Hi, > > from my side - yes. > > /// Jürgen > > > > > On 08/01/2014 12:00 PM, Elias Mårtenson wrote: > > So, should we settle for double ⍝ then? In other words, like this: > > ∇Z←foo X

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Elias Mårtenson
I just checked my code, and it actually passes empty strings as a one-character string containing a single space instead. I think I did that in order to avoid some problems I had earlier with empty lines. Here's the code that does it: https://github.com/lokedhs/gnu-apl-mode/blob/master/native/DefCo

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Elias Mårtenson
It's changed. You can pull the new version of SQL.apl which now has double-lamps for the docstrings. On 1 August 2014 18:27, Elias Mårtenson wrote: > OK, I'll update the Emacs code to do this. > > Regards, > Elias > > > On 1 August 2014 18:11, Juergen Sauermann > wrote: > >> Hi, >> >> from my

Re: [Bug-apl] Determining data type...

2014-08-01 Thread Peter Teeson
Thank you Kacper for both your original reply and this clarification. My eyesight is not what it used to be… we persevere however. respect… Peter On 2014-07-31, at 10:53 PM, Kacper Gutowski wrote: > On 2014-07-31 22:49:06, Peter Teeson wrote: >> David used theta as well. Is that also an availa

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Juergen Sauermann
Hi Elias, as far as I can see you use a nested vector of strings as right argument of ⎕FX. In that case Str0() is the best way to represent an empty line. Another thing I saw is that you instantiate a Quad_FX object. That is unnecessary because there is an instance called fun for every syste

Re: [Bug-apl] 80 core performance results

2014-08-01 Thread Elias Mårtenson
Were you able to deduce anything from the test results? On 11 May 2014 23:02, "Juergen Sauermann" wrote: > Hi Elias, > > thanks, already interesting. If you could loop around the core count: > > *for ((i=1; $i<=80; ++i)); do* > * ./Parallel $i* > * ./Parallel_OMP $i* > *done* > > then I could un

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Elias Mårtenson
Thank you. I will implement this shortly. Make sure you update it before the 1.4 release. Regards, Elias On 1 Aug 2014 20:57, "Juergen Sauermann" wrote: > Hi Elias, > > as far as I can see you use a nested vector of strings as right argument > of ⎕FX. > In that case Str0() is the best way to r

Re: [Bug-apl] 80 core performance results

2014-08-01 Thread Juergen Sauermann
Hi Elias, yes - actually a lot. I haven't looked through all files, but at 80, 60, and small core counts. The good news is that all results look plausible now. There are some variations in the data, of course, but the trend is clear: The total time for OMP (the rightmost value in the plot, i.

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Elias Mårtenson
OK, it's been committed now. Now it's possible to put blank lines in the function editor. Regards, Elias On 1 August 2014 21:15, Elias Mårtenson wrote: > Thank you. I will implement this shortly. Make sure you update it before > the 1.4 release. > > Regards, > Elias > On 1 Aug 2014 20:57, "Jue

Re: [Bug-apl] Error defining operators using lambda

2014-08-01 Thread Juergen Sauermann
Hi Elias, thanks, fixed in SVN 411. /// Jürgen On 08/01/2014 04:13 AM, Elias Mårtenson wrote: The following definition throws a SYNTAX ERROR: * foo ← { (1 ⍶ ⍵) }* SYNTAX ERROR foo←foo ^ ^ Calling it directly works though: * +{1 ⍶ ⍵} 10* 11 Regards, Elias

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Juergen Sauermann
Hi Elias, thanks, included in SVN 411. /// Jürgen On 08/01/2014 03:58 PM, Elias Mårtenson wrote: OK, it's been committed now. Now it's possible to put blank lines in the function editor. Regards, Elias On 1 August 2014 21:15, Elias Mårtenson > wrote: Thank

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread David B. Lamkins
My mistake. I went back and checked my code; I was passing ⍬ rather than '' for an empty line. I've fixed my code; the package manager will now load APL which has empty lines in function definitions. On Fri, 2014-08-01 at 12:17 +0200, Juergen Sauermann wrote: > Hi, > > do you have an example? Se

[Bug-apl] apl.xkb

2014-08-01 Thread Blake McBride
GNU APL comes with a file named apl.xkb under the support-files directory. I just did some testing of it with a normal (non-apl) keyboard. The mappings in that file are way out-of-date and do not match ]keyb output. That would also be true of the compiled version of that file - apl.xkm. I then

[Bug-apl] README-3-keyboard

2014-08-01 Thread Blake McBride
That file contains a picture of a keyboard (]keyb output) that does not match the actual output of ]keyb. I suggest we fix that. Also, apl.xmodmap matches the old layout and not the new (]keyb) map. Please let me know if you would like me to correct it. Thanks. Blake

[Bug-apl] apl.dyalog.xmodmap

2014-08-01 Thread Blake McBride
This keyboard map better defines the keyboard (per ]keyb) but it too is out of date.

Re: [Bug-apl] FILE_IO library

2014-08-01 Thread Elias Mårtenson
I've fixed the Quad_FX::fun thing as well now. Regards, Elias On 1 August 2014 20:57, Juergen Sauermann wrote: > Hi Elias, > > as far as I can see you use a nested vector of strings as right argument > of ⎕FX. > In that case Str0() is the best way to represent an empty line. > > Another thin

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

2014-08-01 Thread Blake McBride
On Mon, Jul 21, 2014 at 5:33 AM, Juergen Sauermann < juergen.sauerm...@t-online.de> wrote: > Hi Blake, > > unfortunately the rules for APL output are such that you cannot "print as > you go". > Try ⍳10 That should be able to print as you go - IBM APL does. Right now there is a significant

[Bug-apl] GNU APL on a Mac

2014-08-01 Thread Blake McBride
Greetings, I understand that some have gotten GNU APL working on a Mac. I've not tried this, and the doc files (such as README-3-keyboard) do not mention it. It would be great if someone who has GNU APL running on a Mac could provide instructions that could be added to the various README files.

Re: [Bug-apl] GNU APL on a Mac

2014-08-01 Thread Peter Teeson
Back in March this year I wrote up a small guide which you can find in the doc folder. It's title is APL-on-Macintosh.pdf Should you run into issues I may be able to help. And of course if you find errors in the pdf or poorly written bits please let me know and I will correct it. respect… Pe

Re: [Bug-apl] GNU APL on a Mac

2014-08-01 Thread Blake McBride
Dear Peter, Wow. I somehow missed that. Really great job! Thanks! Blake On Fri, Aug 1, 2014 at 12:45 PM, Peter Teeson wrote: > Back in March this year I wrote up a small guide which you can find in the > doc folder. > It's title is APL-on-Macintosh.pdf Should you run into issues I may be

Re: [Bug-apl] GNU APL on a Mac

2014-08-01 Thread Peter Teeson
Let me know if there are problems. These days I always use the latest svn update rather than the tar ball release. Of course that's after the initial svn co. respect… Peter On 2014-08-01, at 2:19 PM, Blake McBride wrote: > Dear Peter, > > Wow. I somehow missed that. Really great job! > > T

[Bug-apl] One more patch for indentation

2014-08-01 Thread David B. Lamkins
Elias, Here's a patch that allows gnu-apl-indent-amounts to be specified in a file's mode-line. See additional comments in the patch file (attached). This patch allows specification of gnu-apl-indent-amounts as a buffer-local variable in the mode line of a file. For example: ⍝ -*- mode: gnu-apl;