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

2014-04-21 Thread Elias Mårtenson
Can't you put this thing on Github or similar service to make access to the latest version easy? What source control software do you use for development? Regards, Elias On 22 April 2014 00:53, David B. Lamkins wrote: > Latest drop attached. > > - Updated for latest apl-sqlite (library name cha

Re: [Bug-apl] Tk/Tcl interface

2014-04-22 Thread Elias Mårtenson
priority. I am just bring up some of theses ideas. > > Thanks! > > Blake > > > > > On Mon, Apr 21, 2014 at 9:52 PM, Elias Mårtenson wrote: > >> The J community seems to be pretty excited about their QT interface. Tk >> is easy to use, but results in horrible-l

Re: [Bug-apl] Tk/Tcl interface

2014-04-22 Thread Elias Mårtenson
On 22 April 2014 22:23, Blake McBride wrote: > I strongly agree. Also, sockets will give us better direct access to Web > technology (i.e. web services). > > Thanks. > > Blake > > > On Tue, Apr 22, 2014 at 9:18 AM, Elias Mårtenson wrote: > >> I'd love to ad

Re: [Bug-apl] Tk/Tcl interface

2014-04-22 Thread Elias Mårtenson
for APL processing. Regards, Elias On 22 April 2014 22:25, Elias Mårtenson wrote: > You want to implement it? > > I'm thinking that a wrapper around libcurl would be very useful as well. I > know it can be implemented on top of socket primitives, but there is a lot > of int

[Bug-apl] Fwd: Re: 2 questions wrt editing my programs

2014-04-22 Thread Elias Mårtenson
I accidentally sent this to Jürgen only. Here it is for the rest of the list. Regards, Elias -- Forwarded message -- From: "Elias Mårtenson" Date: 23 Apr 2014 01:13 Subject: Re: [Bug-apl] 2 questions wrt editing my programs To: "Jürgen Sauermann" Cc: I must

Re: [Bug-apl] A call for justification of feature / library / extension proposals (was Re: Tk/Tcl interface)

2014-04-22 Thread Elias Mårtenson
First of all, I'm a newcomer to APL and even though I've hit 40 I feel somewhat like the new kid on the block. :-) I haven't advocated plenty of new quad-commands or changes to the core language (although there are certainly a few of those that I'd like to see too, but I respect Jürgens wishes and

Re: [Bug-apl] emacs and apl

2014-04-24 Thread Elias Mårtenson
might be > usable in an xterm? > > > > > > On Fri, 25 Apr 2014 08:58:33 +0800 > Elias Mårtenson > > > It edits functions in the workspace. GNU APL runs inside Emacs, and when > > you press C-c C-f to open a function it reads the content of it and > > display

[Bug-apl] Performance issue when manipulating arrays

2014-04-24 Thread Elias Mårtenson
In writing a function that uses lib_file_io to load the content of an entire file into an array of strings, I came across a bad performance problem that I am having trouble narrowing down. Here is my current version of the function: https://github.com/lokedhs/apl-tools/blob/e3e81816f3ccb4d8c56acc8

Re: [Bug-apl] A call for justification of feature / library / extension proposals (was Re: Tk/Tcl interface)

2014-04-24 Thread Elias Mårtenson
I did bring up the topic of namespaces some time ago on this list, and Jürgen expressed some concerns with it. My opinion is that they would be really useful. It is possible to handle a large number of libraries without namespaces (Emacs does not have namespaces either, and there are thousands of

Re: [Bug-apl] emacs and apl

2014-04-24 Thread Elias Mårtenson
It edits functions in the workspace. GNU APL runs inside Emacs, and when you press C-c C-f to open a function it reads the content of it and displays it in a separate buffer. Once you're done editing it gets sent to the APL runtime. Regards, Elias On 25 Apr 2014 08:55, wrote: > I'm not enjoying

Re: [Bug-apl] A call for justification of feature / library / extension proposals (was Re: Tk/Tcl interface)

2014-04-24 Thread Elias Mårtenson
I believe that I said that Emacs has managed, but it's clearly not an ideal situation. In fact, I'm a very strong advocate for seeing namespace support in Emacs as I find it incredibly frustrating having to prefix every single function and variable, even if they are internal. I feel exactly the sa

Re: [Bug-apl] emacs and apl

2014-04-24 Thread Elias Mårtenson
n the > line > I keep trying (something from my memory) ∇fns[1⎕4] to position the curson > at char 4 on line 1 but it all it does is display lines 1 to 4 and then > open line [5] for input > > > > On Fri, 25 Apr 2014 09:11:51 +0800 > Elias Mårtenson wrote: > > > Total

Re: [Bug-apl] A call for justification of feature / library / extension proposals (was Re: Tk/Tcl interface)

2014-04-24 Thread Elias Mårtenson
Thank you Jürgen for the clarification. You make a great argument, and I personally have no problem accepting that. Also, as you say, the community is so small that names shouldn't really clash. I suppose if the unthinkable happens and the community size were to grow to 4 digits, this the entire i

Re: [Bug-apl] Performance issue when manipulating arrays

2014-04-24 Thread Elias Mårtenson
see if the fix is sound? The performance difference is really remarkable, and if it's correct, it's really worth applying. Regards, Elias On 25 April 2014 00:21, Elias Mårtenson wrote: > In writing a function that uses lib_file_io to load the content of an > entire file into an

Re: [Bug-apl] Performance issue when manipulating arrays

2014-04-24 Thread Elias Mårtenson
ight be able to see if we get this right. Regards, Elias On 25 April 2014 13:08, Elias Mårtenson wrote: > I ran the program through Callgrind and I found the performance > bottleneck. The program spends most of its time cloning values that are > only used once. > > I applied the f

Re: [Bug-apl] Performance issue when manipulating arrays

2014-04-24 Thread Elias Mårtenson
3. Read the file (I'm assuming that the file_io won't let you read it > all at one go) by chunks and use indexed assignment to copy each chunk > into its position in the preallocated vector. > > > > On Fri, 2014-04-25 at 00:21 +0800, Elias Mårtenson wrote: > >

Re: [Bug-apl] Performance issue when manipulating arrays

2014-04-25 Thread Elias Mårtenson
> (without involving memory allocation for each cell). > > I will nevertheless look into this; I was earlier thinking of a new > FILE_IO function > that returns an entire file. > > /// Jürgen > > > > On 04/25/2014 08:01 AM, Elias Mårtenson wrote: > > Actually,

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-25 Thread Elias Mårtenson
There isn't, but implementing it is possible in APL itself. To my knowledge this has not been done yet. Regards, Elias On 26 Apr 2014 07:16, wrote: > I've found ⎕ex that can used in a function since )erase can't so is there > a suitable ⎕cp for )copy - i've looked in all the .def files and blown

Re: [Bug-apl] Compose table for GNU/APL

2014-04-25 Thread Elias Mårtenson
The source for the Emacs mode contains the list you're looking for. Look at the definition of gnu-apl--symbols. The comment before that definition contains more symbols that are not used by GNU APL. Regards, Elias On 26 April 2014 11:52, Chris Jones wrote: > I have two related questions: > > 1

Re: [Bug-apl] Compose table for GNU/APL

2014-04-25 Thread Elias Mårtenson
Oh, and I forgot the link: https://github.com/lokedhs/gnu-apl-mode/blob/master/gnu-apl-mode.el#L142 Regards, Elias On 26 April 2014 14:36, Elias Mårtenson wrote: > The source for the Emacs mode contains the list you're looking for. Look > at the definition of gnu-apl--symbols.

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread Elias Mårtenson
On 26 April 2014 20:52, Kacper Gutowski wrote: > On 2014-04-26 12:08:14, Juergen Sauermann wrote: > > I could make the ∇-editor aware that a )COPY is in progress and that > > functions shall be deleted automatically by the ∇-editor. > > I like a lot that there is now a command that sources anothe

[Bug-apl] GNU APL in Emacs video

2014-04-26 Thread Elias Mårtenson
I will make a more fully-featured video (with voiceover) but this is my first attempt. At least it shows how the function editor works. http://www.youtube.com/watch?v=FXPrMNraSKA Regards, Elias

Re: [Bug-apl] Return value of fgets ignored in lib_file_io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase)

2014-04-26 Thread Elias Mårtenson
I created that channel. And I'm idling in there. :-) Regards, Elias On 26 April 2014 22:41, wrote: > > Fantastic/wow - you found the bug that fast? What a bunch of great > programmers we have behind this grand apl. The whole project has become > quite amazing. > > If there is anything I can e

Re: [Bug-apl] ]keyb should function dynamically

2014-04-27 Thread Elias Mårtenson
I'm sure you all are annoyed with me for constantly plugging Emacs, but I just can't help myself. The Emacs mode will display Jürgens keymap help in a separate window, automatically updated to correspond the the current active keymap. :-) Regards, Elias On 27 April 2014 18:02, Juergen Sauermann

Re: [Bug-apl] ]keyb should function dynamically

2014-04-27 Thread Elias Mårtenson
guess I will change to emacs if vi stops working :-) . > > /// Jürgen > > > > On 04/27/2014 12:48 PM, Elias Mårtenson wrote: > > I'm sure you all are annoyed with me for constantly plugging Emacs, but I > just can't help myself. > > The E

Re: [Bug-apl] ]keyb should function dynamically

2014-04-27 Thread Elias Mårtenson
; environment to use. > > Keep pushing! > > Blake > > > > On Sun, Apr 27, 2014 at 5:48 AM, Elias Mårtenson wrote: > >> I'm sure you all are annoyed with me for constantly plugging Emacs, but I >> just can't help myself. >> >> The Emacs mode

[Bug-apl] I've made a new video

2014-04-27 Thread Elias Mårtenson
My intention is to make a couple of "decent" videos about GNU APL. This one is also unlisted, as I'm not happy with the way it came out. I'll make a few more attempts, but I would love to hear your comments on it. Here's the URL: http://youtu.be/yP4A5CKITnM Regards, Elias

Re: [Bug-apl] Unicomp APL keyboard mapping

2014-04-27 Thread Elias Mårtenson
I'm using a keyboard from Wasd Keyboards. They allow you to upload a file containing the symbol design when you order. Making an APL keyboard would be trivial. http://www.wasdkeyboards.com/ Regards, Elias On 28 April 2014 00:40, Juergen Sauermann wrote: > Hi Blake, > > I have added the files,

Re: [Bug-apl] Unicomp APL keyboard mapping

2014-04-27 Thread Elias Mårtenson
keyboard. The reason why > I wanted a Unicomp > keyboard was the click feeling of the old IBM XT keyboard that I used for > many years. > > /// Jürgen > > > On 04/27/2014 06:43 PM, Elias Mårtenson wrote: > > I'm using a keyboard from Wasd Keyboards. They allow y

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-27 Thread Elias Mårtenson
Do you have a copy of the workspace I can test with? Regards, Elias On 28 April 2014 10:48, Blake McBride wrote: > I built ans installed libemacs.so from the native directory bu same > problem. > > > > On Sun, Apr 27, 2014 at 9:42 PM, Blake McBride wrote: > >> Greetings, >> >> I have a WS that

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-27 Thread Elias Mårtenson
n Emacs mode with that WS. It doesn't > seem to be related to ⎕LX like I thought. > > > > On Sun, Apr 27, 2014 at 10:01 PM, Elias Mårtenson wrote: > >> I see. I got the crash now. I'll look at the core. >> >> >> On 28 April 2014 11:01, Blake M

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

2014-04-27 Thread Elias Mårtenson
Use the quad function ⎕UCS: * ⎕UCS 'foo⍉bar'* 102 111 111 9033 98 97 114 * ⎕UCS 102 111 111 9033 98 97 114* foo⍉bar Regards, Elias On 28 April 2014 12:17, David B. Lamkins wrote: > I can use lib_file_io to read a sequence of byte values from a file > containing Unicode text. > > How

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

2014-04-27 Thread Elias Mårtenson
28 April 2014 12:49, David B. Lamkins wrote: > That's close, but libfileio[8] returns a sequence of byte values; not > code points. > > On Mon, 2014-04-28 at 12:19 +0800, Elias Mårtenson wrote: > > Use the quad function ⎕UCS: > > > > > > ⎕UCS '

Re: [Bug-apl] C-c C-c not working

2014-04-28 Thread Elias Mårtenson
Oops. llog is an internal debug function I use. That should never go into the repository. I've pushed an update to fix that. Regards, Elias On 28 April 2014 19:02, Blake McBride wrote: > Greetings, > > When using a brand new evocation of Emacs/GNU APL mode, I attempt to > define a function usi

[Bug-apl] About the reduction of clone() calls

2014-04-28 Thread Elias Mårtenson
Hello Jürgen, I don't know if you have given this issue any thought, but it has certainly occupied my mind for the last few days. It's clear that heavy array processing does far too much cloning than should be necessary. Especially in cases where you have lots of operations on smaller arrays (as

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

2014-04-28 Thread Elias Mårtenson
What do you think of the idea of supporting arbitrary encodings using dyadic ⎕UCS? I'd be happy to implement it. Although, perhaps you don't want to add a dependency on iconv? Regards, Elias On 28 April 2014 21:39, Juergen Sauermann wrote: > Hi, > > I have added 18 ⎕CR and 19 ⎕CR to convert fro

Re: [Bug-apl] About the reduction of clone() calls

2014-04-28 Thread Elias Mårtenson
avels of of different sizes. > > I also doubt that you can gain 3-4 orders of magnitude because a value is > normally only cloned very few times. > That does not mean that you can't prove otherwise, I can speed up +/⍳N by > 6 orders of magnitude but that does > not prove

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

2014-04-28 Thread Elias Mårtenson
t different because > I started it before native functions, these days I would probably extend > FILE_IO or some MISC library. > > /// Jürgen > > > > On 04/28/2014 03:50 PM, Elias Mårtenson wrote: > >> What do you think of the idea of supporting arbitrary encodi

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-28 Thread Elias Mårtenson
> make a difference. I would be interested in the workspace file as well if > the error persists. > > /// Jürgen > > > On 04/28/2014 06:04 AM, Elias Mårtenson wrote: > > I've analysed the problem using Valgrind, and it seems as though this is a > bug in the XML_Lo

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-28 Thread Elias Mårtenson
> wrote: > >> Hi, >> >> I have initialized current_char in SVN 234, but can't see either how this >> would >> make a difference. I would be interested in the workspace file as well if >> the error persists. >> >> /// Jürgen >> >&g

Re: [Bug-apl] Bug-apl] APL and text editors- some initial thoughts

2014-04-28 Thread Elias Mårtenson
Hello Peter, You might want to read up in the email archives on the discussions that led to the creation of the Emacs backend. It was done exactly because Jürgen did not want to maintain a special protocol used for things such as the Emacs mode. It's included in the base release because shipping

Re: [Bug-apl] Is there a way of having a session log?

2014-04-28 Thread Elias Mårtenson
Also, keep in mind the "script" command that allows you to log anything from an interactive session. (or, of course... E nah. Won't say it). Regards, Elias On 28 April 2014 23:56, Juergen Sauermann wrote: > Hi Thomas, > > a log of the input (without the responses from APL) is contained in

Re: [Bug-apl] APL and text editors- some initial thoughts

2014-04-28 Thread Elias Mårtenson
Peter, The Emacs mode is much more than a simple way of editing functions in an editor. The intention is to transform the standalone GNU APL interpreter into some kind of IDE in a similar way as SLIME does for Common Lisp. The Emacs mode backend provides similar functionality as the Swank backend

Re: [Bug-apl] A request for gnu-apl-mode

2014-04-28 Thread Elias Mårtenson
Yes. I will do this. I never tested this because I don't use comment-region myself. Regards, Elias On 29 Apr 2014 03:37, "David B. Lamkins" wrote: > Please configure such that M-x comment-region works for APL code. > > >

Re: [Bug-apl] A request for gnu-apl-mode

2014-04-28 Thread Elias Mårtenson
It's done. Please check the latest version and let me know if there are any problems. Regards, Elias On 29 April 2014 07:59, Elias Mårtenson wrote: > Yes. I will do this. I never tested this because I don't use > comment-region myself. > > Regards, > Elias > On

[Bug-apl] APL\360 on your own computer

2014-04-29 Thread Elias Mårtenson
Here's an interesting post I found, explaining how to get the original APL\360 running in Hercules: http://hercules390.996247.n3.nabble.com/Running-APL-360-on-OS-360-MVT-21-8F-MVT-for-APL-Version-2-00-available-td39964.html Regards, Elias

[Bug-apl] Performance improvement result

2014-04-30 Thread Elias Mårtenson
The following patch improves the performace of reading a 10k line file using io∆readfile from several minutes down to about half a second. The key to this was to avoid cloning the result when reading the value from a variable. This caused functions with lots of variable dereferencing to become inc

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-30 Thread Elias Mårtenson
The Emacs mode should not be hiding the output on standard error. If anyone happens to see it do that, please let me know because that would mean you've come across a bug. Regards, Elias On 30 Apr 2014 20:04, "Juergen Sauermann" wrote: > Hi Blake, > > if the problem is that stderr gets lost, th

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-30 Thread Elias Mårtenson
ut an argument shows the numbers: > > ]log 39 > )LOAD Devices > > This way we can figure step by step where the problem is. May take a while. > > /// Jürgen > > > > On 04/30/2014 02:31 PM, Blake McBride wrote: > > Isn't this just such an example?

[Bug-apl] Preventing display of too large arrays

2014-04-30 Thread Elias Mårtenson
Sometimes, I accidentally make a mistake in interactive mode that causes GNU APL to try to render a very large array to the screen. This can cause the pretty-printer to essentially hang for very long amounts of time, and this operation can't be interrupted. I usually have to kill the APL session, l

Re: [Bug-apl] Preventing display of too large arrays

2014-04-30 Thread Elias Mårtenson
er of values, and on the number of ravel bytes. This was to > limit infinite recursion of > user-defined functions. When such a limit is reached then an ATTENTION is > thrown and you can decide > to continue (→'') or to escape (→) or to change the value for example. > >

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

2014-05-02 Thread Elias Mårtenson
As much as I am a fan of extensions, I have to admit that I don't fully understand the justification for this. After all, the pkg-commands are plain functions, so why not expose them as such? Regards, Elias On 3 May 2014 13:27, "David B. Lamkins" wrote: > During a few idle moments at work today,

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

2014-05-03 Thread Elias Mårtenson
This was just fixed, actually. You might want to try with the latest version. It should work now. Regards, Elias On 4 May 2014 02:45, "David B. Lamkins" wrote: > I was able to get a core dump of the segfault caused by attempting to > )load an APL file with Emacs mode active. > > [dlamkins@morgan

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

2014-05-04 Thread Elias Mårtenson
t; > On Sun, 2014-05-04 at 08:20 +0800, Elias Mårtenson wrote: > > This was just fixed, actually. You might want to try with the latest > > version. It should work now. > > > > Regards, > > Elias > > > > On 4 May 2014 02:45, "David B. Lamkins"

Re: [Bug-apl] Small bug saving function editing in Emacs mode

2014-05-04 Thread Elias Mårtenson
I tried this, but I am not able to reproduce this problem. Are you editing the function using C-c C-f? Regards, Elias On 4 May 2014 07:28, Blake McBride wrote: > Greetings, > > While using Emacs mode I found the following small bug. If you edit an > existing function, move the cursor around,

Re: [Bug-apl] Small bug saving function editing in Emacs mode

2014-05-04 Thread Elias Mårtenson
ion name. > > > On Sun, May 4, 2014 at 2:15 AM, Elias Mårtenson wrote: > >> I tried this, but I am not able to reproduce this problem. Are you >> editing the function using C-c C-f? >> >> Regards, >> Elias >> >> >> On 4 May 2014 07:28, Blak

Re: [Bug-apl] Small bug saving function editing in Emacs mode

2014-05-04 Thread Elias Mårtenson
fter the first four keystrokes, emacs brings up the editing > window for the gg function. > Immediately after all 6 keystrokes, in the mini-buffer I get: Current > buffer has no process > > If I then type: > > xx C-c C-c > > the function gets saved as expected. > &

Re: [Bug-apl] Small bug saving function editing in Emacs mode

2014-05-04 Thread Elias Mårtenson
> > > > On Sun, May 4, 2014 at 7:33 AM, Elias Mårtenson wrote: > >> Does the gg function exist at this time, or is it newly created? >> On 4 May 2014 20:31, "Blake McBride" wrote: >> >>> I am using Emacs 24.3.1. It comes with Linux Mint. I

[Bug-apl] Correct use of ⍤

2014-05-04 Thread Elias Mårtenson
I was reading the following thread on comp.lang.apl: https://groups.google.com/d/msg/comp.lang.apl/ZmdHbyqSM4M/522hE9rDRTkJ In it, it is suggested that the following statement will work: * (3 3⍴⍳9)×⍤1 ⍳3* However, GNU APL gives RANK ERROR here. Is that correct? Regards, Elias

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

2014-05-06 Thread Elias Mårtenson
Right now I'm using the .def files to retrieve the list of ]-commands (for tab-expansion). Clearly this will not be enough if there is a facility to add new ones at runtime. What method should I use to get a full list of these commands from within a native function? Regards, Elias On 6 May 2014

Re: [Bug-apl] Linker error libstdc++ vs Libc++

2014-05-07 Thread Elias Mårtenson
How about we build an binary package for OSX? Another alternative is a Hombrew recipe. Regards, Elias On 7 May 2014 19:22, "Juergen Sauermann" wrote: > Hi Peter, > > when I first looked at internationalization my impression was that it > could be a good idea, > in particular for ⎕NLT. > > After

Re: [Bug-apl] Linker error libstdc++ vs Libc++

2014-05-07 Thread Elias Mårtenson
> As to documenting it in the GNU APL on Macintosh "A Brief Installation > Guide" > I will do that either way. Also in the forthcoming GNU APL on Macintosh > "Developing using Xcode" > > respect… > > Peter > On 2014-05-07, at 7:39 AM, Elias Mårtenson wrot

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

2014-05-07 Thread Elias Mårtenson
Speaking of the Emacs mode. The latest version supports tab-expansion of user-defined commands. Thank Jürgen for providing me with the necessary information to make this possible. Regards, Elias On 8 May 2014 00:19, David B. Lamkins wrote: > I had to ponder this for a few moments, since I've b

Re: [Bug-apl] gnu-emacs-mode on the bleeding edge

2014-05-07 Thread Elias Mårtenson
There is such a warning, but it only tells you if the opposite is true; if your native library is newer than the Lisp code. I can't warn the other way, because the lisp code can update from MELPA without the user upgrading GNU APL itself. For my own workflow, I have set the Emacs variable " gnu-ap

[Bug-apl] Bug: GNU APL does not call start_input after a )LOAD

2014-05-07 Thread Elias Mårtenson
This was reported in this thread: https://github.com/lokedhs/gnu-apl-mode/issues/7 This problem seems to be caused by a bug in GNU APL. When the user calls )LOAD to load a workspace, the start_input callback function is not called before control is returned back to the user. (because of this, the

Re: [Bug-apl] Updating SQL library

2014-05-07 Thread Elias Mårtenson
up-to-date? (I'd like to start work > on the keyed file system, but I am waiting on this fix.) > > Thanks! > > Blake > > > On Sun, May 4, 2014 at 2:12 AM, Elias Mårtenson wrote: > >> The SQL library needs to be changed to support the new API. I will fix >&

Re: [Bug-apl] Updating SQL library

2014-05-07 Thread Elias Mårtenson
se, and > application specific functions in lowercase. This way I avoid name hits > between my generic utilities and the application code. At least it splits > those two namespaces. > > Just an opinion. > > Thanks! > > Blake > > > > On Wed, May 7, 2014 at 10:17 PM,

Re: [Bug-apl] Updating SQL library

2014-05-07 Thread Elias Mårtenson
Oh yes. You're right about that. I should do that. :-) Regards, Elias On 8 May 2014 11:47, Blake McBride wrote: > I thought: "The SQL library needs to be changed to support the new API." > > > On Wed, May 7, 2014 at 10:21 PM, Elias Mårtenson wrote: > >> A

Re: [Bug-apl] Updating SQL library

2014-05-07 Thread Elias Mårtenson
OK, I've fixed it now, I think. Please test it. Regards, Elias On 8 May 2014 11:49, Blake McBride wrote: > Thanks a lot! That is what I was waiting for. > > Thanks! > > Blake > > > > On Wed, May 7, 2014 at 10:48 PM, Elias Mårtenson wrote: > >> Oh

Re: [Bug-apl] native function lib_file_io reload not working

2014-05-08 Thread Elias Mårtenson
Is this the standard system we should abide by? To separate the module and function name with ⍙? Are we using ∆ for public functions and ⍙ for private ones? So far I've used ∆∆ (two deltas) as separator for internal functions. Regards, Elias On 8 May 2014 20:56, Juergen Sauermann wrote: > Hi Da

Re: [Bug-apl] Bug: GNU APL does not call start_input after a )LOAD

2014-05-08 Thread Elias Mårtenson
u are welcome to redistribute > it according to the GNU Public License (GPL) version 3 or later. >start_input: '0' at > Input.cc:223 )load DIJKSTRA SAVED 2014-5-8 10:42:39 (GMT+2) > start_input: '0' at Input.cc:223* &g

Re: [Bug-apl] String element of general array

2014-05-08 Thread Elias Mårtenson
It's easier than that. Your solution is: *∨/ (⊂'bar') ⍷ x* This is because X⍷Y returns a list of the elements of X that matches Y. Then ∨/ is just a reduction of that. Regards, Elias On 9 May 2014 11:56, Blake McBride wrote: > Forgive the question, but my experience is only with the or

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-08 Thread Elias Mårtenson
Yes, I've been told that this happens. I just can't seem to reproduce it though. Can you confirm that it doesn't happen if you move the cursor prior to pressing C-c C-c? What version of Emacs are you using? Regards, Elias On 9 May 2014 11:59, Blake McBride wrote: > From within emacs mode I do

Re: [Bug-apl] String element of general array

2014-05-08 Thread Elias Mårtenson
And of course, it can be made generic using ¨: * x ← 'foo' 'bar' 'this' 'is' 'a' 'list' 'of' 'strings'* * x ≡¨ ⊂'bar'* 0 1 0 0 0 0 0 0 Regards, Elias On 9 May 2014 13:35, David B. Lamkins wrote: > The outer product approach is APL 1. > > In APL 2, you can enclose the search term and

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
e to move the cursor or I get the other error. So, after I > move the cursor and attempt to save, I get the second error: > > Unexpected error: > > Thanks. > > Blake > > > > On Fri, May 9, 2014 at 12:14 AM, Elias Mårtenson wrote: > >> Yes, I've been

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
Right, but did you compile the module in the "native" directory and point your Emacs to use it? On 9 May 2014 19:44, Blake McBride wrote: > $ git pull > Already up-to-date. > $ > > > > On Fri, May 9, 2014 at 6:32 AM, Elias Mårtenson wrote: > >> Hmm..

Re: [Bug-apl] )SAVE should show WSID

2014-05-09 Thread Elias Mårtenson
Before I continue further, I want to emphasise that there is a problem with the output of )SAVE. It may, however, be different from your opinion. There are two different things to think about when working with time: - Displaying time information for the user's benefit - For processing by a

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
native. Also verified > that emacs is loading the one I just built. Same errors. > > Thanks. > > Blake > > > > On Fri, May 9, 2014 at 6:48 AM, Elias Mårtenson wrote: > >> Right, but did you compile the module in the "native" directory and point >

Re: [Bug-apl] )SAVE should show WSID

2014-05-09 Thread Elias Mårtenson
and useful > too. > > Thanks. > > Blake > > > > On Fri, May 9, 2014 at 6:56 AM, Elias Mårtenson wrote: > >> Before I continue further, I want to emphasise that there is a problem >> with the output of )SAVE. It may, however, be different from your op

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
I don't know emacs lisp well, CL is one of my favorite > languages > > > On Fri, May 9, 2014 at 7:03 AM, Elias Mårtenson wrote: > >> OK, I'm confused, That should not happen. >> >> Could you change the code that displays the error (line 102 in >>

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
gt; Command=#("gg" 0 2 (fontified t)) > Command="" > Command="APL_NATIVE_END_TAG" > Data:("error" "DOMAIN ERROR" "" ""):End-Data > progn: Unexpected error: > > > > > On Fri, May 9, 2014 at 7:30 AM, Elia

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
uot; 0 3 (fontified t)) > Command=#("'a'" 0 3 (face font-lock-string-face fontified t)) > Command=#("'b'" 0 3 (face font-lock-string-face fontified t)) > Command="APL_NATIVE_END_TAG" > > When I go to edit the function again, the blank line

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
" do you means in emacs-mode? > > Sorry. > > Blake > > > > On Fri, May 9, 2014 at 8:01 AM, Elias Mårtenson wrote: > >> Ah yes, that's a different bug that I will fix. >> >> Can you open a file with a name that ends with .apl and then define a &

Re: [Bug-apl] SQL on PostgreSQL error

2014-05-09 Thread Elias Mårtenson
What is the query you ran, and what was the content of the database table? I won't be able to test this on a real Postgres instance until I get back home (on Monday), but this information may at least give me an idea. Regards, Elias On 9 May 2014 21:58, Blake McBride wrote: > Greetings, > > I

Re: [Bug-apl] String element of general array

2014-05-09 Thread Elias Mårtenson
I was very confused about this when I started learning APL too (well documented in this very mailing list's archive). What happens can be illustrated by boxing the output. Let's look at a string: * 8⎕CR 'foo'* ┌→──┐ │foo│ └───┘ * ⍴'foo'* 3 In order words,this is a three-element array o

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
rror: > > > I then try the same thing without the blank line and get: > > Command="si" > Command="def:/home/blake/foo.apl&3A;1" > Command=#("foo" 0 3 (fontified t)) > Command=#("'a'" 0 3 (face font-lock-string-face fontifie

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
quire 'gnu-apl-mode) > > > Based on this, I assumed it would get the .so file from ~/apl-mode/native > > Is that not the case? > > Thanks. > > Blake > > > > On Fri, May 9, 2014 at 9:35 AM, Elias Mårtenson wrote: > >> Right. That means that you are

Re: [Bug-apl] String element of general array

2014-05-09 Thread Elias Mårtenson
x27; > > ∇r←test v > r←(⊂v)∊x > ∇ > > This works for: > > test 'there' > > But doesn't work for: > > test 'there' 'are' > > I know I can remove the ⊂ for the second case. I need a single line that > works in both c

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
]0 > ^ > The GNU APL environment has been started, but the Emacs mode was > unable to connect to the backend. Because of this, some > functionality will not be available, such as the external > function editor. > > Thanks. > > Blake > > > > > > On Fri,

Re: [Bug-apl] Emacs mode: can't create a function with no lines

2014-05-09 Thread Elias Mårtenson
ing the latest version of that). Is that correct? > > Thanks! > > Blake > > > > On Fri, May 9, 2014 at 10:19 AM, Elias Mårtenson wrote: > >> You need to specify the full path (including extension). >> >> If you get that error message, typing )MORE shoul

Re: [Bug-apl] SQL on PostgreSQL error

2014-05-09 Thread Elias Mårtenson
apl_files | table | postgres > (1 row) > > apl=# select * from apl_files; > file_name > --- > (0 rows) > > apl=# > > Thanks! > > Blake > > > > On Fri, May 9, 2014 at 9:06 AM, Elias Mårtenson wrote: > >> What is the query you ran, and w

Re: [Bug-apl] )SAVE should show WSID

2014-05-10 Thread Elias Mårtenson
Nice, thank you! Regards, Elias On 10 May 2014 20:29, Juergen Sauermann wrote: > Hi, > > as of SVN 258, the local time is shown, followed by the timezone (GMT +/- > offset-in-hours). > > /// Jürgen > > > > On 05/09/2014 07:13 PM, Peter Teeson wrote: > > I think you are correct Blake. > IIRC @

Re: [Bug-apl] Bug: GNU APL does not call start_input after a )LOAD

2014-05-10 Thread Elias Mårtenson
> >> * This program is free software, and you are welcome to redistribute >> it according to the GNU Public License (GPL) version 3 or later. >>start_input: '0' at >> Input.cc:223 )load DIJKSTRA

Re: [Bug-apl] Bug: GNU APL does not call start_input after a )LOAD

2014-05-10 Thread Elias Mårtenson
d to stop the loading if a duplicate id is detected (or let the library > decide how it would like to proceed). > > BTW. I would still be interested in the result files of your 80-core > benchmark. > > /// Jürgen > > > > > On 05/10/2014 03:09 PM, Elias Mårtenson

Re: [Bug-apl] ⍺

2014-05-10 Thread Elias Mårtenson
⍺ is a variable like any other (except that is has special meaning inside a lambda function). You get VALUE ERROR because it has not been assigned a value. Regards, Elias On 11 May 2014 08:59, Akiva Avraham wrote: > Grabbing this example from the microapl page, I'm getting this error: > > "99

Re: [Bug-apl] ≢

2014-05-10 Thread Elias Mårtenson
This symbol (U+2262 NOT IDENTICAL TO) is not supported in GNU APL. I presume it's a negative version of ≡. Use ∼1≡1 instead. On 11 May 2014 08:49, Akiva Avraham wrote: >1 ≢ 1 > Offending token: 0x56020011 (VOID) > SYNTAX ERROR > > > Picked the symbol up from the microapl documentation.

Re: [Bug-apl] Bug: GNU APL does not call start_input after a )LOAD

2014-05-10 Thread Elias Mårtenson
> native function object. There would still be a native function object as > such, but you don't see it in APL and you > can't delete it either. *Of course you also can't call it from APL then* > *.* > > /// Jürgen > > > > On 05/10/2014 05:47 PM, Elias Mårt

Re: [Bug-apl] How does a vector become a matrix?

2014-05-12 Thread Elias Mårtenson
The only way to make it more consistent is to make behaviours that today are allowed into an error. What would you expect ⊃'333' '5' to do? Regards, Elias On 12 May 2014 22:43, Blake McBride wrote: > Thanks. I have to say, with no reflection on present company, I am about > as frustrated

Re: [Bug-apl] How does a vector become a matrix?

2014-05-12 Thread Elias Mårtenson
That's not true though: * ⍬≡⊃⊂⍬* 0 Regards, Elias On 12 May 2014 23:05, Jay Foad wrote: > On 12 May 2014 15:43, Blake McBride wrote: > > But if I enclose > > and then disclose, I end up with something different - sometimes. > > That's not true. Disclose is a "left inverse" of Enclose: >

Re: [Bug-apl] How does a vector become a matrix?

2014-05-12 Thread Elias Mårtenson
27; 5 5⍴⍳25 > > are all treated in a consistent fashion, but: > > '1' '1' > > is treated differently. That means, in order to get consistent behavior, > one has to have special case code all over the place. Look at all the > gyrations David was go

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