logoalt Hacker News

ks2048 • yesterday at 11:56 PM • 3 replies • view on HN

For a lot of scripts (think replacement to bash scripts - perhaps even one-offs), Python will save time over rust compilation times.


Replies

nazcan • today at 12:02 AM

Golang it is then! I'm really enjoying the fast compile time compared to C++...

➕ show 1 reply
cogman10 • today at 1:03 AM

For one offs, sure. But once you get to a script executed multiple times it doesn't take very long before you have payed off the rust compile time. Especially if it is fairly simple (as in, you can do everything with just rust std lib and not a bunch of rust libs).

Almost all the rust compilation times come from needing to build the supporting libs. For simple scripts, it's very possible to get away with just using the std lib.

➕ show 1 reply
loeg • today at 12:37 AM

Non-optimized builds can be pretty quick, although I guess you're always paying for borrow checking.