Taming the C++ Filter View©2024 by josuttis.com 1 C++ Nicolai M. Josuttis josuttis.com @NicoJosuttis Taming the C++ Filter View September 17, 2024 16:45 - 17:45 MDT ©2024 by josuttis.com 2 C++ Nicolai M. Josuttis • Independent Topics: – Systems Architect – Technical Manager – SOA – X and OSF/Motif Nico Josuttis C++ Filter View @cppcon 2024-09-17 1©2024 by josuttis.com 3 C++ Views C++20 ©2024 by josuttis.com 4 C++ C++20: Output: 0 8 15 47 11 42 1 0 1 8 11 15 42 47 C++20 templateNico Josuttis C++ Filter View @cppcon 2024-09-17 2©2024 by josuttis.com 5 C++ C++20: Views void print(const auto& coll) { for 0 码力 | 43 页 | 2.77 MB | 6 月前3
Unraveling string_view: Basics, Benefits, and Best PracticesC++: string_view: Deep dive Jasmine Lopez Prithvi Okade 1Topics • Motivation • Performance benefits & basics • string_view: Constructors, useful functions • string vs. string_view and their interoperability interoperability • When to use string_view • Using string_view safely • Intro to span • span vs. string_view • Case study of an optimization using string_view. 2Motivation • Consider a function foo will end up calling “2”. And the code will miss the niceties of using the string API set. string_view helps in resolving this problem elegantly.Motivation 4 void foo(const std::string& str); void foo(const0 码力 | 61 页 | 1.11 MB | 6 月前3
Breaking Dependencies: The SOLID PrinciplesDependency Inversion Principle (DIP) Model View Controller89 The Dependency Inversion Principle (DIP) Model Dependencies View Dependencies Controller Architectural Boundary Inversion of Dependencies Dependency Inversion Principle (DIP) ModelDependencies View Dependencies Controller Architectural Boundary91 The Dependency Inversion Principle (DIP) namespace std 0 码力 | 96 页 | 2.14 MB | 6 月前3
《深入浅出MFC》2/e两本应该是够用了。不然就再加上一本SDK 书籍, 这样子应该是可以打个基础了。 CCA.bbs@cis.nctu.edu.tw:函数名称可以查help,重要的是C++ 的观念。另外就是要了 解MFC 里的Document/View/Frame,以及Dynamic Creation, Message mapping 等等。 深入浅出MFC 第二版对这些部份都有很深入的探讨,把MFC 里的一些机制直接trace code 加以说明。 程序设计模型(注2)息息相关之特殊性质(注3)的 实作方式。 注1:此指runtime type information、dynamic creation、persistence、document/view¡ K。 注2:此指message based、event driven 之programming model。 注3:此指message mapping、command routing ¡ K。 Document/View 支撐你的應用程式 / 419 利用 Visual C++ 工具完成 Scribble step0 / 423 骨幹程式使用哪些 MFC 類別? / 423 Document Template 的意義 / 430 Scribble 的 Document/View 設計 / 4360 码力 | 1009 页 | 11.08 MB | 1 年前3
C++ Exceptions for Smaller Firmware~output_pin() = default; virtual void level(bool p_high) = 0; }; Is returning void okay?I2C Bus Controller SDA SCL I2C Device I2C Device I2C Device A simplified Introduction to I2C SDA SCL SDA SCL delay(p_transition_time / 2); }Annoyed by the virality of error return types 42 class motion_controller { public: motion_controller create(/* ... */); status rotate(degrees_t p_degrees); status move_to(coord_t0 码力 | 237 页 | 6.74 MB | 6 月前3
Behavior-driven Tests for Microservices-based Algo Trading Systemeven for non-technical staff. Discussion : The test framework includes two layers: ● A controller layer: This layer provides a set of APIs (interfaces) to interact with the microservice system0 码力 | 1 页 | 65.24 KB | 6 月前3
File I/O for Game Developers: Past, Present, and FutureLatency and size increaseFILE IO IN C++ FROM FSTREAM TO THE OS SDK CPU Peripheral unit DMA Controller Memory Bus Handshake Handshake Data Primary interface Primary interface Secondary interfaceTHE0 码力 | 64 页 | 2.69 MB | 6 月前3
Blazing Trails: Building the World's Fastest CameBoy Emulator in Modern C++EmulatorWhat about us… 47https://schweigi.github.io/assembler-simulator/ 48“Hardware” • Eight bit controller • 256 bytes of RAM – 24 bytes used for character display • 4 general purpose registers (A, B, C0 码力 | 91 页 | 8.37 MB | 6 月前3
Cross-Platform Floating-Point Determinism Out of the Boxeven the same results across debug and release builds” - Glenn Fiedler “If you store replays as controller inputs, they cannot be played back on machines with different CPU architectures, compilers, or0 码力 | 31 页 | 3.88 MB | 6 月前3
High-Performance Cross-Platform Architecture: C++20 Innovationsmachine architecture. • Features may be hardware: CPU architecture, SIMD instruction set, DMA controller, GPIO module, etc. • Features may be software: OS, graphics API, etc. • Features may not be totally0 码力 | 75 页 | 581.83 KB | 6 月前3
共 208 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
相关搜索词
TamingtheC++FilterViewUnravelingstringviewBasicsBenefitsandBestPracticesBreakingDependenciesTheSOLIDPrinciples深入深入浅出MFCExceptionsforSmallerFirmwareBehaviordrivenTestsMicroservicesbasedAlgoTradingSystemFileGameDevelopersPastPresentFutureBlazingTrailsBuildingWorldFastestCameBoyEmulatorinModernCrossPlatformFloatingPointDeterminismOutofBoxHighPerformanceArchitecture20Innovations













