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

  • @[email protected]
    link
    fedilink
    224 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.

    • @[email protected]OP
      link
      fedilink
      124 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

      • @[email protected]
        link
        fedilink
        224 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.

      • @[email protected]
        link
        fedilink
        124 days ago

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

      • @[email protected]
        link
        fedilink
        English
        423 days ago

        Purescript is also really great if you want what Typescript promised you but failed to deliver.