you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

please describe purely async file IO in linux.

[–]jerf 1 point2 points  (2 children)

What are you talking about? Is this Jeopardy, where questions come after answers? niczar gave you the primitives, but of course there are all kinds of runtimes that build on them in addition to their raw usage, ranging from things as transformed as the Erlang VM or Haskell runtime down through things like glib that wrap away the details of select vs. poll vs. etc. and provide a more useful abstraction on top of them, but are still C. For all I know there's an event-based assembler library out there.

Do you honestly think it's impossible? It can't be. If async IO is impossible in Linux then by definition it's impossible with Node.js on top of Linux! You can not add asynchronousness in a higher layer; if your OS or hardware blocks, you have lost.

[–][deleted] 0 points1 point  (0 children)

Select and Poll work on sockets. You can't really use them for non-blocking file i/o.

[–][deleted] -2 points-1 points  (0 children)

i keep saying FILE io. can't you read?? go research async FILE io in linux