Version française
Home     About     Download     Resources     Contact us    
Browse thread
HLVM stuff
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David McClain <dbm@r...>
Subject: Re: [Caml-list] HLVM stuff

On Sep 27, 2009, at 12:25 PM, Jon Harrop wrote:

> where the "kthSmallest" and "Array2D.parallelInit" functions are both
> polymorphic. The former handles implicit sequences of any comparable  
> type and
> the latter handles 2D arrays of any element type. This use of  
> polymorphic


But facing a situation with 2^26 pixels to process, I would never do  
that. I would write a type-specific function to apply. Why dispatch of  
every pixel of the aggregate, when I could dispatch once at the top,  
to decide what kind of homogeneous array...

Dr. David McClain
dbm@refined-audiometrics.com