Skip to content

Max's Blog

  • Home
  • About
Max's Blog

Category: Programming

March 19, 2024 max-sperling

Layout of std:set (libstdc++)

Source code Analysis $ g++ –version g++ (Ubuntu 13.2.0-4ubuntu3) 13.2.0 $ g++ main.cpp -g $ gdb a.out (gdb) b 6

Continue reading
March 7, 2024 max-sperling

Data structures – Time complexity (libstdc++)

Cases B … Best case A … Average case W … Worst case If there is nothing mentioned, it matches

Continue reading
March 7, 2024 max-sperling

Layout of std::unordered_set (libstdc++)

Layout The meta element on the stack consumes 7 words (56 Byte on x64, 28 Byte on x86). Each node

Continue reading
March 7, 2024 max-sperling

Layout of std:deque (libstdc++)

Layout The meta element on the stack consumes 10 words (80 Byte on x64, 40 Byte on x86). Each chunk

Continue reading
February 18, 2024 max-sperling

Conceptual distinction – Programming (C++)

lvalue vs. rvalue An lvalue is usually on the left side of an assignment and is addressable in the memory.

Continue reading
August 27, 2022 max-sperling

Declaration vs. Definition vs. Initialization vs. Instantiation vs. Mutation

Continue reading
January 3, 2022 max-sperling

Single vs. double quotes (C++ / PS)

C++ char c = ‘a’; // Character char* s = “abc\ndef”; // Null-terminated C-string PS > $a = 42 >

Continue reading
September 6, 2021 max-sperling

Deleter – std::shared_ptr vs. std::unique_ptr

For the std::unique_ptr the deleter is part of the type and the std::shared_ptr keeps it as part of its control

Continue reading
August 20, 2021 max-sperling

Types of mutexes and locks (C++)

Mutexes (Selection) … synchronizes the access on critical sections std::mutex Provides exclusive access (can only be pulled by one thread

Continue reading
June 7, 2021 max-sperling

Null-terminated strings (C++)

If you are working with strings you have two basic ways to define its length. Either you write a specific

Continue reading

Posts navigation

«Previous Posts 1 2 3 4 5 Next Posts»

Categories

  • Other (17)
    • Games (11)
    • Nutrition (4)
    • Traveling (2)
  • Science (17)
    • Chemistry (3)
    • Linguistics (2)
    • Math (10)
    • Physics (2)
  • Sport (71)
    • Climbing (5)
    • Diving (20)
    • Fitness (7)
    • Martial arts (33)
      • Ground fighting (9)
      • Mixed martial arts (4)
      • Stand-up fighting (11)
    • Running (1)
    • Surfing (2)
    • Swimming (1)
    • Volleyball (2)
  • Technology (269)
    • Computer (239)
      • Architecture & Design (15)
      • Artificial intelligence (3)
      • Audio & Video (11)
      • Building & Reversing (15)
        • CMake (2)
      • Computational complexity (3)
      • Computer architecture (5)
      • Debugging & Memory (26)
      • Development (59)
        • CI/CD (1)
        • Programming (48)
          • Concurrency (5)
          • Data structures (12)
          • Pointers & References (7)
        • Scripting (4)
        • Testing (6)
      • Development process (5)
      • Hacking & Security (17)
      • Hardware & Protocols (8)
      • Networking (11)
      • Operating system (18)
        • Linux (11)
        • Windows (7)
      • Regular expression (2)
      • Tool configuration (5)
      • Version control (22)
      • Virtualization (7)
      • Web (27)
    • Electrics (9)
    • Mechanics (15)
    • Medicine (2)
    • Photography (4)
WordPress Theme: Wellington by ThemeZee.