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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Incremental loading

I'd like to load an image incrementally and draw what has been loaded until 
loading is complete. My "loading" code is an ocamlyacc parser. What's the 
easiest way to convert it into something which incrementally produces output?

My guess is that I use ocaml's threads and make the parser compose its output 
by way of side effects, such that the intermediate results can be read. 
Perhaps an alterative is to make the loader recycle loaded data and a stream. 
Does anyone have any example code which does this kind of thing?

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists