• FizzyOrange
    link
    fedilink
    arrow-up
    1
    ·
    29 days ago

    I don’t think so - Javascript doesn’t have to ship its language runtime so it will always have a size advantage.

    • PlexSheep@infosec.pub
      link
      fedilink
      arrow-up
      2
      ·
      29 days ago

      You don’t need a language runtime if your program has no runtime, right? A rust or C program is just the program, no runtime.

      • FizzyOrange
        link
        fedilink
        arrow-up
        2
        ·
        29 days ago

        Well they still have runtimes, but yes they can be pretty minimal.

        You’re still shipping a load of libraries that come for free with JS though, e.g. with Rust WASM string formatting and unicode support always ends up being annoyingly huge, and that’s built in to JS engines. There’s also collections (Map, Set), etc.