Reflection Is Not Contemplation## Reflection Is Not Contemplation Andrei Alexandrescu | CppCon 2024 ## B ## Ba-dum tsss ## I ’ll Start With the Punchline • Static reflection without code generation is incomplete • The “reading” “reading” part of reflection generally agreed upon • The “generation” part of reflection suffered of neglect • P2996 very gingerly sneaks in a foot in the door (define_class) • P3294 finally blows the door off off its hinges • The two facets of reflection are equally important • Where do AI tools fit within this craze? ## The Reflection Circularity Problem Without generation, we're chasing our tails •0 码力 | 45 页 | 2.45 MB | 1 年前3
Reflection Based Libraries to Look Forward To## +24 ## Reflection Based Libraries to Look Forward To ## SAKSHAM SHARMA ## Reflection based libraries to look forward to ## Saksham Sharma CppCon 2024 ## Why me Director, Quant Research Tech at clean APIs ## Overview • What is reflection • Reflection in other languages (Go, Python, Java) • Reflection in C++ as per P2996 ☐ Syntax and examples • Reflection libraries! Python bindings ABI hashing ) • Alternatives ways to achieve “reflection” ## Reflection In code.  ## Reflection? ## Write code to • Access information0 码力 | 118 页 | 14.33 MB | 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
Implementing Reflection Using the New C++20 Tooling Opportunity: Modules## +24 ## I mplementing Reflection Using the New C++20 Tooling Opportunity: Modules ## MAIKO STEEMAN ## About me • Tools & Engine programmer • AAA Games Industry • (prev) Creative Assembly • c6f9d1987f99771d61126d94b402/p2_2.jpg) ## Summary • What is reflection? • Why? • Implementing runtime reflection ## What is reflection • Metadata of code • "What members do I have?" struct Entity { int health; std::string tag; void eat_burger(); }; ## Why should I care about reflection? • Serialization • Binary, JSON, etc. json sanitize_struct(any any_value) { json json;0 码力 | 53 页 | 1.43 MB | 1 年前3
Customizing Compilation Error Messages[README] README.md -> reflect [README] Code About C++20 Static Reflection library 444d020 - 3 weeks ago 287 Commits .github reflection meta-programming cpp20 reflect 2 months ago Readme 3 weeks 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/wiki/Reflective_programming 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
Julia 1.9.0 rc1 Documentationparenthesize conditions ..... 449 36.13 Don't overuse ..... 449 36.14 Don't use unnecessary static parameters ..... 449 36.15 Avoid confusion about whether something is an instance or a type .. Values 578 41.12 System 581 41.13 Versioning 594 41.14 Errors 595 41.15 Events 605 41.16 Reflection 606 41.17 Code loading 611 41.18 Internals 613 41.19 Meta 619 42 Collections and Data Structures 99 UUIDs ..... 1479 100 Unicode ..... 1481 IV Developer Documentation ..... 1485 101 Reflection and Introspection ..... 1486 101.1 Module bindings ..... 1486 101.2 DataType fields ..... 14860 码力 | 1644 页 | 5.27 MB | 2 年前3
Julia v1.9.4 Documentationparenthesize conditions ..... 449 36.13 Don't overuse ..... 449 36.14 Don't use unnecessary static parameters ..... 449 36.15 Avoid confusion about whether something is an instance or a type .. ... 581 41.13 Versioning ..... 594 41.14 Errors ..... 595 41.15 Events ..... 605 41.16 Reflection ..... 606 41.17 Code loading ..... 611 41.18 Internals ..... 613 41.19 Meta ..... 619 42 99 UUIDs ..... 1479 100 Unicode ..... 1481 IV Developer Documentation ..... 1485 101 Reflection and Introspection ..... 1486 101.1 Module bindings ..... 1486 101.2 DataType fields ..... 14860 码力 | 1644 页 | 5.27 MB | 2 年前3
Julia 1.9.2 Documentationparenthesize conditions ..... 449 36.13 Don't overuse ..... 449 36.14 Don't use unnecessary static parameters ..... 449 36.15 Avoid confusion about whether something is an instance or a type .. ... 581 41.13 Versioning ..... 594 41.14 Errors ..... 595 41.15 Events ..... 605 41.16 Reflection ..... 606 41.17 Code loading ..... 611 41.18 Internals ..... 613 41.19 Meta ..... 619 42 99 UUIDs ..... 1479 100 Unicode ..... 1481 IV Developer Documentation ..... 1485 101 Reflection and Introspection ..... 1486 101.1 Module bindings ..... 1486 101.2 DataType fields ..... 14860 码力 | 1644 页 | 5.27 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
反射生成静态反射代码生成模板元编程ReflectionC++Python bindingsABI hashingTemplate metaprogramming静态列分区键Cassandra插入数据修改值静态分析智能合约Rust安全漏洞区块链路径敏感静态分析空指针解引用检测Fourier-Motzkin消除法MSVCC++团队博客C++20ModulesRuntimeMetadatareflectmember name checkingcustom error messagesstatic reflectionJuliaREPLCrashesMetaprogrammingDocumentationdebuggingUnit Testing













