Just enough CMake to get started
Aim is to scaffold a C++ project that uses Raylib and can be built with CMake.
Aim is to scaffold a C++ project that uses Raylib and can be built with CMake.
Monotonic Deque Use: Sliding window max/min in O(1) per step Invariant Elements in the deque are monotonic (duplicates allowed) Store up to k elements in the deque for window size k New elements go to back; expired elements go out from front Idea Maximum in window = keep the largest elements in the ...
Model Context Protocol These are basically glorified wrappers with the “function documentation” acting as a prompt for the model to use.
This is basically a culmination of my experiences so far in state management in Flutter ( where the practices are broadly applicable to any other system as well ).
This is one of those topics where I feel knowing the toolbox first is more important than application of those tools.
mutable and const in C++ A mutable member variable is allowed to be reassigned and modified even if the object is const or if the function modifying it is const.
The entry point address of an ELF has some peculiar definite values depending on the architecture but 400k is a common one.
Hello world in assembly I’ll use nasm as the assembler and ld as the linker ( more on this in time ). Code is for x86-64 Linux.
vDSO (virtual dynamic shared object) is a virtual file provided by kernel that maps some syscalls to userspace so that they can be called without a context switch.
Refer this All of this is mostly in practice only relevant to varargs but due to quirks like being able to define a function protoype with no parameters ( in C, not in C++ ), this allows for some interesting code that compiles.