Async & Performance
O'Reilly Media (Verlag)
978-1-4919-0422-0 (ISBN)
- Titel ist leider vergriffen;
keine Neuauflage - Artikel merken
No matter how much experience you have with JavaScript, odds are you don’t fully understand the language. As part of the "You Don’t Know JS" series, this concise yet in-depth guide focuses on new asynchronous features and performance techniques—including Promises, generators, and Web Workers—that let you create sophisticated single-page web applications and escape callback hell in the process.
Like other books in this series, You Don’t Know JS: Async & Performance dives into trickier parts of the language that many JavaScript programmers simply avoid. Armed with this knowledge, you can become a true JavaScript master.
With this book you will:
- Explore old and new JavaScript methods for handling asynchronous programming
- Understand how callbacks let third parties control your program’s execution
- Address the "inversion of control" issue with JavaScript Promises
- Use generators to express async flow in a sequential, synchronous-looking fashion
- Tackle program-level performance with Web Workers, SIMD, and asm.js
- Learn valuable resources and techniques for benchmarking and tuning your expressions and statements
Kyle Simpson is an Open Web Evangelist from Austin, TX. He's passionate about JavaScript, HTML5, real-time/peer-to-peer communications, and web performance. Otherwise, he's probably bored by it. Kyle is an author, workshop trainer, tech speaker, and avid OSS community member.
Chapter 1Asynchrony: Now & Later
A Program in Chunks
Event Loop
Parallel Threading
Concurrency
Jobs
Statement Ordering
Review
Chapter 2Callbacks
Continuations
Sequential Brain
Trust Issues
Trying to Save Callbacks
Review
Chapter 3Promises
What Is a Promise?
Thenable Duck Typing
Promise Trust
Chain Flow
Error Handling
Promise Patterns
Promise API Recap
Promise Limitations
Review
Chapter 4Generators
Breaking Run-to-Completion
Generator-ing Values
Iterating Generators Asynchronously
Generators + Promises
Generator Delegation
Generator Concurrency
Thunks
Pre-ES6 Generators
Review
Chapter 5Program Performance
Web Workers
SIMD
asm.js
Review
Chapter 6Benchmarking & Tuning
Benchmarking
Context Is King
jsPerf.com
Writing Good Tests
Microperformance
Tail Call Optimization (TCO)
Review
Appendix asynquence Library
Sequences and Abstraction Design
asynquence API
Value and Error Sequences
Promises and Callbacks
Iterable Sequences
Running Generators
Review
Appendix Advanced Async Patterns
Iterable Sequences
Event Reactive
Generator Coroutine
Communicating Sequential Processes (CSP)
Review
Appendix Acknowledgments
Erscheint lt. Verlag | 6.3.2015 |
---|---|
Verlagsort | Sebastopol |
Sprache | englisch |
Maße | 159 x 227 mm |
Gewicht | 440 g |
Einbandart | Paperback |
Themenwelt | Informatik ► Web / Internet ► JavaScript |
Schlagworte | JavaScript • Webdesign |
ISBN-10 | 1-4919-0422-4 / 1491904224 |
ISBN-13 | 978-1-4919-0422-0 / 9781491904220 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
aus dem Bereich