Frum – Fast and modern Ruby version manager written in Rust
github.com
github.com
So asdf absolutely needs other version managers. Not sure how a ruby version manager in rust will help - the only thing that's slow with asdf-ruby is building any given version of ruby... And that can't really be significantly improved on? At least not for legacy versions.
Worth noting that there are benefits to doing a CLI in Rust other than raw processing speed:
1) Type system
2) Compared with C/C++:
2a) Safety
2b) Trivial cross-platform builds with no runtime dependencies
2c) Stellar package ecosystem to build on, including powerful CL arguments handling
3) Compared with interpreted languages
3a) No runtime dependencies
3b) Fast cold-start because it's a native binary
Of course none of these makes it the automatic winner, and several don't really apply when compared to shell scripts. But the type safety does, and another big one that comes to mind is trivial Windows support, which from a quick glance asdf doesn't seem to have.
Have you seen a difference yourself, and if so, could it have been from the overhead of loading gems instead?
I also know that Sam Saffron has mentioned the shim latency a bit before as well with other tools.
> We stopped benching on rbenv based systems, everyone moved to chruby or rvm cause the shims rbenv adds introduce significant delays on boot.
https://discuss.rubyonrails.org/t/why-is-rails-boot-so-slow-...
I'd be more interested in a benchmark of how much slower it is than having the right version of Ruby directly in your path, or versus rbenv shims.
From the article: "There are no shims (unlike Asdf or Rbenv) and it doesn’t override the cd command (unlike RVM). it includes a built-in Ruby installer command so there’s no extra program needed to install Ruby (unlike Chruby). The installer is fast and Frum requires no dependencies (it’s an all-in-one Rust executable you can install with Homebrew)."
Esbuild comes to mind ?
I wonder if there's a Ruby bundler written in another lang?