visitor@blog $ cat about.txt
Abhyuday Pundir
C, C++ (17, 20) Linux Systems Programmer and Golang Backend Engineer. I write about low-level tricks, programming principles that I learn and the things I broke and fixed.
Recent posts
Max Threads possible on System
Let's see how many kernel threads your system can make before it simply.. cannot
Branchless & Cache friendly programming
This post discusses how we can write code (mainly focused to C++ but can be applied in almost any language) in such a way that it follows branchless-ness and spacial locality
Strictly Align Memory Address
We can use bitwise operations and tricks to ensure that memory addresses are strictly aligned for performance and hardware safety.
Packing & Unpacking two integers in one
Packing and unpacking two integers into one is a bit manipulation technique used to compress multiple small values into a single larger variable to save memory or bandwidth.
DRY
Don't Repeat Yourself is the second principle mentioned in the book.
Intrusive Data Type
There are many ways to make data generic in C and C++. There is one peculiar way that I like the most and is also used in Linux Kernel.
Type Punning
Type punning is a programming trick where you force the computer to read a chunk of memory as a completely different data type than what it was originally declared as.
ETC
Easier To Change is an essential and the first principle mentioned in the book of 'The Pragmatic Programmer'.
Which Thread on Which CPU Core
Let's verify how the Linux scheduler assigns threads to CPU cores using C++.