HomeArchiveBlog


Original contents are licensed under CC BY-NC 4.0. All rights reserved © 2026 Kai.
Blog
Some miscellaneous articles recording some of my thoughts and experiences.
  • 11/16/2025
    01/01/2026
    Introduction to Modern C++
    Modern C++MemoryType SafetyPerformance
    Modern C++ (C++11 onwards) introduces features like smart pointers, move semantics, lambda expressions, and constexpr for improved safety, readability, and performance. Newer additions like Concepts, Ranges, and std::format in C++20 further enhance template programming, data manipulation, and string formatting, making C++ development more efficient and user-friendly.
    11/16/2025
    01/01/2026
  • 11/14/2025
    01/01/2026
    Cost of Abstractions in Embedded C++
    CppOnSeaEmbedded C++EncapsulationAbstraction Overhead
    Modern C++ features like compile-time computations and conditional logic can achieve zero-overhead abstractions in embedded systems. While basic class encapsulation and inheritance introduce no extra cost, dynamic polymorphism (especially with RTTI) adds significant overhead. Leveraging consteval and if constexpr can even reduce binary size and improve performance.
    11/14/2025
    01/01/2026
  • 10/29/2025
    01/01/2026
    Design Patterns in Modern C++
    C++Design PatternsRAII
    This document introduces several C++ design patterns and idioms. RAII manages resource lifetimes via object scope. CRTP enables static polymorphism, reducing runtime overhead. The Singleton pattern ensures a single instance with global access. Chaining calls enhance code readability and expressiveness for sequential operations.
    10/29/2025
    01/01/2026
  • Prev
  • 1
  • Next