Coroutines in KotlinCoroutines in Kotlin Andrey.Breslav@JetBrains.com This talk could have been named… • async/await/yield • fibers • [stackless] continuations Suspendable Computations Outline • Motivation/Examples languages • Kotlin’s Solution – Client code – Library code • Compiling Coroutines • Exception Handling • Appendix. Serializable Coroutines? “Legal” • All I’m saying is no more final than Valhalla J val image flexibility for library designers – with minimal runtime support – and no macros J Flavors of Coroutines Stackless Stackful Language restrictions Use in special contexts L Use anywhere J Implemented0 码力 | 39 页 | 1.01 MB | 1 年前3
From Functions to CoroutinesFrom Functions to Coroutines 40 Years Evolution Rainer Grimm Training, Coaching, and Technology Consulting www.ModernesCpp.netEvolution of Callable templateT invoke(Func 0 码力 | 29 页 | 510.47 KB | 6 月前3
Deciphering C++ Coroutines2/55 Deciphering Coroutines - Part 2 Mastering Asynchronous Control Flow Andreas Weis CppCon 20243/55 About me - Andreas Weis (he/him) ComicSansMS cpp@andreas-weis.net Co-organizer of the Munich best-practice talk.16/55 A mental model for coroutines: Cooperative Threads void spawn_task () { // ... Result r = outer_function (); }16/55 A mental model for coroutines: Cooperative Threads void spawn_task mental model for coroutines: Cooperative Threads PartialResult middle_function () { auto r = inner_function (); return PartialResult :: from_io_result (r); }16/55 A mental model for coroutines: Cooperative0 码力 | 156 页 | 1.79 MB | 6 月前3
Coroutines and Structured Concurrency in PracticeChallenges when onboarding coroutines A lot of existing code mostly callback-based A custom-built I/O event loop predates Asio by a decade fine-tuned for specific use cases Somewhat conservative conservative audience real benefit needs to be demonstrated to justify switchingCallbacks vs coroutines // read length auto len = make_unique(); async_read(socket, buffer(len.get(), sizeof(int32_t)) use_awaitable); // ...handle data... Local variable Manual lifetime managementCallbacks vs coroutines // read length auto len = make_unique (); async_read(socket, buffer(len.get(), sizeof(int32_t)) 0 码力 | 103 页 | 1.98 MB | 6 月前3
React Native TutorialReact Native i React Native i About the Tutorial React Native is a JavaScript framework framework for building native mobile apps. It uses the React framework and offers large amount of inbuilt components and APIs. Audience This tutorial is designed for JavaScript and React developers who in this tutorial, please notify us at contact@tutorialspoint.com React Native ii Table of Contents About the Tutorial .........................................0 码力 | 117 页 | 2.60 MB | 1 年前3
Curve Cloud Nativeperformance • Easiser operation • Cloud native • Curve is composed of two parts • Curve Block Storage (CurveBS) • CurveBS: a high performance cloud native distributed block storage • Curve File File System (CurveFS) • CurveFS: a high performance cloud native file system (Based on CurveBS / S3 compatible Storage)Operator capability Level OPERATOR CAPABILITY LEVEL CURVE COMMENT BASIC INSTALL Y Support horizontal/vertical scaling, auto config tuning, abnormal detection, schedule tuningCloud native Feature list • Features for Cluster • Features for CurveBS • Features for CurveFS • Features0 码力 | 9 页 | 2.85 MB | 6 月前3
Kubernetes Native DevOps PracticeKubernetes Native DevOps Practice — 王磊磊 @TenxCloud Agenda • Our DevOps Expectations • Kubernetes Capabilities/Advantages to Build DevOps Solution • Architecture and Features • CRD and operator design DevOps under micro-service architecture • Consolidate the consistent events and data, and create k8s native ChatOps tool • Contribute to open source community Automation Collaboration Integration Quantification0 码力 | 21 页 | 6.39 MB | 1 年前3
Awesome Native Apps with NativeScript and AngularAwesome Native Apps with NativeScript and Angular - Rowdy Rabouw - jfokus 2018 - @rowdyrabouw 1/120 AWESOME NATIVE APPS WITH NATIVESCRIPT AND ANGULAR! Awesome Native Apps with NativeScript and Angular nativescript.nl Awesome Native Apps with NativeScript and Angular - Rowdy Rabouw - jfokus 2018 - @rowdyrabouw 3/120 Rowdy Rabouw 4 Superhero movies 4 Formula One Awesome Native Apps with NativeScript Rabouw - jfokus 2018 - @rowdyrabouw 4/120 Awesome Native Apps with NativeScript and Angular - Rowdy Rabouw - jfokus 2018 - @rowdyrabouw 5/120 Awesome Native Apps with NativeScript and Angular - Rowdy Rabouw0 码力 | 120 页 | 31.85 MB | 1 年前3
Beautiful Native Mobile Apps with NativeScript and OpenEdgeBeautiful Native Mobile Apps with NativeScript and OpenEdge Edsel Garcia OpenEdge Development Team May 2018 2 © 2018 Progress Software Corporation and/or its subsidiaries or affiliates. All rights0 码力 | 27 页 | 1.54 MB | 1 年前3
OAM, Dapr and Rudr: The future of cloud native applicationsMicrosoft Ignite OAM, dapr, and rudr The future of cloud native applications Mark Russinovich @markrussinovich Open Application Model dapr: Distributed Application Platform Building Cloud Scale, (OAM) Platform agnostic application model Application model for Cloud and Edge State of Cloud Native Application Platforms The cloud is going serverless, but K8s is the infrastructure on-prem and experts in Kubernetes APIs Production use of Kubernetes requires mastery of the broader cloud-native ecosystem "A key principle for us when it comes to choosing a platform is that we can maintain0 码力 | 59 页 | 1.65 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













