 C++20 STL Features: 1 Year of Development on GitHubstd; int main() { static constexpr array skipped_extensions{".dll"sv, ".exe"sv, ".obj"sv}; static_assert(ranges::is_sorted(skipped_extensions)); for (const auto& ent : filesystem::recursiv string extension = ent.path().extension().string(); if (ranges::binary_search(skipped_extensions, extension)) { continue; } // ... } }15 Erasing Elements160 码力 | 45 页 | 702.09 KB | 6 月前3 C++20 STL Features: 1 Year of Development on GitHubstd; int main() { static constexpr array skipped_extensions{".dll"sv, ".exe"sv, ".obj"sv}; static_assert(ranges::is_sorted(skipped_extensions)); for (const auto& ent : filesystem::recursiv string extension = ent.path().extension().string(); if (ranges::binary_search(skipped_extensions, extension)) { continue; } // ... } }15 Erasing Elements160 码力 | 45 页 | 702.09 KB | 6 月前3
 hazard pointer synchronous reclamationintegration of link counting (as in Folly)? • Maybe deprecate global cleanup in Folly? • Other extensions: • Quasi-synchronous on-demand asynchronous reclamation? Minimal Proposal for C++26 Hazard Pointer References  Folly github.com/facebook/folly under folly/synchronization/Hazptr.h  Working Draft, Extensions to C++ for Concurrency Version 2 (wg21.link/n4895).  Hazard Pointers: Safe Memory Reclamation0 码力 | 31 页 | 856.38 KB | 6 月前3 hazard pointer synchronous reclamationintegration of link counting (as in Folly)? • Maybe deprecate global cleanup in Folly? • Other extensions: • Quasi-synchronous on-demand asynchronous reclamation? Minimal Proposal for C++26 Hazard Pointer References  Folly github.com/facebook/folly under folly/synchronization/Hazptr.h  Working Draft, Extensions to C++ for Concurrency Version 2 (wg21.link/n4895).  Hazard Pointers: Safe Memory Reclamation0 码力 | 31 页 | 856.38 KB | 6 月前3
 C++20's Marshall • A GitHub project tracking the issues, PRs, discussions, etc. related to C++20 chrono: Extensions to C++20's Marshall • A GitHub project tracking the issues, PRs, discussions, etc. related to C++20 chrono: Extensions to- (github.com) • Feature branch (feature/chrono) for rapid development and collaboration 0 码力 | 55 页 | 8.67 MB | 6 月前3
 C++高性能并行编程与优化 -  课件 - 11 现代 CMake 进阶指南https://crascit.com/2015/03/28/enabling-cxx11-in-cmake/ 设置 C++ 标准: CMAKE_CXX_STANDARD 变量 • CMAKE_CXX_EXTENSIONS 也是 BOOL 类型,默认为 ON 。设为 ON 表示启用 GCC 特有的一些扩展功能; OFF 则关闭 GCC 的扩展功能,只使用标准的 C++ 。 • 要兼容其他编译器(如 MSVC0 码力 | 166 页 | 6.54 MB | 1 年前3 C++高性能并行编程与优化 -  课件 - 11 现代 CMake 进阶指南https://crascit.com/2015/03/28/enabling-cxx11-in-cmake/ 设置 C++ 标准: CMAKE_CXX_STANDARD 变量 • CMAKE_CXX_EXTENSIONS 也是 BOOL 类型,默认为 ON 。设为 ON 表示启用 GCC 特有的一些扩展功能; OFF 则关闭 GCC 的扩展功能,只使用标准的 C++ 。 • 要兼容其他编译器(如 MSVC0 码力 | 166 页 | 6.54 MB | 1 年前3
 C++20: An (Almost) Complete Overviewbegin/end iterator pair, but does not replace them  Why ranges?  Provide nicer and easier to read syntax: vector data { 11, 22, 33 }; sort(begin(data), end(data)); ranges::sort(data);  Eliminate mismatching you need to be explicit, so: [=, this]27 Templated Lambda Expressions  Use familiar template syntax with lambda expressions [] C++20: An (Almost) Complete Overviewbegin/end iterator pair, but does not replace them  Why ranges?  Provide nicer and easier to read syntax: vector data { 11, 22, 33 }; sort(begin(data), end(data)); ranges::sort(data);  Eliminate mismatching you need to be explicit, so: [=, this]27 Templated Lambda Expressions  Use familiar template syntax with lambda expressions []- (T x) { /* ... */ } [] - (T* p) { /* ... */ } 0 码力 | 85 页 | 512.18 KB | 6 月前3
 Performance Lets dive into Performance issuesOptimization Testing • npm i v8-natives --save • Edit your app/package.json • Add --allow-native-syntax to v8Flags V8 Natives • Docs: https://github.com/NathanaelA/v8-Natives • Gives you access to low0 码力 | 15 页 | 1.71 MB | 1 年前3 Performance Lets dive into Performance issuesOptimization Testing • npm i v8-natives --save • Edit your app/package.json • Add --allow-native-syntax to v8Flags V8 Natives • Docs: https://github.com/NathanaelA/v8-Natives • Gives you access to low0 码力 | 15 页 | 1.71 MB | 1 年前3
 NativeScript 101mybutton { color: green; } o ID o #myButton { color: #f7f7f7; } Sass & LESS o Use Sass or LESS syntax o Auto-compiled $ tns install sass OR $ tns install less Progress NativeScript UI nativescript0 码力 | 90 页 | 40.11 MB | 1 年前3 NativeScript 101mybutton { color: green; } o ID o #myButton { color: #f7f7f7; } Sass & LESS o Use Sass or LESS syntax o Auto-compiled $ tns install sass OR $ tns install less Progress NativeScript UI nativescript0 码力 | 90 页 | 40.11 MB | 1 年前3
 Rust 异步并发框架在移动端的应用 - 陈明煜Rust 语言并没有提供异步并发框架, 只提供异步所需的基本特性:  Future  async / await  Waker asyn c Future Waker poll Syntax sugar wake await Rust 异步机制 Asynchronous Rust Rust 异步机制 Asynchronous Rust Waker Task Future0 码力 | 25 页 | 1.64 MB | 1 年前3 Rust 异步并发框架在移动端的应用 - 陈明煜Rust 语言并没有提供异步并发框架, 只提供异步所需的基本特性:  Future  async / await  Waker asyn c Future Waker poll Syntax sugar wake await Rust 异步机制 Asynchronous Rust Rust 异步机制 Asynchronous Rust Waker Task Future0 码力 | 25 页 | 1.64 MB | 1 年前3
 Working with Asynchrony Generically: A Tour of C++ Executorsproposes these concepts and algorithms, among others.8 EXAMPLE: LAUNCHING CONCURRENT WORK Use pipe syntax if you want to. namespace ex = std::execution; int compute_intensive(int); int main() { un0 码力 | 121 页 | 7.73 MB | 6 月前3 Working with Asynchrony Generically: A Tour of C++ Executorsproposes these concepts and algorithms, among others.8 EXAMPLE: LAUNCHING CONCURRENT WORK Use pipe syntax if you want to. namespace ex = std::execution; int compute_intensive(int); int main() { un0 码力 | 121 页 | 7.73 MB | 6 月前3
 C++23: An Overview of Almost All New and Updated FeaturesContainers Heterogeneous Erasure  Removed Features  Garbage Collection Support13 if consteval  Syntax: if consteval { /* A */ } else { /* B */ }  No condition  Braces are mandatory  Effect: 0 码力 | 105 页 | 759.96 KB | 6 月前3 C++23: An Overview of Almost All New and Updated FeaturesContainers Heterogeneous Erasure  Removed Features  Garbage Collection Support13 if consteval  Syntax: if consteval { /* A */ } else { /* B */ }  No condition  Braces are mandatory  Effect: 0 码力 | 105 页 | 759.96 KB | 6 月前3
共 10 条
- 1













