Adventures in SIMD Thinking (Part 2 of 2)
Adventures in SIMD Thinking (Part 2 of 2) Bob Steagall CppCon 2020 K E W B C O M P U T I N GCopyright © 2020 Bob Steagall K E W B C O M P U T I N G Agenda • Learn a little about Intel's SIMD facilities Faster (?) UTF-8 to UTF-32 conversion (with AVX2) • No heavy code, but lots of pictures • Thinking "vertically" CppCon 2020 - Adventures in SIMD Thinking 2Copyright © 2020 Bob Steagall Small-Kernel Convolution S = s0 s1 s2 s3 s4 s5 s6 ... K = k0 k1 k2 r0 = ... r1 = s0k0 + s1k1 + s2k2 r2 = s1k0 + s2k1 + s3k2 r3 = s2k0 + s3k1 + s4k2 r4 =0 码力 | 135 页 | 551.08 KB | 5 月前3Back to Basics: Designing Classes (part 2 of 2)
Back to Basics Designing Classes (part 1 of 2) Klaus Iglberger, CppCon 2021 klaus.iglberger@gmx.de2 Klaus Iglberger C++ Trainer/Consultant Author of the C++ math library (Co-)Organizer (Co-)Organizer of the Munich C++ user group Chair of the CppCon B2B and SD tracks Email: klaus.iglberger@gmx.deContent 3 Back to Basics: Class Design (Part 1) The Challenge of Class Design Design Testability Implementation Guidelines Resource Management Back to Basics: Class Design (Part 2) Implementation Guidelines Data Member Initialization Implicit Conversions Order of Data Members0 码力 | 76 页 | 2.60 MB | 5 月前3Catch2
if (NOT TARGET Catch2) project(Catch2 CXX) set(CMAKE_CXX_STANDARD 11) add_library(${PROJECT_NAME} INTERFACE) target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CU ${CMAKE_CURRENT_SOURCE_DIR}/include) # Mimic the library names in Catch2's own CMake files: add_library(Catch2::Catch2 ALIAS Catch2) # This one is historical, left over from when ApprovalTests.cpp was first created. # We could encourage users to move away from it. add_library(catch2 ALIAS Catch2) endif ()0 码力 | 1 页 | 519.00 B | 5 月前3Lean 2 Quick Reference
Lean 2 Quick Reference Jeremy Avigad, Leonardo de Moura, Soonho Kong Version d0dd6d0, updated at 2017-01-30 19:53:44 -0500 Quick Reference Note that this quick reference guide describes Lean 2 only can be used without giving a label to the hypothesis. The corresponding element of the context can 2 then be referred to using the keyword this until another anonymous element is introduced, or by enclosing inductive datatypes with two constructors (e.g. left or introduction) right : equivalent to (constructor 2), only applicable to inductive datatypes with two constructors (e.g. right or introduction) existsi0 码力 | 9 页 | 62.97 KB | 1 年前3Best practices for building Kubernetes Operators
Best practices for building Kubernetes Operators Patryk WasielewskiAbout me ● DevOps Consultant at Amazon Web Services (AWS) ● 6 years professional experience as DevOps / SRE / Developer ● Cloud-native json-patch/merge-patch support ○ Finalizers ○ Built-in Authz/AuthnControllers https://able8.medium.com/kubernetes-controllers-overview-b6ec086c1fbControllers ● Controller tracks at least one resource type ● implementation of typical Day-1 tasks (installation, configuration, etc.) and Day-2 tasks (reconfiguration, upgrade, backup, failover, recovery, etc.), for a software running within the Kubernetes cluster, https://www0 码力 | 36 页 | 2.19 MB | 5 月前3Back to Basics: Templates Part 2
Back to Basics: Templates – Part 2 Bob Steagall CppCon 2021CppCon 2021 – Back to Basics: Templates – Part 2 Copyright © 2021 Bob Steagall Recap: Templates • C++ supports generic programming with templates function templates • Alias template • Variable templates • Lambda templates 2CppCon 2021 – Back to Basics: Templates – Part 2 Copyright © 2021 Bob Steagall Recap: Translation Units • In C++, translation preprocessing directives (#ifdef) • And all macros expanded 3CppCon 2021 – Back to Basics: Templates – Part 2 Copyright © 2021 Bob Steagall Recap: Declarations and Definitions • A name is an identifier that denotes0 码力 | 80 页 | 490.15 KB | 5 月前3Go 2 Generics? A (P)review
Go 2 Generics? A (P)review Changkun Ou https://changkun.de/s/go2generics/ https://youtu.be/E16Y6bI2S08 Go 夜读 SIG 小组 | 第 80 期 March 18, 2020 # Based on Contracts ( Version July 31, 2019 © Changkun Ou · Go 夜读 · Go 2 Generics? A (P)review 主要内容 ● 泛型的起源 ● 泛型的早期设计 ● Go 2 的「合约」 ● 上手时间 ● 历史性评述 ● 展望 泛型的起源 Origin of Generics 2020 © Changkun Ou · Go 夜读 · Go 2 Generics? A (P)review 当我们谈论泛型时,我们在谈论什么? 语言中不允许同名函数 Add(1, 2) // 调用第一个 Add(1.0, 2.0) // 调用第二个 Add("1", "2") // 编译时不检查,运行时找不到实现,崩溃 参数化多态(Parametric Polymorphism)根据实参类型生成不同的版本 ,支持任意数量的 调用。即泛型 func Add(a, b T) T{ return a+b } Add(1, 2)0 码力 | 41 页 | 770.62 KB | 1 年前3CakePHP Cookbook 2.x
Acts As a Requester Creating ACOs (Access Control Objects) Simple Acl controlled Application - part 2 An Automated tool for creating ACOs Setting up permissions Logging in Logout All done Contributing CakePHP up and running without any configuration at all. Make sure you have PHP 5.2.8 or greater. 2. A database server. We’re going to be using MySQL server in this tutorial. You’ll need to know enough latest release of 2.0 You can also clone the repository using git [https://git-scm.com/]: git clone -b 2.x git://github.com/cakephp/cakephp.git Regardless of how you downloaded it, place the code inside of0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
CakePHP Cookbook Documentation Release 2.x Cake Software Foundation Sep 10, 2023 Contents 1 Getting Started 1 Blog Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding a layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 Installation 29 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673 Simple Acl controlled Application - part 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679 ii 13 Contributing 6830 码力 | 820 页 | 2.52 MB | 1 年前3Spanny 2: Rise of std::mdspan
github.com/griswaldbrooks/spanny2github.com/griswaldbrooks/spanny2 DISCLAIMER: C++23… ish 2 https://github.com/kokkos/mdspangithub.com/griswaldbrooks/spanny2 goals ● deeper understanding of std::mdspan custom layouts and accessors ● dispel common misconceptions about both 3github.com/griswaldbrooks/spanny2 how ● layouts and their requirements ● occupancy grids and default layouts ● submaps, strides, submdspan 4 ● motivations for std::mdspan ● review std::mdspan declarationgithub.com/griswaldbrooks/spanny2 how ● layouts and their requirements ● occupancy grids and default layouts ● submaps, strides, submdspan0 码力 | 117 页 | 2.02 MB | 5 月前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100