MACRO-FREE TESTING WITH C++20CPPCON 2020 / CPPCON 2020 / MACRO-FREE TESTING MACRO-FREE TESTING WITH C++20 WITH C++20 | | | | HTTPS://BOOST-EXT.GITHUB.IO/UT/CPPCON-2020 HTTPS://BOOST-EXT.GITHUB.IO/UT/CPPCON-2020 KRIS@JUSIAK SINGLE (2K LOC) WITH NO EXTERNAL DEPENDENCIES (2K LOC) WITH NO EXTERNAL DEPENDENCIES MACRO-FREE (✔ ) MACRO-FREE (✔ ) (*) LIMITATIONS MAY APPLY (*) LIMITATIONS MAY APPLY HTTPS://GITHUB.COM/BOOST-EXT/UT SINGLE (2K LOC) WITH NO EXTERNAL DEPENDENCIES (2K LOC) WITH NO EXTERNAL DEPENDENCIES MACRO-FREE (✔ ) MACRO-FREE (✔ ) FEATURES ( FEATURES ( , , , , , , , , , , , , , , ) (*) LIMITATIONS MAY0 码力 | 53 页 | 1.98 MB | 6 月前3
A Simple Rollback System in C++BeyondWe still need to wait for all the player inputs to process the confirm frame…What is a rollback system?Input predictionMispredictionDoing a rollbackRollback Implementation DetailsPhysics vs Graphics game update. This allows to sequence your game frame.A Fixed TickRollback Manager InputsRollbackGame System Architecture Game systems need a function to rollback (revert to a previous state). Typically everywhere Player Character as a gameplay, physics, graphics and audio object…ECS-like architecture System and array of Components (C-struct without functionality, except operators maybe) You want to have0 码力 | 58 页 | 6.61 MB | 6 月前3
Combining Co-Routines and Functions into a Job SystemHlavacs – Combining Co-Routines and Functions into a Job System - CppCon 2021 1 / 39Helmut Hlavacs – Combining Co-Routines and Functions into a Job System - CppCon 2021 2 / 39 About Myself • Professor for Functions into a Job System - CppCon 2021 3 / 39 Creating Game Engines with C++ • Vienna Game Job System + • Graphics API Abstraction Layer + • Vienna Entity Component System + Vienna Type List Library 2.0 https://github.com/hlavacs 20Helmut Hlavacs – Combining Co-Routines and Functions into a Job System - CppCon 2021 4 / 39 The Game Loop auto prev = high_resolution_clock::now(); while( !finished()0 码力 | 39 页 | 1.23 MB | 6 月前3
Building a Coroutine-Based Job System Without Standard LibraryZhang tankiistanki tankijong COROUTINE JOB SYSTEM WITHOUT STANDARD LIBRARY source code of the system: https://github.com/tankiJong/cpp-coroutine-job-system Hi Everyone, Tanki here. Thanks for coming resources: https://gist.github.com/MattPD/9b55db49537a90545a90447392ad3aeb Before we dive into the system, I want to take 10 mins to have a quick recap about C++ coroutine and share some gotcha moments pretty overwhelmed by all different terms, not to mention to put them up together to form a knowledge system. I hope the following information can be helpful and I attached some links in the slides, or pointers0 码力 | 120 页 | 2.20 MB | 6 月前3
Behavior-driven Tests for Microservices-based Algo Trading Systemfrom Columbia University. Title : Behavior-driven Tests for Microservices-based Algo Trading System Summary : Introduction : This poster will introduce a test framework we use at Bloomberg to to enable behavior-based tests in natural language style for a microservices-based algo trading system that our engineering team is responsible for. Relevance : For our electronic trading business Although microservice components can easily be unit tested, it is often non-trivial to automate the system-level tests with external dependencies. Controlling external dependencies are especially important0 码力 | 1 页 | 65.24 KB | 6 月前3
Comprehensive Rust(English) 202412Rust Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 43.3 chromium::import! Macro . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 43.4 Testing exercise . . . . . . . . aarch64-paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 53.3 buddy_system_allocator . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 53.4 tinyvec . . . . . . . src/android/ directory into the root of your AOSP checkout. This will ensure that the Android build system sees the Android.bp files in src/android/. Ensure that adb sync works with your emulator or real0 码力 | 382 页 | 1.00 MB | 10 月前3
Comprehensive Rust(Persian ) 202412� � � � � � Rust . . . . . . . . . . . . . . . . . . . . . . . . . . 253 44.3 chromium::import! Macro . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 44.4 � � � � � � � � � . . . . . . . . aarch64-paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 54.3 buddy_system_allocator . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 54.4 tinyvec . . . . . . . � � � � � � � � � � � � � � � � � � � � � � � � � : • � � � � � � � � � � � � � � � � � � � � � Macro � � : � � � � Chapter 19.5 in the Rust Book � Rust by Example � � � � � � � � � � . � � � � � � �0 码力 | 393 页 | 987.97 KB | 10 月前3
Comprehensive Rust(한국어) 202412Rust Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 44.3 chromium::import! Macro . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 44.4 Testing exercise . . . . . . . . aarch64-paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 54.3 buddy_system_allocator . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 54.4 tinyvec . . . . . . . 것들: • 함수는 fn 으로 선언합니다. • C/C++ 와 마찬가지로 중괄호{}로 블록을 표시합니다. • main 함수는 프로그램 진입점입니다. • 러스트는 똑똑한 매크로 (hygienic macros) 시스템을 가지고 있습니다. println!는 그 예시입 니다. • 러스트의 문자열은 UTF-8 로 인코딩되며 이모지와 같은 유니코드 문자를포함할 수 있습니다0 码力 | 369 页 | 1.29 MB | 10 月前3
Comprehensive Rust(日语) 202412aarch64-paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 53.3 buddy_system_allocator . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 53.4 tinyvec . . . . . . . overloading). • Macros being 'hygienic' means they don't accidentally capture identifiers from the scope they are used in. Rust macros are actually only partially hygienic. • Rust はマルチパラダイムです。たとえば、強力な assert_ne!(prime % i, 0); } } } この機能は IntoIterator トレイトを使用しますが、これはまだ説明していません。 The assert_ne! macro is new here. There are also assert_eq! and assert! macros. These are always checked, while debug-only0 码力 | 381 页 | 1.36 MB | 10 月前3
Comprehensive Rust(简体中文) 202412aarch64-paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 54.3 buddy_system_allocator . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 54.4 tinyvec . . . . . . . println!("Hello !"); } 你看到的: • 函数以 fn 开头。 • 像 C 和 C++ 一样,块由花括号分隔。 • main 函数是程序的入口点。 • Rust 有卫生宏 (hygienic macros),println! 就是一个例子。 • Rust 字符串是 UTF-8 编码的,可以包含任何 Unicode 字符。 This slide tries to make the 请尝试访问出界数组元素。系统会在运行时检查数组访问。Rust 通常会通过优化消除这些检查,以 及使用不安全的 Rust 来避免这些检查。 • 我们可以使用字面量来为数组赋值。 • The println! macro asks for the debug implementation with the ? format parameter: {} gives the default output, {:?} gives0 码力 | 359 页 | 1.33 MB | 10 月前3
共 369 条
- 1
- 2
- 3
- 4
- 5
- 6
- 37













