Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Webworkers by @javierbyte
Search
gdljs
February 24, 2016
Technology
41
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Webworkers by @javierbyte
Slides de la décima sesión de GDLJS del 23 de Febrero
Webworkers
gdljs
February 24, 2016
Transcript
9 slides
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.
More Decks by gdljs
See All by gdljs
Construyendo la mejor experiencia de pagos en línea by @IvanChukitow
gdljs
0
83
Testabilidad en Javascript by @codingpains
gdljs
0
50
Desarrollo de aplicaciones con react native by @charliesbox
gdljs
0
140
¿Debería usar la librería de moda en mi proyecto? by @siedrix
gdljs
0
190
Agile Gamification by @chukitow
gdljs
0
67
Por qué hicimos nuestro propio NodeJS framework by @sgarza
gdljs
0
47
¿Cómo empezar a programar? by @amicavi
gdljs
0
110
Concurrencia y Paralelismo en Javascript by @eatcodetravel
gdljs
0
600
Caldo de Kafka para Node by @albertain
gdljs
0
85
Other Decks in Technology
See All in Technology
人の努力に頼らないセキュリティをエンジニアリングする在り方 / An approach to engineering security that does not rely on human effort
carta_engineering
0
100
3文字略語に騙されない! 世界一わかりやすい『EDR』超入門
kamadamakoto
1
180
Steering と Hook (チームの決まりを守らせる) | 目指せ Kiro マスター 06
inariku
PRO
2
130
閉域網でのAPI公開の選択肢全部比較!
takano0131
2
320
狙われているAPIの脆弱性!今こそ手をつけるべき根本的な対策とは?
nagix
0
140
AI対話型分析を作成し、リリースするまでの話 / The Road to Release: Buiding AI Conversational Analytics
yappli_developers
0
140
Intro to Kiro (One agent, every surface) | Kiro: Zero to Hero 01
inariku
PRO
2
140
AWS Emulator を評価する: 手元で動く AWS の API の仕組み、始め方、確かめ方
inariku
PRO
1
700
Where Should Platform Complexity Live? Lessons from a Cross-Team PR Preview Platform
taiki45
0
110
お風呂場をサーバルームにしよう
yusuke427
0
170
属人化したISMS運用をGitHubとAIで仕組み化した1年間の記録
sioncojp
4
2.7k
BALLAS Technology Deck
ballas_inc
0
680
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
670
A better future with KSS
kneath
240
18k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Writing Fast Ruby
sferik
630
63k
Are puppies a ranking factor?
jonoalderson
2
4.2k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
480
YesSQL, Process and Tooling at Scale
rocio
174
15k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
990
Odyssey Design
rkendrick25
PRO
3
950