Nicht aus der Schweiz? Besuchen Sie lehmanns.de
Async & Performance - Kyle Simpson

Async & Performance

You Don't Know JS

(Autor)

Buch | Softcover
296 Seiten
2015
O'Reilly Media (Verlag)
978-1-4919-0422-0 (ISBN)
CHF 31,40 inkl. MwSt
  • Titel ist leider vergriffen;
    keine Neuauflage
  • Artikel merken
This book focuses on the new asynchronous features in JavaScript, which are new and confusing to developers. The book covers promises, generators, and coroutines, all of which allow developers to created more sophisticated single-page web applications that provide the features of a desktop application without tying up the user's browser.
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?
Mehr entdecken
aus dem Bereich
Web-Programmierung leicht gemacht

von Thomas Theis

Buch | Softcover (2024)
Rheinwerk (Verlag)
CHF 41,85
Das umfassende Handbuch

von Philip Ackermann

Buch | Hardcover (2021)
Rheinwerk (Verlag)
CHF 69,85