Hidden Overhead of a Function API## +24 ## Hidden Overhead of a Function API ## OLEKSANDR BACHERIKOV ## What we do at Snap with C++  Neural style transfer d5d/p5_1.jpg) Tony Van Eerd Value Oriented Programming Part 1 You Say You Want to Write a Function The Meaning of Life... ...people are not writing enough functions  Tony Van Eerd Value Oriented Programming Part 1 You Say You Want to Write a Function ###### The Meaning of Life... ...people are not writing enough functions ## Tony Van Eerd: “people0 码力 | 158 页 | 2.46 MB | 1 年前3
Debugging the BPF Virtual Machine## Debugging the BPF Virtual Machine eBPF Summit ## Why? ● Debugging is useful to understand how things work ● Sometimes, eBPF programs can’t even load - I couldn’t find good resources on this, so so, here I am ● I break lots of eBPF programs - The BPF Virtual machine is not easy to understand ## The approach ## The BPF subsystem lives in the kernel > callback ); ## Lambdas // print all the using a lambda function std::sort(v.begin(), v.end(), [](int a, int b) { return a < b; }); // find the object with id "c" in a vector of objects // having an id() function returning string0 码力 | 62 页 | 3.57 MB | 1 年前3
Back to Basics - Function Call Resolution## Back To Basics Function Call Resolution BEN SAKS ## Saks & Associates These notes are Copyright © 2024 by Ben Saks and Dan Saks and distributed with their permission by: Saks & Associates hiding • function overloading • function templates ■ When a compiler encounters an expression like $ f(x, y, z) $ , it must consider each of these language features to determine which f function to call session will examine each of these features in turn: • Function overloading and overload resolution • Name lookup • Default function arguments • Function templates For each feature, we’ll explain first how0 码力 | 44 页 | 1.30 MB | 1 年前3
A Journey Into Non-Virtual Polymorphism## 20 23 October 01 - 06 ## +23 ## A Journey Into Non-Virtual Polymorphism ## RUDYARD MERRIAM ## Who Doesn't Recognize This??  Cppcon 2023 | Rud Merriam | A Journey into Non-Virtual Polymorphism ## Background ## • Experience with many languages – FORTRAN IV (1968!), PL/M, assembly, C, Turbo Pascal, Forth • Taught dispatch Cppcon 2023 | Rud Merriam | A Journey into Non-Virtual Polymorphism ## Polymorphic Variables • Base class pointer to derived class – Virtual functions are not bad! • Standard Template Library0 码力 | 43 页 | 536.84 KB | 1 年前3
Optimizing Away Virtual Functions May Be Pointless## +23 ## Optimizing Away Virtual Functions May Be Pointless ## SHACHAR SHEMESH Slide #2 - who am I?  ## DO NOT ENTER One reviewer's notes: There are interesting technical details and surprising conclusions that virtual functions can be actually faster. Since CPU architectures are mentioned, I'd expect to see deep slowdown - gcc Intel  Virtual vs. Concrete Run Times - gcc Intel  ## V M works on Istio! ## Why Add VMs to the 02f65f75591b1719e6/p13_2.jpg) #### V 1.6-1.8 Better VM Workload Abstraction |Item|Kubernetes|Virtual Machine| |---|---|---| |Basic schedule unit|Pod|WorkloadEntry| |Component|Deployment|WorkloadGroup| available ☐ Virtual Machine Installation to get started. Virtual Machine Architecture to learn about the high level architecture of Istio’s virtual machine integration. Debugging Virtual Machines to0 码力 | 50 页 | 2.19 MB | 1 年前3
BehaviorTree.CPP: Task Planning for Robots and Virtual Agents## +23 ### BehaviorTree.CPP: Task Planning for Robots and Virtual Agents ## DAVIDE FACONTI ## 20 23 October 01 - 06 ## What you will learn today 1. What Behavior Trees are 2. About the C++ library const NodeConfig& config) : SyncActionNode(name, config) {} }; // You must override this virtual function NodeStatus tick() override { std::cout << "Type: [ApproachEnemy]. Instance:" private: // retains information about the type std::type_index type_info_; // function pointer. Implements "from_string()" StringConverter converter_; }; struct Entry0 码力 | 59 页 | 7.97 MB | 1 年前3
10 为Python Function自动生成Web UI 彭未康 ## 为 Python Function 自动生成 Web UI 彭未康 ## Touch-Callable The web framework for less serious application. (venv3.6)$ pip [Image](/uploads/documents/0/e/f/2/0ef2dc85a2a8c5cd710f26461146a99b/p9_2.jpg) ## 大胆的想法: • 直接使用 Function 构建小型应用的管理后台? • Serverless 管理后台? std::variantstd::anystd::tuplePolymorphic Invokable虚函数基准测试编译器优化CPU架构IstioVirtual MachineKubernetes服务网格集成Behavior TreesC++abstractionmodularityscripting languageTouch-CallablePython FunctionWeb UI用户生成数据类型Service MeshVirtual ServicegRPC













