Sharks are cool and comfortable!


Elden Thing | Back & Body Hurts Platinugggggh Rewards Member


Profile pic and banner credits: sharkaeopteryx art by @superkiak! eggbug by eggbug! Mash-up by me!
[Alt-text for pfp: a cute sharkaeopteryx sat on the ground with legs out, wings down, jaw ajar, and hed empty, looking at eggbug and eggbug's enigmatic smile.]
[Alt-text for banner: a Spirit Halloween banner with eggbug and the sharkaeopteryx that Superkiak drew for me looking at it with inscrutable expressions]


I'm a Vietnamese cis woman born and currently living in the U.S. You may know me from Sandwich, from Twitter or Mastodon (same username), or on Twitch as Sharkaeopteryx. I do not have a Discord or Bluesky account.

Ask me about language learning/teaching, cooking/eating food, late diagnosis ADHD, and volunteer small business mentoring. Or don't, I'm not the boss of you.


I think people deserve to be young, make mistakes, and grow without being held to standards they don't know about yet and are still learning. So, if you are under 22, please don't try to strike up a friendship or get involved in discussions on my posts.


Please don't automatically assume I follow/know/co-sign someone just because I reposted something from them—sometimes I do, sometimes I don't. Also, if you think being removed as a follower when we're not mutuals is a cardinal sin, please do not follow me.


🐘Mastodon
search for @sharksonaplane@mastodon.sandwich.net and hit follow if you want
Hang out with me on the Auldnoir forum! (you can DM there!)
discourse.auldnoir.org/
Follow me on Twitch
twitch.tv/sharkaeopteryx
Add my RSS feed (not working yet but I'll get to it!)
sharkaeopteryx.neocities.org/rss.xml

ThePhD
@ThePhD

Let's discuss RAII in C, and why nobody's getting it right with the increasingly "simple" juggling that keeps getting tossed to me like table scraps for a dog.

The Pasture | Why Not Just Do Simple C++ RAII in C? | https://thephd.dev/just-put-raii-in-c-bro-please-bro-just-one-more-destructor-bro-cmon-im-good-for-it


You must log in to comment.

in reply to @ThePhD's post:

It would be neat if there was a syntax to get a chunk of memory that got automatically freed when exiting the current code block. Bonus point if it used the same syntax for heap and stack allocation. As far as I know, c++ can't do that last bit either.

Good read!

The "But what about copying" section had me thinking "what if we just enforced the rule of 3" but at some point I feel like it'd just be reinventing C++...

I stay in this industry because it keeps me humble 🫠.

The utterly pervasive and constant feeling that a lot of people – way too many people – are really trying to invent these things from first principles and pretend like they were the first people to ever conceive of these ideas… it feels pretty miserable, all things considered. Going through life evaluating effectively no prior art in other languages, domains, C codebases as they exist today, just… anything.

i've noticed this about libraries and projects far away from here. there's a powerful reticence to admit the existence of predecessors or inspirations, except perhaps to position themselves as the spiritual successor to a belpved something that's now stone dead. one wonders how much of this is (or is kneejerk habit left over from) wanting to avoid those inspirations butting in for royalties that steal the profits they were hoping to get with their little endeavor.

also of course there's the potential options that it's either laziness, or sheer love of the game. philosophizing your ideas from the ether is the fun part, maybe reckoning that with history simply isn't.