Template Metaprogramming: Type TraitsTemplate Metaprogramming: Type Traits Part 1 CppCon 2020 1 Jody Hagins jhagins@maystreet.com coachhagins@gmail.comTemplate Metaprogramming: Type Traits CppCon 2020 2 IntroductionIntended Audience necessarily beginner to C++, but beginner to traditional template metaprogramming techniques • Type traits part of standard library for ~10 years 3Intended Audience • Beginner/Intermediate • Gentle necessarily beginner to C++, but beginner to traditional template metaprogramming techniques • Type traits part of standard library for ~10 years • Fundamentals have been in use for ~20 years 3Intended0 码力 | 403 页 | 5.30 MB | 6 月前3
Trends Artificial Intelligence
Actual ChatGPT penetration may vary by cohort. Note that this chart aggregates data across survey providers and as such may not be directly comparable. Source: Pew Research Center (3/26/24), Elon University PerformanceNVIDIA GPU Performance = +225x Over Eight Years 106 1 GPT-MoE Inference Workload = A type of workload where a GPT-style model with a Mixture-of-Experts (MoE) architecture is used for inference rises – dragging costs up again. The result is a flywheel of growth that puts pressure on cloud providers, chipmakers, and enterprise IT budgets alike. The economics of AI are evolving quickly – but for0 码力 | 340 页 | 12.14 MB | 5 月前3
Oracle VM VirtualBox 5.2.40 User Manualsoftware virtualization . . . . . . . . . . . . . . . . . . . . . . . . 252 10.4 Paravirtualization providers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 10.5 Details about software virtualization VirtualBox is a so-called “hosted” hypervisor (sometimes referred to as a “type 2” hypervi- sor). Whereas a “bare-metal” or “type 1” hypervisor would run directly on the hardware, VirtualBox requires an “Programs” menu, click on the item in the “VirtualBox” group. On Vista or Windows 7, you can also type “VirtualBox” in the search box of the “Start” menu. • On a Mac OS X host, in the Finder, double-click0 码力 | 387 页 | 4.27 MB | 6 月前3
Oracle VM VirtualBox 5.2.12 User Manualsoftware virtualization . . . . . . . . . . . . . . . . . . . . . . . . 251 10.4 Paravirtualization providers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 10.5 Details about software virtualization VirtualBox is a so-called “hosted” hypervisor (sometimes referred to as a “type 2” hypervi- sor). Whereas a “bare-metal” or “type 1” hypervisor would run directly on the hardware, VirtualBox requires an “Programs” menu, click on the item in the “VirtualBox” group. On Vista or Windows 7, you can also type “VirtualBox” in the search box of the “Start” menu. • On a Mac OS X host, in the Finder, double-click0 码力 | 380 页 | 4.23 MB | 6 月前3
Common Package Specification (CPS) in Practice: A Full Round Trip Implementation in Conan C++ Package Manager["release"], "default_components": ["zlib"], "components": { "zlib": { "type": "archive", "includes": ["@prefix@/include"], "location": "@prefix@/lib/libz description = "A Massively Spiffy Yet Delicately Unobtrusive …" settings = "os", "compiler", "build_type", "arch" def build(self): cmake = CMake(self) cmake.configure() cmake "configurations": ["release"], "default_components": ["zlib"], "components": { "zlib": { "type": "archive", "includes": ["C:/Users/Diego/.conan2/p/zlib6f797a4dd16fb/p/include"], "location":0 码力 | 66 页 | 1.76 MB | 6 月前3
Exceptional C++{ // the first element of the array contains a read-write flag // that indicates the type of operation that caused the access violation ULONG_PTR operationType = aExRecord->ExceptionInformation[0]; arrayOfCatchableTypes[nCatchableTypes]; }; struct CatchableType { unsigned int properties; std::type_info * pType; PMD thisDisplacement; int sizeOrOffset; CopyConstructor EXCEPTION_POINTERS * aExInfo) { // write the exception prolog (type, code, address, etc.) switch (aSECode) // decode SEH exception type { case EXCEPTION_ACCESS_VIOLATION:0 码力 | 113 页 | 24.39 MB | 6 月前3
Concurrency Patterns Idemultiplex and dispatch service requests concurrently onto various service providers. ▪ For each supported service type implement an event handler that fulfils the specific client request. ▪ Register0 码力 | 39 页 | 1.14 MB | 6 月前3
进击的 Traefik | 云原生边缘路由器探秘3 Traefik With Docker 4 Traefik With KubernetesTraefik 是一个边缘路由器Traefik 自动服务发现Traefik 2.0 架构 • Providers 用来自动发现平台上的服务 • Entrypoints 监听传入的流量(端口等… ) • Routers 分析请求(host, path, headers, SSL, …) • Services 中间件,用来修改请求或 者根据请求来做出一些判断( authentication, rate limiting, headers, ...)Providers • Providers 可以是编排工具、容器 引擎或者 key-value 存储等等 • Traefik 通过 Providers 的 API 查 找有关路由相关信息,并动态更新 • 基于标签、key-value、注解、文 件 • Docker image: traefik:v2.0 # 开启 web UI 并且告诉 Traefik 注册 Docker Provider command: --api.insecure=true --providers.docker ports: - "80:80" # HTTP 端口 - "8080:8080" # Web UI 端口(需要开启 --api.insecure) volumes: -0 码力 | 35 页 | 8.58 MB | 6 月前3
Oracle VM VirtualBox 4.1.40 User ManualVirtualBox is a so-called “hosted” hypervisor (sometimes referred to as a “type 2” hypervi- sor). Whereas a “bare-metal” or “type 1” hypervisor would run directly on the hardware, VirtualBox requires an “Programs” menu, click on the item in the “VirtualBox” group. On Vista or Windows 7, you can also type “VirtualBox” in the search box of the “Start” menu. • On a Mac OS X host, in the Finder, double-click in either the “System” or “System Tools” group of your “Applications” menu. Alternatively, you can type VirtualBox in a terminal. When you start VirtualBox for the first time, a window like the following0 码力 | 310 页 | 4.87 MB | 6 月前3
Oracle VM VirtualBox 4.2.32 User Manualinformation (type 0) . . . . . . . . . . . . . . . . . . . . . . 169 9.13.2 DMI system information (type 1) . . . . . . . . . . . . . . . . . . . . . 169 9.13.3 DMI board information (type 2) . . . . . enclosure or chassis (type 3) . . . . . . . . . . . . . . . . . 169 9.13.5 DMI processor informatiion (type 4) . . . . . . . . . . . . . . . . . . . . 170 9.13.6 DMI OEM strings (type 11) . . . . . . . . VirtualBox is a so-called “hosted” hypervisor (sometimes referred to as a “type 2” hypervi- sor). Whereas a “bare-metal” or “type 1” hypervisor would run directly on the hardware, VirtualBox requires an0 码力 | 348 页 | 5.93 MB | 6 月前3
共 411 条
- 1
- 2
- 3
- 4
- 5
- 6
- 42













