Scenarios % uname -a Darwin FMXK77H3WK 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:55 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6031 arm64 %
Continue readingSingleton file logger with concurrent queue (C++)
Advantages … of a singleton is that you don’t have to pass it into every class you want to log
Continue readingAssembler instructions for atomics (C++)
std::atomic Intel / AMD ARM (with LSE) fetch_add() LOCK XADD1,2,3,4,5 LDADD1, LDADDA2, LDADDL3, LDADDAL4,5 fetch_sub() fetch_and() LOCK AND1,2,3,4,5 LDCLR1, LDCLRA2,
Continue readingstd::jthread (C++)
With C++20 you can use std::jthread (“Cooperatively Interruptible Joining Thread”), which does the stop request and the joining in its
Continue readingThreaded pi calculation with concurrent queue (C++)
Code $ g++ main.cpp -ltbb -lpthread Future Switch to a thread pool to execute the different calculations in parallel.
Continue readingGo – Proverbs
General Approach from the wider side. (In the opening) Corner is gold, side is silver, center is grass. Don’t attach
Continue readinggRPCurl
It’s a cmd line tool to request gRPC-Services. Install $ snap install grpcurl Request $ ./run_req.sh
Continue readingMemory order for atomics (C++)
Overview Memory order Description memory_order_relaxed Unsafest, No ordering is guaranteed. memory_order_acquire A load operation, No reads or writes in the
Continue readingVirtual environment (Python)
If you want to install project dependencies without cluttering the system, then you should use a virtual environment. 1. Create
Continue reading