zlacker

[parent] [thread] 1 comments
1. jitl+(OP)[view] [source] 2025-02-17 18:03:52
This isn't true when it comes to CLI tools, where fixed costs and warm-up time can easily dominate over algorithmic complexity, especially comparing a scripting language to an ahead-of-time language. Without careful construction, a tool written in python with whatever O(log(n)) time complexity may still be booting up by the time a Rust tool finishes the job in O(n^2) time: frequently n is actually pretty small outside whole-repo builds, and the cost of interpreter is high especially with accompanying tooling -- python3 itself will run `print("hello")` on my machine in 40ms, but when wrapped in pyenv (which I think is typical?) it takes 400ms. The same goes for node/npx and ruby/bundle. Compare to an ahead-of-time compiled binary from go, which can boot and print hello in 3ms on my machine -- it has between 10x to 100x the wallclock budget the python program just spends booting up.
replies(1): >>tralln+58
2. tralln+58[view] [source] 2025-02-17 18:59:12
>>jitl+(OP)
These days I'd say tools pipx (and now also uv) are far more common than pyenv for tool management
[go to top]