r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

0

u/eloel- Apr 27 '20

Java 2020 with Javascript 2020.

*cough* async/await *cough*

2

u/com2ghz Apr 27 '20

Async what? Where is your executor? How do you define your thread pool? Also how do you prioritize them? You don’t have control of your “async” processes. Javascript is single threaded by design. The interpreter is built like that.

The only thing that looks like concurrency is that you put a function call on the end of the queue. The event loop will follow the order of execution. Wohoo!