News for hackers. Stuff that matters.
Re:Frum – Fast and modern Ruby version manager written in Rust by bassdropvroom on Friday May 21, 2021 @11:15AM (#27235112)
Certainly looks nice, but all of these different version managers are just not necessary. When you have something like asdf written in what feels like 1 line of bash (obvious exaggeration) everything else feels redundant. I've been able to remove gvm (golang), tfenv (terraform), and several others that I can't think of right now.
Re:Frum – Fast and modern Ruby version manager written in Rust by e12e on Friday May 21, 2021 @12:53PM (#27236565)
I love asdf, but one of the reasons it's so great are the other, dedicated, version managers (eg: ruby-build for asdf-ruby, rustup/cargo for asdf-rust etc).

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.

Re:Frum – Fast and modern Ruby version manager written in Rust by brundolf on Friday May 21, 2021 @03:28PM (#27238788)
> 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

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.

Re:Frum – Fast and modern Ruby version manager written in Rust by agumonkey on Friday May 21, 2021 @01:05PM (#27236760)
Is it related to common lisp asdf or is it pure lexical collision ?
Re:Frum – Fast and modern Ruby version manager written in Rust by mega-tux on Sunday May 23, 2021 @09:08AM (#27254760)
not related. There was an old issue created for this but the author will not change the name
Re:Frum – Fast and modern Ruby version manager written in Rust by TeddyDD on Friday May 21, 2021 @02:51PM (#27238276)
asdf is nice except is uses shims. They are pretty slow. If you offten run script as part of your prompt for example, it gets noticable pretty quickly.
Re:Frum – Fast and modern Ruby version manager written in Rust by Conlectus on Friday May 21, 2021 @03:23PM (#27238718)
This surprises me. The shim should only introduce the latency of a single disk read, right?

Have you seen a difference yourself, and if so, could it have been from the overhead of loading gems instead?

Re:Frum – Fast and modern Ruby version manager written in Rust by philipbjorge on Friday May 21, 2021 @04:15PM (#27239329)
I've seen this difference myself and done some profiling on it in the past with asdf.

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-...

Re:Frum – Fast and modern Ruby version manager written in Rust by TeddyDD on Friday May 21, 2021 @04:25PM (#27239480)
Re:Frum – Fast and modern Ruby version manager written in Rust by renewiltord on Friday May 21, 2021 @03:46PM (#27238998)
At least for terraform, I find using an env an anti-pattern. The software moves too fast and you get stuck if you can't just stay up to date. I have done both the env route and the stay-up-to-date route on non-trivial infra (~1MM/mo) and the latter is far superior. It's not too bad when you just need to keep moving up and it's a small task.
Re:Frum – Fast and modern Ruby version manager written in Rust by throwbacktictac on Friday May 21, 2021 @12:28PM (#27236187)
absolutely this, asdf saw the true problem with version management and provided an elegant solution.
Re:Frum – Fast and modern Ruby version manager written in Rust by fishtoaster on Friday May 21, 2021 @12:39PM (#27236345)
If I'm reading their benchmarks right, rbenv takes (mean) 239628.1ms and Frum takes 232944.6ms to install ruby, for a 2.8% speedup. It looks like a pretty new project, though, so that may just be the starting point.
Re:Frum – Fast and modern Ruby version manager written in Rust by cjm42 on Friday May 21, 2021 @03:52PM (#27239080)
That's the way I read it, although I don't understand why they're focusing on installation. That seems like choosing a car based on how long it takes to change the oil.

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.

Re:Frum – Fast and modern Ruby version manager written in Rust by whateveracct on Friday May 21, 2021 @03:43PM (#27238957)
I just use Nix for this. The nice thing with it is it's uniform and you can manage versions for any language.
Re:Frum – Fast and modern Ruby version manager written in Rust by OhSoHumble on Friday May 21, 2021 @05:26PM (#27240175)
I am working on building VirtualBox appliances based off of NixOS. Nix makes me feel dumb.
Re:Frum – Fast and modern Ruby version manager written in Rust by whateveracct on Friday May 21, 2021 @05:37PM (#27240275)
It makes you feel dumb until you keep plugging away and suddenly you can use it and you're not sure why it's all making sense
Re:Frum – Fast and modern Ruby version manager written in Rust by rkangel on Friday May 21, 2021 @06:01PM (#27240513)
I love everything about what Nix is achieving, and have a lot of problems with how it achieves it.
Re:Frum – Fast and modern Ruby version manager written in Rust by schwartzworld on Friday May 21, 2021 @12:06PM (#27235856)
I'm curious about the name. Frum is Yiddish for 'religious'.
Re:Frum – Fast and modern Ruby version manager written in Rust by blacksmith_tb on Friday May 21, 2021 @12:32PM (#27236247)
Betting it's because it's a Fast RUby version Manager?
Re:Frum – Fast and modern Ruby version manager written in Rust by TaKO8Ki on Friday May 21, 2021 @01:42PM (#27237297)
HI. I'm an owner of this repository. You're right. And the reason why I chose the name frum instead of frm is that frm is hard to call and I don't feel attached to it.
Re:Frum – Fast and modern Ruby version manager written in Rust by wcarss on Friday May 21, 2021 @01:01PM (#27236709)
It almost definitely has nothing to do with David Frum[1], but that's where my own odd mind went first.

1 - https://en.wikipedia.org/wiki/David_Frum

Re:Frum – Fast and modern Ruby version manager written in Rust by catlifeonmars on Friday May 21, 2021 @05:52PM (#27240428)
Does it have anything to do with John Frum?

https://en.wikipedia.org/wiki/John_Frum

Re:Frum – Fast and modern Ruby version manager written in Rust by regularfry on Friday May 21, 2021 @12:26PM (#27236143)
I'd be intrigued to see a benchmark against chruby/ruby-install. Doing the shell config isn't where I'd assume the slow bit is.
Re:Frum – Fast and modern Ruby version manager written in Rust by DanielKehoe on Saturday May 22, 2021 @01:38AM (#27243827)
I'd also like to see a benchmark against chruby/ruby-install. I believe many developers moved from rbenv to chruby for speed.
Re:Frum – Fast and modern Ruby version manager written in Rust by DanielKehoe on Wednesday May 26, 2021 @03:29AM (#27287463)
I've written a guide to Install Ruby with Frum[0]. I think it's a great alternative to rbenv, RVM, chruby, or asdf.

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)."

[0] https://mac.install.guide/ruby/14.html

Re:Frum – Fast and modern Ruby version manager written in Rust by agumonkey on Friday May 21, 2021 @01:08PM (#27236806)
Odd to see pm for lang-a written in lang-b.

Esbuild comes to mind ?

Re:Frum – Fast and modern Ruby version manager written in Rust by hundchenkatze on Friday May 21, 2021 @04:03PM (#27239210)
Volta as well https://volta.sh/ – A Node version manager written in Rust.

I wonder if there's a Ruby bundler written in another lang?

Re:Frum – Fast and modern Ruby version manager written in Rust by kemiller on Friday May 21, 2021 @04:31PM (#27239559)
Talk about optimizing the wrong loop.