Re: Sorting routine
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Sorting routine         

Group: comp.lang.forth · Group Profile
Author: Jonah Thomas
Date: Sep 5, 2008 09:07

Frank yahoo.com> wrote:
> I am being lazy, thought I would ask if you could point me in the
> direction of a sorting routine. I simply want to sort the elements in
> an array. I have done it before just didn't want to start again from
> scratch. Yes I did search the archives and nothing turned up.

When I looked at this, I found that Marcel collected 8 sort routines and
set up a testbed framework to check their speeds under various
conditions.

It's in the file manysorts.frt in the archive monster.zip (monster
benchmarks) that can be found here:

http://home.iae.nl/users/mhx/monsterbench.html

I haven't checked whether the routines can be improved
-- if their use
was for benchmarks to test Forth systems then they wouldn't need to be
done well. Some of them might use tricks that are specifie to iForth.
But at the least they're a good starting place and if you can get the
testbed to work you can test improvements.
1 Comment
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
Re: Sorting order with sort()macromedia.labs.spry_framework_for_ajax_prerelease ·