« first day (1 day earlier)    last day (14 days later) » 

6:54 AM
@BitTickler Whenever I find I "cannot fathom" why [something that is in widespread use] could ever be a good idea, I safely conclude that I need to educate myself [instead of finding a group of people that agree with me.]
It's weird, to me, to simply assume I'm much smarter than many other people who apparently can implement asynchronous API's in various OS kernels and language frameworks alike.
 
 
6 hours later…
12:48 PM
How about this logic: Packets arrive from the outside and the application wants to use them. There are 2 and only 2 options for the application to learn about the presence of the data: 1. It waits for it. 2. It queries if it is there.
Ad 1: This is blocking. Ad 2: This is polling as polling is another word for query here Oh and there is of course the variation of 1. Let someone else wait for it and have me called back (typically in the context of another thread). Or the variation: Have someone else wait for it (another thread or the kernel) and send my thread a message and then I wait of the message.
The problem is that people act as if it were magic. But it is not. And encapsulation or shifting of who does which part of the work is not changing what happens. If asio uses boost::coroutine and boost::execution_context to schedule a cooperative tasklet whenver a packet is available or if it does something else - it does not change the fact that then boost asio has to do a flavor of 1 or 2.
 
1:02 PM
Bottom line: Just because boost::asio mixes aspects of an applications design in a sometimes practical but most often annoying way, that it digs deep to assembler level to teach c++ coroutines (and as such is a high risk if you have to frequently port to new, obscure hardware and software platfom as was in the context of my job a major concern) and that it then pushes people into non-blocking sockets (which does not make me trust it any bit more) ...
... does not mean that boost:asio changes the way an operating systems tcp stack works or the thread and process model of an operating system. And any time people try to convince me, they argue borderline in that direction.
 
 
3 hours later…
3:46 PM
Your "logic" is a bunch of straw man arguments. No one said that boost::asio is magic. No one said that boost::asio (or any other modern non-blocking I/O API) disallows blocking. No one said that boost::asio changes the TCP stack. No one said that boost::asio alters the process model.
What I've said is boost::asio (like other modern non-blocking I/O APIs) does not "end[s] up in spinning threads" (your words). But even if you do ascribe those strawmen to me, none of that actually supports your original statement. None of that makes boost::asio spin.
If you don't want to use boost::asio, that's fine. There are valid reasons not to do so. But making up a reason not to use it that is demonstrably false and hanging on to that position for dear life isn't terribly productive.
 

« first day (1 day earlier)    last day (14 days later) »