Тёмный

Static Analysis and Program Safety in C++: Making it Real - Sunny Chatterjee - CppCon 2021 

CppCon
Подписаться 153 тыс.
Просмотров 6 тыс.
50% 1

cppcon.org/
github.com/Cpp...
---
In this talk, I will explore how to leverage language rules and static analysis principles to provide safety guarantees in C++ at compile time, without compromising on its performance and memory efficiency. Modern analysis tools have come a long way since their inception and are much more powerful than traditional Lint-style checks. They use several techniques from theorem solvers to simple heuristics mimicking developer’s reasoning and can find deep semantic errors in programs. Furthermore, modern analysis tools take advantage of information available in types and type extensions in the language to bridge the gap across function boundaries, without incurring performance penalties of running global analyses. This makes them an indispensable part of the “shift left” experience to drive program safety. Throughout the talk, I will share my experience in developing and running these tools on large production codebases over the last decade and how they evolved over time. All the checks in the demo will be available for free in the community edition of Visual Studio and as security actions in GitHub.
---
Sunny Chatterjee
Sunny leads a team responsible for developing the core C++ static analysis engines in Visual Studio productivity experience as well as the traditional security tooling scenarios used widely within Microsoft. He has many years of experience in static analysis and enjoys delivering new productivity benefits to customers. His current focus is to lead efforts towards making C++ a safer systems programming language.
---
Videos Filmed & Edited by Bash Films: www.BashFilms.com
RU-vid Channel Managed by Digital Medium Ltd events.digital...
*--*

Наука

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@satarimar
@satarimar 2 года назад
just give us working sanitizers (not broken asan in VS that freezes/crashes or simply doesn't work at all) - and all of them, especially thread sanitizer, the most useful one static analysis is incredibly overrated, leads to tons of annoying false positives and doesn't catch real problems - unlike sanitizers
@Scorbutics
@Scorbutics 2 года назад
Static analysis is not overrated, it's just often poorly implemented. Rust has static analysis at its base language specification, and won't let you compile anything that do not follow the rules. And even if passing the borrow checker is a pain in the ass at compilation time, it saves us at runtime.
@AG-ld6rv
@AG-ld6rv 2 года назад
If people like Herb Sutter support static analysis, it can't be that bad. I wouldn't recommend using it all the time as false positives distract people and are a story of the boy who cried wolf. However, it's still a great tool to have and run after making new code. Additionally, annotations aren't just to silence warnings most of the time. They can make code more readable. He goes into the pros and cons around 29 minutes.
@MrVarunparmar
@MrVarunparmar 2 года назад
Stop moving while talking
Далее
Microservices are Technical Debt
31:59
Просмотров 384 тыс.
Branchless Programming in C++ - Fedor Pikus - CppCon 2021
1:03:57
The Value of Source Code
17:46
Просмотров 38 тыс.