Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
NecNator387yEdit:
Not mine, taken from a Google dev article by Jake Archibald.
Link: https://developers.google.com/web/... -
You could perhaps argue that sneezing is garbage collection.
You still don't want to much of that either, though -
kpenc21297yActually, a JS process runs on one thread. It's not asynchronous, it's non blocking. I don't think there's a universal cure as most of the software you use everyday is not running on multiple threads and that's fine. :)
-
@kpenc ummm.... no offense but it's pretty clear that you are a primary node developer and don't understand what multi threading, async I/O, and blocking is
-
What a about seizure? That would be considered blocking right? Or probably sleeping as well, lol and jerking off or having an orgasm. I mean I guess you could probably jerk off while driving, but once that orgasm kicks in, you'd probably want to have someone else hold the wheel for a second ; )
-
@kpenc
JS tends to be single threaded, but concurrent/async. Async, because it's fairly easy to create race conditions. Not truly parallel (unless you count workers/microservices), so you don't need channels, mutexes, etc like in Rust/Elixir/Go/Haskell/C#/etc -
"you can drive and hold a conversation at the same time" Can i ask you step out of the vehicle please sir/madam?
Related Rants
As a human being, you're multithreaded. You can type with multiple fingers, you can drive and hold a conversation at the same time. The only blocking function we have to deal with is sneezing, where all current activity must be suspended for the duration of the sneeze. That's pretty annoying, especially when you're driving and trying to hold a conversation. You don't want to write code that's sneezy.
undefined
threads
multitasking
multithreading
software design
sneeze