C++20: An (Almost) Complete Overview
Edition 5th Edition (C++20) coming later this year Co-author of C++ Standard Library Quick Reference& C++17 Standard Library Quick Reference Founder of the Belgian C++ Users Group (BeCPP)3 C++20 C++20 Templated Lambda Expressions Pack Expansion in Lambda Captures constexpr Changes virtual functions union, try/catch, dynamic_cast, typeid allocations constexpr string & vector Concurrency Concurrency Changes Atomic Smart Pointers Joining & Cancellable Threads The C++20 Synchronization Library Semaphores, efficient atomic waiting, latches, and barriers std::atomic_ref Designated Initializers0 码力 | 85 页 | 512.18 KB | 5 月前3Bringing Existing Code to CUDA Using constexpr and std::pmr
• Introduction • Memory • Host vs Device Functions • Return on Investment • Concluding remarks Outline 2 |• I work the RiskLab team at CSIRO on applied mathematics for Financial Risk. • The aim of auto const N = x.size(); vectory(N, &device_mem); } Memory Allocation Across Functions 32 |Questions About Memory Allocation? 33 |Host vs Device FunctionsExecution Space Specifiers ) Experimental flag: Allow host code to invoke __device__constexpr functions, and device code to invoke __host__constexpr functions. Note that the behavior of this flag may change in future compiler 0 码力 | 51 页 | 3.68 MB | 5 月前3C++23: An Overview of Almost All New and Updated Features
Professional C++, 2nd, 3rd, 4th, and 5th Edition Co-author of C++ Standard Library Quick Reference& C++17 Standard Library Quick Reference Founder of the Belgian C++ Users Group (BeCPP) C++204 Agenda Character Escapes Trim Whitespace Before Line Splicing C++23 Standard Library String Formatting Improvements Standard Library Modules std::flat_(multi)map / std::flat_(multi)set std::mdspan d_overwrite() Monadic Operations for std::optional Stacktrace Library Changes to Ranges Library Changes to Views Library std::expected std::move_only_function<> std::spanstream 0 码力 | 105 页 | 759.96 KB | 5 月前3C++20 STL Features: 1 Year of Development on GitHub
signs: 'short' and 'unsigned int' [-Wsign-compare] • This prints false 🙀9 Integer Comparison Functions • GH-621 implemented by Neargye #include#include using namespace std; int P1065R2 constexpr INVOKE (GH-703, AdamBucior) • Work in progress (mnatsuhara): • GH-37 P0784R7 Library Support For More constexpr Containers • GH-43 P0980R1 constexpr string • GH-45 P1004R2 constexpr elements before C++20: • vector-like: erase-remove idiom • list-like: remove/remove_if member functions • map-like: handwritten loop calling m.erase(iter) • Many potential hazards 🙀 • remove_if(v 0 码力 | 45 页 | 702.09 KB | 5 月前3陈东 - 利用Rust重塑移动应用开发-230618
to interface with code written in other languages, typically C or C++. FFI allows Rust to call functions and use data structures defined in other languages, and vice versa. 利用 Rust 重塑移动应用开发 Photo / 重塑移动应用开发 Photo / image / chart Rust FFI On IOS - Rust targets for IOS - Build the static universal library for different target - Call the function on the swift code 利用 Rust 重塑移动应用开发 Photo / image / chart com/KeystoneHQ/rcc_android https://github.com/aaronisme/rcc_ios Rust Crypto Core Core business logic library , can be shared on different platform. - Signer - cryptography support - Blockchain Support0 码力 | 22 页 | 2.10 MB | 1 年前3C++20's
IANA time zone database. • This functionality requires several new types to be added to the library: • tzdb • tzdb_list • time_zone • zoned_time • time_zone_link • ambiguous_local_time • nonexistent_local_time zones; • vectorlinks; • vector leap_seconds; • And has member functions: • const time_zone* locate_zone(string_view tz_name) co nst; • const time_zone* current_zone() for time zone data We had a few options... • Ship the entire IANA time zone database with the library The IANA time zone database is huge (1.25MB) – we would have some very unhappy customers if their 0 码力 | 55 页 | 8.67 MB | 5 月前3Performance Lets dive into Performance issues
defaults to being on the same thread. Too much work on main thread • Android nested layouts • Functions and objects defined in loops • Statements like debugger, eval, with. • How to access Native Engine Allows you to test a set of functions to see if v8 will be able to optimize it. Example code that can’t be optimized • debugger; statement. • Polymorphic functions Beware of Object changes! Questions0 码力 | 15 页 | 1.71 MB | 1 年前3ClickHouse: настоящее и будущее
способ поддержать все возможности стандарта и сохранить все расширения ClickHouse! 2021: Window Functions, ANY/ALL, EXISTS, GROUPING SETS... 2022: Correlated Subqueries Отсутствие оптимизаций JOIN 180 码力 | 32 页 | 2.62 MB | 1 年前3No Silver Bullet – Essence and Accident in Software Engineering
iteration in establishing software requirements • Growing software organically, adding more and more functions to systems as they are run, used, and tested”Who said it?Frederick Brooks Jr. • Joined IBM in0 码力 | 35 页 | 1.43 MB | 5 月前3KubeCon2020/大型Kubernetes集群的资源编排优化
and flexibly HPA-controller Supporting horizontal scaling of business is one of the essential functions on the cloud, but the HPA Controller of native K8S use only one goroutine to handle the scaling0 码力 | 27 页 | 3.91 MB | 1 年前3
共 22 条
- 1
- 2
- 3