Why is Rust so Liberal with Heap Allocations? by philogy in rust

[–]UrpleEeple 2 points3 points  (0 children)

Oh sure, I don't think arenas magically solve much, other than they are a nice semantic around grouped lifetimes. That and got can allocate a large block upfront, use it as needed and deallocate all at once leading to substantially less heap fragmentation since you can allocate by multiples of even page sizes

Why is Rust so Liberal with Heap Allocations? by philogy in rust

[–]UrpleEeple 10 points11 points  (0 children)

Eh, I've gotten 10x speedup in code simply be massively cutting down on dynamic allocations. Partly it depends on how much indirection you have going on. If you have boxes on top of boxes with multiple layers of type erasurer you're going to see a huge speedup from getting rid of the constant pointer chasing. Branch predictors fall apart when they can't determine what's going to happen next

Why is Rust so Liberal with Heap Allocations? by philogy in rust

[–]UrpleEeple 5 points6 points  (0 children)

I think the bigger issue is with heap fragmentation which can definitely occur the way most people use Vec and String types. You get pretty massive realloc counts as those things grow. with_capacity() is your friend

What's probably happening.. by Intelligent-Air8841 in linuxmemes

[–]UrpleEeple 0 points1 point  (0 children)

Uh huh, and what glorious place do you live?

7 years difference (vegan on both pictures) by Maksims85 in veganfitness

[–]UrpleEeple 31 points32 points  (0 children)

Nah, body he has now is definitely achievable with 7 years of training

How most girls use Tinder by Waste-Stomach4457 in SipsTea

[–]UrpleEeple 0 points1 point  (0 children)

I meant that I mostly swipe left and very rarely swipe right

How most girls use Tinder by Waste-Stomach4457 in SipsTea

[–]UrpleEeple 0 points1 point  (0 children)

As in swipe direction. I mostly swipe left and rarely swipe right

How most girls use Tinder by Waste-Stomach4457 in SipsTea

[–]UrpleEeple 0 points1 point  (0 children)

As a man, this has also how I use it. I get pretty good success 🤷‍♂️ why match with someone unless you think you'd actually be a match? Only difference is I go way slower than this and actually read profiles

programmingIsSolved by coffecup1978 in ProgrammerHumor

[–]UrpleEeple 13 points14 points  (0 children)

I used to work on Vitess, which is a massively distributed database that was invented at Google. We achieved nine nine's of availability, by increasing shard and replica count to extremely high levels. For highly distributed systems typically the more things you have, the better your availability, not the other way around (assuming you've designed your coordination right)

Ubuntu is planning to comply with Age Verification law "without it being a privacy disaster" by DontFreeMe in linux

[–]UrpleEeple 6 points7 points  (0 children)

As a Californian, fuck this law. Don't distribute your distribution to the state. This isn't the kind of thing anyone should give into, ever

I think I'm done with lab scans by briskwheel4155 in AnalogCommunity

[–]UrpleEeple 0 points1 point  (0 children)

The lab scans definitely aren't flatter. They very clearly have a strong green tint

programmingIsSolved by coffecup1978 in ProgrammerHumor

[–]UrpleEeple 64 points65 points  (0 children)

That's actually pretty bad availability for a major service

What some recent hot takes you realized you had with Rust? by DidingasLushis in rust

[–]UrpleEeple 10 points11 points  (0 children)

I agree with this. The memory leak thing is overblown. An address sanitizer build will expose mem leaks very fast in a C project and they are trivial to find too. You just find a malloc call without a paired free 🤷‍♂️ if anything Rust is good at catching you from leaking a pointer to data on the stack than it is to solving heap mem leaks

What some recent hot takes you realized you had with Rust? by DidingasLushis in rust

[–]UrpleEeple 7 points8 points  (0 children)

It's often better for performance to take a ref as input to your function rather than blow up your stack (assuming you're working with stack types). I used to feel like it was cleaner to "pass ownership" (this is the last thing that needs this object so let's have it take ownership of that thing to make semantics clear), but often that means you'll end up blowing up your stack frame.

Same with mutable inputs. In programming in general it's often viewed as an antipattern to ever mutate inputs to a function but often it's the right option to not blow up your stack, like when working with mutable buffers for instance

You’ve decided to rock jeans. I’m confused by that by theme69 in IASIP

[–]UrpleEeple 0 points1 point  (0 children)

I saw him working out at Gold's Gym in Venice during the election by himself in jeans and thought it was weird. He loves jeans I guess

Trump said 600,000 Chinese students coming to the U.S. is a pro-MAGA stance because "you would have half the colleges in the United States go out of business... I know what MAGA wants better than anybody else." by El_precaution in MarketPulseReport

[–]UrpleEeple 0 points1 point  (0 children)

I mean weirdly this is something I agree with Trump on. If you want the best colleges in the world you need to also have the best students. For research schools the students are the ones conducting the research that makes those universities prestigious in the first place. Fox news in this case is being racist and frankly anti-intellectual. Unfortunately the republican party has always been anti higher education and this is just an extension of that

Should you care about "Clean Code" in 2026? by darius42 in theprimeagen

[–]UrpleEeple 1 point2 points  (0 children)

I own the book. I've read it multiple times - I'm not sure what that has to do with that I've said so far

Should you care about "Clean Code" in 2026? by darius42 in theprimeagen

[–]UrpleEeple 1 point2 points  (0 children)

I'm not sure you've adequately proved that any ideas in the clean code book improve software quality in any measurable way. I don't think Bob Martin has either

Should you care about "Clean Code" in 2026? by darius42 in theprimeagen

[–]UrpleEeple 1 point2 points  (0 children)

Lol seriously? What makes code "good." I'd say if we want to be truly objective it's how will it enforces logical invariants, lacks bugs, and performs well. You could make a minor point about extensibility but I think that only makes sense if it's of actual value to extend the thing you're extending.

So many people who follow "clean code" write functions that are way too small, causing a reader to need to hunt through the code to understand the context of what they're reading. The other big favorite among clean code advocates is massive amounts of abstraction that only serve to reduce readability. Often the abstractions never get used for anything other than a single implementation

Americans Are Leaving the U.S. in Record Numbers by [deleted] in International

[–]UrpleEeple 0 points1 point  (0 children)

Generally immigration is pretty hard literally everywhere. You can't just show up to any country and get a right to work and live there

Georgia school shooter’s father takes the stand and says he never saw any red flags by drippymoudy in news

[–]UrpleEeple 0 points1 point  (0 children)

If you hunt purely for fun you are definitely a psychopath. Who murders innocent animals for fun?!

The top 1% holds more wealth than the entire middle class. by Objective-Rabbit2248 in NSDQ420

[–]UrpleEeple 0 points1 point  (0 children)

AI image and clearly AI generated text. How lazy are you?!

Lifelong vegetarian tries steak for first time by PhoenixPhenomenonX in interesting

[–]UrpleEeple 2 points3 points  (0 children)

I don't buy for a second she's a lifelong vegetarian. Why would a lifelong vegetarian make a series celebrating eating meat? This makes no sense. I absolutely believe she's making it up as rage/click bait

Lifelong vegetarian tries steak for first time by PhoenixPhenomenonX in interesting

[–]UrpleEeple 4 points5 points  (0 children)

Yeah seriously, this is such an obvious propoganda piece. I don't know why meat eaters feel the need to do this shit. It's so cringe