Working with Asynchrony Generically: A Tour of C++ Executors
sender21 BASIC LIFETIME OF AN ASYNC OPERATION SCHEDULER schedule SENDER RECEIVER OPERATION STATE connect start …operation completes… … and notifies receiver … time passes… Implementation sender22 SHAPE OF A RECEIVER RECEIVER set_value(values... ) set_error(error ) set_done() Operation state notifies receiver by calling one of these exactly once.23 CONCEPTUAL BUILDING BLOCKS OF P2300 operation_state; concept receiver: set_value(receiver, Values...) void; set_error(receiver, Error) void; set_done(receiver) void; concept operation_state: start(operation_state) void;240 码力 | 121 页 | 7.73 MB | 5 月前3Making Libraries Consumable for Non-C++ Developers
sizeof(size_t) MSYS2 compile of gcc, sizeof(long) == 4You can make interop suck less by… Explicitly state/document argument content. • Instead of long or int, use int64_t or int32_t. • String encoding is suck less by… Explicitly state/document argument content. • Instead of long or int, use int64_t or int32_t. • String encoding is not the same as “width”. Explicitly state/document/reference function suck less by… Explicitly state/document argument content. • Instead of long or int, use int64_t or int32_t. • String encoding is not the same as “width”. Explicitly state/document/reference function0 码力 | 29 页 | 1.21 MB | 5 月前3Finding Bugs using Path-Sensitive Static Analysis
Analysis state Transition semi-lattice• Some paths are infeasible: • Not taking branch 1, but taking branch 3 • All warnings on infeasible paths are noise • Need info on the whole state! void path_sensitive(int 2 p: null cond: 0 var: 0 p: ?1 cond: 0 var: 1 ?1 != 0 Store/Bindings Path condition Program State Program Point Transitions SolverPerformance Precision ESP: Path-Sensitive Program Verification0 码力 | 35 页 | 14.13 MB | 5 月前3NativeScript UI
AutoComplete ✏ • Calendar ? • Chart ? • Gauges ? Michigan Fact #1 • Michigan has the most ___ of any state in the US. •Freshwater coastline •Public golf courses •Non-motorized trails Michigan Fact #2 Mackinac Island has banned the use of cars since 1898. Michigan Fact #6 • Michigan was the only state to lose population in the 2010 census. Michigan Fact #7 • Sleeping Bear Dunes was voted the “Most0 码力 | 22 页 | 1.91 MB | 1 年前3sync clickhouse with mysql mongodb
one app for a table ● Sync multiple data source to Clickhouse in minutes BONUS Time travel history state Create Update Update Delete insert_id id name flag update_time UUID0 2 Bob1 2 2019-10-01 00:00:00 UUID2 2 Bob2 2 2019-10-02 00:00:00 UUID3 2 Bob2 3 2019-10-03 00:00:00 BONUS Time travel history state Create Update Update Delete Future ● Auto configure through web ● Auto deploy on Kubernetes ● Open0 码力 | 38 页 | 2.25 MB | 1 年前3Lock-Free Atomic Shared Pointers Without a Split Reference Count? It Can Be Done!
here: https://github.com/DanielLiamAnderson/atomic_shared_ptr • Still a proof-of-concept / prototype state • Need to implement atomic• Need to implement alias pointers Possible avenues for further 0 码力 | 45 页 | 5.12 MB | 5 月前3C++20: An (Almost) Complete Overview
import moduleModules7 Modules Advantages Replace header files Modules explicitly state what should be exported (e.g. classes, functions, …) Separation into module interface files and0 码力 | 85 页 | 512.18 KB | 5 月前3
共 7 条
- 1