From Eager Futures/Promises to Lazy Continuations: Evolving an Actor Library Based on Lessons Learned
From Eager Futures/Promises to Lazy Continuations Evolving an Actor Library Based on Lessons Learned from Large-Scale Deployments Benjamin Hindman @benh CppCon 2021prologue ● past life at UC futures/promises + actors (2) libprocess (3) revisiting the problem (4) evolution of libprocess (5) eventuals (6) scheduling (7) streams (8) type erasurechapters (1) motivating futures/promises + actors language (e.g., Erlang) … or bring Erlang to C++! use callbacks … more on this later use futures/promises …possible solutions just wait … use threads … too expensive, not conducive to correctness use0 码力 | 264 页 | 588.96 KB | 5 月前3JavaScript Promise迷你书(中文版)
使用Promise进行顺序(sequence)处理 ..................................................................... 99 Promises API Reference ................................................................................. ................... 112 JavaScript Promise 迷你书(中文版) 3 前言 写作初衷 本书的目的是以目前还在制定中的ECMAScript 6 Promises规范为中心,着重向各位读 者介绍JavaScript中对Promise相关技术的支持情况。 通过阅读本书,我们希望各位读者能在下面三个目标上有所收获。 • 学习Promise相关内容,能熟练使用Promise模式并进行测试 • 以ES6 Promises为基础进行学习,逐渐发展形成自己的风格 像上面所提到的那样,本书主要是以ES6 Promises,即JavaScript的标准规范为基础 的、Promise的相关知识为主要讲解内容。 在Firefox和Chrome这样技术比较超前的浏览器上,不需要安装额外的插件就能使用 Promise功能,此外ES6 Promises的规范来源于Promises/A+社区,它有很多版本的实0 码力 | 112 页 | 1010.02 KB | 1 年前3JavaScript Promiseの本 v1
Promiseによる逐次処理 ................................................................................... 102 Promises API Reference ................................................................................. http://liubin.github.io/promises-book/ 2 http://www.hanbit.co.kr/ebook/look.html?isbn=9788968487293 2 JavaScript Promiseの本 はじめに 書籍の目的 この書籍はJavaScript標準仕様のECMAScript 6 Promisesという仕様を中心にし、 JavaScript なること • Promiseの向き不向きについて学び、何でもPromiseで解決するべきではないと知るこ と • ES6 Promisesを元に基本をよく学び、より発展した形を自分で形成できるようになるこ と この書籍では、先程も述べたようにES6 Promises、 つまりJavaScriptの標準仕様 (ECMAScript)をベースとしたPromiseについて書かれています。 そのた0 码力 | 115 页 | 1.06 MB | 1 年前3JavaScript Promiseの本 v2
Functionと配列 ..................................................................................... 124 Promises API Reference ................................................................................. JavaScript Promiseの本(v1)3 1 http://liubin.github.io/promises-book/ 2 http://www.hanbit.co.kr/store/books/look.php?p_code=E5027975256 3 https://azu.github.io/promises-book/archives/v1/ 2 JavaScript Promiseの本 この書籍はJavaScript標準仕様のECMAScript Promisesを中心にし、 JavaScriptにおけ るPromiseについて学ぶことが目的です。 この書籍では、次の3つを目標としています。 • Promiseについて学び、パターンやテストを扱えること • Promiseの向き不向きについて学び、何でもPromiseで解決するべきではないと知るこ と • ES Promisesを元に基本をよく学び、より発展した形を自分で形成できること0 码力 | 137 页 | 1.17 MB | 1 年前3The Node.js Handbook
Error objects 46.3. Handling exceptions 46.4. Catching uncaught exceptions 46.5. Exceptions with promises 46.6. Error handling with async/await 47. Build an HTTP Server 48. Making HTTP requests with programming, which is one fundamental part of Node.js: Asynchronous programming and callbacks Timers Promises Async and Await Closures The Event Loop 5. Differences between Node and the Browser Both the the exception, and this is why JavaScript is based so much on callbacks, and more recently on promises and async/await. 28.3. The call stack The call stack is a LIFO (Last In, First Out) stack. The0 码力 | 161 页 | 1.66 MB | 1 年前3BabelJS Tutorial
.......................................................................................... 34 Promises ............................................................................................... Features ECMA Script version Let + Const ES6 Arrow Functions ES6 Classes ES6 Promises ES6 Generators ES6 Iterators ES6 Modules ES6 1. BabelJS — Overview BabelJS same in both the cases. What is Babel-polyfill? There are new features added in JavaScript like promises, maps and includes. The features can be used on array; the same, when used and transpiled using0 码力 | 173 页 | 2.70 MB | 1 年前3The JavaScript Handbook
2. Object Methods 20. Classes 21. Inheritance 22. Asynchronous Programming and Callbacks 23. Promises 24. Async and Await 25. Variables scope 1. Introduction to JavaScript JavaScript is one of the function would use it like this: 46 doSomething((result) => { console.log(result) }) 23. Promises Promises are an alternative way to deal with asynchronous code. As we saw in the previous chapter, doSomethingElseAgain((yetAnotherResult) => { console.log(result) }) }) }) Promises are one way to deal with this. Instead of doing: doSomething((result) => { console.log(result)0 码力 | 56 页 | 577.92 KB | 1 年前3ExtJS和AngularJS比较
存在因第三方控件BUG而引发的 问题 ✔ ✘ 其他 其他 31. 动画效果支持 ✔ ✔ 32. Deferred and Promises DeftJS provides a number of extensions for ExtJS, including Deferred and Promises. ✔ 33. Dirty Checking ✔ ✔ 34. Deferred Bootstrap Until 我们从11个方面来分析这两种技术的不同. 1. 应用开发框架 2. 组件 3. 路由 4. 测试 5. 数据绑定 6. SEO 7. 移动解决方案 8. Dom 算法 9. Deferred and Promises 10. 脏检查 11. Deferred bootstrap 摘要: 摘要: ExtJS 是基于组件的 (表格、树、表单、绘图);代码开始于对现有类的扩展,配置 模型,自定义显示和行为/ approach to the DOM tree. Co ntrollers are linked in a top-down manner. Deferred and Promises: Deferred and Promises break the complexities of asynchronous programming, separate out the synchronous and0 码力 | 6 页 | 244.12 KB | 1 年前3ES6 Tutorial
.......................................................... 309 ES6 xvi 30. ES6 − PROMISES ............................................................................................... ......................................................................................... 311 Promises Chaining ...................................................................................... Iterators Generators Collections New built in methods for various classes Promises ECMAScript Versions There are nine editions of ECMA-262 which are as follows: 1. ES60 码力 | 435 页 | 4.00 MB | 1 年前3The Svelte Handbook
Binding components props 10. Conditional Logic in Templates 11. Looping in Svelte Templates 12. Promises in Svelte Templates 13. Working with Events in Svelte 13.1. Listening to DOM events 13.2. Creating index --> {#each dogs as dog, index (dog.id)}- {dog.name}
{/each} 12. Promises in Svelte Templates Promises are an awesome tool we have at our disposal to work with asynchronous events in in ES2017 made using promises even simpler. Svelte provides us the {#await} syntax in templates to directly work with promises at the template level. We can wait for promises to resolve, and define0 码力 | 44 页 | 2.01 MB | 1 年前3
共 235 条
- 1
- 2
- 3
- 4
- 5
- 6
- 24