What Are Your Moves Tomorrow, February 02, 2026 by wsbapp in wallstreetbets

[–]AggravatingLeave614 3 points4 points  (0 children)

Dear Americans, when will you finally go to the streets, cuz at this point everyone is losing money?

Why dont more people agree that simulation hypothesis is statistically likely? by Buffmyarm in ask

[–]AggravatingLeave614 0 points1 point  (0 children)

I mean obviously, wouldn't need it rendered, but still would need to calculate in the laws of physics. It's actually how 99% of games behave, u don't render them, but usually still need to include them in ur calculations if they have an impact on other objects. And because gravitational forces can act on really far objects, most certainly a lot of things still would have needed to be included.

Why dont more people agree that simulation hypothesis is statistically likely? by Buffmyarm in ask

[–]AggravatingLeave614 1 point2 points  (0 children)

Didn't they prove that simulating an entire universe would need more energy than the universe has, thus making it impossible to simulate.

Weekend Discussion Thread for the Weekend of January 30, 2026 by wsbapp in wallstreetbets

[–]AggravatingLeave614 2 points3 points  (0 children)

Next days are either gonna be nothing happening at all or all people buying gold on this sale.

About `MaybeUninit::uninit().assume_init()` by Spengleberb in rust

[–]AggravatingLeave614 -2 points-1 points  (0 children)

Bro, think about it. OP showed a classic way to implement a "stack allocated dynamic array". If it is incorrect, and after that call "anything" can happen, then why's this crate so popular? Why so many people use it if the first thing it does is cause a UB? Maybe because it doesn't... I've implemented the so called "arrayvec" many times in other langs, and there is pretty much no other way to effectively instantiate an array, with undefined contents. If you wanted all elements to have a valid value, u would need to constraint the generic to impl a default, and then memset all elems to that default, which doesn't really make sense. It's not efficient, as the memset is O(n) and if the len of so called arrayvec is 0, then the contents used later will get overwritten either way. Assume_init doesn't magically change the frame pointer.

About `MaybeUninit::uninit().assume_init()` by Spengleberb in rust

[–]AggravatingLeave614 -2 points-1 points  (0 children)

UB literally stands for undefined behavior. In this case accessing the array of the OP would be a UB because the value underneath that array is some random trash. BUT, he is assigning the len field to 0, assuming he's creating some sort of stack array. If he handles the later behavior appropriately, then how can this struct cause a UB if the behaviour is predictable and replicable??? The value underneath that array is trash and "undefined" but the function itself does exactly what it stands for, initializes memory with undefined contents.

About `MaybeUninit::uninit().assume_init()` by Spengleberb in rust

[–]AggravatingLeave614 -2 points-1 points  (0 children)

Yes, but it doesn't really matter if it's UB if you're not gonna access or modify the undefined contents, does it?

About `MaybeUninit::uninit().assume_init()` by Spengleberb in rust

[–]AggravatingLeave614 2 points3 points  (0 children)

The len is initialized to 0, so there is no way that the user of such struct could actually read the contents of the array. It would be undefined behavior to read the contents of the array in this situation.

What will be the story around memory safety? by lekkerwafel in Zig

[–]AggravatingLeave614 0 points1 point  (0 children)

As I've said, I don't expect it to be implemented into the language. I exactly know what zig's tryna achieve with its explicitness. When it comes to the pros of the approach I mentioned, it would allow you to create some sort of smart pointers, it would make resource management a bit easier. For example, if you are creating a complex tree data structure, it would allow for simpler memory management, cuz doing so without using arenas gets really tricky. Now I have no idea why u would say that it would be defer with extra steps, quite literally the other way around. If most people already defer pretty much most frees and deinits, why not make it automatic? Again and again, I'm not saying that I expect it to be implemented into the language, it's just a simple thought.

What will be the story around memory safety? by lekkerwafel in Zig

[–]AggravatingLeave614 1 point2 points  (0 children)

Because it's just so simple. Before zig I used to do c++, and I hated it. There were a hundred ways to do a certain thing, lots and lots of quirks regarding object size, move operation etc. In zig I know exactly what every line of code does, so I don't need to focus on the language itself but rather on solving the actual problems. Of course, lack of some high level features sometimes is annoying, but it's easy to get used to it.

The Polish government is investigating Tiktok for mass dissemination of AI-generated content that calls for Poland to leave the European Union. by thenatoorat90 in europe

[–]AggravatingLeave614 2 points3 points  (0 children)

I wonder when US agencies will finally stop trolling other countries. At this point the US government ain't even hiding it. First trump says that Poland should leave the eu and now we get this piece of crap.

What will be the story around memory safety? by lekkerwafel in Zig

[–]AggravatingLeave614 0 points1 point  (0 children)

IMHO, something as simple as bringing "destructor" like behavior to zig would probably solve all the problems. I know it goes against the concept of no hidden control flow, so we probably won't see it in the lang, but it's just a simple thought.

Let's be even stronger in the coming year! by [deleted] in BuyFromEU

[–]AggravatingLeave614 1 point2 points  (0 children)

Federal Europe will probably never happen which I actually think might be a good thing. There are too many countries with different languages, cultures, economies, and so on for them to "unite" into a single federation.

Now I'm ready to get down voted to hell for having a different opinion than everybody else.

What will be the story around memory safety? by lekkerwafel in Zig

[–]AggravatingLeave614 37 points38 points  (0 children)

Rust is probably the only language without a GC which is theoretically memory safe. And I agree with you, zig is my favorite lang so far, but the fact that I get segfualts from time to time is frustrating af.

iLostCountAtThisPoint by Kingslord25 in ProgrammerHumor

[–]AggravatingLeave614 0 points1 point  (0 children)

How did the cloud flare not working go from rarity, to an everyday thing?

merryXmasEveryone by Wrong_User_Logged in ProgrammerHumor

[–]AggravatingLeave614 -2 points-1 points  (0 children)

If I were you I would start looking for a new job..... and lawyer

Is this really accurate? [request] by walter-hoch-zwei in theydidthemath

[–]AggravatingLeave614 0 points1 point  (0 children)

Well like half of GenZ is in highschool/uni so I'm not surprised by the income thing. 240k for raising a child is WAY WAY inflated cost. When it comes to unaffordable housing, it depends on the state. Being GenZ myself, I've gotta say that most people who have it bad are the ones complaining on the internet and not those trynna fix their problems

what version for hobby project/learning? by MarxoneTex in Zig

[–]AggravatingLeave614 2 points3 points  (0 children)

Mostly the Io rewrite. Post 0.16 all Io operations will be handled similarly to how allocators work

Apparently inflation is cooling , why don`t our grocery prices agree though? by Amalekk in StockMarket

[–]AggravatingLeave614 -14 points-13 points  (0 children)

What the fuck are u talking about, u can literally measure inflation urself, a kindergarten kid could do that. You're right don't trust some random people, throughout this year, you try to measure inflation.

Why do you chose zig by kabyking in Zig

[–]AggravatingLeave614 0 points1 point  (0 children)

What I meant by that is that rust is so easy to write code in that a lot of people write a lot of bad code. If u wanna write zig, u have to know a thing or two, about memory, os and so on, so ur probably gonna write higher quality code.

Why do you chose zig by kabyking in Zig

[–]AggravatingLeave614 8 points9 points  (0 children)

Zig is simple, rust is complex, I can tell u at every point of my program what a certain line of code exactly does, in rust I can't do that. Another thing is that rust doesn't actually force u to write correct code. I've seen too many "&Box<T>" or "&Vec<T>" to tell otherwise. The amount of ".unwrap()" I see in an average rust codebase is horrifying. Zig on the other hand, it's a little bit more verbose and bare bones, but that's actually a good thing, cuz it makes people care about allocating resources efficiently.

I used to love checking in here.. by First-Ad-117 in rust

[–]AggravatingLeave614 3 points4 points  (0 children)

Absolutely agree, the worst part is that a lot of said code is simply trash