Skip to content

Max's Blog

  • Home
  • About
Max's Blog

Category: Development

August 12, 2025 max-sperling

Assembler 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 reading
August 12, 2025 max-sperling

std::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 reading
August 12, 2025 max-sperling

Threaded 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 reading
July 28, 2025 max-sperling

Memory 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 reading
July 10, 2025 max-sperling

Showcase for std::optional

Continue reading
June 30, 2025 max-sperling

Virtual environment (Python)

If you want to install project dependencies without cluttering the system, then you should use a virtual environment. 1. Create

Continue reading
May 12, 2025 max-sperling

Random number generation (C++)

Let’s generate 10 integers with a uniform distribution between 1 and 6. Historic approach Only uniform distribution provided. 👎 Modern

Continue reading
March 19, 2025 max-sperling

Parallelize without own threading (oneTBB)

oneTBB It’s a part of oneAPI from Intel. The library abstracts all the thread handling from you, like the task

Continue reading
February 18, 2025 max-sperling

How to pass arguments (C++)

Analysis Code â–¼ Output â–¼ Constructor: bar_0 Not store copy run_copy_no_store Constructor: bar_1 === lvalue === Copy Constructor: bar_1 ===

Continue reading
January 22, 2025 max-sperling

Mutable vs. Immutable (Python)

Immutable data types They are not modifiable e.g. Numbers, Strings and Tuples Before line 3 a —> 1 b —–^

Continue reading

Posts navigation

«Previous Posts 1 2 3 4 … 8 Next Posts»

Categories

  • Other (22)
    • Clothes (1)
    • Games (14)
    • Investing (1)
    • Nutrition (4)
    • Traveling (2)
  • Science (23)
    • Chemistry (3)
    • Linguistics (3)
    • Math (14)
    • Physics (2)
    • Theology (1)
  • Sport (84)
    • Climbing (5)
    • Diving (20)
    • Fitness (8)
    • Martial arts (43)
      • Armed combat (7)
      • Ground fighting (9)
      • Mixed martial arts (4)
      • Stand-up fighting (13)
    • Running (1)
    • Surfing (2)
    • Swimming (2)
    • Volleyball (3)
  • Technology (304)
    • Computer (270)
      • Architecture & Design (19)
      • Artificial intelligence (3)
      • Audio & Video (12)
      • Building & Reversing (16)
        • CMake (2)
      • Computational complexity (3)
      • Computer architecture (4)
      • Debugging & Memory (29)
      • Development (74)
        • CI/CD (1)
        • Programming (63)
          • Concurrency (12)
          • Data structures (14)
          • Pointers & References (7)
        • Scripting (4)
        • Testing (6)
      • Development process (5)
      • Hacking & Security (17)
      • Hardware & Protocols (8)
      • Networking (11)
      • Operating system (23)
        • Linux (13)
        • Windows (8)
      • Regular expression (2)
      • Tool configuration (6)
      • Version control (23)
      • Virtualization (7)
      • Web (29)
    • Electrics (9)
    • Mechanics (18)
    • Medicine (3)
    • Photography (4)
WordPress Theme: Wellington by ThemeZee.