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

2014-03-31 Thread Elias Mårtenson
After some talk on Freenode #jsoftware, it was asked if you could use a better font? I would suggest GNU FreeMono. That's the one I use in my Emacs windows and looks great for APL: http://www.fontspace.com/gnu-freefont/freemono Regards, Elias On 31 March 2014 15:03, Elias Mårtenson

[Bug-apl] Questions about GNU APL

2014-03-31 Thread Blake McBride
Greetings, I started programming in APL in 1980. I programmed in it for about five years. I have a lot of fond memories. I hadn't been too interested in APL for a long time because it was controlled by vendors who could go out of business at a moments notice. I couldn't base anything on it -

Re: [Bug-apl] EACH by axis

2014-03-31 Thread Jay Foad
On 31 March 2014 04:51, Elias Mårtenson loke...@gmail.com wrote: 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

Re: [Bug-apl] EACH by axis

2014-03-31 Thread Elias Mårtenson
Jay, thanks for reminding me of the rank operator. I had forgotten about that one. :-) Yes, in this case it would definitely do the right thing, but as you mention it won't allow you to work on other axes. Regards, Elias On 31 March 2014 15:29, Jay Foad jay.f...@gmail.com wrote: On 31 March

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

2014-03-31 Thread Kacper Gutowski
On 2014-03-30 20:50:31, baruc...@gmx.com wrote: At first glance, it seems to work: http://baruchel.hd.free.fr/apps/apl/i/ You can know use it as an online interpreter. I will add some colors/themes in the days to come, but the most difficult part is done. Great work! It's really nice to have

Re: [Bug-apl] Bug in function editing

2014-03-31 Thread Elias Mårtenson
Are you sure it's a bug? You seem to be taking the value of r when it has no value. Also, I think your x should be ×. Regards, Elias On 31 March 2014 13:19, Blake McBride blake1...@gmail.com wrote: ∇r←c Parse a [1] r←(((0≠⍴a)x⍴r),⌈/r)⍴(,r∘.≥⍳⌈/r←¯1+(r,1+⍴a)-0,r←r/⍳⍴a)\(~r←r∈c)/a←,a [2] ∇

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

2014-03-31 Thread Elias Mårtenson
The Nable editor should (in my opinion) open a separate editor just like the Emacs mode does. :-) Also, HTML gives us some great opportunities to create nice array visualisations without having to rely on character graphics. I'm going to whip up a simple example showing what it could look like.

Re: [Bug-apl] Bug in function editing

2014-03-31 Thread Kacper Gutowski
On 2014-03-31 15:37:45, Elias Mårtenson wrote: Are you sure it's a bug? You seem to be taking the value of r when it has no value. I think the problem is that you can't edit a function that is currently on SI stack, not that Parse erred. -k

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

2014-03-31 Thread Kacper Gutowski
On 2014-03-31 15:40:06, Elias Mårtenson wrote: The Nable editor should (in my opinion) open a separate editor just like the Emacs mode does. :-) That's one way to do things. But wouldn't it be nicer to just use something like )EDIT rather than hijacking ∇ for that purpose? I actually hated the

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

2014-03-31 Thread Elias Mårtenson
All right. I did some testing. What you are probably looking for is bold. You can experiment directly with the terminfo commans using the command tput. So, to set black background, white text: tput setb 0 tput setf 7 Then, you can enable highlight of the foreground colour: tput bold The

Re: [Bug-apl] Bug in function editing

2014-03-31 Thread Blake McBride
Thank you for your reply. I was trying to correct a typo when I encountered the problem. Yes, the problem is that I have a SI. It has been so long, I forgot about that. I still think there is a small bug, however. Seeing the message 'problem 'Nabla.cc:444' would make anyone think there was an

Re: [Bug-apl] Questions about GNU APL

2014-03-31 Thread Blake McBride
Dear Jürgen, Thank you for responding. Please see my comments below: On Mon, Mar 31, 2014 at 9:12 AM, Juergen Sauermann juergen.sauerm...@t-online.de wrote: Hi Blake, 1. currently there is only bug-apl@gnu,org that deals with everything related to GNU APL. The posting frequency is not

Re: [Bug-apl] Bug in function editing

2014-03-31 Thread Juergen Sauermann
Hi, thanks for reporting this, fixed in SVN 181. /// Jürgen On 03/31/2014 05:59 PM, Kacper Gutowski wrote: On 2014-03-31 10:15:23, Blake McBride wrote: I still think there is a small bug, however. Seeing the message 'problem 'Nabla.cc:444' would make anyone think there was an internal

[Bug-apl] Database integration

2014-03-31 Thread Elias Mårtenson
I'm been playing around with integration SQL support, using the Postgres APL. It's quite easy, and can be quite useful. However, I need some suggestions before I make something that is releasable: - Right now I'm using libpq, which is Postgres-specific. This is obviously not ideal. Any