this post was submitted on 28 Jan 2024
678 points (94.8% liked)

Programmer Humor

32430 readers
1081 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] hubobes@sh.itjust.works 82 points 9 months ago (1 children)

If you are waiting for IO, why would you block your current thread and not let it do something else? Async does not only exist in JS.

[–] SorryQuick@lemmy.ca 0 points 9 months ago

I think they’re talking about the async/await syntax that’s common now in high level languages. Like, what’s the difference between that, or using actual threads? The only advantage I see is that it’s significantly easier/faster to use hence why it’s popular with languages like JS.