English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-06-01 (22:40)
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