• 1 Post
  • 23 Comments
Joined 1 year ago
cake
Cake day: July 18th, 2023

help-circle
  • It’s been almost a decade since I used C++ and had to verify, but after some quick searching around it looks like it hasn’t changed a ton since I last looked at it.

    You can use smart pointers, and certainly you should, but it’s a whole extra thing tacked on to the language and the compiler doesn’t consider it an issue if you don’t use them. Using new in C++ isn’t like using unsafe in rust; in rust your code is almost certainly safe unless marked otherwise, whereas in C++ it may or may not be managed properly unless you explicitly mark a pointer as smart.

    For your own code in new codebases this is probably fine. You can just always make your pointers smart. When you’re relying on code from other people, some of which has been around for many years and has been written by people you’ve never heard of, it becomes harder to be sure everything is being done properly at every point, and that’s where many of these issues come into play.


  • brenticus@lemmy.worldtoLinux@lemmy.mlLadybird announcement
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    3 months ago

    C and C++ require more manual management of memory, and their compilers are unable to let you know about a lot of cases where you’re managing memory improperly. This often causes bugs, memory leaks, and security issues.

    Safer languages manage the memory for you, or at least are able to track memory usage to ensure you don’t run into problems. Rust is the poster boy for this lately; if you’re writing code that has potential issues with memory management, the compiler will consider that an error unless you specifically mark that section of code as unsafe.










  • It’s tricky for sure. The plain text is great, and all the functionality is built off of plain text (even the canvas!), but replicating the functionality isn’t trivial by any stretch of the imagination. Migration is easier because of the text files, but will it be as easy to see the links between notes? Or query all the notes I need more detail in? Or map it all out visually?

    I think reimplementing the core obsidian functionality in a FOSS clone would be fun… except I already have a queue of projects and not a lot of time, so here I am complaining instead 🤷


  • It’s a good philosophy, to be sure. It doesn’t take many migrations to realize that keeping your files in open, easy to read formats is preferable.

    I also use obsidian, but I do sometimes worry that the linking and metadata will be difficult to work with in the future when the software goes away. It’s all there in the files, but my vault is slowly linking together in interesting ways that rely on obsidian functionality.


  • The discover store comes with KDE nowadays. GNOME has a similar store. Most recommended distros will preinstall one of those two. Ubuntu has a similar snap store, I think.

    I guess the steam flatpak is unofficial. Works, though. Very simple, lazy solution. Could have gone through the fedora repos, too, where they’ve gone through the effort of repacking the deb for their users.

    Dunno what your package manager problem is. Don’t even know what you’re running. Mine works fine, and certainly better than the windows store 🤷

    Appimages sure aren’t recognized as system apps. They’re basically like an exe on windows. I’d rather manually add my rare appimage to the menu than go through the installer hell windows has.

    Your point seems a little silly because, honestly, my experience is that developers have largely made the Linux desktop experience so simple and stable that it works better than any windows machine I’ve used in the past decade. I’m sorry this hasn’t been your experience, but in the last couple of years I’ve pretty much only needed to open the terminal because I want to, not because I need to.


  • I installed steam by going into my discover app, searching for steam, and clicking install. This is how I get most things, excepting a few appimages I downloaded that just work. I change my settings via GUIs that came with KDE. The only extra configuration GUIs I installed were pavucontrol (just like it for some reason) and protontricks (for doing weird stuff with games most people never need to do).

    I don’t know what distro/de/wm you’re using right now but what you’re saying doesn’t need to be the case. Linux desktop is honestly working better than windows for me lately.


  • brenticus@lemmy.worldtolinuxmemes@lemmy.worldTwo moods
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    9 months ago

    DRM in many games doesn’t work on Linux. In some cases, like games that use EAC, this is technically just a checkbox at build time where they decide not to support Linux.

    There are also some weird libraries and low-level interfaces that refuse to even work through wine/proton, but that’s pretty rare nowadays. You have to be actively trying to find something that won’t work at all on Linux.


  • For your first case while evacuation and such, there are alternatives and you shouldn’t need full internet access for situations like that. (obviously this isn’t the case right now)

    People absolutely need internet access in evacuation situations. They need information to know where it’s safe to go, where they can get help, what routes are still open, whether it’s safe to return home, whether their home still exists… in some cases the only communication methods are either internet-based or literally flying a plane in, there aren’t even roads to some communities that need to be evacuated. There is way too much information people need to be able to rely on local communication methods like radio.

    And that’s really one of the only other options in these situations. The fibre line (pretty much singular, because the cost to run fibre over thousands of kilometers is enormous) going through the NWT was destroyed in the fires as a fire was approaching Yellowknife. Cell towers can literally melt from the heat of some of these fires. Ground infrastructure is vulnerable to all of the climate disasters our world is currently facing. And that’s ignoring it getting destroyed by actively hostile actors like in Ukraine.

    Do Starlink and Musk suck? Absolutely. Fuck them. But satellite internet is increasingly showing itself to be a necessity, and to think otherwise really underestimates the size of our world and the vulnerability of our infrastructure. We need better management of it, but we definitely need it.



  • There are actual use cases for satellite internet. I heard from an evacuee from the Northwest Territories in Canada here that he was basically only able to get updates on what was happening—i.e. what roads weren’t on fire and where evacuation centers were—because of a couple of people with starlinks. There are huge areas up there with little to no internet infrastructure, and this summer much of that was damaged in the fires.

    Ground infrastructure is expensive to run out to extreme rural areas, and it’s also vulnerable in different ways from satellite infrastructure. In the US, yeah, it’s dense enough that ISPs mostly need to get their shit together, but there are very large areas where running a cable has a lot of problems.