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 for embedded systems (Arduino, Raspberry Pi) - Medium.com (https://medium.com/@rudmerriam) ## Polymorphism • Greek: “many forms” (Obligatory statement) - The use of a single symbol to represent multiple0 码力 | 43 页 | 536.84 KB | 1 年前3
Apache Cassandra static column 介绍与实战Apache Cassandra static column 介绍与实战 假设我们有这样的场景:我们想在 Cassandra 中使用一张表记录用户基本信息(比如 email、密码等)以及用户状态更新。我们知道,用户的基本信息一般很少会变动,但是状态会经常变化,如果每次状态更新都把用户基本信息都加进去,势必会让费大量的存储空间。为了解决这种问题,Cassandra 引入了 static column。同一个 partition partition key 中被声明为 static 的列只有一个值的,也就是只存储一份。 解Spark、Hadoop或者Hbase相关的文章,欢迎关注微信公共帐号:iteblog_hadoop ## 定义 static column 在表中将某个列定义为 STATIC 很简单,只需要在列的最后面加上 STATIC 关键字,具体如下: CREATE TABLE "iteblog_u #34; ( "username" text, "id" timeuuid, "email" text STATIC, "encrypted_password" blob STATIC, "body" text, PRIMARY KEY ("username", "id") ); it0 码力 | 5 页 | 0 Bytes | 2 年前3
Rustle: the first static analyzer for smart contracts in Rust## RUST CHINA CONF 2023 第三届中国Rust开发者大会 6.17-6.18 @Shanghai ## Rustle: the first static analyzer for smart contracts in Rust Matthew Jiang Director of Security Team @ BlockSec Outline 1 Motivation in Rustle • Complete documentation and samples is preferred ## Conclusion - Rustle is the first static analyzer for smart contracts in Rust and has been integrated into our workflow - Rustle supports0 码力 | 28 页 | 4.49 MB | 2 年前3
Finding Bugs using Path-Sensitive Static Analysis## Finding Bugs using Path-Sensitive Static Analysis ## Welcome to CppCon 2021! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions latest announcements Take our survey https://aka.ms/cppcon ## Agenda • Intro to path-sensitive static analysis • Path-sensitive checks in MSVC • A look under the hood • Upcoming features • Lessons Lessons learned  ## Static Analysis torv(5); [0]; /nologo /analyze:only /analyze:plugin .cpp(6) : warning C26446: Prefer 0 码力 | 35 页 | 14.13 MB | 1 年前3
Back to Basics: Generic ProgrammingProgramming Static polymorphism ## Generic Programming Same code works on different, unrelated types Static polymorphism ## C++ Templates Same code works on different, unrelated types Static polymorphism T f() const { return T}; } templateT g(U u) const { return static_cast ## Class Template Member return T}; } template(u); } }; https://godbolt.org/z/n69rGKE93 template T A ::g(U u) const { return static_cast (u); } } https://godbolt.org/z/n69rGKE93 0 码力 | 175 页 | 1.16 MB | 1 年前3
Object Oriented ProgrammingProgramming Key Ideas Early and Late Binding Class Traps Virtuality Inheritance override final Polymorphism Template method Interfaces Destructor Liskov substitution principle Inheritance (interface Programming Key Ideas Early and Late Binding Class Traps Virtuality Inheritance override final Polymorphism Template method Interfaces Destructor Liskov substitution principle Inheritance (interface Programming Key Ideas Early and Late Binding Class Traps Virtuality Inheritance override final Polymorphism Template method Interfaces Destructor Liskov substitution principle Inheritance (interface0 码力 | 38 页 | 752.99 KB | 1 年前3
Six Ways for Implementing Math Expressions Calculator43ff11567a25e4/p6_2.jpg) ## Riverblade Accelerating PC-lint C++ code analysis to complete the static analysis of a Visual Studio solution in a fraction of...  # Six ways for Implementing Math Expressions Calculator A walk through polymorphism, smart pointers, templates, concepts and more Amir Kirsh  << endl; delete e; // to print something like: // ((3 ^ 2) + (-1)) = 8 ## A quick polymorphism exercise Let's start here: http://coliru.stacked-crooked.com/a/192d90699cd08eb5 (Or just0 码力 | 63 页 | 1.85 MB | 1 年前3
A Security Guide for Kotlin Developers9b4651c4aab0/p13_1.jpg) Kiuwan can automatically run your code through Kiuwan Code Security, a static application security testing (SAST) suite that is compliant with the most stringent security standards0 码力 | 13 页 | 1.80 MB | 2 年前3
Back to Basics Casting$ ^{*} $ 1. static\_cast 2. const cast 3. dynamic_cast 4. reinterpret_cast ## static_caststruct B {}; struct D : public B {}; int main() { int i = 7001; float f = static_cast ## static cast(i); ui8 = static_cast (1.75f * f); // 2 D d; B& rb = d; D& rd = static_cast (pv); T* multiple hops struct A { explicit A(int){ puts("A");}}; 1. A has a constructor that takes a single int ## static castmultiple hops struct 0 码力 | 117 页 | 1.57 MB | 1 年前3
Customizing Compilation Error Messageskrzysztof-jusiak [README] Add file [README] README.md -> reflect [README] Code About C++20 Static Reflection library 444d020 - 3 weeks ago 287 Commits .github reflection meta-programming cpp20 10 watching // Overview / Examples / API / FAQ 14 forks Report repository ## REFLECT: C++20 Static Reflection library license MIT release v1.2.3 build try it online https://en.wikipedia.org/wik releases Contributors 6 ## ☀️ ☁️ ☁️ ☁️ struct foo { char ch; float flt{26.2f}; }; ## } static_assert(reflect::get("flt")(foo{}) == 26.2f); Output of x86-64 clang (trunk) (Compiler #1)0 码力 | 12 页 | 1.47 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Curiously Recurring Template Pattern (CRTP)std::variantstd::anystd::tuplePolymorphic Invokable静态列分区键Cassandra插入数据修改值静态分析智能合约Rust安全漏洞区块链路径敏感静态分析空指针解引用检测Fourier-Motzkin消除法MSVCC++团队博客Generic ProgrammingConstraintsStatic PolymorphismC++ TemplatesKISS PrincipleEarly and Late BindingClassInheritanceVirtualityPolymorphismpolymorphismsmart pointerstemplatesconceptsC++KotlinSecurity RisksStatic TypeException HandlingOWASP Mobile TOP 10dynamic_castbit_caststatic_castRTTIreflectmember name checkingcustom error messagesstatic reflectionC++20













