I don't think this is a solution. I do this often naturally, I walk around and "plan", and it feels like I'm just avoiding sitting down and doing the actual task.
The author talks about it; when facing a difficult problem, they go get a glass of water, and get distracted. That's what this is. Anything but doing the actual task. If you're going to take a break, take an honest break and rest, but then go back to work. That's the real solution, and boy is it hard to do these days.
I maybe be a complete moron not familiar with Github, but I wanted to have a look at the code and it took me solid 5 minutes of going through the website searching for a link to the repository, and the only one I eventually found was when I scrolled to the bottom and clicked the Github icon. Removing the path from https://eliemichel.github.io/LearnWebGPU/index.html leads to 404, no idea why that doesn't just lead to https://github.com/eliemichel. Don't know if it's just me, but I get unreasonably frustrated by things like this.
As I said, a slab allocator is included as part of general purpose malloc implementations. Rust is not going to be smarter here. I would bet it uses malloc underneath anyway.
Using a fat pointer to address individual bits is a waste of memory. You'd need an offset and length, and you'd have to deal with byte boundaries when accessing data. The only way I see this working is if you had a language that natively supported sub byte types and could deal with alignment of such types natively. Your best bet would be bit fields, which Rust doesn't support natively.
Dynamically allocating tiny amounts of data is a niche issue. You don't want a genetic solution to this anyway, because the efficiency will come from the constraints specific to your problem.
You mean 4 bytes? You can't even address 4 bits. Small allocations can be handled by a slab allocator. Most likely implemented via a free list. A general purpose malloc should have that feature. TBH, I would consider allocating such tiny amounts of memory as a programmer error.
DOGE gutted SSA, IRS, directly affecting seniors and other vulnerable people getting checks, gutted CFPB taking away fraud protection, not to mention gutting of USAID which caused countless deaths, though I'm sure you don't care. Musk used his wealth and social platform to greatly help elect a man, whose personal gestapo is now chasing down non-white US citizens and disappearing them.
But sure, he didn't personally punch anybody, and doesn't wear an SS uniform in public.
There's a vague correlation between wind direction and sailing speed, but there's nothing real here. The mechanics of sailing upwind, downwind, or the cost of tacking are interesting mechanics that aren't explored here whatsoever. The dead angle on a ship with a square rig should be massive. This ship goes upwind like it has a motor.
I had the same mindset about wanting to be good at a lot of things, working on myself, not "wasting time", but now in my mid thirties I figured that if I really wanted to do something, I'd be actually doing it, and a lot of these goals boil down to "it would be cool if I was good at X", and aren't actually things I care about.
To who? There's no immediate benefit of holding a stock that doesn't pay out beyond voting rights, or a fraction of company assets. As parent said, you're just hoping to sell it to somebody down the line for more. It's speculation. The market is liquid, and a lot of people believe these stocks have value, but it's still speculation.
Every time I try to explain this to people I feel like I'm talking to a brick wall. Even more frustrating to hear, otherwise reasonable, market analysts say that "dividends don't matter because the stock value goes down on payout". What doesn't matter is how successful a company is if they don't share their profits. You're literally buying a Pokémon card just with a lot of liquidity until the illusion of value bursts, hoping that somebody will buy you out because P/E improves or whatever.
It didn't already happen. As you pointed out, people who funded the purchase of Twitter hold SpaceX shares, and this IPO is how they get their money back.
Europe is dealing with the US, just not via empty threats on social media. Things take time when you have a functioning democratic system with checks and balances.
I think you underestimate how little economic pressure matters when people are up against an invader who attacked amidst negotiations for bogus reasons, threatened total annihilation, and killed thousands, including a school full of children.
Beside posturing, modern China was only involved in skirmishes at the Indian border. What's delusional is blindly comparing China to Russia or the USA.
The author talks about it; when facing a difficult problem, they go get a glass of water, and get distracted. That's what this is. Anything but doing the actual task. If you're going to take a break, take an honest break and rest, but then go back to work. That's the real solution, and boy is it hard to do these days.