• BehindTheBarrier@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 day ago

    At least Rust compiles down to what is used. I don’t know if js has any of that, but at least with rust the final program doesn’t ship tons of bloat.

    • CameronDev@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Yes and no, the linker does nicely trim a lot of the fat, but rust binaries are still pretty chonky. Its good chonky (debug etc), and static compile doesnt help, but they are quite fat.

      Also doesnt help compile times that you have to build all this extra stuff, only to throw most of it away.