Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Getting Allocators out of Our Way - Alisdair Meredith & Pablo Halpern - CppCon 2019

allocators

custom allocators

Alisdair Meredith

Pablo Halpern

C++

C++ standard library

plugging in custom allocators

'pmr' allocator model in C++20

C++17

C++20

John Lakos

widespread use of allocators

custom allocator support

alternative allocation strategies

rapid prototyping

aggregates

lambda expressions

compiler-generated constructors

language-supported memory-allocator

GCC

Clang

code base

c++

compilers

polymorphic allocator model

programming

memory allocation

Автор: CppCon

Загружено: 5 окт. 2019 г.

Просмотров: 13 372 просмотра

Описание:

http://CppCon.org
Discussion & Comments:   / cpp  
Presentation Materials: https://github.com/CppCon/CppCon2019
—

Getting Allocators out of Our Way - Alisdair Meredith & Pablo Halpern - CppCon 2019

The C++ standard library has supported custom allocators for as long as C++ itself has had a standard. Support for plugging in custom allocators has improved with each release, culminating (so far) in the 'pmr' allocator model in C++20 (with significant support in C++17). The substantial performance benefits of use of allocators (when used appropriately) are well-documented. Moreover, there are a variety of collateral benefits to clients -- such as rapid prototyping of alternative allocation strategies -- that make their use even more compelling. Still, the real-world costs associated with orchestrating the integration of allocators throughout a code base, including training, supporting tools, enlarged interfaces (and contracts), and a heightened potential for inadvertent misuse cannot be ignored. What's more, despite strong motivation to support allocator usage uniformly, there are corners of the C++ language (e.g., aggregates, lambda expressions, compiler-generated constructors) where the grammar simply doesn't admit them. Those that put up with these substantial cost and annoying inconsistencies do so because the need the manifest value that only allocators can provide, while others make due without.

But what if there were some feasible way to eliminate most of the real-world costs, leaving all the benefits to be enjoyed by everyone if and as desired? What would the skeptics say then?

In this session, Alisdair Meredith and Pablo Halpern will delve into the issues holding back widespread use of allocators, and present some ground-breaking ideas on how the language itself might move forward, making custom allocator support transparent in the majority of cases. We will discuss our ongoing work exploring this language-supported memory-allocator design space, including early experiments with the GCC and Clang compilers, and finally speculate on possible benefits to important areas of C++ beyond memory allocation alone.

Although not a prerequisite, we recommend attending John Lakos's talk "Value Proposition: Allocators-Aware (AA) software", given earlier in the week.
—

Alisdair Meredith

Alisdair Meredith is a software developer at BloombergLP in New York, and the C++ Standard Committee Library Working Group chair.

He has been an active member of the C++ committee for just over a decade, and by a lucky co-incidence his first meeting was the kick-off meeting for the project that would become C++11, and also fixed the contents of the original library TR.

He is currently working on the BDE project, BloombergLP's open source libraries that offer a foundation for C++ development, including a standard library implementation supporting the polymorphic allocator model proposed for standardization.
—

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd https://events.digital-medium.co.uk

*-----*
*--*
*-----*

Getting Allocators out of Our Way - Alisdair Meredith & Pablo Halpern - CppCon 2019

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

CppCon 2019: Jeff Garland “The C++20 Standard Library: Beyond Ranges”

CppCon 2019: Jeff Garland “The C++20 Standard Library: Beyond Ranges”

CppCon 2019: Louis Dionne “The C++ ABI From the Ground Up”

CppCon 2019: Louis Dionne “The C++ ABI From the Ground Up”

What Programmers Should Know About Memory Allocation - S. Al Bahra, H. Sowa, P. Khuong - CppCon 2019

What Programmers Should Know About Memory Allocation - S. Al Bahra, H. Sowa, P. Khuong - CppCon 2019

Why Are Threads Needed On Single Core Processors

Why Are Threads Needed On Single Core Processors

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

The mind behind Linux | Linus Torvalds | TED

The mind behind Linux | Linus Torvalds | TED

Nginx — Простым языком на понятном примере

Nginx — Простым языком на понятном примере

CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”

CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”

CppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced.  What do they really do?”

CppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced. What do they really do?”

Самая простая нерешённая задача — гипотеза Коллатца [Veritasium]

Самая простая нерешённая задача — гипотеза Коллатца [Veritasium]

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]