-
THE NETWORKING TS FROM SCRATCH
## I /O Objects
Robert Leahy - rleahy@rleahy.ca
ISO C++ Networking is blocked on Executors (P0443)
Target for Networking is currently C++23 (P0592)
Used standalone Asio of composed asynchronous operations depend on those guarantees being honored transitively
## “I/O objects” provide a handle to low level asynchronous functionality within the framework of the Networking (perhaps including one or more I/O objects) is a useful pattern
Service objects own completion handlers thereby breaking the potential ownership cycle
Service objects are owned by an ExecutionContext
0 码力 |
35 页 |
900.82 KB
| 1 年前 3
-
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")
);
it
0 码力 |
5 页 |
0 Bytes
| 2 年前 3
-
## 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 supports
0 码力 |
28 页 |
4.49 MB
| 2 年前 3
-
## +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 p4_1.jpg)
## Object Introspection (Ol) Goals
- Byte level memory footprint analysis for objects
• Complete object type hierarchies
• Dynamic allocations and containers
• Optimised, production Dynamic Profiler
• Can be used with no recompilation or code modification
• APIs
## Outline
• Debug Info Analysis
• Type/Layout Reconstruction
• Code Generation
• Object Introspection as a Library
• Object
0 码力 |
62 页 |
2.24 MB
| 1 年前 3
-
## 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
tor v(5);
[0];
/nologo /analyze:only /analyze:plugin
.cpp(6) : warning C26446: Prefer
0 码力 |
35 页 |
14.13 MB
| 1 年前 3
-
# Top 5 improvements to Debugging Go Code in VS Code
in the last year
Ramya Rao
Software Engineer, Microsoft
Maintainer of the Go plugin to VS Code
## Add/remove breakpoints when in the middle of debugging
0 码力 |
9 页 |
153.73 KB
| 2 年前 3
-
## +21
## Code Analysis++
## ANASTASIA KAZAKOVA
## 20 21 October 24-29
• Anastasia Kazakova, @anastasiak2512
C++ Dev: Embedded, Networking
C++ Tools PMM and .NET Tools Marketing Lead, JetBrains
- UG: https://www.meetup.com/St-Petersburg-CPP-User-Group/
C++ Russia: https://cppconf.ru/en/
## Why Code Analysis?
## Software Quality
While preparing for my workshop at #CppOnSea, I want to ask you: reply about software quality.
Readability
Repeatable tests
SW helps solving
Maintainability
Expressive code
less UB
problems
Simplicity
tools
Robustness
The Last Spike
Work as intended
fuzzer
Orthogonality
0 码力 |
61 页 |
2.70 MB
| 1 年前 3
-
+23
## Better Code: Contracts
## SEAN PARENT & DAVE ABRAHAMS
## 20 23 October 01 - 06

## Better Code: Contracts Dave Co-creator
Documentation > Code

Local reasoning is the idea that the reader can make sense of the code directly in front of them them, without going on a journey discovering how the code works.
## —Nathan Gitter
(https://medium.com/@nathangitter/local-reasoning-in-swift-6782e459d)
## Local reasoning | The tower of abstraction
0 码力 |
204 页 |
4.46 MB
| 1 年前 3
-
swapper (CPU is idle, e.g. blocking on IO)
Read ___pycache → Unmarshall → Heap allocated
code object → Evaluate
> time python3.10 -X importtime -c 'pa files
# or unmarshall pyc files
code = spec.get_code(name)
# exec code
module = exec(code, {})
def cds_import_module(name):
try:
code = cds.code[name]
except NotInArchive:
# default path
spec = finder.find_spec(name)
code = spec.get_code(name)
module = exec(code, {})
/* The hottest fields
PyObject *co_cons;
PyObject *co_names;
PyObject 0 码力 |
21 页 |
3.18 MB
| 2 年前 3 -
## GARMIN $ ^{®} $
## Changing Legacy Code with Confidence:
## Practical Advice for Maintaining and Migrating Working Code
## Part 0: Legacy Code
## Legacy code has value
• It works $ ^{*} $
It may making the company money
• One person's bug is another's critical feature
## The Legacy of Code
• Best practices and languages change
• Developers cycle through projects
• Features added/removed/re-added
• Supporting tools change
## Goals of this talk
• Preserve working code
• Introduce testing
• Gradual improvement
• Make code self documenting
• Instill confidence in changes
• Develop for maintenance 0 码力 |
114 页 |
982.54 KB
| 1 年前 3
|