Re:Pyenv – lets you easily switch between multiple versions ...
by delduca on Monday March 25, 2024 @09:42AM
(#39816191)
https://asdf-vm.com/ ASDF is better because it works with many more languages, other than only Python, like Rust, Go, Node, etc, and other tools, such as AWS/Google/Firebase/Azure CLIs.
[ Parent
| on HN ]
Re:Pyenv – lets you easily switch between multiple versions ...
by jmondi on Monday March 25, 2024 @11:44AM
(#39817768)
You should check out mise (https://github.com/jdx/mise), it is very similar to ASDF (multi langs) but written in Rust instead of Bash, and doesnt use the shim technique that ASDF does. My shell startup went from a couple hundred ms to a couple dozen ms.
Re:Pyenv – lets you easily switch between multiple versions ...
by antihero on Monday March 25, 2024 @10:12AM
(#39816585)
Yeah, ASDF is fantastic, I'm glad stuff like pyenv and rvm existed and paved the way for it but ASDF is the way to go nowadays.
Re:Pyenv – lets you easily switch between multiple versions ...
by llimllib on Monday March 25, 2024 @10:33AM
(#39816840)
asdf for python is a wrapper around pyenv, it didn't "pave the way", it's an important part of asdf.
(Also I like mise better currently: https://github.com/jdx/mise)
Re:Pyenv – lets you easily switch between multiple versions ...
by secstate on Monday March 25, 2024 @10:56AM
(#39817111)
Curious what you like about mise! I've been a strong advocate for asdf for a few years now. Aside from smooshing together tools that are often used together, but not always (direnv, make), I can't see what mise adds to the picture. And I like still having direnv for what direnv does and make for make does, rather than an all-in-one.
Re:Pyenv – lets you easily switch between multiple versions ...
by llimllib on Monday March 25, 2024 @11:13AM
(#39817327)
the asdf CLI has really sharp edges and feels kind of aggressively unhelpful.
Even if you just use mise as an asdf alternative, it has a nicer CLI and interacts with the same plugin ecosystem more smoothly.
(I've found it to be an improvement on direnv, but I still use make)
the comparison to asdf page has more: https://mise.jdx.dev/dev-tools/comparison-to-asdf.html
Re:Pyenv – lets you easily switch between multiple versions ...
by secstate on Monday March 25, 2024 @02:15PM
(#39819554)
Damn. I'm convinced. The asdf CLI was always a bit of a pain ... mostly I don't interact with it that often. But mise seems light years better designed. Thanks!