Alex Dathskovsky :: To Int or to Uint, This is the Question

Поділитися
Вставка
  • Опубліковано 23 січ 2024
  • Presented at Core C++ 2023 conference, Tel Aviv.
    In our daily work, we often use integral data types to perform arithmetic calculations, but we may not always consider how the selection of the data type can affect performance and compiler optimizations. This talk will delve into the importance of choosing the correct data type for the job and how it impacts compiler optimizations. We will also examine the overall performance implications for the application. We will explore specific algorithms where using unsigned data types is more beneficial and other situations where signed data types are the best choice. Attendees will come away with a deeper understanding of how data type selection can impact their code and how to make better choices for optimal performance.
    -----
    Alex Dathskovsky
    Alex has over 16 years of software development experience, working on systems, low-level generic tools, and high-level applications. Alex has worked as an integration/software developer at Elbit, senior software developer at Rafael, technical leader at Axxana, software manager at Abbott Israel, and now a group manager a technical manager at Speedata.io, an exciting startup that will change big data and analytics as we know them. In his current job, Alex is developing a new CPU/APU system working with C++20, massive metaprogramming, and the development of LLVM to create the next Big Thing for Big Data. Alex is a C++ expert with a strong experience in template meta-programming. Alex also teaches a course about the new features of modern C++, trying to motivate companies to move to the latest standards.
  • Наука та технологія

КОМЕНТАРІ • 4

  • @Roibarkan
    @Roibarkan 6 місяців тому

    24:01 Great talk. To clearly state Alex’s point in this slide - of someone would call the decode() function with a negative size it will result in buffer overflow, because ‘line 45’ doesn’t catch negative cases, and (surprisingly) the condition “i < size” will be evaluated to true (!) converted to a number larger than INT_MAX (and thus definitely larger than 254)

  • @RealIllumin
    @RealIllumin 6 місяців тому +3

    Please can you clean up the audio. Thanks.

  • @Roibarkan
    @Roibarkan 6 місяців тому

    6:18 David Sankel’s talk from C++Now 2023: ua-cam.com/video/7xwjjolDnwg/v-deo.html

  • @goodecheeseburgers6320
    @goodecheeseburgers6320 6 місяців тому +1

    Audio quality is trash. makes the video unwatchable.