But enough of the expletives, let's talk a bit of what to do instead?
I think good C library design is always built around some kind of opaque context object (possibly multiple), that all relevant functions provided by the library get passed in as first argument. This context object should be constructed by one library function and destructed by another, but key really is that the library is "dormant" until that constructor is explicitly called by its user, and "dormant" again…
Which means that constructors are invoked in the order the shared libraries are loaded in, and if shared libraries have dependencies, they are first loaded "down the tree". But that sucks hard, because libraries tend to have interdependencies, non obvious ones at that, and cyclic ones too! And that means you might end up calling functions from libs whose constructors haven't run yet, or whose destructors already ran.
Then, various libraries (including systemd's) use "-z nodelete", …
…, labelled, initialized and so on. One prominent library which we do link against that used to do horrible shit like that, is libselinux btw. They fixed much of it, but still use ELF constructors/destructors these days, and they really shouldn't.
Now you might say that not all projects are systemd, that we are a special case, but there are many other problems with it:
1. There's no ordering defined in which constructors/destructors are called. Or at least not a useful one: it's "topoligical".
Are you interested in a conference/festival hybrid that tries to combine the vibes of Strangeloop and Resonate? Then you'll be pleased to learn that I'm helping organize exactly that for the first Berlin edition of @causalislands this October!
https://causalislands.com/berlin/introducing-causal-islands-berlin-2024/
I guess the first question is: does anyone *want* an asynchronous-process-heavy introduction to Elixir, one that embraces styles supported by third-party libraries³?
I’m sort of at a loss: how to proceed in a way that might be broadly useful?
Advice?
¹ https://podcast.oddly-influenced.dev/episodes/e44-an-interview-with-david-chapman-about-the-offloaded-brain and https://www.goodreads.com/book/show/2655505-computation-and-human-experience
Do they want people weeping emotionally into the cheese display?! Because this gotta be how that happens. Is this some kind of evil marketing thing to get the people who like food for comfort to buy more? 🤔
Anyone else seeing this when they go to x dot com?
https://mastodon.social/@csilverman/112504427757079537
people always rail against math notation as "illegible" and "elitist gatekeeping" and "unreasonably opaque" and while I'm sympathetic to these arguments I think it's worth understanding this not as a property of some ivory tower elitism but of the percentage of math that is done by hand on chalkboards.
"why don't mathematicians use descriptive names for things" because my arm is tired! have some sympathy.
this phenomenon where trans women have an easier time carving out niches in male-dominated spaced than anywhere else… fedi, mtg tournaments, speedrunning, etc. it’s a little exhausting really. especially when we get propped up in this “see? we’re inclusive” kind of way when the underlying problem usually hasn’t been addressed — men in these spaces just see us as unthreatening and undesirable
If you haven't seen it yet, go check out @ernie's new search engine ...
... which automatically appends "&udm=14" to the end of your search query ...
... thereby triggering Google to give you your results with no AI answer at the top, and (for me, anyway) no ads
It's like google from 2004 or something
* progressive DAs have been recalled, and NYC has 1000s of more cops than it had before.
* Entire DEI programs have been shut down at major universities.
* The FBI basically rebooted COINTELPRO, labelling and surveilling young black people who participated in the BLM protests as "Black identity extremists."
* There has been no meaningful legislation passed to identify cops like Chauvin before they commit murder, and remove them from service. There's been no meaningful change in accountability
code / data wrangler in Switzerland.
Compulsive reply guy. Posts random photos once in a while.