On 13-Jan-08, at 5:38 AM, David Rush wrote:
Because as soon as you start in on FFI coding (read's not the only thing - but it is the main thing) you start to assume that that is where your answers will all lie?
Don't forget that if you can do it, using read-subu8vector instead of the C library or POSIX read routines would give the benefit of integrating well into Gambit's multithreading.
(The possible alternative for achieving the same thing being using the libevent patch Adam Langley posted some time ago, and using libevent instead of the C library/POSIX read routines in the C code. Or, yet another alternative, run the FCGI stuff in separate pthread's and use posix pipes for synchronization between C and Gambit (needs registration of the Gambit's pipe ends in the Gambit runtime), ask for details if you want to do this.)
Christian.
(*) https://webmail.iro.umontreal.ca/pipermail/gambit-list/2005-August/000367.ht...