PROOF JavaScript is a Multi-Threaded language

  Рет қаралды 255,471

Beyond Fireship

Beyond Fireship

9 ай бұрын

Learn the basics of parallelism and concurrency in JavaScript by experimenting with Node.js Worker Threads and browser Web Workers.
#javascript #programming #computerscience
Upgrade to Fireship PRO fireship.io/pro
Node.js Worker Threads nodejs.org/api/worker_threads...
Check out @codewithryan • Node.js is a serious t...

Пікірлер: 529
@H-Root
@H-Root
I am stuck step programmer 😂😂
@daedalus5070
@daedalus5070
I could feel my brain trying to stop me writing what I knew was an infinite loop but I did it anyway. I trusted you Jeff!
@AlecThilenius
@AlecThilenius
Fun nerd trivia:
@RedlinePostal
@RedlinePostal
Also when we say "one-core," that means "one-core at a *time*" -- computer kernels are concurrent by default, and the program's code will actually be constantly shifting to different CPUs, as the kernel manages a queue of things for the processor to do. Not too unlike the asynchronous system that javascript has, kernel will break each program you're running into executable chunks, and has a way to manage which programs and code get more priority.
@WolfPhoenix0
@WolfPhoenix0
That chef analogy about concurrency and parallelism was genius. Makes it SO much easier to understand the differences.
@elhaambasheerch7058
@elhaambasheerch7058
Love to see jeff going in depth on this channel, would love more videos like this one.
@JThompson_VI
@JThompson_VI
Moments like
@ra2enjoyer708
@ra2enjoyer708
It's a pretty good overview on how much more of a clusterfuck the code becomes once you add workers to it. And it didn't even get to the juice of doing fs/database/stream calls within workers and error handling for all of that.
@yss64
@yss64
Thanks for shouting out code with ryan! That channel is criminally underrated
@srejonkhan
@srejonkhan
6:13
@BRBS360
@BRBS360
I'd like to see a video on JavaScript generators and maybe even coroutines.
@nomadshiba
@nomadshiba
talking about multi-threading
@dzhaniivanov5837
@dzhaniivanov5837
i watched a similar video early this year, but your way to deliver content is amazing, keep going
@user-fed-yum
@user-fed-yum
That ending was possibly one of your best pranks ever, a new high watermark. Congratulations 😂
@deneguil-1618
@deneguil-1618
just a heads up for your CPU; the 12900K doesn't have 8 physical cores, it indeed has 16, 8 performance and 8 efficiency cores, the performance cores have hyperthreading enabled but not the efficiency cores so you have 24 threads in total
@7heMech
@7heMech
Really cool, I actually saw the other video about nodejs taking it up a notch when it came out.
@kiprasmel
@kiprasmel
the `threads` package makes working with threads much more convenient. it also works well w/ typescript.
@EdgeGaming
@EdgeGaming
Lots of comments about memorable descriptions, shoutout to the thread summary at
@Ihavetoreturnsomevideotapes
@Ihavetoreturnsomevideotapes
ayo , was learning event loop and had a bit of confusion about performance b/w single and multithreading and jeff just posted the video at the right time.
@wjlee7003
@wjlee7003
although it's called concurrent, schedulers still can only work on one task at a time. It will delegate a certain amount of time to each task and switch between them (context switching). The switch Is just fast enough to make it seem truly "concurrent". If a task takes longer than the delegated time, the scheduler will still switch and come back to it to finish.
100+ JavaScript Concepts you Need to Know
12:24
Fireship
Рет қаралды 1,8 МЛН
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 619 М.
NO NO NO YES! (Fight SANTA CLAUS) #shorts
00:41
PANDA BOI
Рет қаралды 56 МЛН
Суд над Бишимбаевым. 2 мая | ОНЛАЙН
7:14:30
AKIpress news
Рет қаралды 514 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 374 М.
How I deploy serverless containers for free
6:33
Beyond Fireship
Рет қаралды 368 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,7 МЛН
CONCURRENCY IS AN ILLUSION?
16:59
Core Dumped
Рет қаралды 66 М.
Big Tech AI Is A Lie
16:56
Tina Huang
Рет қаралды 46 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,5 МЛН
Sorting Algorithms Explained Visually
9:01
Beyond Fireship
Рет қаралды 496 М.
JavaScript: How It's Made
10:54
Fireship
Рет қаралды 864 М.
How to use Multithreading with "worker threads" in Node.js?
19:34
Software Developer Diaries
Рет қаралды 40 М.