216
LISP is ugly (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] yogthos@lemmy.ml -5 points 2 years ago

Js is single threaded from user perspective. You have no access to the threading runtime as a user and cannot spawn a thread in Js to do some background work. Workers are a recent addition, but using them is quite different from what I'm talking about.

And being stuck in a while loop is precisely why people have to use callbacks and why all the APIs are async. This is literally the problem. If you're dealing with any non trivial load, you are forced to use async mechanics.

this post was submitted on 24 Sep 2023
216 points (93.5% liked)

Programmer Humor

41294 readers
377 users here now

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

Rules:

founded 6 years ago
MODERATORS