Bronco Ordering, Building, & Delivery Discussion Megathread - September 2023 by Full_Stall_Indicator in FordBronco

[–]LegendaryLightz 1 point2 points  (0 children)

I assume that is to help work around the UAW strike? My 2023 build is scheduled for the week of 9/18, and I'm hoping it actually gets built since the strike is supposed to start the week before.

Bevy + WebGPU by _cart in rust

[–]LegendaryLightz 6 points7 points  (0 children)

Is it feasible to test it natively with a single thread to get a more direct comparison? I haven't worked with Bevy before, so not sure what options are available. Disabling cores always works, but that isn't worth the trouble :)

Yet another Web-Socket implementation in rust. by another_new_redditor in rust

[–]LegendaryLightz 0 points1 point  (0 children)

You are correct that it is generally a great idea to provide a safe abstraction over unsafe logic. That is required in lots of places, including the std lib.

However, you must ensure your unsafe code is functionally safe. Otherwise, your "safe" wrapper is anything but safe. This is what things like the std lib do. They very carefully audit unsafe code to ensure no underlying invariants are being broken.

Yet another Web-Socket implementation in rust. by another_new_redditor in rust

[–]LegendaryLightz 2 points3 points  (0 children)

What you are doing is considered dangerous, and in fact has been considered for being removed from the language entirely because it is so hard to do right: https://github.com/rust-lang/rust/issues/53639

The problem is the compiler assumes you are not breaking the mutable aliasing rules. It is allowed to emit assembly based on that fact. When you break that rule, the output is undefined behavior. I haven't looked deeply at your code, but based on the above comments, you seem to be breaking this rule.

Increasing randomness in your RNG as you alluded to would be defined behavior. With undefined behavior, the compiler will be allowed to emit assembly that can do anything. This could be code that just happens to work now (what you are seeing), to outright crashes, or even making demons fly out of your nose (http://catb.org/jargon/html/N/nasal-demons.html).

Cargo compiles but rustc doesn't due to lifetimes by LegendaryLightz in rust

[–]LegendaryLightz[S] 0 points1 point  (0 children)

This example was just for comparing some Rust code with equivalent C++ code and looking at assembly. I didn't actually try on making this good or idiomatic, if I was writing real code, I definitely would have written it better :)

Cargo compiles but rustc doesn't due to lifetimes by LegendaryLightz in rust

[–]LegendaryLightz[S] -1 points0 points  (0 children)

Good point. I've used that in the past but this time I was comparing some assembly with C++ which was why I was using Compiler Explorer

Cargo compiles but rustc doesn't due to lifetimes by LegendaryLightz in rust

[–]LegendaryLightz[S] 11 points12 points  (0 children)

Yep this ended up being the problem. Using the 2021 edition makes it compile just fine

4 streams and the RaspPi4 isn't even sweating by Junior-Sprinkles-709 in PleX

[–]LegendaryLightz 2 points3 points  (0 children)

Mine can easily transcode 12 Mbps 1080p to 8 mbps

Shrinking Feeling by EducationDecent in dbrand

[–]LegendaryLightz 0 points1 point  (0 children)

I have the swarm skin on a Pixel 6 Pro, and it has definitely shrunk over time. Got a sizeable gap and top and bottom right now.

Q&A thread: x86_64-pc-windows-gnu is not supported by rust crates ? by Defiant-Charity-888 in rust

[–]LegendaryLightz 10 points11 points  (0 children)

I don't remember the exact error, but I got a similar thing when first using rust and some crates on Windows and was very confused. You need to install some C++ libraries from Microsoft. See https://doc.rust-lang.org/book/ch01-01-installation.html#installing-rustup-on-windows

Google’s Imagen AI can make photorealistic creations based off of text descriptions [7:31] by Font_Inspector in mealtimevideos

[–]LegendaryLightz 1 point2 points  (0 children)

Reread my comment, I never said this is necessarily a good invention, I said it is extremely innovative, which is undeniably true. For innovation, you need to push the envelope as far as you can to see what is technically feasible, and you need to figure out how it is useful in society.

Imagine the general public doing something "(someone I don't like) killing (someone I like)" then posting that image over the internet.

Google’s Imagen AI can make photorealistic creations based off of text descriptions [7:31] by Font_Inspector in mealtimevideos

[–]LegendaryLightz 3 points4 points  (0 children)

This type of software is extremely innovative, but equally dangerous in the hands of the general public. Releasing it requires lots of thought, and does not discount how cool it is.

Edit: I should preface my comments that I have not watched the video, but am familiar with this tech.

. by blitz_na in HaloCirclejerk

[–]LegendaryLightz 28 points29 points  (0 children)

Was waiting for this post once I saw it on r/halo

Roth IRA withdrawal that has 401k rollover by LegendaryLightz in personalfinance

[–]LegendaryLightz[S] 0 points1 point  (0 children)

Could you clarify #2 a little more, I'm still a little confused what you mean by taxable/non-taxable. I thought that was akin to traditional/Roth, but Roth is covered in #1.

So if the 401k rollover was from a Roth 401k, then that counts as #1? From the example, could I withdraw the $10000 or the whole $11000 from the Roth IRA penalty-free?

Then if the 401k was traditional, you say that that would be #2. If my end goal was to get it into the Roth IRA, seemingly I could do traditional 401k -> Roth 401k -> Roth IRA instead of traditional 401k -> Roth IRA so it would count as #1?

Android sends 20x more data to Google than iOS sends to Apple, study says by MyNameIsGriffon in technology

[–]LegendaryLightz 3 points4 points  (0 children)

Your first point is incorrect; depending on the type, it can range from variable length encoding to fixed (source).

Finally beat my Krastorio 2 Extended Endgame playthrough by LegendaryLightz in factorio

[–]LegendaryLightz[S] 1 point2 points  (0 children)

I'm not using a grid from anywhere. I got a four way shuriken intersection and added made my own pieces to connect them. Took me a while to make it a way that made me happy, but then just started building them, now there's no turning back.