Gil Tayar @ Node.TLV 24` | Don’t believe the rumors: JavaScript *is* multi-threaded
HTML-код
- Опубликовано: 27 ноя 2024
- NodeTLV 2024
www.nodetlv.com
Israel's Annual Node.js conference
Powered by EventHandler and Node.js-IL
Don’t believe the rumors: JavaScript is multi-threaded
Yes, you can run multiple threads in JavaScript, using worker threads! This talk will first of all explain how JavaScript feels multi-threaded, but is actually single-threaded. It will discuss in which cases this is a problem, and then delve into the main course: worker threads and how they solve the problem of multiple threads. It will also discuss how to communicate between the threads using atomics, shared memory, and other constructs.
Yes, JavaScript is async, and thus feels multi-threaded, but once in a while you will need true multi-threads. This talk is there for you.
Gil Tayar
Principal Software Engineer @ Microsoft
35 years of experience have not dulled the fascination Gil Tayar has with software development. His passion is distributed systems and figuring out how to scale development to big teams. Extreme modularity and testing are the main tools in his toolbelt, using them to combat the code spaghetti monster as a software architect at companies like Wix, Applitools, and at his current job as software engineer at Microsoft.
In his private life, he is a dad to two lovely kids, an avid reader of Science Fiction, and a passionate film buff. Unfortunately for him, he hasn’t answered the big question of his life-what’s better, static or dynamic languages? But he’s working on it
I found it very interesting and will definitely make changes to some code I committed at work related to image manipulation. Instead of processing 5 images per second, I'm sure that after implementing the changes, things will be a whole lot faster! I've always found the whole concept of Workers intimidating but after watching the talk It seems a lot more reasonable than I thought, although those Atomics look bonkers!