On 28 October 2010 12:42, john skaller <skal...@users.sourceforge.net> wrote: > > On 28/10/2010, at 9:18 PM, Rhythmic Fistman wrote: > >>> Date: Thu, 28 Oct 2010 09:12:24 +1100 >>> From: john skaller <skal...@users.sourceforge.net> >> >> >>> I guess I use open() then dup2() to create fd's for 0,1,2 so >>> the webserver can still do I/O.. not sure what happens >>> to C++ streams cin, cout, cerr or C streams stdin, stdout. stderr >> >> who even uses that stuff? > > > Felix itself does, in the library println etc use cout, > Text_file uses FILE* etc. > > Of course that could be changed to use native OS I/O exclusively. > File and char streams aren't using async .. probably slower than > blocking calls.
There didn't seem to be much to do there - kqueue-style readiness interfaces always reported "ready" and the async io that some OSes have didn't seem to be worth wrapping/using. i.e. last time I checked aio_read and friends just seemed to lamely spawn a thread. Maybe that's changed. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language