[Bug-apl] EACH by axis

2014-03-30 Thread Elias Mårtenson
I keep wanting to be able to apply an axis argument to the ¨ (EACH) operator. I.e, to sort an array rows, I wanted to do: *{⍵[⍋⍵]}¨[2] foo* Instead, I had to do: *⊃ {⍵[⍋⍵]}¨ ⊂[2] foo* Would it make sense to be able to specify an axis number to the the EACH operator as an extension? Regards,

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Harteg Wariyar
Hi Juergen / Elias, Please see my comments below also... On Sunday, March 30, 2014 6:06 AM, Juergen Sauermann wrote: Hello Harteg, please see my answers inline below... /// Jürgen On 03/29/2014 09:08 PM, Harteg Wariyar wrote: Hi.  I just downloaded gnu apl1.3, running it on os-x mav

[Bug-apl] Finally turned javascript version to a true REPL interpreter

2014-03-30 Thread baruchel
Hi, I had to work more in order to turn the interpreter to an asynchronous process (if you don't know about javascript: in two words, a javascript program can't "wait" for input from the user; you have to make your program event-based). I finally made the interpreter completely leave between each

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Juergen Sauermann
Hi Elias, I am using a standard color xterm as it came with Ubuntu 12.4. How is the standout mode set in curses (haven't seen anything in the man and info pages)? /// Jürgen On 03/30/2014 06:30 PM, Elias Mårtenson wrote: What system is that? And what terminal are you using? Normally you'd g

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Elias Mårtenson
What system is that? And what terminal are you using? Normally you'd get bright white by choosing the white colour in addition to the standout mode. Standout mode has code "*smso*" in terminfo. Regards, Elias On 31 March 2014 00:21, Juergen Sauermann wrote: > Hi Elias, > > ANSI (fixed ESC seq

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Juergen Sauermann
Hi Elias, ANSI (fixed ESC sequence) is still the default because terminfo/curses does not work too well for colors on my box (bright white missing). /// Jürgen On 03/30/2014 12:09 PM, Elias Mårtenson wrote: On 30 March 2014 18:06, Juergen Sauermann mailto:juergen.sauerm...@t-online.de>> wr

Re: [Bug-apl] Cell grid in ⎕CR output?

2014-03-30 Thread Elias Mårtenson
Wow. Thanks! I'm working on decoding this right now. :-) I think this could very well be part of the standard library that I'm envisioning. Regards, Elias On 29 March 2014 00:39, Juergen Sauermann wrote: > Hi Elias, > > this is actually not so easy and I can imaging a number of inner/outer >

Re: [Bug-apl] Crash when calling file_io with wrong arguments

2014-03-30 Thread Elias Mårtenson
You are right. It works after a full reinstall. I must, like you said, have left some old test binaries behind. Regards, Elias On 30 March 2014 22:44, Juergen Sauermann wrote: > Hi Elias, > > not on my machine: > > '/usr/lib/apl/lib_file_io.so' ⎕FX 'IO' > IO > IO[0] 0 >Function

Re: [Bug-apl] Crash when calling file_io with wrong arguments

2014-03-30 Thread Juergen Sauermann
Hi Elias, not on my machine: '/usr/lib/apl/lib_file_io.so' ⎕FX 'IO' IO IO[0] 0 Functions provided by this library. Assumes 'lib_file_io.so' ⎕FX 'FUN' Legend: e - error code i - integer h - file handle (integer) s - string A1, A2

[Bug-apl] Crash when calling file_io with wrong arguments

2014-03-30 Thread Elias Mårtenson
To reproduce, type the following two commands: * 'file_io' ⎕FX 'IO'* * IO[0] 0* Then the following exception is displayed: SEGMENTATION FAULT -- Stack trace at main.cc:119 ---

[Bug-apl] Command to load content of external file

2014-03-30 Thread Elias Mårtenson
Would it make sense to add a command that loads APL code from a source file? I.e. something similar to what apl -f does, but as a command instead so that it can be run repeatedly? Regards, Elias

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Elias Mårtenson
On 30 March 2014 18:06, Juergen Sauermann wrote: > > Sounds like wrong ESC sequences for colors. Check your preferences file. > This always happens OSX with a default build. I don't care much since I always run it in Emacs. Anyway, this should not be a problem when the terminfo stuff is used. Is

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Juergen Sauermann
Hello Harteg, please see my answers inline below... /// Jürgen On 03/29/2014 09:08 PM, Harteg Wariyar wrote: Hi. I just downloaded gnu apl1.3, running it on os-x mavericks. Took a little bit of thinking and tinkering to get it up, but I have been waiting to be able to run apl on the mac, s