260817rustVScpp_constexpr_pros_cons
Rust const fn and C++ constexpr solve a similar problem—allowing computations to happen at compile time—but their design philosophies are quite different.
1309 words
|
7 minutes
Reason_Vulkan_uses_optional_uint32_t_alignmentVS_Size
Debugging할때 나오는 Alingment와 Size 개념을 잡아보자. The reason Vulkan uses optional<uint32_t> here is semantic rather than performance-related: a queue-family index may or may not have been found yet. The optional makes that state explicit instead of inventing a special sentinel integer.
1034 words
|
5 minutes
unique_ptr_VS_shared_ptr_Ownership
The idea is RAII: acquire the resource in the constructor, and release it in the destructor. With std::unique_ptr or std::shared_ptr, you can instead give the smart pointer a custom deleter that knows how to release a non-C++ resource
2920 words
|
15 minutes
260815_vulkan_bit_shift_explanation
2026-08-15
Vulkan bit shift explanation
324 words
|
2 minutes
struct_in_C
2026-08-12
Sure! Here is a simple and complete example showing how to use struct in C.
1876 words
|
9 minutes
C23_Finding_variable_errors_that_are_not_initialized
2026-08-11
clang&gcc로 초기화되지 않는 변수 에러 찾기 & Finding variable errors that are not initialized with clang & gcc
1376 words
|
7 minutes
c23_constexpr_basic001
2026-08-11
constexpr c23 basic
329 words
|
2 minutes
rust-documentation_comments
In Rust, both /// and //! are documentation comments, but they document different things.
998 words
|
5 minutes