C++23: An Overview of Almost All New and Updated Featurestains() Construct string(_view) From nullptr basic_string::resize_and_overwrite() Monadic Operations for std::optional Stacktrace Library Changes to Ranges Library Changes to Views Library tains() Construct string(_view) From nullptr basic_string::resize_and_overwrite() Monadic Operations for std::optional Stacktrace Library Changes to Ranges Library Changes to Views Library tains() Construct string(_view) From nullptr basic_string::resize_and_overwrite() Monadic Operations for std::optional Stacktrace Library Changes to Ranges Library Changes to Views Library0 码力 | 105 页 | 759.96 KB | 6 月前3
C++20: An (Almost) Complete OverviewDirective Text Formatting Math Constants std::source_location [[nodiscard(reason)]] Bit Operations Small Standard Library Additions5 Agenda New keywords: concept requires constinit pointer Use global non-member atomic operations, e.g. std::atomic_load(), atomic_store(), … Error-prone, easy to accidently not use global non-member atomic operations C++20: atomic> Might use mutex internally Global non-member atomic operations are deprecated36 Atomic Smart Pointers template class concurrent_stack { struct Node { T t; shared_ptr next; }; 0 码力 | 85 页 | 512.18 KB | 6 月前3
Working with Asynchrony Generically: A Tour of C++ Executorsschedule schedule connect receiver Operation state return32 OPERATIONS EXECUTE OUTSIDE-IN Receiver Operation state start33 OPERATIONS EXECUTE OUTSIDE-IN Receiver Work is scheduled on the thread thread pool Time passes…. A thread in the pool picks up the work and executes it34 OPERATIONS EXECUTE OUTSIDE-IN Receiver set_value set_error set_done A thread in the pool picks up the work work and executes it Inner-most receiver is notified that the work is complete35 OPERATIONS EXECUTE OUTSIDE-IN when_all then schedule Every adaptor has a chance to run code when the operation0 码力 | 121 页 | 7.73 MB | 6 月前3
hazard pointer synchronous reclamationobj->set_cohort(&cohort_); obj->retire(); } }; Cohort Implementation Requirements • Fast and scalable operations including destruction • Seamless support for dependent retirement (objects in the same cohort) cohortObjects_; // etc }; LockedHeadOnlyList: • Pop all operation locks list for other pop all operations. • Push operations are lock-free. • ~hazard_pointer_cohort() • Pops all objects and locks list • Extracts0 码力 | 31 页 | 856.38 KB | 6 月前3
A Crash Course in Calendars, Dates, Time, and Time Zonesd3; Use of predefined SI rational constants: durationd4;12 Durations – Operations Working with durations // Define 2 durations: // one expressed as minutes, the other as seconds durations. if (d3 > d4) { cout << "d3 > d4"; } else { cout << "d3 <= d4"; }13 Durations – Operations Working with durations // Increment d4 (= 14sec) with 1. ++d4; // 15sec // Multiply d4 d4.count(), d5.count(), d6.count()); // 10min + 30sec = 10.5min or 630sec14 Durations – Operations Converting durations // Create a duration of 30 seconds. duration d7 { 30 }; // Convert 0 码力 | 43 页 | 551.60 KB | 6 月前3
Harbor Deep Dive - Open source trusted cloud native registryFeatures 6 Web Portal • Based on open source Clarity • Image operation full capabilities • Batch operations Restful API • Complete API for integration • Swagger API doc Replication • Multiple filters Schedule, immediate and manual trigger Access Control • RBAC • AD/LDAP integration Audit Log • Operations recorded for audit Distribution Policy • Based on content trust • Based on vulnerability • Based0 码力 | 15 页 | 8.40 MB | 1 年前3
Analyzing MySQL Logs with ClickHouseLogstash (ELK Stack) Kafka Do it yourself © 2018 Percona. 11 Founder and CEO of HoneyComb Operations at Scale Expert The Biggest “Observability through Event Analyzes Cheerleader” Meet Charity0 码力 | 43 页 | 2.70 MB | 1 年前3
C++20 STL Features: 1 Year of Development on GitHub(see P0019R8): • Distinct single-threaded and multi-threaded parts • Pay the cost for atomic operations only when necessary • Distinct non-conflicting and conflicting parts • Layout compatibility;0 码力 | 45 页 | 702.09 KB | 6 月前3
共 8 条
- 1













