Back To Basics Lifetime Management## +24 ## Back To Basics Lifetime Management ## PHIL NASH ## 20 24 September 15 - 20 ## C++ is complex  mostly for historical ctor: #2 gadget dtor: #2 widget 42 0x6000009c4040 gadget dtor: #-1386594240 malloc: *** error for object 0x6000009c4040: pointer being free malloc: *** set a breakpoint in malloc_error_break to debug struct 0x6000037b4030 widget 42 0x6000037b4030 gadget dtor: #1 gadget dtor: #1157382192 malloc: *** error for object 0x6000037b4030: pointer being freed was not a malloc: *** set a breakpoint in malloc_error_break0 码力 | 66 页 | 8.43 MB | 1 年前3
Object Lifetime: From Start to Finish## +23 ## Object Lifetime: From Start to Finish ## THAMARA ANDRADE ## 20 23 October 01 - 06 ## Object Lifetime ## From Start to Finish int main() { if (doSomething(Foo().getBar())) { // rules for object lifetime. ## What is object lifetime anyway? ### 6.8 Object lifetime [basic.life] The lifetime of an object or reference is a runtime property of the object or reference. An object is said initialization. — end note] The lifetime of an object of type T begins when: (1.1) — storage with the proper alignment and size for type T is obtained, and (1.2) — if the object has non-vacuous initialization0 码力 | 214 页 | 9.34 MB | 1 年前3
Object Oriented Programming## +21 ## Back to Basics: Object-Oriented Programming RAINER GRIMM 20 21 October 24-29 ## Object-Oriented Programming Key Ideas Early and Late Binding Class Traps Virtuality Inheritance override implementation) Covariant return type Virtual in con- /destructor Shadowing Slicing Duck Typing ## Object-Oriented Programming Key Ideas Early and Late Binding Class Traps Virtuality Inheritance override c/b/69cbbf0bf3931fa04e7d540a7b157178/p4_1.jpg) Separation from interface and implementation ## Object-Oriented Programming Key Ideas Early and Late Binding Class Traps Virtuality Inheritance override0 码力 | 38 页 | 752.99 KB | 1 年前3
GPU Resource Management On JDOS## GPU Resource Management On JDOS 梁永清 liangyongqing1@jd.com ## 提供的服务 ## Experiment ## Training 1. 用于实验的 GPU 容器 2. 基于 Kubeflow 的机器学习训练服务 3. 模型管理和模型 Serving 服务 ## Serving 均基于容器,不对业务方直接提供 GPU 物理机0 码力 | 11 页 | 13.40 MB | 1 年前3
Secrets Management at
Scale with Vault & Rancher24. June # Secrets Management at Scale with Vault & Rancher  Bastian Hofman Senior Field Engineer SUSE bastian.hofmann@suse Operations & Infrastructure Management (Run & Manage) K8s Version Management GitOps Continuous Delivery Cluster Templates & Config Enforcement Node Pool Management RBAC, OPA, Pod & Network Network Policies Cluster Provisioning & Lifecycle Management  kubernetes  Approaches to safety ## ↑ C++ is getting safer The lifetime safety toolbox What Commonly used languages, such as C and C++, provide a lot of freedom and flexibility in memory management while relying heavily on the programmer to perform the needed checks on memory references. Simple0 码力 | 124 页 | 2.03 MB | 1 年前3
Back to Basics: Object-Oriented Programming## Back to Basics Object-Oriented Programming Presentation Material  CppCon, Aurora CO, 2024-09-20 © 2024 Andreas Fertig ed7c31a37d6f2f/p5_8.jpg) ## A class ■ C++ adds classes for object-oriented programming. ■ The constructors ☐ are called when the object is created. Data fields of classes should be initialized in the Flush() override { puts("USBC Flush"); } }; int main() { Note, I'm creating a USBC object and store it as IOPort std::unique_ptrport{std::make_unique Flush(); 0 码力 | 20 页 | 1.04 MB | 1 年前3
Object Pascal 参考手册(Ver 0.1)# Object Pascal 参考手册 (Ver 0.1) ezdelphi@hotmail.com ## Overview(概述) ## Using object pascal(使用 object pascal) Object Pascal 是一种高级编译语言,具有强类型(对数据类型的检查非常严格)特性,支持结构化和面向对象编程。它的优点包括代码的易读性、快速编译,以及支持多个单元文件从而实现模块化编程。 而实现模块化编程。 Object Pascal 具有一些特性以支持 Borland 组件框架和 RAD(快速应用程序开发)环境。在很大程度上,本语言参考的说明和示例假定你使用 Borland 公司的开发工具,如 Delphi 和 Kylix。 绝大多数使用 Borland 开发工具的开发者是在 IDE(集成开发环境)环境下编写代码并进行编译。Borland 开发工具帮助我们设置工程和源文件的许 限制,严格说来,这不是 Object Pascal 语言规范的一部分。比如,Borland 开发工具遵循某些文件和程序的命名约定,若你在 IDE 以外编写代码并使用命令行来编译,你可以避开这些限制。 这些帮助主题假设你在 IDE 环境下工作,并且使用 VCL(可视化组件库)和/或 CLX(跨平台组件库)创建应用程序。但有时候,Borland 一些特定的规则和 Object Pascal 的通用规则并不相同。0 码力 | 168 页 | 868.25 KB | 2 年前3
Node Operator: Kubernetes Node Management Made Simple## Node Operator: Kubernetes Node Management Made Simple 陈俊(Joe),Ant Financial ## Agenda • Background and Motivation • Introduction of Operators • Node-Operator • Advanced Topic: Kube-on-Kube-Operator Master & Node Components reliably • Canary Rollout • Master & Node Component Versions Management  Worker Order Complicated architecture Work order deployment system can not meet the requirements of resource management. ## Operator 0 码力 | 18 页 | 11.70 MB | 1 年前3
Object Introspection: A Revolutionary Memory Profiler for C++ Objects## +23 ## Object Introspection: A Revolutionary Memory Profiler for C++ Objects ## JONATHAN HASLAM & ADITYA SARWADE 20 23 October 01 - 06 ## Scene Setting “... functions then provide the basic 6739cbe6128deb047eb1259822d6/p4_1.jpg) ## Object Introspection (Ol) Goals - Byte level memory footprint analysis for objects • Complete object type hierarchies • Dynamic allocations and containers Analysis • Type/Layout Reconstruction • Code Generation • Object Introspection as a Library • Object Introspection as a Profiler • Object Introspection Applied Node-OperatorMachine CRDObject IntrospectionMemory ProfilerType ReconstructionCode GenerationDebug Info













