Problem sorting large nested arrays

General discussions related to APLNext's VisualAPL.

Moderators: Tech Support, phpbb_admin

Problem sorting large nested arrays

Postby Chris McIntosh » July 28th, 2011, 4:33 pm

I'm trying to sort 3 large nested arrays. Each contains strings of the form "DDDDDD-DDDDDD", where the D's are digits 0 through 9.

Array1 has length 25,925. Array2 has length 25131. Array3 has length 51056.

The statements I'm using are:

Sortâ†
Chris McIntosh
 

Analsysi underway

Postby joe_blaze » July 29th, 2011, 3:32 pm

Hi Chris,

Thanks for reporting this.

We are analyzing to duplicate the issue. If we can, we will create a fix and issue a new release. If not, we will ask you to attach a zip file of sample data to your post for us to try here.

Joe Blaze
joe_blaze
 
Posts: 383
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

Postby Chris McIntosh » August 2nd, 2011, 1:57 pm

Hi, Joe,

Thanks for looking into this. I appreciate it.

Some additional information. I did some more investigating, and it looks like sorts of arrays around 25,000 elements are not working either.

However, in trying to confirm this, I ran into another problem. The code I was using is below:

// Due to 12 digit keys, Int32[] isn't big enough.
// Key1Numeric can be untyped, but then is difficult to examine
// in Visual Studio.
Int64[] Key1Numeric

// Get alpha keys for 1st data, turn to numeric, sort.
Key1Alphaâ†
Chris McIntosh
 

Postby Chris McIntosh » August 2nd, 2011, 2:04 pm

Hi, Joe,

It took me four tries to post the message above. Parts of my code kept getting deleted. If you read an early version of my post, please re-read to make sure you have the complete code.

Thanks, Joe.

Chris
Chris McIntosh
 

Postby Chris McIntosh » August 2nd, 2011, 2:28 pm

Hi again, Joe,

I'm trying to find workarounds until this problem is found/fixed, but keep running into more strangeness. I was trying to use a dyadic iota in place of sorts. Here is the latest strangeness.

Key1Alphaâ†
Chris McIntosh
 

Postby Chris McIntosh » August 2nd, 2011, 2:31 pm

P.S. I should have stated that in the above example, Key1Numeric is not strongly typed. If I do strongly type it with Int64[], the dyadic iota gives a DOMAIN ERROR. It doesn't matter whether I strongly type Test or not. The result is the same. Chris.
Chris McIntosh
 

We are analyzing this report - Thanks for sending it.

Postby joe_blaze » August 16th, 2011, 2:09 am

We are reviewing the promotion of Int64 to double inside of the cvar class. I will post results asap.
joe_blaze
 
Posts: 383
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

Postby Chris McIntosh » August 17th, 2011, 1:55 pm

Hi, Joe,

Here is a much simpler example of character sorting not working, with a very small array.

// Script: TestSort created on 2011-08-17 10:59:36 AM by chris

// Create an array of states.
Labelsâ†
Chris McIntosh
 

See: VisualAPL Installer 1.5.8144 (Nov. 21, 2011)

Postby joe_blaze » November 28th, 2011, 3:06 pm

See here for the latest release of VisualAPL:

http://forum.apl2000.com/viewtopic.php?t=803

Be sure to uninstall the prior version first!
joe_blaze
 
Posts: 383
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361


Return to VisualAPL

Who is online

Users browsing this forum: No registered users and 1 guest

cron