Kotlin 1.4 language features### Kotlin 1.4 Language Features Svetlana Isakova ### Kotlin 1.4 Language Features • SAM conversions for Kotlin classes • Explicit API mode • Trailing comma • Break and continue inside when expressions 1.1 Getting Started — SAM conversions for Kotlin interfaces Language features and improvements — Explicit API mode for library authors Basics — Mixing named and positional arguments — Trailing comma0 码力 | 69 页 | 3.29 MB | 2 年前3
Connecting User And Library CodeCustomization Methods: Connecting User And Library Code Inbal Levi ## Who Am I? • A C++ Developer at Millennium. • Active member of ISO C++ work group (WG21): • Library Evolution Work Group Chair • Israeli this talk • The presentation presents my views and opinions only. ## Outline Part 0: What is a Library Part I: What are Customization Points (+ Some History...) Part II: An overview of CPs methods (+ What's next? ## Part 0: What is a Library Part 0: What is a Library  @@@ All of library code is in LibSpace, user code without0 码力 | 58 页 | 18.82 MB | 1 年前3
Linear Algebra with The Eigen Cpp LibraryLinear Algebra with The Eigen C++ Library ## +24 ## DANIEL HANSON ## Outline • A short history – linear algebra and C++ (1998 – Present) • The Eigen C++ Template Library for Linear Algebra • Linear Algebra Disclaimers/Caveats • This presentation is on solving problems using • The Eigen linear algebra library • stdBLAS in C++26 • Not affiliated with Eigen but have used it in financial programming and teaching essentially were: • Write your own Matrix class and operations • Convince your boss to buy a commercial library ## A Little History: Open-Source Libraries ## • Boost uBLAS (BLAS: “Basic Linear Algebra Subroutines”)0 码力 | 35 页 | 1.10 MB | 1 年前3
Improving Our Safety With a Quantities and Units Library## +24 ## Improving Our Safety With a Quantities and Units Library ## MATEUSZ PUSZ ## The future is here  ## The future fundamental types – updating the core language rules – providing safer high-level abstractions in the library ## C++ developers needs help • Many C++ engineers are expected to write life-critical software today quantities and units library ## • Compile-time safety – correct handling of physical quantities, units, and numerical values ## mp-units: C++20/23 quantities and units library ## • Compile-time safety0 码力 | 207 页 | 6.93 MB | 1 年前3
A Physical Units Library for the Next C++## A Physical Units Library For the Next C++ Mateusz Pusz September 15, 2020 ## Motivation, Existing Practice, Challenges  slide number. ## QUICK START ## Physical Units library in a nutshell // simple numeric operations static_assert(10_q_km / 2 == 5_q_km); ## Physical Units library in a nutshell ## // simple numeric operations static_assert(1_q_h == 3600_q_s); static_assert(1_q_km + 1_q_m == 1001_q_m); ## Physical Units library in a nutshell // simple numeric operations static_assert(10_q_km / 2 == 5_q_km); // unit conversions0 码力 | 172 页 | 6.17 MB | 1 年前3
CMake Configuration for Asio Basic Library and Testscppcon_add_library(basic LIBRARIES Asio::asio) add_subdirectory(tests)0 码力 | 1 页 | 71.00 B | 1 年前3
stdx::interval, a library for intervals on totally ordered setsstdx::interval, a library for intervals on totally ordered sets Eric Hughes, Meadhbh Hamrick ## I n brief stdx::interval implements the mathematical sense of an interval on a totally ordered set. The library reasons intervals as sets, not as interval expressions. The library is header-only and targets C++20. It is available under the MIT License. ## Features ## Predicates Membership. Determine if a point is a \infty,b](-\infty,b) (-\infty,+\infty) Generic. The library handles the differences between discrete (e.g. int and other integral types) and continuous (string0 码力 | 1 页 | 45.14 KB | 1 年前3
Interesting Upcoming Features from Low Latency, Parallelism and Concurrency### Interesting Upcoming Features from Low Latency, Parallelism and Concurrency From Kona 2023, Tokyo 2024, and St. Louis 2024 PAUL E. MCKENNEY, MAGED MICHAEL & MICHAEL WONG 20 24 September 15 New-value-returning variants? - Atomic min/max operations are valuable additions to the C++ standard library. - They enable efficient and safe concurrent updates to shared variables, facilitating the development infrequently T* oldptr = src_.exchange(newptr); oldptr->retire(); // Pass to hazard pointer library for safe reclamation. } ## P3135R1: Hazard Pointer Extensions (beyond C++26) P3135R1: Hazard0 码力 | 56 页 | 514.85 KB | 1 年前3
Leveraging C++20/23 Features for Low Level InteractionsLeveraging C++20/23 Features for Low Level Interactions © ## Overview In a baremetal environment, we’re going to demonstrate effective use of C++ How did we end up with C language HW interactions? What in line with C++ best practices? 1. See also Stroustrup (2023), in references ## Key C++ Safety Features There’s lots, but..... Lifetime Management Smart pointers handle new/delete for you. We'll the pointer • Memory Safety Problem: Underlying C code may have deleted and reallocated Standard library has syntactic sugar for you: std::inout_ptr and std::out_ptr ## Example: make unique into C API and0 码力 | 56 页 | 5.39 MB | 1 年前3
C++23: An Overview of Almost All New and Updated Features## +23 ## C++23: An Overview of Almost All New and Updated Features ## MARC GREGOIRE ## 20 23 October 01 - 06 ## Marc Grégoire □ Belgium ☐ Software architect / project manager for Nikon Metrology ^{rd} $ , 4 $ ^{th} $ , and 5 $ ^{th} $ Edition ☐ Co-author of C++ Standard Library Quick Reference & C++17 Standard Library Quick Reference ☐ Founder of the Belgian C++ Users Group (BeCPP) 












