• 0 Posts
  • 46 Comments
Joined 2 years ago
cake
Cake day: June 7th, 2024

help-circle
    • 1️⃣ Start screen recording yourself 🎦
    • 🦟 Fix the bug and write up the PR, except…
    • Throw in a lot of gratuitous emojis 🎉🏆🤝 – em-dashes – and “On the other hands”
    • 📤 Submit it
    • When they come 😡 screaming at you about no-AI, just show them the video 😎
    • All their outrage will be spent on accusing you of using 🤖AI.
    • Where it all started will be forgotten 🥳
    • Profit 🏆

    Comment written by 💯 human



  • So many system bugs are because of unclear memory ownership, buffer overflows, and race conditions. C/C++ don’t help you avoid any of these footguns. Any other system that relies on GC is non-deterministic and prone to mystery hiccups, which is why OS and driver tech has been pretty much the same foundation since the 70s.

    Rust lets you avoid 2 of those 3 issues (thread race conditions are still a thing). And being compiled, instead of interpreted bytecode means you can get reasonable performance on smaller machines. No wonder these OS guys are so excited.


  • I’ve got a pretty large Rust/Tauri program going. Breaking things into crates help, but if you touch enough bits of common libraries, everything needs to get rebuilt anyway.

    I use Makefiles for everything. What I found helps is breaking out the parts that don’t change much into separate Make commands (like generating icons, linting, frontend, tests, etc), then leaving “make go” as the simplest inner iteration loop. That way, it’s a lot more bearable.

    There’s also “make build” and “make fullclean.” You start one of those and take a long break.














  • This looks great!

    Can you use it to overlay text fields and fill them?

    Most of my uses are basic. Like filling out a PDF form that doesn’t have proper form entry fields. These are usually older government or bureaucratic/healthcare/school forms.

    I end up adding text boxes and entering values, or adding an X on top of a checkbox, adding a signature PNG file and scaling it to fit the size. Sometimes I have to add a highlight overlay. Then I save it all as a single flattened PDF file.

    Amazingly, this is hard to do in Acrobat and a lot of apps. I end up using a janky, 10-yo desktop app that is no longer supported.