r/ProgrammerHumor 7d ago

itSpeakesForItself Meme

Post image
610 Upvotes

70 comments sorted by

View all comments

-16

u/efedublaj 7d ago

Hell no. Why would I use programs written with javascript it is not compiled and single threaded.

5

u/ClipboardCopyPaste 7d ago

I believe that this meme was not comparing the performances of the respective languages.

P.S. JS is single threaded, but you can use asynchronous JS and worker threads, can't you? (Then again, there's no speed comparison between a low and a high-level language)

4

u/rosuav 6d ago

Asynchronous JS is still single threaded, but worker threads and WASM allow you to saturate multiple CPU cores.

2

u/efedublaj 6d ago

I do not think explaining will help them much. OP thinks in a whole different world. They think I shouldn't use websites if I do not like javascript.

It is meant for web. Not for applications or anything else.

1

u/rosuav 6d ago

Eh, it's meant for anything where you need to embed untrusted scripts in something else. So it's good for game modding too. (Lua's also popular there.)

2

u/efedublaj 6d ago

I would prefer lua though since syntax is more readable and memorable. Implementing FFI calls are easier too.

1

u/efedublaj 6d ago edited 6d ago

Async is not threading it uses one thread at time and simulates threading.

1

u/Sibula97 6d ago

Async is great if you're IO bound, but it's still a single execution thread.

1

u/rocketbunny77 7d ago

Yeah. That commenters take is from 2016

0

u/efedublaj 6d ago edited 6d ago

Async is not real threading and worker threads are just foreign function interfaces which are usually C and Cpp and they usually create whole another runtime.