3 ms·
On most unix-likes all "imports" via shared libraries (e.g. in C / C++) are lazy by default.
by formerly_proven 5mo ago
On most unix-likes all "imports" via shared libraries (e.g. in C / C++) are lazy by default.
- stingraycharles 5mo agoEh, resolving object symbols is something done at runtime. #include absolutely is eager. I wouldn’t compare this in any way to Python’s lazy imports.
- formerly_proven 5mo agoLazy in the sense that by default calls to external symbols will jump through the PLT which will jump into ld and resolve the symbol during the first call to the symbol (ld then patches the PLT to point to the actual function for later calls). Not lazy in the sense that shared objects are resolved at runtime, which is existential to dynamic linkage.