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

  • solrize@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    9 days ago

    What is the code written in now? What happens if you clean it up? What is the project if I can ask? Everything has a runtime, though some are more complex than others. You might like OCaml which is where Rust got some ideas, or Haskell if you like brain benders. Rust (like C) is for when you need very efficient code, and you incur some pain in order to get that.

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

      The code is in Typescript. It’s the backend of a web app that’s all. Doesn’t really need to be in Rust but idk I just want to make something that doesn’t use more resources than it needs to. Just to be neat :D

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        9 days ago

        For certain backends, especially the kind that generates static pages, functional code like Haskell works well, and brings a different kind of “cleanness”.

        Just in case you hadn’t considered it.

      • solrize@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        9 days ago

        You might give Go (Golang) a try. It’s lighter weight than Java, pretty fast, and easy to use.