Главная
Study mode:
on
1
Intro
2
Outline
3
About Native Instruments
4
Events
5
Disclaimer
6
C version
7
The naive way
8
Modern alternatives
9
Types
10
Accessing types
11
Closed and Open Sum Types
12
Open Sum Types
13
How to access them
14
Other access patterns
15
Overload
16
Open some types
17
Scala
18
Matchine
19
Basic Matchine
20
Optional Matchine
21
Summary
22
Customization
23
Variant
24
Mhm
25
Matchine Function
26
Matchine Core Function
27
Matchine Final Function
28
Inference
29
Performance Considerations
30
Algorithm Complexity
31
Extending an Image
32
Extending the Library
33
The Problem
34
The Challenge
Description:
Explore C++ pattern matching for open sum types in this CppNow 2019 conference talk by André Bergner. Dive into solutions for declarative dispatching and fast pattern matching over type hierarchies without relying on RTTI. Learn about the 'matchine' library implementation, which offers tools for modeling open sum types through inheritance. Discover techniques for sorting matching cases at compile time to enable binary search at runtime. Gain insights from a principal software engineer at Native Instruments on advanced C++ concepts, including std::variant, std::visit, and custom implementations for efficient pattern matching. Understand the challenges and potential of applying pattern matching as a library feature in C++, with practical examples and performance considerations.

Matchine - C++ Pattern Matching for Open Sum Types

CppNow
Add to list
0:00 / 0:00