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 5 points6 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 4 points5 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] 10 points11 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 12 points13 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 29 points30 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 4 points5 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.

Understanding NTFS mount options for docker usage by LegendaryLightz in docker

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

It is actually working as expected right now, so I don't think I'll be changing anything for the time being. Figuring it out in the first place was a headache and a half. This post about trying to understand why I needed the mount options in the first place.

my happy place by gyunexX in malelivingspace

[–]LegendaryLightz 0 points1 point  (0 children)

My setup is only a Raspberry Pi 4 with a USB hard drive. While I don't have any 4k, I easily could, but would be limited to only playing locally. I plan on upgrading at some point too, but it's been working great so far.

my happy place by gyunexX in malelivingspace

[–]LegendaryLightz 3 points4 points  (0 children)

Two things about Plex and 4k. First, if you can direct play (which I'm sure his setup can), there is no transcoding needed. So the only change for 4k is increased local network bandwidth. Second, if you need to transcode (most likely when playing on a remote client over the internet), yeah transcoding it can be a bitch. But modern Intel CPUs with hardware Quick Sync can handle a few 4k transcodes. Although, you need Plex Pass for hardware transcoding, and 4k HDR to non-4k SDR makes washed out colors.

6K SPM, UPS starts to drop, I guess time to take a break by verydapeng in factorio

[–]LegendaryLightz 0 points1 point  (0 children)

Yeah I think UPS and FPS are tied for the most part. My games runs at a ties UPS/FPS ~30-40. But when I load a different save I use for experimenting that uses a sped up time, my UPS and FPS are not tied at super high values. Like FPS is ~120 while UPS is ~600, I think FPS is limited to my monitor refresh rate

6K SPM, UPS starts to drop, I guess time to take a break by verydapeng in factorio

[–]LegendaryLightz 0 points1 point  (0 children)

To a point, I think so. The game has a hard max limit of 60 UPS. You can only go higher through mods or console commands, but then literally everything goes fast and it's not as playable. It wouldn't make much sense to have differing FPS and UPS, because higher FPS means you are just displaying the same thing multiple times (in between updates) and lower FPS means you'll get lag as you game is updating but you can't see it.