C++20 STL Features: 1 Year of Development on GitHubP1004R2 constexpr vector13 constexpr In Everyday Programming • constexpr has steadily increased in power • It's just code that runs on your machine instead of the user's • Example: lookup tables • Everyone atomic>, atomic > • GH-601 by AdamBucior • (bit_cast, rotating/counting, power-of-2) • Several PRs by barcharcraz • make_shared() For Arrays • GH-309 by AdamBucior, tested by 0 码力 | 45 页 | 702.09 KB | 6 月前3
GPU Resource Management On JDOS查询记录 , 便 于用户查看服务状态 ,亦可作为 HPA 的数 据源 • 采集项 name,index,fan.speed,te mperature.gpu,pstate,po wer.draw,power.limit,me mory.used,memory.total, utilization.gpu,ecc.errors. uncorrected.aggregate.to tal0 码力 | 11 页 | 13.40 MB | 1 年前3
Finding Bugs using Path-Sensitive Static Analysisreturn *p; return 42; }Lessons learned • Path-sensitive analysis is powerful, but power comes at a cost • We are actively looking into ways to make analysis more precise • There are a0 码力 | 35 页 | 14.13 MB | 6 月前3
C++20: An (Almost) Complete Overviewconcept: mutex, latches, barriers, … Two types: counting semaphore: models a non-negative resource count binary semaphore: only has 1 slot, i.e. only has two states: free slot or no free slot (perfect return "Hearts"; case Spades: return "Spades"; } }75 Text Formatting (std::format) Currently, two ways to format text in C++: I/O streams Safe and extensible Hard to read, hard to localize starts_with("Hello") }; contains() for associative containers: std::map myMap { std::pair {1, "one"s}, {2, "two"s}, {3, "three"s} }; bool result { myMap.contains(2) }; remove(), remove_if(), and unique() for0 码力 | 85 页 | 512.18 KB | 6 月前3
C++20's and local_time conversions It’s possible for a conversion from a local_time to a sys_time to throw two different exceptions: • ambiguous_local_time • Consider a local_time that occurs during a daylight essentially happens twice. • If the local_time to be converted occurs in that period of time, there are two potential sys_times that it could be converted to. • If the choice of earlier or later time isn’t America/Godthab instead of the new name America/Nuuk Unfortunately, there is no easy mapping between these two different classification systems. So, MSVC STL considers all ICU time zones (canonical and non-canonical)0 码力 | 55 页 | 8.67 MB | 6 月前3
C++23: An Overview of Almost All New and Updated FeaturesRemoved Features Garbage Collection Support17 Multidimensional Subscript Operator In the past, two options for accessing multidimensional data: Function call: data(x, y, z) Multiple levels of Containers Heterogeneous Erasure Removed Features Garbage Collection Support41 Following two named modules are introduced: import std; Imports everything from std namespace from C++ headers | std::views::adjacent_transform<2>(std::multiplies()) }// {2,6,12}79 Changes to Views Library Two helper types: views::pairwise = views::adjacent<2> views::pairwise_transform = views::adjacent_transform<2>0 码力 | 105 页 | 759.96 KB | 6 月前3
绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能Lessons from eBPF What is K8s Service • It exposes a set of pods via VIP using a load balancer • Two types • ClusterIP provides in-cluster access • NodePort provides out-of-cluster access • Major conntrack/iptables SNAT • Pros • O(1) time complexity in control/data plane • Stably runs for two decades • Support rich scheduling algorithm • Cons • Performance cost caused by conntrack • Some0 码力 | 24 页 | 1.90 MB | 1 年前3
Making Libraries Consumable for Non-C++ Developersthe .NET Core runtime team. • https://github.com/dotnet/runtimeWhat is interoperability? Enabling two or more disparate entities to work together. Don’t touch it! Glue code? Boiler plate? A nightmare conventions Marshalling Was I supposed to free that? Was I not supposed to free that? Enabling two or more disparate entities to work together.Why interoperability? No language or platform is good0 码力 | 29 页 | 1.21 MB | 6 月前3
使用硬件加速Tokio - 戴翔threads (incl. pthread, co-routines). • Channel allows a unidirectional flow of information between two end-points: the Sender and the Receiver. • Channel Type: SPSC, SPMC, MPMC, MPSC. Senders Receive0 码力 | 17 页 | 1.66 MB | 1 年前3
唐刚 - Use Rust to Develop the Decentralized Open Data Application - RustChinaConf2023my business? ➔How to attract more parties to run steady and persistent nodes for this platform? Two Major Problems ➔ End user drives, no security (or token fund) drives. ➔ Network is like a living0 码力 | 30 页 | 2.53 MB | 1 年前3
共 16 条
- 1
- 2
相关搜索词













