this post was submitted on 02 Nov 2024
263 points (98.2% liked)

Python

6337 readers
8 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 day ago (1 children)

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

[–] [email protected] 2 points 1 day ago (1 children)

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] 2 points 1 day 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.