caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* HLVM stuff
@ 2009-09-27 17:33 David McClain
  0 siblings, 0 replies; 2+ messages in thread
From: David McClain @ 2009-09-27 17:33 UTC (permalink / raw)
  To: caml-list

Okay, I think I may be seeing what you are driving at...

In order for any language to statically accommodate polymorphism, some  
uniform (boxed) representation of possible operands is needed.  
Whereas, with JIT, you have the option of detecting unboxed types at  
runtime and dispatching to code specifically tailored to that kind of  
operand. No boxing needed?

But now, in scientific computing, I would expect to see very little of  
the profile being occupied by these kinds of specializations, and much  
much more involved with whole array copying, and the mapping of  
operations over already unboxed array elements. If once could sense  
from function liveness analysis that some source array of floats, say,  
will no longer be needed, then its memory could be used for the result  
array of some operation, rather than constructing a whole new result  
array.

Wouldn't that kind of optimization pay off much more handsomely than  
dealing with these more symbolic oriented computations?

Dr. David McClain
dbm@refined-audiometrics.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

* HLVM stuff
@ 2009-09-27 17:43 David McClain
  0 siblings, 0 replies; 2+ messages in thread
From: David McClain @ 2009-09-27 17:43 UTC (permalink / raw)
  To: caml-list

... as a specific example, I remember dealing with stacks of images  
taken from an infrared imaging sensor -- perhaps 256 images, each of  
which is, say 512 x 512 pixels. I needed to obtain median pixel values  
from the stack and produce one "median image", as well as perform  
thresholding, masking, perhaps some dilation and erosion. And, also  
get the image 2-D FFT image.

So there we are dealing with an aggregate of 2^26 8-bit pixel values.  
Surely, the majority of time is spent processing pixels, and not  
dispatching over some polymorphic type...

Dr. David McClain
dbm@refined-audiometrics.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-27 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-27 17:33 HLVM stuff David McClain
2009-09-27 17:43 David McClain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).