KiranWells

joined 1 year ago
[–] KiranWells@pawb.social 5 points 5 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:

[–] KiranWells@pawb.social 14 points 8 months 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.

[–] KiranWells@pawb.social 5 points 9 months 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?

[–] KiranWells@pawb.social 9 points 9 months 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.

[–] KiranWells@pawb.social 6 points 10 months ago

You might look into displaying images in the terminal as well; many modern terminals support showing actual images natively

[–] KiranWells@pawb.social 5 points 10 months 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.

[–] KiranWells@pawb.social 4 points 11 months ago

Actually looking forward to the btrfs swapfile hibernation; I have tried setting it up on my machine before but the documentation was never clear on whether it would work (or why mine wasn't).

[–] KiranWells@pawb.social 2 points 11 months 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.

[–] KiranWells@pawb.social 3 points 11 months ago (1 children)

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

[–] KiranWells@pawb.social 2 points 11 months 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.

[–] KiranWells@pawb.social 4 points 1 year ago (1 children)

Have you had any luck with hibernation with a BTRFS swapfile? My computer still does not start from hibernation, and I am not sure why, even though I followed the Arch wiki to set it up.

[–] KiranWells@pawb.social 8 points 1 year ago (1 children)

My computer was taking too long to start up, which I interpreted as failing to boot, but in hindsight was probably just my hard drive being slow. So, I booted into recovery mode, and ran an update. At one point, apt said "there are unnecessary packages" and would I like to remove them? I figured that apt knew better than I did (after all, maybe a package dropped a dependency), so I said yes.

It was after I noticed the very large number of packages that I suspected I messed up. Turns out, apt uninstalled the entire desktop environment, and network manager, so I had to boot into a USB drive with Network Manager installed, chroot into my main drive, and reinstall plasma. As a bonus, I think I missed the main group for the plasma desktop and only installed only most of it, so some of my extensions just didn't work anymore.

view more: next ›