• @[email protected]
    link
    fedilink
    11 month ago

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

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

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