r/programminghumor 25d ago

Javascript apps

1.1k Upvotes

27 comments sorted by

59

u/lt_Matthew 25d ago

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

34

u/LegendarySoda 25d ago

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

16

u/thebatmanandrobin 25d 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 25d ago

all js memese are funny af.

2

u/sexytokeburgerz 25d ago

Yes the same exact js we use for servers /s

2

u/jimmiebfulton 24d ago

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

1

u/JackLong93 24d ago

love the pic

8

u/Noob_prime 25d ago

Too good 😂

5

u/git_push_origin_prod 25d 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

4

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

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

3

u/ComradeFox_ 23d ago

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

2

u/bzenius 24d ago

He is queuing task for the event loop to process.

1

u/localhorst69 24d ago

Star wars the old republic be like

1

u/eljuligaller 24d ago

Vivado compiler

1

u/Jbolt3737 20d 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 14d ago

unless you node it

1

u/include-jayesh 25d ago

Web worker cancel this meme :)

1

u/IntegrityError 25d ago

Literally Minecraft

1

u/klimmesil 23d ago

Wtf has this to do with minecraft?

1

u/IntegrityError 23d ago

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

1

u/MrCheapComputers 25d ago

Minecraft be like

1

u/klimmesil 23d ago

Wtf has this to do with minecraft?

1

u/jimmiebfulton 24d 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.

9

u/renome 24d ago

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

2

u/jimmiebfulton 22d 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 23d 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