Cantitate/Preț
Produs

Multithreaded JavaScript

Autor II Thomas Hunter, Bryan English
en Limba Engleză Paperback – 26 oct 2021

Resursele tehnice și materialele de referință incluse în acest volum fundamentează tranziția JavaScript de la un model strict single-threaded la unul capabil de execuție paralelă. Multithreaded JavaScript explorează în detaliu această schimbare de paradigmă, oferind inginerilor software instrumentele necesare pentru a utiliza obiectele Atomics și SharedArrayBuffers, elemente esențiale pentru gestionarea memoriei partajate. Reținem că autorii nu se limitează la teorie, ci oferă o structură comparativă între diversele tipuri de unități de execuție, precum web workers, service workers și worker threads în mediul Node.js. Subliniem importanța capitolelor dedicate benchmarking-ului, care ajută la determinarea momentului optim în care introducerea firelor de execuție aduce un beneficiu real de performanță, evitând complexitatea inutilă. Ca și Victor Alessandrini în Shared Memory Application Programming, autorii distilează experiență reală în principii acționabile, adaptând conceptele clasice de programare paralelă la ecosistemul modern de web development. În timp ce T J Crowder în JavaScript oferă o privire de ansamblu asupra noilor funcționalități ale limbajului, II Thomas Hunter și Bryan English se concentrează exclusiv pe mecanica execuției concurente, oferind o profunzime tehnică necesară dezvoltatorilor care construiesc aplicații de înaltă performanță. Tonul este unul pragmatic, axat pe arhitectură și pe evitarea capcanelor comune în sincronizarea datelor. Analiza detaliată a modului în care run-time-urile JavaScript gestionează resursele hardware transformă această carte într-un ghid de inginerie indispensabil pentru optimizarea aplicațiilor complexe.

Citește tot Restrânge

Preț: 29249 lei

Preț vechi: 36560 lei
-20%

Puncte Express: 439

Carte disponibilă

Livrare economică 19 mai-02 iunie


Specificații

ISBN-13: 9781098104436
ISBN-10: 1098104439
Pagini: 211
Dimensiuni: 177 x 228 x 15 mm
Greutate: 0.36 kg
Editura: O'Reilly

De ce să citești această carte

Recomandăm această carte dezvoltatorilor care au depășit nivelul de bază și doresc să maximizeze performanța aplicațiilor web sau Node.js. Veți câștiga o înțelegere clară a modului în care puteți descărca procesele intensive pe fire de execuție secundare, folosind corect obiectele Atomics și SharedArrayBuffer pentru a evita blocajele de memorie. Este un ghid tehnic esențial pentru a stăpâni noua eră a programării paralele în cel mai popular limbaj de programare.


Despre autor

II Thomas Hunter și Bryan English sunt experți recunoscuți în ecosistemul Node.js și în arhitectura sistemelor distribuite. II Thomas Hunter este un membru activ al comunității de securitate și open-source, fiind cunoscut pentru contribuțiile sale la îmbunătățirea performanței în mediile enterprise. Bryan English aduce o vastă experiență în dezvoltarea de sisteme de înaltă disponibilitate. Împreună, aceștia combină rigoarea academică cu experiența practică din producție, oferind o perspectivă autoritară asupra evoluției JavaScript către un model de execuție multithreaded.


Descriere

Traditionally, JavaScript has been a single-threaded language. Nearly all online forum posts, books, online documentation, and libraries refer to the language as single threaded. Thanks to recent advancements in the language--such as the Atomics and SharedArrayBuffers objects and Web Workers in the browser--JavaScript is now a multi-threaded language. These features will go down as being the biggest paradigm shift for the world's most popular programming language. Multithreaded JavaScript explores the various features that JavaScript runtimes have at their disposal for implementing multithreaded programming, providing both practical real-world examples, as well as reference material. Learn what multithreaded programming is and how you can benefit from it Understand the differences between a web worker, a service worker, and a worker thread Know when and when not to use threads in an application Orchestrate communication between threads by leveraging the Atomics object Build high-performance applications using the knowledge you gain from this book Benchmark performance to learn if you'll benefit from multithreading


Notă biografică

Thomas Hunter II has contributed to dozens of enterprise Node.js services and has worked for a company dedicated to securing Node.js. He has spoken at several conferences on Node.js and JavaScript, is JSNSD/JSNAD certified, and is an organizer of NodeSchool SF. Thomas has published four books including Distributed Systems with Node.js by O'Reilly.
Bryan is an open source JavaScript and Rust programmer and enthusiast and has worked on large enterprise systems, instrumentation, and application security. Currently he's a Senior Open Source Software engineer at Datadog. He's used Node.js both professionally and in personal projects since not long after its inception. He is also a Node.js core collaborator and has contributed to Node.js in many ways through several of its various Working Groups.

Descriere scurtă

"With this practical book, intermediate JavaScript developers will come to understand the strengths and weaknesses of web worker APIs provided in browsers and the worker threads module provided by Node.js. Authors Thomas Hunter II and Bryan English focus on two approaches to buildings multithreaded applications: one using message passing and the other using shared memory. You'll learn APIs for implementing each, including when you might want to use one approach or the other, and when you can combine them"--