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

Python

6471 readers
11 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange@programming.dev 1 points 1 month 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.

[–] PlexSheep@infosec.pub 2 points 1 month 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.

[–] FizzyOrange@programming.dev 2 points 1 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.