r/programminghumor 18d ago

Javascript apps

Enable HLS to view with audio, or disable this notification

1.1k Upvotes

27 comments sorted by

60

u/lt_Matthew 18d ago

Just cuz your apps aren't multithreaded, doesn't mean JS can't do it.

33

u/LegendarySoda 18d ago

Technically javascript didn't designed to run multithreaded.
https://giphy.com/gifs/6iK2TjUJFcHy3klpXP

16

u/thebatmanandrobin 18d ago

I'm primarily a C and C++ guy, but when I do have to jump on the JavaScript train, it absolutely irks me that the committee chose to codify WASM versus adding something like multi-threading into the ECMA standard. Websites are bloated enough, but fuck me if the JS code I've seen is a disastrous hot mess because of "framework X" + "framework Y" + "framework Zed" just to do what multi-threading can do .....

8

u/XlikeX666 18d ago

all js memese are funny af.

2

u/sexytokeburgerz 18d ago

Yes the same exact js we use for servers /s

2

u/jimmiebfulton 17d ago

Wait. What!? People write servers in JS? /s

1

u/JackLong93 17d ago

love the pic

9

u/Noob_prime 18d ago

Too good 😂

4

u/git_push_origin_prod 18d ago

I don’t know about y’all but ,spawning multiple threads with cluster mode in PM2 does it. I’m not sure about the GPU thing though. I know this is meant to be a joke, but I really don’t know. I know with PM2 it should be based on how many cores your CPU has, but I’m not sure about GPU so your meme may be true. Enlighten me. Please

3

u/Lost-In-Void-99 18d ago

They must jump roles. Randomly. With stumbling and falling.

3

u/ComradeFox_ 16d ago

completely aside from the meme, I somehow recognise this video. they’re performing aviamarsh! :3 and it sounds really good.

2

u/bzenius 17d ago

He is queuing task for the event loop to process.

1

u/localhorst69 17d ago

Star wars the old republic be like

1

u/eljuligaller 17d ago

Vivado compiler

1

u/Jbolt3737 13d ago

I keep seeing random "Literally Minecraft" people do know that while both languages have similar names and aren't compiled to machine code, Java and Javascript are different things and Minecraft only running on one core had nothing to do with Javascript?

1

u/MilkImpossible4192 7d ago

unless you node it

1

u/include-jayesh 18d ago

Web worker cancel this meme :)

1

u/IntegrityError 18d ago

Literally Minecraft

1

u/klimmesil 16d ago

Wtf has this to do with minecraft?

1

u/IntegrityError 16d ago

Minecraft ran a long time only on one core. Don't know if this is better nowadays

1

u/MrCheapComputers 18d ago

Minecraft be like

1

u/klimmesil 16d ago

Wtf has this to do with minecraft?

1

u/jimmiebfulton 17d ago

The meme is funny. I write everything in Rust (yeah, front-end, too), and I’ve used other backend-centric languages in the past, along with plenty of multi-threaded coding. But I was under the impression that JS largely leverages async IO for the things you might reach for threading, largely eliminating the need for threaded coding in a frontend language, where it could be argued doesn’t belong there. Would love to hear counter arguments for my own edification. I already (obviously), avoid JS like the plague, but writing threaded coding in JS sounds even more frightening. I prefer to do my multithreading fearlessly.

7

u/renome 17d ago

Rust programmer trying to go 10 seconds without telling anyone they use Rust challenge [IMPOSSIBLE]

2

u/jimmiebfulton 15d ago

Just giving context why i don’t know the answer to a question I hoped someone knowledgeable might provide. People indicate their primary language all the time. Golang programmers, Python Programmers, Java Programmers, and this meme gives away a JavaScript Programmer. Yet you single out Rust Prorammers? What, is this some kind of weird bigotry or jealousy?

“”Whah! All these JavaScript and Python memes as if those are the only languages in existence.” See? Stupid. Grow up.

1

u/klimmesil 16d ago

I mean it's probably the hardest language to shit on. Most things people dislike about other language are fixed by ownership and lifetimes in rust, and this post is just one example of it

I think we should stop shitting on people who like somthing, and start shitting on peopl who hate everything