• tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      29 days ago

      I could understand caring a lot about the language if I were writing or maintaining something, but not usually if I’m just using a software package, unless it has performance implications. Maybe for software that has privilege escalation risk you maybe want a language that might help mitigate some security issues, but launchers shouldn’t fall into that camp.

      But, hey, people have their own preferences and opinions. Maybe someone’s super into Rust and wants to try to run as pure a Rust environment as possible or something.

      • Ephera@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        29 days ago

        I mean, just to offer you the counter perspective, IMHO programs written in X tend to have problem Y:

        • Python: Terrible error messages, buggy, sluggish, slow, but good documentation
        • Java: Gurgles RAM like there’s no tomorrow (but tends to do something useful with it), sluggish
        • Node.js: Just gurgles RAM for the fun of it, buggy, over-engineered functionality, confusing documentation
        • Rust: Over-engineered functionality
        • Go: Bad error messages, quirky detail behavior
        • Haskell: Practically 0 bugs, but if you do run into a bug, good luck. Thin documentation.
        • C/C++: Basically no bells or whistles, and no compiled build available. Also stupidly difficult compile on anything, except the singular dev’s PC.

        Obviously, these are caricatures, i.e. I’m overdrawing the details and omitting nuance. And these are also influenced by the kind of people that are drawn to these languages. And these are influenced by what I know about the languages, I didn’t conduct a double-blind study.

        But yeah, there’s a reason why Python ended up first on that list. I don’t have that hard of an opinion about the others, but genuinely, when I know a non-trivial program is written in Python, I will think twice whether I want to use it. Because it always seems to cost me a non-trivial amount of nerves in the end.

    • chrash0@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      29 days ago

      i mean, it’s a good fit for a utility like this. starts quick, runs fast, small memory footprint… all the benefits of C/C++ but with modern tooling and a sane type system.

  • mrspaz@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    29 days ago

    Lookin’ good. Just be sure to put “unsafe” before all your function definitions.

    unsafe fn main()

    That’ll do ya.

    • rockSlayer@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      29 days ago

      Excellent, thanks for the tip! I’m thinking of writing a linked list and creating reference pointers to the list so I can copy it and change the copy. Unsafe fixed all the problems, but my PC keeps crashing. I think it’s some non-rust util smh

  • MaskedNybbles@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    29 days ago

    I am unwilling to make light of another’s desire to learn so that they might help themselves, even if some of the phrasing feels a little silly and market-y.

    What does this post accomplish? Feels mean-spirited, really.

    • rockSlayer@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      29 days ago

      I’m not making fun of that person. More power to them. I’m making fun of the rust community’s desire to rewrite the fabric of the universe in Rust

      • MaskedNybbles@piefed.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        29 days ago

        Alright. It just seems to me that anti-intellectualism is everywhere and that is what I first jumped to. I apologize for the accusation. It was knee-jerk. Carry on with your light-hearted ribbing, then.

      • Ephera@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        29 days ago

        As a Rust dev, I approve of this.

        (Especially the rewriting. Spacetime has way too many quirks and should be deprecated.)

      • Shadow Glider@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        29 days ago

        People rewriting common software in Rust is a good thing, regardless how good the original and its code was, it’s a fun exercise in coding if nothing else, and if it ends up worse than the original, that’s fine! That’s how you practice and learn, and it should be encouraged.

        Fuck corporations using Rust rewrites to replace GPL-licenced software with Expat-licenced ones.

  • KernelTale@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    28 days ago

    I like C and C++ so naturally I am drawn to Rust, but how do programmers make bigger programs without OOP? Is the project structure written in C++ and then it calls Rust functions with the C++ just being wrappers?

    • rockSlayer@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      27 days ago

      Rust is also object oriented, it’s just more like C in the sense that there is no Object class to inherit from. It’s also similar to Python in that the OOP language has enough features borrowed from functional programming that it can be used that way