News for hackers. Stuff that matters.
Re:Ruby 3.4.0 by Vaguely2178 on Wednesday December 25, 2024 @02:38PM (#42510674)
Not sure why this is considered a "classic" piece. It reads as if the author has just discovered the difference between preemptive vs cooperative scheduling, but hasn't yet found the words to describe his "discovery". Yes, you can write a `while(true){}` loop and block the event loop. That's not some damning indictment of Node. The point of Node is that you don't have to block on IO, so your program doesn't have to halt the entire world, and sit around doing nothing while you're waiting for a hard drive to spin or a network request to complete.

There are no comments on this comment yet.