You might look into displaying images in the terminal as well; many modern terminals support showing actual images natively
I’m a Christian and software engineer; I create random graphics projects and websites. Feel free to ask me for help with programming, or about my faith!
You might look into displaying images in the terminal as well; many modern terminals support showing actual images natively
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.
They said bcachefs; I don’t think BTRFS has it, at least not since I last checked.
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).
Check out Ollama and its extensions for VSCode; might save you some money paying for other services if your computer can run models locally.
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.
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.
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.
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 haven’t taken it myself, but “The Last Algorithms Course You’ll Need” is free and is written by The Primeagen. He works at Netflix and runs a programming-focused YouTube channel, and as far as I can tell is very knowledgeable and level-headed.
Definitely seems like an AI generated article. I can’t imagine a human actually writing “the sound of legends being printed.”
Thanks for the offer, but if I have to solder, I would rather do it myself. Might be able to find someone at my college that I can borrow an iron from.
When I first tried Helix, my main concern (that prevented me from getting too far into it) was not going from Vim to Helix, but the other way around. Vim (or sometimes vi) is a standard editor on almost any Linux machine, so if I am ever working on a server if a VM, I would need to know/use Vim keybinds. That made Vim a more useful tool for me to learn at the time, as I could use the skills both on my machine and anywhere else.
Learn Rust With Entirely Too Many Linked Lists is a great example of how references work (or don’t work) in more complex situations. Might seem like a lot at first, but working through writing the code yourself and seeing the compiler’s responses is a great help when learning Rust. It also doesn’t hurt to read it once and then come back and read it again later, after you try writing some more programs.
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: