Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Webworkers by @javierbyte
Search
gdljs
February 24, 2016
Technology
0
26
Webworkers by @javierbyte
Slides de la décima sesión de GDLJS del 23 de Febrero
Webworkers
gdljs
February 24, 2016
Tweet
Share
More Decks by gdljs
See All by gdljs
Construyendo la mejor experiencia de pagos en línea by @IvanChukitow
gdljs
0
66
Testabilidad en Javascript by @codingpains
gdljs
0
27
Desarrollo de aplicaciones con react native by @charliesbox
gdljs
0
120
¿Debería usar la librería de moda en mi proyecto? by @siedrix
gdljs
0
120
Agile Gamification by @chukitow
gdljs
0
42
Por qué hicimos nuestro propio NodeJS framework by @sgarza
gdljs
0
29
¿Cómo empezar a programar? by @amicavi
gdljs
0
83
Concurrencia y Paralelismo en Javascript by @eatcodetravel
gdljs
0
480
Caldo de Kafka para Node by @albertain
gdljs
0
69
Other Decks in Technology
See All in Technology
期待しすぎずに取り組む両面 TypeScript
shozawa
2
310
データマネジメントを支える武器としてのメタデータ管理
10xinc
2
790
複数の LLM モデルを扱う上で直面した辛みまとめ
kazuyaseki
1
250
KubeCon EU 2024 : Knative Maintainers Session
salaboy
0
370
ハイパフォーマンスな組織をつくるための開発生産性の考え方 / developer-productivity-high-performer-link-and-motivation
lmi
3
260
Tohoku.Tech #1 「Cursorを使ったRaspberry Piの開発」by ねこまた
jun2882
0
250
コードレビューを支援するAI技術の応用
akkie76
2
130
オブジェクト指向CSSが叶えたかったことと、CSSのいま / The aims of Object-oriented CSS and the current state of CSS usage
shinkufencer
11
3.6k
OpenTelemetry実践 はじめの一歩
taxin
0
320
家族アルバム みてねで直面してきた技術的負債 / MIXI KAG 2024
isaoshimizu
17
7.7k
現実世界の事象から学ぶSOLID原則
h0r15h0
24
10k
暗黙知を集積するプラットフォーム : 「健常者エミュレータ事例集」の取り組み
sora32127
1
160
Featured
See All Featured
What the flash - Photography Introduction
edds
64
11k
Designing for Performance
lara
601
67k
Web Components: a chance to create the future
zenorocha
304
41k
How To Stay Up To Date on Web Technology
chriscoyier
781
250k
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
178
11k
What’s in a name? Adding method to the madness
productmarketing
PRO
14
2.6k
Building an army of robots
kneath
300
41k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.2k
Fireside Chat
paigeccino
19
2.6k
Ruby is Unlike a Banana
tanoku
95
10k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
No one is an island. Learnings from fostering a developers community.
thoeni
14
2k
Transcript
WebWorkers Un nuevo superpoder.
Objetos creados con el constructor Worker que puede ejecutar javascript
arbitrario. ¡Que pueden correr en paralelo y fuera del main thread!
Beneficios. • Ejecución de código que no bloquea la UI.
• Procesamiento en paralelo. • Pueden ser terminados a voluntad. • Capacidad de aislamiento y manejo de errores. • Funciona los navegadores modernos!
A single thread web in a multicore world. La mayoría
de nuestro código en web se ejecuta en un solo thread a pesar de que tenemos teléfonos quad- core por $180 usd.
Basic syntax
Solo te puedes comunicar por mensajes vía “structured clone" O
Transferable interface si eres hardcore.
La interfaz Worker engendra (spawnea?) threads reales a nivel sistema
operativo.
Limitaciones. • No tenemos acceso al DOM, ni compartimos variables
con el thread principal. • Toda la comunicación se hace por mensajes que deben poder ser serializables. ->
Web Workers <3 UI Son cancelables y no bloquean el
thread principal.