Re: [Bug-apl] Doing without loops

2015-08-30 Thread Kacper Gutowski
On Mon, Aug 31, 2015 at 2:19 AM, Louis de Forcrand wrote: > Now, my two questions aren't necessarily bugs, but the > blog is titled "bugs and discussion". Anyway, how would I go about > repeating a function using ⍣ until the answer reaches a certain value? > e.g.: > FIB ← { 2 ↓ ( { ⍵ , +/

Re: [Bug-apl] Circle

2015-08-30 Thread Mike Duvos
Hi, I looked into the ¯4○ thing a bit more and have identified the discrepancy between APL2 and GNU APL, which may or not be a bug depending on whether the ISO spec agrees with APL2 on this function. According to the APL2 language reference, if the real part is greater than or equal to zero, or t

[Bug-apl] )LOAD Error

2015-08-30 Thread Louis de Forcrand
I forgot to include this in my previous message. Sorry. I'm on a Mac, and I save my workspaces in ~/Documents/APL/workspaces/ (apparently GNU APL automatically puts WSs in the workspace dir) "~/"is"/Users/myaccount/"on Macs. When I cd into "APL/" then start GNU APL and do ")LOAD wsi

[Bug-apl] Doing without loops

2015-08-30 Thread Louis de Forcrand
Hi, it's me again. The latest svn works like a charm. ./configure, make, make check, make install, make installcheck. Couldn't be easier. Now, my two questions aren't necessarily bugs, but the blog is titled "bugs and discussion". Anyway, how would I go about repeating a function using ⍣ until

Re: [Bug-apl] Circle

2015-08-30 Thread Mike Duvos
Dropped an iota in the prior post. X←1D1*⍳360 +/¯4○X ¯3.814090113E¯8J3.814086508E¯8 That changes the IBM result slightly, but the GNU APL one is still off by a large amount. On Sun, Aug 30, 2015 at 9:13 PM, Mike Duvos wrote: > )CLEAR > CLEAR WS > ⎕IO←0 > X←1

[Bug-apl] Circle

2015-08-30 Thread Mike Duvos
)CLEAR CLEAR WS ⎕IO←0 X←1D1*360 +/(¯1+X×X)*0.5 5.393937829E¯8J¯5.393937829E¯8 [IBM APL2] +/¯4○X 5.393937829E¯8J¯5.393937829E¯8 [GNU APL] +/¯4○X 122.0040743J2.828427087 I think this is wrong.

Re: [Bug-apl] XML to APL

2015-08-30 Thread alexweiner
Elias, Apology accepted. In any case, a complex solution is better than none at all, and very much appreciated. If anything, doing one will make it easier for me to make a second. Challenge accepted.-Alex Original Message Subject: Re: [Bug-apl] XML to APL From: Elias_Mårtenson <

[Bug-apl] Workspace Migration Error

2015-08-30 Thread Mike Duvos
[IBM APL2] )CLEAR CLEAR WS ⎕IO←0 M←¯12+⍳25 )OUT OUT [GNU APL] )IN OUT ERROR: inverse 2 ⎕TF failed for 'M←¯12-⎕IO-⍳25 I'm assuming the error here is on the GNU APL side of the transaction, as APL2 has been around for a while, and people would have complained.

Re: [Bug-apl] XML to APL

2015-08-30 Thread Elias Mårtenson
The multiplexer function was my idea. The idea was to not be dependent on a given C++ implementation's ABI and instead dispatch calls through a function with C-linkage. This didn't work because it turned out that the modules needs lots and lots of access to the innards of GNU APL, so even if the e

Re: [Bug-apl] XML to APL

2015-08-30 Thread alexweiner
forgot to cc the list.  Original Message Subject: RE: [Bug-apl] XML to APL From: Date: Sun, August 30, 2015 11:28 am To: "Elias_Mårtenson" In that case, I'll attempt to use xerces. I say "attempt" because I get to the multiplexer

Re: [Bug-apl] Prime Performance and others

2015-08-30 Thread Mike Duvos
Hi Elias, It appears I screwed up my previous benchmark of SIEVE. I apparently forgot I had the XTerm on my desktop logged into an instance of Ubuntu Server LTS on Amazon Web Services, and ended up comparing APL2 on my desktop with GNU APL on a much faster processor. I've built SVN 669 on my Del

Re: [Bug-apl] Prime Performance and others

2015-08-30 Thread Elias Mårtenson
All right, I have re-run the Sieve benchmark on GNU APL as of svn id 669. I do see differences, but they are not great. I also ran it on a reduced case in order to have it finish quicker, so the breakdown could be incorrect. I will re-run this on the full (SIEVE 10) test case and report back.

Re: [Bug-apl] take and drop on matrixes?

2015-08-30 Thread Alexey Veretennikov
Hi, This is even better, thanks! Br, /Alexey On 30/08/15 01:19, Kacper Gutowski wrote: On Sun, Aug 30, 2015 at 12:02 AM, Alexey Veretennikov wrote: Thanks, it looks indeed like I have to specify all sizes in GNU APL. In Dyalog you can use Dyalog's extensions to the standard but in GNU APL,