-
## +23
## Regular, Revisited
## V ICTOR CIURA
## 20 23 October 01 - 06
## Abstract
“Regular” is not exactly a new concept. If we reflect back on STL and its design principles, as best described by see that regular types naturally appear as necessary foundational concepts in programming.
Why do we need to bother with such taxonomies? Because STL assumes such properties about the types it deals with structures and algorithms to work properly.
STL vocabulary types such as string_view, span, optional, expected etc., raise new questions regarding values types, whole-part semantics, copies, composite objects,
0 码力 |
180 页 |
19.96 MB
| 1 年前 3
-
## +24
## Session Types in C++: A Programmer's Journey
## MIODRAG MISHA DJUKIC
## About me
Faculty of Technical Sciences, University of Novi Sad, Serbia
Teaching... a lot...
Background in compilers never gives a thought about types. That is something which he has tough of and learned as a child. I, on the contrary, developed so slowly that I did not begin to wonder about types until I was an adult." never gives a thought about types. That is something which he has tough of and learned as a child. I, on the contrary, developed so slowly that I did not begin to wonder about types until I was an adult."
0 码力 |
89 页 |
1.55 MB
| 1 年前 3
-
## Back to Basics: Algebraic Data Types
I also do C++ training!
arthur.j.odwyer@gmail.com
## Outline
- Why the name “algebraic data types”? [3–18]
o Memory layout diagrams. Why not std::any?
• Quick [50–56] Questions?
• More about pair and tuple [57–69] Questions?
## What do I mean by algebraic types?
pair
C++98. The original algebraic data type.
tuple
C++11.
optional
C++17.
variant
C++17 possible values|
## Pair and tuple are product types
To find the size of the domain of a pair or tuple type, we take the product of the sizes of its element types.
|A|A possible values|
|---|---|
|pair<A
0 码力 |
73 页 |
267.05 KB
| 1 年前 3
-
## MATTHIAS KRETZ
# std::�md how to express inherent parallelism efficiently via data-parallel types
Dr. Matthias Kretz
GSI Helmholtz Center for Heavy Ion Research
CppCon'23
## Goals and non-goals simd" concept for more generality!
## std::�md Overview
## Data-Parallel Types
One variable stores $ W_{T} $ values.
One operator signifies $ W_{T} $ operations (element-wise) vectorizable type – all arithmetic types except bool or long double
simd_mask behaves like bool (element-wise)
In contrast to bool, there are many different mask types:
storage: bit-masks vs. element-sized
0 码力 |
160 页 |
8.82 MB
| 1 年前 3
-
## EMBRACING USER DEFINED LITERALS SAFELY
## for Types that Behave as though Built-in
Pablo Halpern phalpern@halpernwightsoftware.com
CppCon 2021
## literal [ lit-er-uhl ]
## adjective
1. in accordance KHLEBNIKOV | ALISDAIR MEREDITH
## Talks in this series:
■ Embracing User Defined Literals Safely for Types that Behave as though Built-in
- Pablo Halpern, Tuesday 9am

■ Embracing (and also destroying) Variant Types Safely
- Andrei Alexandrescu, Thursday 9am
Embracing PODs Safely Until They Die
– Alisdair Meredith &
0 码力 |
66 页 |
1.47 MB
| 1 年前 3
-
following its name with a list of arguments in parentheses. Use -> to separate the parameter names and types from the function's return type.
func greet(name: String, day: String) -> String {
return Enumerations and Structures
Use enum to create an enumeration. Like classes and all other named types, enumerations can have methods associated with them.
enum Rank: Int {
case Ace = 1
case Two just like any other named type—for example, to create a collection of objects that have different types but that all conform to a single protocol. When you work with values whose type is a protocol type
0 码力 |
525 页 |
4.68 MB
| 2 年前 3
-
3 Types and Functions 7
3.1 Primitive Types 7
3.2 Data Types 8
3.3 Functions 8
3.4 Dependent Types 10
3.5 I/O 12
3.6 "do" notation 13
3.7 Laziness 13
3.8 Useful Data Types 14 conventional programming languages, there is a clear distinction between types and values. For example, in Haskell, the following are types, representing integers, characters, lists of characters, and lists inhabitants of those types:
• 42, 'a', Hello world!, [2, 3, 4, 5, 6]
In a language with dependent types, however, the distinction is less clear. Dependent types allow types to “depend” on values
0 码力 |
69 页 |
316.20 KB
| 2 年前 3
-
## BEN DEANE / @ben_deane
CPPCON 2021
## I N THIS TALK
1. Composability defined
2. Composable types
3. Objects and patterns
4. Composability at compile time
5. Hierarchies and computation
## COMPOSABLE _composably() -> int;
Spoiler: bool and int are in some sense the only two composable return types we need...
## WHY int?
Of course, int can represent N (32?) bools, using bitand (&) and bitor COMPOSABILITY FROM PRINCIPLES
At the core, steering behaviours is based on the composability of arithmetic types.
A single function returns a force that can be accumulated and applied.
The resulting framework
0 码力 |
124 页 |
8.28 MB
| 1 年前 3
-
4.1.2.3. Bit-String Constants.27
4.1.2.4. Numeric Constants.27
4.1.2.5. Constants of Other Types.28
4.1.3. Operators.....29
4.1.4. Special Characters.....29
4.1.5. Comments.....30
4.1 Data Types ..... 88
8.1. Numeric Types ..... 89
8.1.1. Integer Types ..... 90
8.1.2. Arbitrary Precision Numbers ..... 90
8.1.3. Floating-Point Types ..... 91
8.1.4. Serial Types ... .. 92
8.2. Monetary Types ..... 93
8.3. Character Types ..... 94
8.4. Binary Data Types ..... 96
8.5. Date/Time Types ..... 97
8.5.1. Date/Time Input ..... 98
8.5.1.1. Dates ..
0 码力 |
1582 页 |
12.19 MB
| 2 年前 3
-
by Apache Tomcat.
| Regular Expression Library Updated |
Version 5.0 of the Perl Compatible Regular Expression Library. (PCRE) is now included. httpd ap_filter_protocol calls.
## Monitor hook added
Monitor hook enables modules to run regular/scheduled jobs in the parent (root) process.
## Regular expression API changes
The pcreposix.h header is no longer available; local codepage for filesystem access.
## Regular Expression Library Updated
Apache 2.0 includes the Perl Compatible Regular Expression Library (PCRE). All regular expression evaluation now uses the more 0 码力 |
1860 页 |
1.48 MB
| 1 年前 3
|