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 '\n'; } hello hello hello Apart from this convenience, string_view also provides performance benefits which we will see shortly.Basics • string_view does not allocate any memory. • It consists of sv{pchar + 1, 2}; puts(sv.data()); ello Don’t do this when you are using string_view 6Performance benefits • The fact that string_view does not allocate memory can be used to gain performance in some0 码力 | 61 页 | 1.11 MB | 6 月前3
Powered by AI: A Cambrian Explosion for C++ Software Development Tools`University of Massachusetts Amherst Powered by AI: A Cambrian Explosion for C++ Software Development Tools Emery BergerCretaceous–Paleogene (K-Pg) extinction eventCretaceous–Paleogene (K-Pg) extinction ALLOCATED MEMORY USAGE GPU UTIL %, PEAK MEMORY (MB/s) MEMORY PYTHON NATIVE AI-powered optimizations!AI-powered optimizations... COMING SOON!evolveevolve profiler that suggests optimizationsevolve0 码力 | 128 页 | 23.40 MB | 6 月前3
10 Problems Large Companies Have with Managing C++ Dependencies and How to Solve ThemprojectProblem 1: ABI incompatible C++ binaries Solution 1: Build C++ dependencies from source Benefits of building from source: •No waiting for library owner to update binary •Able to view, edit, and them all? •Scenario A: Look up if your product has dependencies with known licensing or security risks. •Scenario B: Important customer (e.g. US government) requires transparency about everything that available or access-restricted. Source: SBOM FAQ (Cybersecurity and Infrastructure Security Agency)Benefits of SBOMs accrue to both software suppliers and consumers — and are similar for both. They include:0 码力 | 46 页 | 917.72 KB | 6 月前3
Reflection Is Not Contemplationfinally blows the door off its hinges •The two facets of reflection are equally important •Where do AI tools fit within this craze?The Reflection Circularity Problem Without generation, we’re chasing our opaque/unwieldy? Use token sequences instead of strings • Cost: one added literal kind •Injection risks and dangers? Restrict string expansion • Carefully controlled escapes, interpolation-style constexpr typename[:^char:] c = '*'; // Same as: char c = '*';Suddenly, an AIWe Can’t Not Talk About This •How is generative AI changing language (features) design? •jippity.pro: 350 lines of working code written by a 9 yo in0 码力 | 45 页 | 2.45 MB | 6 月前3
Conan 2.1 Documentationas possible. This flow is relatively straightforward, and has many advantages that mitigate the risks described before: • No central repository outage can affect your builds. • No changes in the central game-engine library as an example, which provides several components such as algorithms, ai, rendering, and network. Both ai and rendering depend on the algorithms component. Please, first clone the sources CMakeLists.txt conanfile.py include ai.h algorithms.h network.h rendering.h src (continues on next page) 173 Conan Documentation, Release 2.1.0 algorithms ai rendering network Fig. 1: components0 码力 | 694 页 | 4.13 MB | 1 年前3
Conan 2.3 Documentationas possible. This flow is relatively straightforward, and has many advantages that mitigate the risks described before: • No central repository outage can affect your builds. • No changes in the central game-engine library as an example, which provides several components such as algorithms, ai, rendering, and network. Both ai and rendering depend on the algorithms component. Please, first clone the sources CMakeLists.txt conanfile.py include ai.h algorithms.h network.h rendering.h src (continues on next page) 183 Conan Documentation, Release 2.3.2 algorithms ai rendering network Fig. 1: components0 码力 | 748 页 | 4.65 MB | 1 年前3
Conan 2.5 Documentationas possible. This flow is relatively straightforward, and has many advantages that mitigate the risks described before: • No central repository outage can affect your builds. • No changes in the central game-engine library as an example, which provides several components such as algorithms, ai, rendering, and network. Both ai and rendering depend on the algorithms component. Please, first clone the sources CMakeLists.txt conanfile.py include ai.h algorithms.h network.h rendering.h src (continues on next page) 185 Conan Documentation, Release 2.5.0 algorithms ai rendering network Fig. 1: components0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.2 Documentationas possible. This flow is relatively straightforward, and has many advantages that mitigate the risks described before: • No central repository outage can affect your builds. • No changes in the central game-engine library as an example, which provides several components such as algorithms, ai, rendering, and network. Both ai and rendering depend on the algorithms component. Please, first clone the sources CMakeLists.txt conanfile.py include ai.h algorithms.h network.h rendering.h src (continues on next page) 183 Conan Documentation, Release 2.2.3 algorithms ai rendering network Fig. 1: components0 码力 | 718 页 | 4.46 MB | 1 年前3
Conan 2.4 Documentationas possible. This flow is relatively straightforward, and has many advantages that mitigate the risks described before: • No central repository outage can affect your builds. • No changes in the central game-engine library as an example, which provides several components such as algorithms, ai, rendering, and network. Both ai and rendering depend on the algorithms component. Please, first clone the sources CMakeLists.txt conanfile.py include ai.h algorithms.h network.h rendering.h src (continues on next page) 185 Conan Documentation, Release 2.4.1 algorithms ai rendering network Fig. 1: components0 码力 | 769 页 | 4.69 MB | 1 年前3
Conan 2.10 Documentationas possible. This flow is relatively straightforward, and has many advantages that mitigate the risks described before: • No central repository outage can affect your builds. • No changes in the central game-engine library as an example, which provides several components such as algorithms, ai, rendering, and network. Both ai and rendering depend on the algorithms component. Please, first clone the sources CMakeLists.txt conanfile.py include ai.h algorithms.h network.h rendering.h src (continues on next page) 191 Conan Documentation, Release 2.10.1 algorithms ai rendering network Fig. 1: components0 码力 | 803 页 | 5.02 MB | 10 月前3
共 82 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













