Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Some suggested improvements to the Graphics and Bigarray modules
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Berke Durak <berke@a...>
Subject: Re: [Caml-list] Some suggested improvements to the Graphics and Bigarray modules
On Fri, Oct 12, 2001 at 05:02:00PM +0200, Xavier Leroy wrote:

> As others mentioned, it might be more reasonable to build on a
> lower-level, more efficient library for manipulating bitmaps and pixmaps.

Care must be taken so that it doesn't degenerate into yet another GUI
toolkit. Personally, I think that being able to display an array of
pixels in a window is more than adequate for teaching and
basic displays.

> Yes, this color cache machinery should be reworked.  We did a patch to
> bypass it entirely in case of "true color" displays, but in general
> the cache should grow dynamically.

Thanks, I'll try that.

> > Fifth, and most important point (since I can't hack it myself) : I'd
> > really like to see access to Bigarrays optimized. Currently, they are
> > not (library call for each access).
> 
> Not quite.  With the native-code compiler ocamlopt, accesses to 1-, 2-
> and 3-dimensional big arrays are expanded in line, *provided the
> complete type of the big array is known*.

I didn't notice that ! That's great, could you mention it in the
documentation ?

Thanks for the detailed reply. But what about the point number four,
namely that Bigarray syntax isn't handled by Camlp4 ?
--
Berke



-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr