I have a small homelab running a few services, some written by myself for small tasks - so the load is basically just me a few times a day.

Now, I’m a Java developer during the day, so I’m relatively productive with it and used some of these apps as learning opportunities (balls to my own wall overengineering to try out a new framework or something).

Problem is, each app uses something like 200mb of memory while doing next to nothing. That seems excessive. Native images dropped that to ~70mb, but that needs a bunch of resources to build.

So my question is, what is you go-to for such cases?

My current candidates are Python/FastAPI, Rust and Elixir, but I’m open for anything at this point - even if it’s just for learning new languages.

  • lambalicious@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 days ago

    Languages

    C.

    Frameworks

    C.

    That said, Python and Rust are great for setting up “starting up” / “small task” apps and growing up from there.

    • leisesprecher@feddit.orgOP
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      There’s nothing to really grow. It’s mostly just small helpers. Aggregate sensor data, pull data from A and push it to B every hour, a small dashboard, etc.

      C is too involved for my case , I want to be productive after all.

      Rust is already rather low level, though there are some cool looking frameworks.

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        11 days ago

        C is an extremely expressive language. There’s a reason it won’t die and, while we all love to shit on it for the memes, you can write perfectly safe software in it.