On 01/16/2014 05:17 AM, Stefan Adams wrote:
As probably the biggest culprit of people who cause bugging on this topic,
I would just like to add in that it bugs me from the other side that I have
been so slow to "get" it. I'm learning much more about blocking and how
it's non magical and have come a long way since starting the conversation
on this list nearly a year ago and I sincerely appreciate the patience of
everyone that has helped me through it (Ben and sri at the top of that
list, and I'm sorry that this has caused a desire to end the conversation
of the topic). I know that what awaits me on the other side is so worth
it! Mojolicious is an amazing framework and I too am bothered by people
sticking blame on Mojo when the issue is nothing of Mojo's (and trust me
when I say I've never felt that the issue is Mojo's). I don't want to see
Mojo slammed or illed for something that it has no hand in whatsoever.
What blocking/non-blocking amounts to is a conversation not about
Mojolicious but about Perl, the operating system, hardware, and everything
else but Mojo.
So... what can be done about it? Perhaps a reading list to say if you're
gonna go down this path, read these things, and understand this stuff
first. Ben and sri, how can I know what you guys know?? What did you
read? Where did you go to school? What project code should I be looking
at?
I never went to school for any of this, I got my non-block-fu from
writing IRC bots a hell of a long time ago when select() was the only
thing available at the time to deal with non-blocking sockets. The
concept itself isn't particularly hard, compare it to... well let's say
this;
1) You put a kettle of water on the stove, and you wait until you see it
boiling, then make tea
2) You put a kettle of water on the stove, and you go to your room and
reply to emails on a mailinglist until you hear the kettle whistle, then
you go back to the stove, get the kettle, and make tea
The difference is subtle but #1 is blocking and #2 isn't. Figure out
what the subtle difference is, and you're well on your way to wrapping
your head around non-block-fu :)
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.