fbpx

[email protected]

购物车

 查看订单

  • 我的帐户
东东购 | EasternEast
  • 中文书店
    • 畅销排行榜
      • 小说 畅销榜
      • 童书 畅销榜
      • 外语畅销榜
      • 管理畅销榜
      • 法律畅销榜
      • 青春文学畅销榜
    • 热门分类
      • 社会小说
      • 成功/励志 畅销榜
      • 人物传记
      • 大陆原创
      • 绘本童书
      • 影视小说
    • 文学推荐
      • 文集
      • 戏剧
      • 纪实文学
      • 名家作品
      • 民间文学
      • 中国现当代随笔
    • 新书热卖榜
      • 小说 新书热卖榜
      • 青春文学 新书热卖榜
      • 童书 新书热卖榜
      • 管理 新书热卖榜
      • 成功/励志 新书热卖榜
      • 艺术 新书热卖榜
  • 精选分类
    • 小说
    • 保健养生
    • 烹饪/美食
    • 风水/占卜
    • 青春文学
    • 童书
    • 管理
    • 成功/励志
    • 文学
    • 哲学/宗教
    • 传记
    • 投资理财
    • 亲子家教
    • 动漫/幽默
    • 法律 Legal
    • 经济 Economics
    • 所有分类
  • 关于东东
  • 帮我找书
搜索
首页计算机/网络程序设计JavaScript并发编程(影印版)

JavaScript并发编程(影印版)

作者:(加)亚当·布达奇 出版社:东南大学出版社 出版时间:2017年04月 

ISBN: 9787564170769
年中特卖用“SALE15”折扣卷全场书籍85折!可与三本88折,六本78折的优惠叠加计算!全球包邮!
trust badge

EUR €43.99

类别: 程序设计 SKU:5d87b1bc5f98494bcc154c3c 库存: 有现货
  • 描述
  • 评论( 0 )

描述

开 本: 16开纸 张: 胶版纸包 装: 平装-胶订是否套装: 否国际标准书号ISBN: 9787564170769

内容简介

JavaScript已经具备了并发能力,这也解释了为 什么这门语言至今仍然屹立于现代web开发的前沿阵 地。亚当·布达奇编*的《JavaScript并发编程(影 印版)(英文版)》将帮助你深入JavaScript并发编程 的世界,演示如何应用其核心原理、关键技术以及工 具来应对各种复杂的开发难题。围绕并发编程的三个 核心要素:并发、同步和保护,你将学会如何编写* 高效、*富于变化的JavaScript程序,从而提高用户 体验。
书中通过采用各种开发方法,带领你将这些原理 应用于实践。从JavaScript promises、web workers、生成器到函数式编程技术,所有这些知识 都将对你的应用程序性能产生实实在在的影响。除此 之外,还进一步讨论了NodeJS并发编程。在成长为* **的Web开发人员的道路上,本书将助你一臂之力 。
目  录
Preface
Chapter 1: Why JavaScript Concurrency?
  Synchronous JavaScript
    Synchronicity is easy to understand
    Asynchronous is inevitable
      Asynchronous browsers
  Types of concurrency
    Asynchronous actions
    Parallel actions
  JavaScript concurrency principles: Parallelize, Synchronize,
  Conserve
    Parallelize
    Synchronize
      The Promise API
    Conserve
  Summary
Chapter 2: The JavaScript Execution Model
  Everything is a task
    Meet the players
   The Execution environment
   Event loops
   Task queues
  Execution contexts
   Maintaining execution state
   Job queues
  Creating tasks using timers
   Using setTimeout()
   Using setlnterval()
  Responding to DOM events
    Event targets
    Managing event frequency
  Responding to network events
    Making requests
    Coordinating requests
  Concurrency challenges with this model
    Limited opportunity for parallelism
    Synchronization through callbacks
  Summary
Chapter 3: Synchronizing with Promises
  Promise terminology
    Promise
    State
    Executor
    Resolver
    Rejector
    Thenable
  Resolving and rejecting promises
    Resolving promises
    Rejecting promises
    Empty promises
  Reacting to promises
    Resolution job queues
    Using promised data
    Error callbacks
    Always reacting
    Resolving other promises
    Promise-like objects
  Building callback chains
    Promises only change state once
    Immutable promises
    Many then callbacks, many promises
    Passing promises around
  Synchronizing several promises
    Waiting on promises
    Cancelling promises
  Promises without executors
  Summary
Chapter 4: Lazy Evaluation with Generators
  Call stacks and memory allocation
    Bookmarking function contexts
    Sequences instead of arrays
  Creating generators and yielding values
    Generator function syntax
    Yielding values
    Iterating over generators
  Infinite sequences
    No end in sight
    Alternating sequences
  Deferring to other generators
    Selecting a strategy
    Interweaving generators
  Passing data to generators
    Reusing generators
    Lightweight map/reduce
  Coroutines
    Creating coroutine functions
    Handling DOM events
    Handling promised values
  Summary
Chapter 5: Working with Workers
  What are workers?
    OS threads
    Event targets
    True parallelism
  Types of workers
    Dedicated workers
    Sub-workers
    Shared workers
  Worker environments
    What's available, what isn't?
    Loading scripts
  Communicating with workers
    Posting messages
    Message serialization
    Receiving messages from workers
  Sharing application state
    Sharing memory
    Fetching resources
    Communicating between pages
  Performing sub-tasks with sub-workers
    Dividing work into tasks
    A word of caution
  Error handling in web workers
    Error condition checking
    Exception handling
  Summary
Chapter 6: Practical Parallelism
  Functional programming
    Data in, data out
    Immutability
    Referential transparency and time
  Do we need to go parallel?
    How big is the data?
    Hardware concurrency capabilities
    Creating tasks and assigning work
  Candidate problems
    Embarrassingly parallel
    Searching collections
    Mapping and reducing
  Keeping the DOM responsive
    Bottom halves
    Translating DOM manipulation
    Translating DOM events
  Summary
Chapter 7: Abstracting Concurrency
  Writing concurrent code
    Hiding the concurrency mechanism
    Without concurrency
  Worker communication with promises
    Helper functions
    Extending postMessage0
    Synchronizing worker results
  Lazy workers
    Reducing overhead
    Generating values in workers
    Lazy worker chains
  Using Parallel.js
    How it works
    Spawning workers
    Mapping and reducing
  Worker pools
    Allocating pools
    Scheduling jobs
  Summary
Chapter 8: Evented IO with NodeJS
  Single threaded IO
    IO is slow
    IO events
    Multi-threading challenges
  More connections, more problems
    Deploying to the Internet
    The C10K problem
    Lightweight event handlers
  Evented network IO
    Handling HTTP requests
    Streaming responses
    Proxy network requests
  Evented file IO
    Reading from files
    Writing to files
    Streaming reads and writes
  Summary
Chapter 9: Advanced NodeJS Concurrency
  Coroutines with Co
    Generating promises
    Awaiting values
    Resolving values
    Asynchronous dependencies
    Wrapping coroutines
  Child Processes
    Blocking the event loop
    Forking processes
    Spawning external processes
    Inter-process communication
  Process Clusters
    Challenges with process management
    Abstracting process pools
  Server clusters
    Proxying requests
    Facilitating micro-services
    Informed load balancing
  Summary
Chapter 10: Building a Concurrent Application
  Getting started
    Concurrency first
    Retrofitting concurrency
    Application types
  Requirements
    The overall goal
    The API
    The UI
  Building the API
    The HTTP server and routing
    Co-routines as handlers
    The create chat handler
    The join chat handler
    The load chat handler
    The send message handler.
    Static handlers
  Building the UI
    Talking to the API
    Implementing the HTML
    DOM events and manipulation
    Adding an API worker
  Additions and improvements
    Clustering the API
    Cleaning up chats
    Asynchronous entry points
    Who's typing?
    Leaving chats
    Polling timeouts
  Summary
Index

抢先评论了 “JavaScript并发编程(影印版)” 取消回复

评论

还没有评论。

相关产品

加入购物车

码农翻身(好玩有趣的编程知识)

EUR €43.99
评分 5.00 / 5
加入购物车

Head First HTML5 Programming(中文版)

EUR €48.99
阅读更多
缺货

数据结构——C++版(第四版)(英文影印版)

EUR €63.99
加入购物车

Python基础教程(第3版)

EUR €58.99

东东购的宗旨是服务喜爱阅读中文书籍的海外人民,提供一个完善的购书平台,让国人不论何时何地都能沉浸在书香之中,读着熟悉的中文字,回忆着家乡的味道。


安全加密结账 安心网络购物 支持Paypal付款

常见问题

  • 货物配送
  • 退换货政策
  • 隐私政策
  • 联盟营销

客户服务

  • 联系东东
  • 关于东东
  • 帮我找书
  • 货物追踪
  • 会员登入

订阅最新的优惠讯息和书籍资讯

选择币别

EUR
USD
CAD
AUD
NZD
NOK
GBP
CHF
SEK
CNY
UAH
ILS
SAR
MXN
KRW
MYR
SGD
HUF
TRY
JPY
HKD
TWD
facebookinstagram
©2020 东东购 EasternEast.com

限时特卖:用“SALE15”优惠券全场书籍85折!可与三本88折,六本78折的优惠叠加计算。 忽略