Damus
Zło To 🏴‍☠️ · 44w
nostr:nprofile1qyt8wumn8ghj7un9d3shjtnyd968gmewwp6kytcqypau8rylf6un6qx5f9286c8u6efquf0y0rfmd964y3672qkj9pr5gfljlv4 two other languages that this applies to are python and rust.
Kornel profile picture
@nprofile1q... Rust can convert between sync and async within functions (tokio complains if you carelessly layer sync and async too much, but that is tokio's choice, and not a dead-end either). Languages with threads generally don't have this problem, because they can always spawn a thread for running blocking code, or block a thread waiting on a signal from async code. JS is unique in insisting on a single event loop.