3 ms·
For CLI programs Rust is a really nice alternative to languages that require a runtime. I've significantly sped up the time for my bashrc to execute (my bashrc
by staticassertion 5y ago
For CLI programs Rust is a really nice alternative to languages that require a runtime. I've significantly sped up the time for my bashrc to execute (my bashrc is heavy) by replacing certain tools with Rust tools.
If I wanted my IDE to execute something like ShellCheck on every save, or even every few character presses, I feel like I'd much rather not have to spin up a big runtime.
- whateveracct 5y agoI really doubt the GHC RTS is appreciably slowing down ShellCheck. Especially if its built with RTS flags optimized for startup. Feels like optimizing the wrong thing a bit.
- atombender 5y agoShellCheck starts in a few milliseconds on my machine, easily fast enough to run on every character press. Haskell's runtime isn't like the Java JVM, and GHC compiles to machine code, not interpreted bytecode.
- staticassertion 5y agoNice, that's impressive.