Session Types in C++
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.“ 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.“ is a type? Depends on who you ask. So called “dependent type”? 16What are types used for in programming? 17What are types used for in programming? • Similar to money and its roles: • Medium of exchange0 码力 | 89 页 | 1.55 MB | 5 月前3Back to Basics: Algebraic Data Types
Back to Basics: Algebraic Data Types I also do C++ training! arthur.j.odwyer@gmail.com Arthur O’Dwyer 2020-09-16Outline ● Why the name “algebraic data types”? [3–18] ○ Memory layout diagrams. Why Questions? ● More about pair and tuple [57–69] Questions? 2What do I mean by algebraic types? pair C++98. The original algebraic data type. tuple C++11. optional C++17. variant 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. Therefore pair and tuple are known as product types. 5 A A possible0 码力 | 73 页 | 267.05 KB | 5 月前3LITERALS SAFELY for Types that Behave as though Built-in - Pablo Halpern - CppCon 2021
EMBRACING USER DEFINED LITERALS SAFELY for Types that Behave as though Built-in Pablo Halpern phalpern@halpernwightsoftware.com CppCon 2021 This work by Pablo Halpern is licensed under a Creative 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 10/26/21 Pablo Halpern, 2021 (CC BY 4.0) 10Minimizing the divide between builtin and user-defined types ■ Operator overloading allows the syntax for assigning, comparing, and streaming a std::string to0 码力 | 66 页 | 1.47 MB | 5 月前3simd: How to Express Inherent Parallelism Efficiently Via Data-Parallel Types
std::simd how to express inherent parallelism efficiently via data-parallel types Dr. Matthias Kretz GSI Helmholtz Center for Heavy Ion Research CppCon ’23 @mkretz@floss.social github.com/mattkretzMotivation ResearchMotivation std::simd Overview Example: Image Processing Programming Models Outlook Summary Data-Parallel Types One variable stores WT values. One operator signifies WT operations (element-wise). W for “width”; vectorizable type — all arithmetic types except bool or long double • simd_maskbehaves 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 | 5 月前3Go 101 (Golang 101) v1.21.0
Familiar With Go Code §4. Introduction of Source Code Elements §5. Keywords and Identifiers §6. Basic Types and Their Value Literals §7. Constants and Variables - also introduces untyped values and type deductions into Go values. §18. Arrays, Slices and Maps - first-class citizen container types. §19. Strings §20. Functions - function types and values, including variadic functions. §21. Channels - the Go way to do - type extension in the Go way. §25. Type-Unsafe Pointers §26. Generics - use and read composite types §27. Reflections - the reflect standard package. Some Special Topics §28. Line Break Rules §290 码力 | 610 页 | 945.17 KB | 1 年前3Go 101 (Golang 101) v1.21.0
Familiar With Go Code §4. Introduction of Source Code Elements §5. Keywords and Identifiers §6. Basic Types and Their Value Literals §7. Constants and Variables - also introduces untyped values and type deductions into Go values. §18. Arrays, Slices and Maps - first-class citizen container types. §19. Strings §20. Functions - function types and values, including variadic functions. §21. Channels - the Go way to do type extension in the Go way. §25. Type-Unsafe Pointers §26. Generics - use and read composite types §27. Reflections - the reflect standard package. Some Special Topics §28. Line Break Rules §29.0 码力 | 880 页 | 833.34 KB | 1 年前3Go 101 (Golang 101) v1.21.0
Familiar With Go Code §4. Introduction of Source Code Elements §5. Keywords and Identifiers §6. Basic Types and Their Value Literals §7. Constants and Variables - also introduces untyped values and type deductions into Go values. §18. Arrays, Slices and Maps - first-class citizen container types. §19. Strings §20. Functions - function types and values, including variadic functions. §21. Channels - the Go way to do - type extension in the Go way. §25. Type-Unsafe Pointers §26. Generics - use and read composite types §27. Reflections - the reflect standard package. Some Special Topics §28. Line Break Rules §290 码力 | 630 页 | 3.77 MB | 1 年前3The TypeScript Handbook
Your first step to learn TypeScript The Basics Step one in learning TypeScript: The basic types. Everyday Types The language primitives. Narrowing Understand how TypeScript uses JavaScript knowledge to Object Types How TypeScript describes the shapes of JavaScript objects. Creating Types from Types An overview of the ways in which you can create more types from existing types. Generics Types which take Indexed Access Types Using Type['a'] syntax to access a subset of a type. Conditional Types Create types which act like if statements in the type system. Mapped Types Generating types by re-using an0 码力 | 184 页 | 647.99 KB | 1 年前3Mypy 1.8.0 Documentation
existing codebase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 1.4 Built-in types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 annotations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.6 Kinds of types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 1 . . . . . . . . . . . . 65 1.15 More types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 1.16 Literal types and Enums . . . . . . . . . . . . . .0 码力 | 234 页 | 902.89 KB | 1 年前3Mypy 1.8.0 Documentation
[https://peps.python.org/pep-0484/]) to your Python programs, and mypy will warn you when you use those types incorrectly. Python is a dynamic language, so usually you’ll only see errors in your code when you input("What is your favourite number?") print("It is", number + 1) # error: Unsupported operand types for + ("str" and "int") Adding type hints for mypy does not interfere with the way your program easy-to-use type system, supporting features such as type inference, generics, callable types, tuple types, union types, structural subtyping and more. Using mypy will make your programs easier to understand0 码力 | 318 页 | 271.55 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100