Shivam Kunwar
3 results
Understanding Type-Based Alias Analysis in C and C++
How type systems shape compiler optimizations
22 October 2025
Type systems do more than just catch errors - they guide compiler optimizations too. This post explores type-based alias analysis in C and C++, showing how aliasing affects performance, why undefined behavior matters, and how the restrict keyword helps unlock faster code.
In C++20, the standard library introduced new synchronization primitives: std::latch and std::barrier. These are the utilities designed to coordinate between concurrent threads. What is a synchronization primitive? In concurrent programming, synchronization primitives are the fundamental tools that help in managing the coordination, execution order, and data safety of multiple threads or processes that run concurrently. […]
Introducing the ConnectionEvaluator in KDBindings
Control When Connections are Emitted
21 March 2024
Managing the timing and context of signals and slots in multithreaded applications, especially those with a GUI, can be a complex task. The concept of deferred connection evaluation offers a nice and easy API, allowing for controlled and efficient signal-slot connections. This approach is particularly useful when dealing with worker threads and GUI threads. A […]