• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle


  • The packager always should “explicitly require” what are the dependencies in a Nix package… it’s not like it’s a choice, if there are missing dependencies then that’d be a bug.

    If the package is not declaring its dependencies properly then it might not run properly in NixOS, since there are no “system libraries” in that OS other than the ones that were installed from Nix packages.

    And one of its advantages over AppImages is that instead of bundling everything together causing redundancies and inefficient use of resources, you actually have shared libraries with Nix (not the system ones, but Nix dependencies). If you have multiple AppImages that bundle the same libraries you can end up having the exact same version of the library installed multiple times (or loaded in memory, when running). Appimages do not scale, you would be wasting a lot of resources if you were to make heavy use of them, whereas with Nix you can run an entire OS built with Nix packages.




  • Flatpak still depends on runtimes though, I have a few different runtimes I had to install just because of one or two flatpaks that required them (like for example I have both the gnome and kde flatpak runtimes, despite not running either of those desktop environments)… and they can depend on specific versions of runtimes too! I remember one time flatpak recommended me to uninstall one flatpak program I had because it depended on a deprecated runtime that was no longer supported.

    Also, some flatpaks can depend on another flatpak, like how for Godot they are preparing a “parent” flatpak (I don’t remember the terminology) that godot games can depend on in order to reduce redundancies when having multiple godot games installed.

    Because of those things, you are still likely to require a flatpak remote configured and an internet connection when you install a flatpak. It’s not really a fully self contained thing.

    Appimages are more self contained… but even those might make assumptions on what libraries the system might have, which makes them not as universal as they might seem. That or the file needs to be really big, unnecessarily so. Usually, a combination or compromise between both problems, at the discretion of the dev doing the packaging.

    The advantage with Nix is that it’s more efficient with the users space (because it makes sure you don’t get the exact same version of a library installed twice), while making it impossible to have a dependency conflict regardless of how old or new is what you wanna install (which is something the package manager from your typical distro can’t do).


  • Were the earlier series not focused on shared values to more or less a similar extent too?
    Kirk has usually been given the reputation of being a rule-breaker, often ignoring Starfleet rules when they are in conflict with his values. Even off-camera (in DS9 I think) they attribute him 17 temporal violations, and I think he has been accused of violating the prime directive multiple times.


  • Ferk@kbin.socialtoProgrammer Humor@programming.devWhitespace
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    edit-2
    7 months ago

    But C syntax clearly hints to int *p being the expected format.

    Otherwise you would only need to do int* p, q to declare two pointers… however doing that only declares p as pointer. You are actually required to type * in front of each variable name intended to hold a pointer in the declaration: int *p, *q;


  • Ferk@kbin.socialtoProgrammer Humor@programming.devifn't
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    7 months ago

    Yes… how is “reducing exclamation marks” a good thing when you do it by adding a ' (not to be confused with , ´,or’` …which are all different characters).

    Does this rely on the assumption that everyone uses a US QWERTY keyboard where ! happens to be slightly more inconvenient than typing '?



  • I agree with the sentiment. But I didn’t want to be too critical about it, because like you said, it’s their project and they don’t have to give particularly strong reasons for what they choose to spend their time on.

    And after all, this approach is probably fitting for a non-POSIX compliant shell like fish. I expect that those who would rather break compatibility in exchange for a “look & feel” that appears more “modern” are likely to also prefer breaking support for some old but stable tooling by switching to a more “modern” language ecosystem, even if doesn’t have the battle-tested history and wide compatibility of more traditional languages. Those who care about that kind of stability might be better off using more traditional shells anyway. So maybe doing this would actually make working on fish more attractive for the kind of devs who would be more likely to contribute. We’ll see.


  • Just wondering: why was the rewrite necessary?

    It doesn’t look like they did it for performance, since they claim the code might actually be slower, at least for now.
    Was there a particular reason that made Rust give a gain significant enough to deserve a full rewrite or was it just because the maintainers wanted to restructure things anyway and particularly liked Rust?

    EDIT: Ok, found their reasoning after some digging.
    It seems to be a combination of both things. They believe that switching will attract contributors and make it more modern… but also they seem to have had some trouble with thread safety in C++ that would have required them to do some restructuring anyway.


  • Ferk@kbin.socialtoProgrammer Humor@programming.devIntuitive UI
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    11 months ago

    Yes, the way his hand is positioned, it would not have worked if they had wanted to make it hold the wooden stick. They’d have needed to edit the hand too much and it would have likely been noticeable / even weirder.

    Probably they decided: f*ck it, let them grab it however they want. Maybe it’ll even become a thing.

    And it looks like it worked, since we are talking about it and spreading the ad. Smart advertising, imho.


  • Ferk@kbin.socialtoMemes@lemmy.mlJust say no.
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    Just like building up your muscle, it takes time. Which is why you don’t see memes/people saying: “So weak that you can’t lift 100kg? just say no, raise your arms while holding a 100kg weight. It can’t legally fall if you don’t drop it.”

    I mean, logically stopping depressive thoughts is the only way to stop depression, the same way as how lowering the caloric intake is how you get rid of obesity, or lowering the resistance to insulin is how you stop being diabetic type 2. Or how the only way to be someone who lifts 100kg is to actually lift a 100kg weight.

    But that’s so obvious that it’s not helpful. It’s not like people don’t know what makes them depressed… or obese… or weak… what they want is advice in how to train themselves, not someone telling them they should “just” stop being the way they are (which is probably something they already keep reminding themselves about! …most of the time, that’s the one thing they don’t need help with).


  • Ferk@kbin.socialtoMemes@lemmy.mlJust say no.
    link
    fedilink
    arrow-up
    16
    arrow-down
    3
    ·
    edit-2
    1 year ago

    You mean saying “no” to depressive thoughts?
    I feel that if you can combat depression that way, then you are not really having clinical depression.

    It’s like asking a type 2 diabetic to stop being so resistant to insuline. If your body can stop resisting insuline, then it’s not diabetic.


  • Ferk@kbin.socialtoMemes@lemmy.mlJust say no.
    link
    fedilink
    arrow-up
    39
    arrow-down
    17
    ·
    edit-2
    1 year ago

    Yep, this is akin to: “Depressed? Just say no.” “Depressive thoughts cannot legally enter your mind if you don’t have them.”

    People don’t realize that overfeeding is not the real cause of the problem, but rather a consequence.


  • Ferk@kbin.socialtoMemes@lemmy.mlNokia be like p2
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Leaving a lithium battery charging for a long time, even when it’s already 100% can degrade it.
    Most devices have failsafes against this, but I still always try to not leave a device charging if its already mostly full… perhaps it’s just me being paranoid, but what I rather do is set up rules so that the phone automatically goes into airplane/battery saving mode at night.


  • Ferk@kbin.socialtoMemes@lemmy.mlNokia be like p2
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    1 year ago

    I liked how, when you had an alarm set up, you could even switch off the phone and it’d still turn itself on automatically in the morning and ring to wake you up. It was actually more reliable than dedicated alarm clocks, since those needed manual time adjustment when there was a winter/summer time change, or when there was a power outage.

    Nowadays, I always have to double check the phone has enough charge before going to sleep.


  • It’s actually called “GNOME Files” nowadays. And it’s had the moniker “File Manager” for ages in the desktop entries for most distros, even if the official name was “Nautilus”.

    I actually feel the other way around… if they had just called it “File Explorer” it’d come off as if they are getting “extra fabulous”, because it implies the other file explorers are not really THE “File Explorer”.

    Imagine if when Google launched Chrome they had decided to name it “Web Browser” instead of “Google Chrome”.