Ask HN: Why is Rust still hard to use as a scripting language?
I like Rust, but the edit-run loop still feels heavier than I’d like.
Sometimes I don’t care about runtime performance. I just want to write some code, run it quickly, see what happens, and keep tweaking.
I know there are things like rust-script, cargo-script, evcxr, and incremental builds, but I haven’t found a setup that feels as casual as Python/Ruby.
Is this just the wrong way to think about Rust, or are people actually using it this way?
Curious what setups people here use when they want Rust, but with faster feedback.
3 comments
[ 5.5 ms ] story [ 22.5 ms ] threadI’m not sure what you mean by a “casual setup,” but I find Cargo to be very easy to use. Granted, compilation can be pretty slow, but it’s a small price to pay for the runtime performance.
If by “faster feedback” you mean something that looks and feels like Python’s REPL, then I think you’re missing the point here. Rust is a compiled language.