Dis-/Advantages – Pro: Only one UI/App for native and web necessary. – Con: Less performant and requires more resources. Details
Continue readingAuthor: max-sperling
Example of a found HW issue
Coredump Reasoning It fails to get the value at “0x4(%r8)”, because it’s outside the own memory segments. The value of
Continue readingTesting templates (gtest)
$ apt install libgtest-dev $ clang++ main.cpp –std=c++23 -lgtest -lgtest_main -pthread $ ./a.out [==========] Running 2 tests from 2 test
Continue readingUsecase for compare_exchange (std::atomic)
Let’s assume you want to implement a function to update the maximum value or a variable. Issue: To prevent a
Continue readingThe evolution of writing output (C++)
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
Corner is gold, side is silver, center is grass Four die but six live (on the third line) High move
Continue reading