From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA22468; Fri, 12 Oct 2001 17:43:10 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA22367 for ; Fri, 12 Oct 2001 17:43:09 +0200 (MET DST) Received: from localhost.localdomain (Mix-Montsouris-109-4-57.abo.wanadoo.fr [80.9.126.57]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id f9CFh4j02900 for ; Fri, 12 Oct 2001 17:43:04 +0200 (MET DST) Received: (qmail 21803 invoked by uid 1001); 12 Oct 2001 15:38:24 -0000 Date: Fri, 12 Oct 2001 17:38:24 +0200 From: Berke Durak To: Xavier Leroy Cc: caml-list@inria.fr Subject: Re: [Caml-list] Some suggested improvements to the Graphics and Bigarray modules Message-ID: <20011012173824.A6595@gogol.zorgol> References: <20011009233142.A10140@gogol.zorgol> <20011012170200.G18676@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011012170200.G18676@pauillac.inria.fr>; from xavier.leroy@inria.fr on Fri, Oct 12, 2001 at 05:02:00PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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