Hacker News new | ask | show | jobs
by Peaker 5183 days ago
Or Haskell, Erlang or various other languages that have better solutions for non-blocking I/O.
1 comments

Or C, C++, Java, Python or Ruby.

Every language has solutions for non-blocking I/O, even the boring ones.

C doesn't have a good solution for non-blocking IO. Managing callbacks and their lexical scopes manually is quite painstaking.

User-level threads are non-standard, and ordinary threads are too heavy. All forms of threads lose much of C's benefit due to the relatively heavy stack allocation per thread.