Coroutines and Structured Concurrency in Practice
A task can only run when it’s being awaited by another task https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/Sketching an API Taskgreet() { cout co_return co_await resolveOn(name, "1.1.1.1"); }); co_return visit(identity{}, v); }Structured concurrency Tasks naturally form a "call tree" • coroutines • leaf awaitables (sleeping, I/O, cancel()? No longer a simple allOf()Dynamic allOf() We have created a fundamental primitive of structured concurrency • nursery in Python trio • task group in Python asyncio • task scope in Rust • coroutine 0 码力 | 103 页 | 1.98 MB | 5 月前3The Hitchhiker’s Guide to Logical Verification
. . . . . . . . . . . 34 3 Forward Proofs 35 3.1 Structured Proofs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.2 Structured Constructs . . . . . . . . . . . . . . . . . . . . forward fashion: to start with what we already know and proceed step by step towards our goal. Structured proofs are a style that supports this kind of reasoning. It can be combined with the tactical style appropriate for the situation. The higher readability of structured proofs make them popular with some users, especially in mathematical circles. Structured proofs are syntactic sugar sprinkled over Lean’s proof0 码力 | 215 页 | 1.95 MB | 1 年前3Exceptional C++
internals. As we’re taking the scenic Windows route, we’re also going to encounter async exceptions (structured exceptions) on our quest for a better crash. We’ll poke into these mechanisms and see how we can MODULE_BASE_ADDRESS2021 Victor Ciura | @ciura_victor - Exceptional C++ 17 The Elephant in The Room Structured Exceptions __try { // stuff we hope works } __except( ExceptionFilter(GetExceptionInformation()) Exceptional C++ 18 The Elephant in The Room Structured Exception Handling (SEH) /EHa we use async exceptions on all modules docs.microsoft.com/en-us/cpp/cpp/structured-exception-handling-c-cpp?view=msvc-1600 码力 | 113 页 | 24.39 MB | 5 月前3Real-Time Unified Data Layers: A New Era for Scalable Analytics, Search, and AI
operations, and drive data-driven strategies. Search enables instant data retrieval by indexing structured and unstructured information, enhancing discoverability, accelerating decision-making, and improving Quality, Integration & Silos – Analytics, search, and AI require seamless integration of structured, semi-structured, and unstructured data with high-quality indexing. Yet, fragmented systems and inconsistent bottlenecks. A modern Real-Time UDL typically includes: Real-time data ingestion from structured, semi-structured and unstructured sources (IoT, logs, event streams). Multi-model storage optimization supporting0 码力 | 10 页 | 2.82 MB | 5 月前3Working with Asynchrony Generically: A Tour of C++ Executors
concurrent operation 5. Implementing a simple algorithm 6. Senders and coroutines Part 2: 1. Structured concurrency 2. Cancellation 3. An extended example3 GOALS FOR THE EXECUTORS PROPOSAL The vision: whether to use coroutines or not in the hands of the caller.51 COMING UP IN THE NEXT HOUR: Structured concurrency Cancellation support in sender/receiver Extended example: Sender/receiver and ranges52 coroutines55 WHAT’S COMING IN PART 2 1. Structured concurrency 2. Cancellation support in the sender/receiver abstraction 3. An extended example56 Structured concurrency57 IN THE BEGINNING … WAS GOTO0 码力 | 121 页 | 7.73 MB | 5 月前3Reference guide for Free Pascal, version 3.2.2
. . . . . . . . . . . . . . . . . . 41 3.3 Structured Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Packed structured types . . . . . . . . . . . . . . . . . . . 1.3 Goto statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 13.2 Structured statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 5 CONTENTS directives ; - There are eight major kinds of types: Types -- type simple type string type structured type pointer type procedural type generic type specialized type type alias - Each of these0 码力 | 268 页 | 700.37 KB | 1 年前3The Roles of Symmetry And Orthogonality In Design
what we “see”) to intuit that which we do not see This is ONLY effective WHEN the domain is structured symmetricallyCharley Bay - charleyb123 at gmail dot com The Roles of Symmetry And Orthogonality what we “see”) to intuit that which we do not see This is ONLY effective WHEN the domain is structured symmetricallyCharley Bay - charleyb123 at gmail dot com The Roles of Symmetry And Orthogonality what we “see”) to intuit that which we do not see This is ONLY effective WHEN the domain is structured symmetricallyCharley Bay - charleyb123 at gmail dot com The Roles of Symmetry And Orthogonality0 码力 | 151 页 | 3.20 MB | 5 月前3OpenShift Container Platform 4.7 日志记录
Elasticsearch 实例。 可选:添加到日志的标签。 可选:转发结构化的 JSON 日志条目作为 JSON 对象,在 structured 项。日志条目必须包含有效的 结构化 JSON;否则,OpenShift Logging 会删除 structured 字段,并将日志条目发送到默认索引 app-00000x。 可选:字符串。要添加到日志中的一个或多个标签。对值加引号(如 "true"),以便它们被识别为字 可选:指定将日志发送到内部 Elasticsearch 实例的 default 输出。 可选:转发结构化的 JSON 日志条目作为 JSON 对象,在 structured 项。日志条目必须包 含有效的结构化 JSON;否则,OpenShift Logging 会删除 structured 字段,并将日志条目 发送到默认索引 app-00000x。 可选:字符串。要添加到日志中的一个或多个标签。 可选:配置多个输出 可选。指定将日志转发到内部 Elasticsearch 实例的默 默认 认输出。 可选:转发结构化的 JSON 日志条目作为 JSON 对象,在 structured 项。日志条目必须包 含有效的结构化 JSON;否则,OpenShift Logging 会删除 structured 字段,并将日志条目 发送到默认索引 app-00000x。 可选:字符串。要添加到日志中的一个或多个标签。 可选:配置多个输出0 码力 | 183 页 | 1.98 MB | 1 年前3Scalable Stream Processing - Spark Streaming and Flink
Input: key = b, value = Some(1), state = 1 • Output: key = b, sum = 2 54 / 79 Structured Streaming 55 / 79 Structured Streaming ▶ Treating a live data stream as a table that is being continuously appended This mode works for output sinks that can be updated in place, such as a MySQL table. 59 / 79 Structured Streaming Example (1/3) ▶ Assume we receive (id, time, action) events from a mobile app. ▶ We Store the result in MySQL. [https://databricks.com/blog/2016/07/28/structured-streaming-in-apache-spark.html] 60 / 79 Structured Streaming Example (2/3) ▶ We could express it as the following SQL query0 码力 | 113 页 | 1.22 MB | 1 年前3OpenShift Container Platform 4.8 日志记录
转发到内部 Elasticsearch 实例。 可选:添加到日志的标签。 可选:指定是否转发结构化 JSON 日志条目作为 structured 项中的 JSON 对象。日志条目必须包含 有效的结构化 JSON;否则,OpenShift Logging 会删除 structured 字段,并将日志条目发送到默 认索引 app-00000x。 可选:字符串。要添加到日志中的一个或多个标签。对值加引号(如 可选:指定将日志发送到内部 Elasticsearch 实例的 default 输出。 可选:指定是否转发结构化 JSON 日志条目作为 structured 项中的 JSON 对象。日志条目 必须包含有效的结构化 JSON;否则,OpenShift Logging 会删除 structured 字段,并将日 志条目发送到默认索引 app-00000x。 可选:字符串。要添加到日志中的一个或多个标签。 可选:指定将日志转发到内部 Elasticsearch 实例的 default 输出。 可选:指定是否转发结构化 JSON 日志条目作为 structured 项中的 JSON 对象。日志条目 必须包含有效的结构化 JSON;否则,OpenShift Logging 会删除 structured 字段,并将日 志条目发送到默认索引 app-00000x。 可选:字符串。要添加到日志中的一个或多个标签。 可选:配0 码力 | 223 页 | 2.28 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
CoroutinesandStructuredConcurrencyinPracticeTheHitchhikerGuidetoLogicalVerificationExceptionalC++RealTimeUnifiedDataLayersNewEraforScalableAnalyticsSearchAIWorkingwithAsynchronyGenericallyTourofExecutorsReferenceguideFreePascalversion3.2RolesSymmetryAndOrthogonalityInDesignOpenShiftContainerPlatform4.7日志记录StreamProcessingSparkStreamingFlink4.8