Hacker News new | ask | show | jobs
by jeremychone 1196 days ago
I have rewritten a relatively small but critical 2k CLI from nodejs/ts to Rust, and this was the best decision ever. Cold start and runtime performance got a big boost, but also the code design got much better, and the code is much simpler to maintain and evolve. The single binary install was also a big boost, which I assume is similar to Go.

Since then, we have written all our CLI in Rust, regardless of size.

Tip: for small personal CLI, "cargo watch -x 'install --path .'" can make the whole dev experience script-like.