## +23
##
C++ Memory Model: from
C++11 to
C++23
## ALEX DATHSKOVSKY
## 20 23 October 01 - 06
## About Me: SPEEDATA
alex.dathskovsky@speedata.io
www.linkedin.com/in/alexdathskovsky
https://www.cppnext cppnext.com

## its a conspiracy man
## Memory Model
## I mportant Question
## Does the processor executes the program you long
27 | # 0x1b | | .LCPI1_7: |
| .long | 28 | # 0x1c |
| .long | 29 | # 0x1d |
| .long | 30 | # 0x1e |
0 码力 |
112 页 |
5.17 MB
| 1 年前 3
2
cppfront: Recap
Safety for C++
50 esp. guaranteed program-meaningful initialization
Simplicity for C++
10 esp. for programmers
cppfront: What’s new
Types, reflection, metafunctions, …
Simplification for C++
Why • What kind • What plan
3
green-field language
invent new idioms/styles
new modules
new ecosystem/packagers
compatibility bridges
refresh C++ itself
make C++ guidance default
make C++ modules default
keep C++ ecosystem/packagers
keep C++ compatibility
this talk
4
What could we do if we
had a cleanly demarcated
“bubble of new code,”
via an alternate syntax for C++?
reduce complexity 0 码力 |
85 页 |
5.73 MB
| 1 年前 3 zig
$ ./comments
Hello, world!
There are no multiline comments in Zig (e.g. like /* */ comments in C). This allows Zig to have the property that each line of code can be tokenized out of context.
## Doc anyerror!i32
value: 1234
## Primitive Types
Primitive Types
| Type | C Equivalent | Description | | i8 | int8_t | signed 8-bit integer | t16_tunsigned 16-bit integer |
| Type | C Equivalent | Description | | i32 | int32_t | signed 32-bit integer 0 码力 |
241 页 |
7.37 MB
| 2 年前 3 6ac042f881af6d8a666/p1_2.jpg)
## Emeritus participant in C++ standardization
• Written ~175 papers for WG21, proposing such now-standard C++ library features as gcd/lcm, cbegin/cend, common_type, and Project Editor for the Int'l Standard on Mathematical Special Functions in C++ (ISO/IEC 29124), incorporated into ; M.S., Ph.D. (computer science).
• Professional programmer for over 60 years, programming in C++ since 1982.
Experienced in industry, academia, consulting, and research:

Timur Doumler
CppCon
18 September 2024

The Swan, The Pike, and The Crab – Fable by Ivan Krylov, 1814
## Proposal: add contract assertions to C++
Widget getWidget (index i)
pre (i > 0) // precondition assertion
## Proposal: add contract assertions to C++
// precondition assertion
// postcondition assertion
## Proposal: add contract assertions to C++
Widget getWidget (index i)
pre (i > 0) // precondition 0 码力 |
181 页 |
4.44 MB
| 1 年前 3 ## COMPOSABLE C++

## BEN DEANE / @ben_deane
CPPCON 2021
## I N THIS TALK
1. Composability defined
2. Composable types prioritization
request → A f → B f → C f → unhandled
t → t → t → t → handled
## CASE STUDY: LOGGING
## From "Easy to Use, Hard to Misuse: Declarative Style in C++" (CppCon 2018)
struct log_sink ments/c/3/3/1/c331a812ea25eaf59e92bd9bda4ff4dd/p42_1.jpg)
alignment
cohesion
## MORE BEHAVIOURS
We can arbitrarily layer more behaviours into the calculation.
![Image](/uploads/documents/c/3/3/1/ 0 码力 |
124 页 |
8.28 MB
| 1 年前 3 ## +21
## Exceptional C++
## VICTOR CIURA 20 21 October 24-29
## Exceptional C++
CppCon 2021
October 25 $ ^{th} $
## Abstract
When writing code we usually focus our attention on the happy paths - Zoom
## Q & A
## Exceptional C++
When writing code we usually focus our attention on the happy paths - that's where the interesting stuff happens
## Exceptional C++
But there are also plenty of of exciting things happening on the error handling flow, too
## Exceptional C++
Although not universally loved, exceptions are a powerful mechanism of maneuvering execution on the unhappy path
##### Exceptions 0 码力 |
113 页 |
24.39 MB
| 1 年前 3
|
|