User loginNavigation | 
   
large imperative code --> functional(note the complementary thread) Given an imperatively styled program in C, with complex shared state, how would people suggest converting it to functional style? The program I'm working with is Chromium, which implements a stream-processing model over the OpenGL API, so that the calls from a graphics program (e.g. Quake) get turned into a stream of function calls that can be filtered/modified. To do this, Chromium contains a "state machine" which tracks all state contained in OpenGL: lighting, raster-position, textures, matrix-stacks, etc. etc. Via google I found HOGL, a functionalish Haskell binding for OpenGL that lets you do things like: - that is, you can do some state-changes (here setting the current color and changing the modelview matrix) in a functional style. ..anyway, how would people suggest to deal with a large state-machine like that in OpenGL? Are there tools out there for semi-automation of the process? By dbfaken at 2005-08-16 14:44 | LtU Forum | previous forum topic | next forum topic | other blogs | 9895 reads 
 | 
   Browse archives
 Active forum topics | 
  
Recent comments
15 min 28 sec ago
1 day 4 hours ago
1 day 5 hours ago
6 days 5 hours ago
6 days 6 hours ago
6 days 6 hours ago
3 weeks 6 days ago
4 weeks 5 days ago
4 weeks 5 days ago
4 weeks 6 days ago