• Noodlez@programming.dev
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      Bash’s posix mode still has a lot of bashisms. The only way to test true posix compliance is to test with other shells like dash and ash. I have found this is the case a lot of time. People will say it’s POSIX compliant shell, but it’ll obviously only be tested in bash Like at that point just make it a bash script, since pretty much every system under the sun has it.

  • TheCee@programming.dev
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    1 year ago

    install minor cc update

    compiler exploits undefined behavior as it always was technically allowed to

    Checkmate, Cniles!

  • marcos@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    It doesn’t matter what version of your dependencies you use if your code is always broken.

    (But anyway, C developers tend to avoid the older standards…)

    • PeterPoopshit@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 year ago

      The versions still make me reluctant to try rust. I’m sure it’s reliable in theory but I’m always getting cockblocked when someone’s python project doesn’t work because of dependencies and different versions. I once remade a python 3d object format converter in c++ because that was easier than a) fixing whatever dependency and runtime version shenanigans or b) using whatever bullshit ass Windows-only propriety software most people used to make that file conversion

      • Rian@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I use both python and rust extensively and they are literally day and night when it comes to dependency issues. The only problems I’ve ever had with rust are when there is a non-rust dependency that’s not cross platform (which would be a problem in c as well). The editions (which are different from versions) are nothing to be afraid of either, iirc a rust 2021 project can depend on 2018 and 2015 libraries without issues.

  • nomadjoanne@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    Call me antiquated, but I still don’t love Rust for these reasons. I don’t dislike it, and I recognize it solves some very real problems around memory management. Whether I like it or not it is probably the future… But Cargo is incredibly opinionated, essentially obligatory, the compiler is huge…

    It’s not something you could bootstrap on a glorified microcontroller running MINIX or something. I’ll just say that. And that’s something I really really love about C.

    • voxel@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      compiler is based on llvm and is relatively lightweight (llvm is the “huge” part which to be fair is also used in clang)

  • Carlos Solís@communities.azkware.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    And don’t even get me started with C# and Node.js projects, chances are you will need to reimplement the entire application just to get the project out of vulnerable library versions.

  • SmoothSurfer@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    1 year ago

    I am sick of these meme. Of course we know c is better than python on many aspects but python is also. Lets say you are building… I an continuing, I hope you are capable of continuing it by yourself. Everyone knows which is better for their particular needs, so just let these memes go. We can be more creative with memes