emoji-award-marseynerd

Good explanation of how dynamic linking works (not too c++-specific).

https://youtube.com/watch?v=_enXuIxuNV4

Dynamic linking is batshit insane. You effectively make a virtual call every time you call a library function i.e. instead of vtable method function pointer load it's a global offset table function pointer load. Dependencies are resolved through a complicated graph algorithm that makes it impossible to figure out what implementation is actually being used. Literally no other programming language does this. Just memory map the code and the data you want to use it and call it a day - none of this complicated bullshit.

One attitude I find particularly troubling is that if a function conforms to a certain interface, you can swap its implementation out freely. This is just not true. Some observable effect will change - the execution time, the amount of memory loads, etc. that has the opportunity to break existing code due to some race condition or other UB.

14
Jump in the discussion.

No email address required.

The only thing gayer and more neurodivergent than programming is programming compilers.


:!marseybooba:

Jump in the discussion.

No email address required.

Dynamic linking has very little do with compilers... it has more to do with loaders/linkers.

Jump in the discussion.

No email address required.

https://media.giphy.com/media/Cz6TlrRVVyv9S/giphy.webp


:!marseybooba:

Jump in the discussion.

No email address required.

being stupid... is le good actually or something

:brainletpit:

Jump in the discussion.

No email address required.

abstract syntax trees get me hard as frick :pepoboner:

Jump in the discussion.

No email address required.

I remember wanting to get into C and trying to do some research on what cmake and make were, and seeing a bunch of boomers saying that cmake scripting is a discipline to its own equal in age and complexity as C.

Jump in the discussion.

No email address required.

Kinda jealous of people who have companies sponsor them to go there on the company dime. Seems like a good time to nerd out over programming topics

Jump in the discussion.

No email address required.

god dam crashes, the website is slow, the crashes are appearing more frequently, the amount of problems is increasing... we need an app.. even if it has problems I don't care the website is super slow and I can barely stand waiting...

Snapshots:

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.