KiranWells

joined 2 years ago
[–] [email protected] 5 points 11 months ago

I assume you have already tried the official tutorials, but Go By Example is a great "learn by doing" kind of tutorial. Others that I found in a quick DDG search:

[–] [email protected] 14 points 1 year ago

For anyone who is confused: This is exploiting an old soundness bug in the Rust compiler that is still present. The GitHub issue page has this comment from maintainers:

we already had a crate published on crates.io before which used this bug to transmute in safe code, see #25860 (comment).

this issue is a priority to fix for the types team and has been so for years now. there is a reason for why it is not yet fixed. fixing it relies on where-bounds on binders which are blocked on the next-generation trait solver. we are actively working on this and cannot fix the unsoundness before it's done.

[–] [email protected] 5 points 1 year ago (1 children)

To be honest, you can say the same about any large cloud provider. What happens if AWS, or Azure, or Google Cloud go down, or become terrible?

[–] [email protected] 9 points 1 year ago

This is probably not the solution you are looking for, given your opinion of the company, but I wonder if using their 1.1.1.1 app (which acts as a mini VPN to a Cloudflare endpoint and changes your public IP) would fix that for you. The upside is it's free, the downside is that it is a Cloudflare-run VPN.

[–] [email protected] 12 points 1 year ago

Yep; sometimes I will be able to do a search and then when I try to click on a result it has me restart.

[–] [email protected] 39 points 1 year ago (3 children)

For anyone who is still confused about what causes this: Firefox launches copies of itself when creating new website instances (usually when loading a website that has not already been loaded). Because of this, if it is updated in the background (through any means; I usually see this after a manual system update), Firefox has to restart when you try and load a new site because it cannot create any compatible copies of itself, since the old version is the one that is still running and the copies would use the new (updated) version.

The solution is to only update when Firefox is closed, or restart it when it asks.

[–] [email protected] 5 points 1 year ago

I believe you are correct; if the unsafe code can cause undefined behavior if input data is not following a specific contract, then the entire function should be labeled unsafe so the caller knows that.

The other option is to check to make sure the contract is valid, and return an error or panic if it is not. That function would be sound, as no inputs cause undefined behavior.

[–] [email protected] 4 points 1 year ago

Check out Ollama and its extensions for VSCode; might save you some money paying for other services if your computer can run models locally.

[–] [email protected] 3 points 1 year ago (1 children)

Unfortunately, I don't have experience with mangohud. Does Legacy work without it? And does mangohud work with other games?

[–] [email protected] 2 points 1 year ago (4 children)

Just going to ask this just in case: have you tried doing a full update and reboot? If you updated and have not rebooted, sometimes drivers get messed up.

[–] [email protected] 1 points 1 year ago

The link they use is working for me; what is the code you are using to fetch the data?

Also, dbg!() is a very useful macro for inspecting state. Might help see what is going on.

[–] [email protected] 2 points 1 year ago

That link seems broken (the date is wrong). This worked for me:

https://this-week-in-rust.org/blog/2023/11/08/this-week-in-rust-520/

 

I made this theme for my new desktop last fall and recently edited it to make it Catppuccin-y. The images were made using Inkscape, then exported in png and layered together to make the themes. The boot animation is a 39-frame tail swish that I also did in Inkscape, and it took so long to edit and export each frame.

 

Bonus pictures:

view more: next ›