You must log in or register to comment.
I don’t think so - Javascript doesn’t have to ship its language runtime so it will always have a size advantage.
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.
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.