Sarthak Sehgal

Sarthak Sehgal is a C++ Tech Lead at a high frequency options market maker. His interests lie in low level programming, performance optimization, and finance.

Sessions

  • Unveiling Type Erasure in C++

    Standard Library

    Type erasure is a powerful concept in C++ that allows us to work with heterogeneous types while hiding their concrete details behind a generic interface. In this talk, we will explore how the C++ Standard Library employs type erasure in constructs like std::function, std::shared_ptr, and std::any to provide flexible and efficient solutions for managing types at runtime. Further, we will unveil the hidden cost of using these constructs. We will start by building our own version of std::function, which will help demystify how it can store and call any callable object, regardless of its type. Then, we'll look at how […]

VolumetricCondensed