Articles by tag: low-level
Synchronization in Go: atomics and memory barriers
How CPU reorders instructions and breaks multithreaded code. Analysis of memory fences, atomic operations, and a practical example on Go Assembler.
Code Benchmarking: Precise CPU and Cache Measurements
Learn to benchmark code correctly: rdtsc, perf, statistical analysis. Framework for middle/senior dev. Measure cache-misses and optimize for real.
Branch prediction in the processor: how to speed up code and avoid errors
Explanation of branch prediction in CPU, impact on performance, optimization methods and Spectre vulnerability. Learn how to speed up code.