Feel like everyone’s been telling me it’s the best thing since sliced bread. I’m just a hobbyist with like a single big project I’m maintaining but I’m starting to hate the code and idk maybe I should rewrite it in rust. Idk

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      9 days ago

      Just freeze the python to an executable is one way to do it (windows, linux, …).

      But now I’m curious, what’s your hobby project about? I mean you can close to chose any language and do anything … Do you do database? Graphics? Is it supposed to be online? Cryptographics? Gpgpu? Massive multithreading? Large calculations?

      If you don’t give us more information then we can only tell you to chose the language you like or master the most IMO.

      • droning_in_my_ears@lemmy.worldOP
        link
        fedilink
        arrow-up
        3
        ·
        9 days ago

        It doesn’t really need it. I’m sorry for giving the impression that it’s some performance critical application lol.

        It’s just a simple web app backend with a db. Oh and the front end desktop version I wanna build will use tauri (because I hate the thought of bundling a browser) so that’s another reason to learn rust.

        I guess I just kinda want to make things minimal in the resources they use. Because that’s just neat :D

        • bluGill@fedia.io
          link
          fedilink
          arrow-up
          4
          ·
          9 days ago

          There is a reason a lot of web apps run on the JVM - while it does have high overhead, once your app is running it is fast and you get some nice advantages. Plus Java has a large system of helpers and libraries. Even though you can do everything in Rust, you will end up writing a lot more code just because in Java you can just download a library to do something while Rust forces you to write it.