Back to Basics: Smart Pointersnt max() std::cout # Smart Pointers std::cout ## Back to Basics d(std::logical std::cout << "myVec::"; for (auto i: myVec).std::cout std::cout << "\n"; std::vectormyVec2); Rainer Grimm Training, Coaching, and Technology Consulting www.ModernesCpp.net ## Smart Pointer A First Overview std::unique_ptr – Exclusive Ownership std::shared_ptr - Shared Ownership std::weak_ptr – Break of Cyclic References Performance Concurrency Function Arguments and Return Values ## Smart Pointer A First Overview std::unique_ptr – Exclusive Ownership std::shared_ptr - Shared Ownership0 码力 | 30 页 | 625.43 KB | 1 年前3
Rustle: the first static analyzer for smart contracts in RustRUST 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 2 Background Conclusion ## Motivation Why do we develop Rustle? ## 😍 ## Motivation Emerging chains with Rust as smart contracts language ## SOLANA NEAR NERVOS Polkadot CosmWasm ## Limitations of manual audit • Time-consuming IR Back-end x86 ARM BPF WASM LLVM Pass: rich APIs to analysis the LLVM IR Blockchains with smart contracts in Rust ## Near Rust  Ruby Gems 开发实战  # Six ways for Implementing Math Expressions Calculator A walk through polymorphism, smart pointers, templates, concepts and more Amir Kirsh  << endl; delete e; Why do we use new and delete to begin with? Shouldn't we use smart pointers? First improvement attempt: unique_ptr ## Let's try it together Live Coding! ## Let's mandatory for Polymorphism! - Prefer using smart pointers for internal members - Try to hide your smart pointers, exposing value type semantics (Treat the use of smart pointers as an implementation detail!)0 码力 | 63 页 | 1.85 MB | 1 年前3
Hyperledger Fabric 1.4.9 Documentationcryptocurrency, took a different approach, integrating many of the same characteristics as Bitcoin but adding smart contracts to create a platform for distributed applications. Bitcoin and Ethereum fall into a class chain and even digital music delivery. Fabric is the first distributed ledger platform to support smart contracts authored in general-purpose programming languages such as Java, Go and Node.js, rather than domain-specific languages (DSL). This means that most enterprises already have the skill set needed to develop smart contracts, and no additional training to learn a new language or DSL is needed. The Fabric platform0 码力 | 701 页 | 9.02 MB | 2 年前3
Hyperledger Fabric 2.0.1 Documentationcryptocurrency, took a different approach, integrating many of the same characteristics as Bitcoin but adding smart contracts to create a platform for distributed applications. Bitcoin and Ethereum fall into a class chain and even digital music delivery. Fabric is the first distributed ledger platform to support smart contracts authored in general-purpose programming languages such as Java, Go and Node.js, rather than domain-specific languages (DSL). This means that most enterprises already have the skill set needed to develop smart contracts, and no additional training to learn a new language or DSL is needed. The Fabric platform0 码力 | 533 页 | 8.37 MB | 2 年前3
01. 邓良驹 编写更安全的Python代码 总结:如何规避代码风险 ## 如何尽量规避风险 1. 默认不相信外部输入,需要进行检查; 2. 内部逻辑也应该做检查,例如购买东西以后余额应该降低而不是升高; 3. 奥卡姆剃刀原则,用能达到目的的最简单的设计、配置,减少缺陷的可能性; 4. 最小权限原则,仅用恰好够用的权限去执行代码,减少越权漏洞; 5. 定时清理缓存数据,以及非业务代码的固有数据,减少入侵风险; 6. 在发布代码前,使用 Bandit 工具检查代码,规避最常见的不安全写法;0 码力 | 18 页 | 988.40 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
std::unique_ptrstd::shared_ptrstd::weak_ptrRAIIC++20静态分析智能合约Rust安全漏洞区块链微服务架构去中心化自动化一切交付流水线API网关CandidDFINITY递归类型ScrumLean政府SMART原则增量交付可交付成果单一职责原则开闭原则里氏替换原则接口隔离原则依赖倒置原则polymorphismsmart pointerstemplatesconceptsC++Hyperledger FabricBlockchainSmart ContractsChaincodePermissioned BlockchainDistributed ledgerChannelSmart contract安全编码Python代码Bandit工具PyPI包最小权限原则













