Monadic Operations in Modern C++: A Practical ApproachMonadic Operations in Modern C++: A Practical Approach2About me ● Vitaly Fanaskov ● Senior software engineer at reMarkable ● 10+ years of C++ experience ● GIS, VFX, frameworks, and libraries ● Ph (CS) 3Agenda ● Briefly about expected and optional ● Common use cases of expected ● Monadic operations in software development ● Tips and tricks 4In this talk ● Less theory ● C++ only ● Practical a new widget {}: {}.", widgetBox.value(), error); } } 22How do we handle this? 23Monadic operations: and_then if (const auto widgetBox = getNewWidget(); widgetBox.has_value()) { const auto0 码力 | 61 页 | 411.49 KB | 6 月前3
Pipeline Architectures in C++: Overloaded Pipe Operator | and Its Monadic OperationsTitle: Pipeline architectures in C++: overloaded pipe operator | std::expected and its monadic operations Brief overview: Functional programming in C++ is gaining importance and is attracting programmers operator | will be presented, as well as I’ll explain std::expected and especially its monadic operations that can be tricky in practice. All these together present novel and efficient programming paradigms What's more, std::expected itself allows you to build pipelines – this time using its monadic operations. In this poseter I will explain details how to build your own pipeline architecture in modern0 码力 | 3 页 | 422.24 KB | 6 月前3
Comprehensive Rust(English) 202412ownership and borrowing model can, in many cases, get the performance of C, with alloc and free operations precisely where they are required -- zero cost. It also provides tools similar to C++'s smart pointers println!("fib({i}): {n}"); } } • The Iterator trait implements many common functional programming operations over collections (e.g. map, filter, reduce, etc). This is the trait where you can find all the => println!("Error: {err}"), } } The read_count function can return std::io::Error (from file operations) or std::num::ParseIntError (from String::parse). Boxing errors saves on code, but gives up the0 码力 | 382 页 | 1.00 MB | 11 月前3
Django CMS 3.0.x Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5.2 How-to guides . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.3 Key to install, configure and customize it for their own projects will can refer to Tutorials, How-to guides, Key topics and Reference sections. 1 django cms Documentation, Release 3.0.19.dev1 2 Chapter 1 on our mailinglist or IRC channel #django-cms on the irc.freenode.net network. 5.2 How-to guides These guides presuppose some familiarity with django CMS. They cover some of the same territory as the Tuto-0 码力 | 180 页 | 1.56 MB | 6 月前3
Heterogeneous Modern C++ with SYCL 2020group and subgroup algorithms • Efficient parallel operations between work items • Class template argument deduction (CTAD) and template deduction guides • Simplified class template instantiation • Simplified interoperability • Efficient acceleration by diverse backend acceleration APIs • SYCL atomic operations are now more closely aligned to standard C++ atomics • Enhances parallel programming freedom Efficient ■ Great vocabulary type for interfaces ■ Separation of concerns - only concerned with operations ○ void A(std::string_view) { /* ... */ } ■ Replace C++11 interfaces for A 83atomic_ref ● C++200 码力 | 114 页 | 7.94 MB | 6 月前3
Django CMS 4.0.x Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 How-to guides . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 CMS developer, from installation to creating your own addon applications. 1.2 How-to guides Practical step-by-step guides for the more experienced developer, covering several important topics. 1.3 Key topics of the django CMS community, either on our Discourse forum or our Slack group. 4.1.2 How-to guides These guides presuppose some familiarity with django CMS. They cover some of the same territory as the Tutorials0 码力 | 296 页 | 1.79 MB | 6 月前3
Django CMS 3.9.x Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 How-to guides . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 CMS developer, from installation to creating your own addon applications. 1.2 How-to guides Practical step-by-step guides for the more experienced developer, covering several important topics. 1.3 Key topics Django/Python compatibility table 29 django cms Documentation, Release 3.10.0 4.1.2 How-to guides These guides presuppose some familiarity with django CMS. They cover some of the same territory as the Tutorials0 码力 | 298 页 | 1.79 MB | 6 月前3
Django CMS 3.9.x Documentationdjango CMS developer, from installation to creating your own addon applications. How-to guides Practical step-by-step guides for the more experienced developer, covering several important topics. Key topics page - like all good django CMS applications, Aldryn News & Blog comes with plugins. How-to guides These guides presuppose some familiarity with django CMS. They cover some of the same territory as the Tutorials visible part (post_cut=True) and perhaps for each level of the navigation. Performing inefficient operations inside a navigation modifier can hence lead to big performance issues. Some tips for keeping a0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationdjango CMS developer, from installation to creating your own addon applications. How-to guides Practical step-by-step guides for the more experienced developer, covering several important topics. Key topics page - like all good django CMS applications, Aldryn News & Blog comes with plugins. How-to guides These guides presuppose some familiarity with django CMS. They cover some of the same territory as the Tutorials visible part (post_cut=True) and perhaps for each level of the navigation. Performing inefficient operations inside a navigation modifier can hence lead to big performance issues. Some tips for keeping a0 码力 | 413 页 | 1.67 MB | 6 月前3
Django CMS 3.11.10 Documentationinstallation using additional packages creating your own addon applications. How-to guides Practical step-by-step guides for the more experienced developer, covering several important topics. Explanation be affected by your site’s code. The content reloading introduced in django CMS 3.5 for plugin operations (when moving/adding/deleting etc) pull markup changes from the server. This may require a JS widget on('cms-content-refresh', function () { less.refresh(); }); {% endif %} How-to guides These guides presuppose some familiarity with django CMS. They cover some of the same territory as the Tutorials0 码力 | 493 页 | 1.44 MB | 6 月前0.03
共 295 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30













