> From: "Sandro Magi" <[EMAIL PROTECTED]> > > Felix comes with a high performance platform independent > > asynchronous I/O subsystem: works with sockets mainly, > > but RF (the author) is playing with Unix pipes and some > > other stuff. > > Excellent! :-)
I think that stuff just works on the unix side... There are windows versions for named pipes, but they currently live in the regression test code and not in the library. > > There's some support for async disk file I/O, but really > > Linux can't do this so it's fairly pointless. Win32 felix happily uses TransmitFile. That looks like async file io to me, or at least async file -> socket. I don't see any reason to limit ourselves to things that linux is capable of... In fact the library can transparently take advantage of the existence of platform specific functions like TransmitFile/sendfile if you use the "cat" call. Hmm, the Flx_stream code doesn't seem to do that, it's using a memory buffers and reads and writes. That's a "todo" right there. > Well, some web servers seem to do fairly well with epoll (see lighttpd, et > al). epoll for async disk io? the linux build already uses epoll, so if epoll can indeed do that then just mashing a file descriptor into the felix code should work. > > libaio is crap: it does it in user space with pthreads. > > Not too familiar with it, just that it exists. As long as Felix has > something, I can build on that. Felix already has the equivalent of libaio (a queue + a thread that does read/write). Just use the fd_t type and you'll get the async io behaviour, that is, the reading/writing felix thread will be suspended while the io happens and other felix threads will synchronously continue processing. RF ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language