Working with Asynchrony Generically: A Tour of C++ Executors
where, how, and when work should happen … including some standard ones: an event loop, portable access to the system execution context, nursery for spawned work4 P2300: STD::EXECUTION Proposes: • launching it, and … calls request_stop() on the stop source when it wants the async operation to stop early. Async code can either… … poll the token periodically to see if stop has been requested, or… … IN SENDER/RECEIVER SENDER RECEIVER OPERATION STATE connect start …operation completes early… … and calls set_done() on the receiver … time passes… 74 Some senders have stop sources0 码力 | 121 页 | 7.73 MB | 5 月前3C++20's
time instead. So, the time_point Nov 6, 2016 1:30am essentially occurred twice during that early morning! 3:00 4:00 5:00 6:00 7:00 23:00 24:00 1:00 2:00 3:00 UTC America/ New York42 nonexistent_local_time 3:00am standard time instead. So, the time_point March 13, 2016 2:30am did not exist during that early morning! 3:00 4:00 5:00 6:00 7:00 23:00 24:00 1:00 2:00 3:00 UTC America/ New York43 tzdb tzdb_list is a singleton, and should be accessed via the get_tzdb_list() function. Then you can access individual tzdbs from the list using the tzdb_list::const_iterator. • Alternatively, you can0 码力 | 55 页 | 8.67 MB | 5 月前3NativeScript 101
NativeScript come to be? Swift/Obj-C Java .NET We ❤ Web. But… We need: • Better offline support • Access to all device APIs • Home screen availability • Push notifications • App monetization • App store JS/TypeScript • Angular Support (or not ?) • 100% Day 0 API Access • Everything Runs on UI Thread* • Plugins created with native code • React Support • API Access via Native Modules • UI Thread vs JS Thread • Angular/Vue/Vanilla • Full access to device APIs • Immediate access to new OS features ? Fast to market ? Best experience Intro to NativeScript What is it? How does it work? 2013 2014 2015 2016 2017 Early prototype0 码力 | 90 页 | 40.11 MB | 1 年前3闫明 RustConfChina TiDB Serverless.pptx
version https://git-lfs.github.com/spec/v1 oid sha256:477ea3b9cb5ff505ef7d8528eb63d892d8728994f7a9436c6f2ef6f657ce9fdb size 180612370 码力 | 1 页 | 133.00 B | 5 月前3Secure your microservices with istio step by step
istio-injection=disabled/enabled ) http http http http http http http Result: can access reviews-v1, reviews-v2 and reviews-v3 Access productpage #IstioCon Istio Identity Istiod Istio Agent Envoy 1. Start to send request: can access reviews-v1, reviews-v2 and reviews-v3 can reach v2 as peer-authentication only defines behavior of server side and auto-mTLS is on by default Access productpage 1) Apply and ingress host to send request: can access reviews-v1, reviews-v3 can not access reviews-v2 since we have enabled ISTIO_MUTUAL mode on client side Access productpage 1) Apply destination rule0 码力 | 34 页 | 67.93 MB | 1 年前3Performance Lets dive into Performance issues
layouts • Functions and objects defined in loops • Statements like debugger, eval, with. • How to access Native Engine information • Object class modifications. Threading • In NativeScript by default default everything runs on the main thread. This design has both pro’s and cons • Pros: Easy access to anything dealing with GUI • Bad: Jank when doing lengthy work • Potential Solutions: Worker thread --allow-native-syntax to v8Flags V8 Natives • Docs: https://github.com/NathanaelA/v8-Natives • Gives you access to low level engine information. Things like: getHeapUsage(), deoptimizeNow, optimizeFunctionOnNextCall0 码力 | 15 页 | 1.71 MB | 1 年前3C++20 STL Features: 1 Year of Development on GitHub
// cat ox }18 atomic_ref19 atomic vs. atomic_ref • atomic: atomic access and storage for T • atomic_ref : atomic access for separate T • Scenarios (see P0019R8): • Distinct single-threaded and print(classic); print(array{4, 5, 6}); print(vector{7, 8, 9}); }24 Contiguous > Random-Access • Can we print(deque{-1, -1, -1}); ? • candidate function not viable: no known conversion from 0 码力 | 45 页 | 702.09 KB | 5 月前3绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能
VIP using a load balancer • Two types • ClusterIP provides in-cluster access • NodePort provides out-of-cluster access • Major modes • Iptables • IPVS Iptables mode • How it works • DNAT at0 码力 | 24 页 | 1.90 MB | 1 年前3基于Rust-vmm实现Kubernetes运行时
OCI Compa tible Dedicated Docker Image Impleme ntation Language Open source Hot plug Direct access to HW Required Hyperviso rs Backed by Runc Yes Yes Golang Yes No Yes None Docker gVisor+runsc Agent gVisor Guest Kernel O C I Gofer container container Pod Sandbox Sentry KVM/ptrace File Access OCI Implementation Limited Syscall H O S T K E R N E L Comparison Solution Typical0 码力 | 27 页 | 34.17 MB | 1 年前3hazard pointer synchronous reclamation
multi-reader pointer. set HP to A if SRC == A clear HP 2 3 6 if HP != A HP Safe to delete A A 7 8 SAFE ACCESS If a hazard pointer points to an object before its removal, then the object Reclamation Beyond Concurrency TS2 – Maged Michael Protector Remover / Reclaimer Hazard pointers protect access to objects that may be removed concurrently. SAFE RECLAMATION Concurrency TS2 Essential Hazard Pointer0 码力 | 31 页 | 856.38 KB | 5 月前3
共 23 条
- 1
- 2
- 3