4 ms·
Mise: a polyglot tool version manager
- AMCMneCy 3y agoCan we say that `mise` is just a wrapper over `pyenv`, `asdf` and `kerl`?
- figmert 3y agoNo, mise is compatible with asdf plugins, but it is its own implementation. If the plugin uses pyenv (I believe the python plugin does) then it will use that. But otherwise it's not a wrapper. E.g. the asdf golang plugin downloads the files from https://go.dev/dl/ https://go.dev/dl/. It entirely depends on the plugin itself.
- pdimitar 3y agoUsing it for several months and liking it a lot. No shims, just PATH entries. And the slight overhead introduced by shims is gone as a result.
- trallnag 3y agoMise uses asdf, which heavily relies on shims. But you are saying that mise does not use shims?
- lervag 3y ago`mise` does not use shims by default, but it does have support for it. See https://mise.jdx.dev/dev-tools/shims.html https://mise.jdx.dev/dev-tools/shims.html.
- pdimitar 3y agoWhere are you getting "mise uses asdf" from? mise is simply compatible with all asdf plugins. Not the same thing. It's even said almost at the top of the README.md in the "30 seconds demo" section: "The following shows using mise to install different versions of node. Note that calling which node gives us a real path to node, not a shim." https://github.com/jdx/mise?tab=readme-ov-file#30-second-demo https://github.com/jdx/mise?tab=readme-ov-file#30-second-dem... So yes, mise does not use shims. It only manipulates $PATH. I did benchmarks a while ago and that definitely and consistently has shaved some milliseconds off of the startup times of my tools.
- oakesm9 3y agoYou may have out of date information there. Mise was previously jdx and it used to use some of asdf plugins directly. Most of those have now been replaced by built in mode plugins for the popular runtimes. I believe it still has the option to use asdf plugins if you want to though.
- khimaros 3y agoi think you mean previously "rtx"
- jdxcode 3y agoI was actually thinking today that shims and PATH at the same time might be the best of both worlds... though that's just a funny thought exercise I'm having right now. If some brave soul is out there and wants to experiment, please let me know how it works out :)
- pdimitar 3y agoPlease don't, I like mise more than asdf exactly because of that simplicity! And because it's written in Rust, not going to lie.
- petr25102018 3y agoStarted using it recently, works great. Very nice way to e.g. define a Python version and have a venv created automatically in a location you want.
- ducdetronquito 3y agoI just discovered it this morning and it works like a charm as an asdf replacement for my Python setup at work. It also replaces "just" as a task manager for me which is very pleasant. The fact that the python plugin uses precompiled Python binaries by default instead of building them from source remove common issues I had with the asdf's python plugin at work with missing dependencies. Just so you know, I encountered two little quirks that needed a fix: - "Backspace Key Doesn't work in Python REPL": https://github.com/indygreg/python-build-standalone/blob/main/docs/quirks.rst#backspace-key-doesnt-work-in-python-repl https://github.com/indygreg/python-build-standalone/blob/mai... - An issue with the mise-poetry plugin: https://github.com/mise-plugins/mise-poetry/issues/9 https://github.com/mise-plugins/mise-poetry/issues/9 I will see how it goes in the long run, but I really like it so far :)
- jdxcode 3y agoThat issue is a real bear right now, probably our top problem. Feedback on precompiled pythons has been super positive and in fact the top feature request I've had several duplicates for is the ability to _force_ mise to use the precompiled binaries. If anyone thinks they can crack our portable pythons running poetry I'll buy them a steak. It is funny to me something can so well liked while also causing a lot of problems. Maybe not too dissimilar from the whole rtx -> mise debacle :p
- kdtsh 3y agoI’ve been using mise for a few months, it’s great. I got into it when I was looking for a way to consolidate my collection of dev tools including pyenv and jabba; I found that sdkman didn’t work out of the box for me for reasons I never bothered to figure out, and it’s basically a superset of the features of asdf.
- habosa 3y agoHaven’t installed it yet but this looks fantastic. The combination of tools, env, and tasks is a perfect magic trio of things almost every dev machine needs. The author has done a great job of addressing a need while keeping things simple, it’s clear that this is a useful tool that knows how it fits in.
- throwaway984393 3y ago[dead]
- llimllib 3y agoI switched from asdf to mise after a comment on lobste.rs[1] suggested I do so a few months ago, and I have been very happy with it. It sands off some of asdf's sharp UI edges and provides a somewhat larger but still reasonable feature set; I've also replaced most of my direnv[2] usage with it. The mise -> asdf comparison page is useful[3] 1: https://lobste.rs/s/66uxbj/how_love_homebrew#c_mvmsjp https://lobste.rs/s/66uxbj/how_love_homebrew#c_mvmsjp 2: https://direnv.net/ https://direnv.net/ 3: https://mise.jdx.dev/dev-tools/comparison-to-asdf.html https://mise.jdx.dev/dev-tools/comparison-to-asdf.html
- zokier 3y agoTbh I don't find their comparison to asdf particularly compelling. While the asdf shims have downsides, besides that I think I prefer the more principled and tightly scoped approach that asdf has. > mise makes heavy use of aliases so you don't need to remember if it's mise plugin add node or mise plugin install node. If I can guess what you meant, then I'll try to get mise to respond in the right way. I prefer that there is one, correct, way of doing things and my tools not trying to guess what I want. If there are two different commands they should do two different things and it should be clear what the difference is. Keeping track of different aliases is just additional mental overhead to me. I acknowledge that all this is very much a preferential thing, so I guess if this works for author then more power to them. https://mise.jdx.dev/dev-tools/comparison-to-asdf.html https://mise.jdx.dev/dev-tools/comparison-to-asdf.html
- eviks 3y agoYou don't need to keep track of aliases, can just as easily use your "one correct" way and never learn/forget the alternatives, so what's the downside? In general, the overhead of remembering precise tool-specific command is higher that using some common knowledge from other tools you remember that are aliased in this tool
- e12e 3y agoDoesn't this pollute auto complete and by extension discoverability?
- zokier 3y ago> You don't need to keep track of aliases, can just as easily use your "one correct" way and never learn/forget the alternatives, so what's the downside? Sure if you work in an isolated bubble and don't ever read the docs, google things, discuss with other people (or llms I suppose these days). But that's not really realistic... In practice you will be encountering the variations all the time, and it'll just add friction. > In general, the overhead of remembering precise tool-specific command is higher that using some common knowledge from other tools you remember that are aliased in this tool As polyglot developer I simply don't find that to be the case, small syntax differences are not problem, its far bigger problem when I read the docs and see five similar commands and need to figure out if they are aliases, if there are some subtle differences, and if one of those is the canonical choice.
- jdblair 3y agoFrom my limited experience, python version management is crazy! I've written medium sized personal python projects. I wasn't so concerned with reproducibility (and I didn't want to bog down my progress) but I still had to write startup scripts that would set up the environment correctly or I would be bit by something unexpected. I write this from the perspective of a multi-decade c and c++ developer, take this for what you will.
- simonw 3y agoWhich package management strategy did you use? Virtualenv + pip + requirements.txt, Poetry, something else?
- jdxcode 3y agoI bet you half of the codebase is dedicated to support python's bizarre idiosyncrasies.
- akvadrako 3y agoIf you find the python specific tooling too weird just use OCI containers. The packaging and runtime is isolated enough you shouldn't run into dependency or installation issues.
- eviks 3y agoGreat tool, wish it a Windows support in the bright cross-platform future!
- zellyn 3y agoAnyone know offhand how this compares to Hermit? https://cashapp.github.io/hermit/ https://cashapp.github.io/hermit/
- khimaros 3y agoi've been using this for several months to manage python, rust, flutter, and go projects. one of my favorite features is automatic entering of python virtualenv (without spawning a subshell) when config contains `python = {version=..., virtualenv=".venv"}` it has been working very reliably, though offline users should be aware of default network timeout which can affect user experience when entering a mise configured path (see `MISE_FETCH_REMOTE_VERSIONS_TIMEOUT=0s`) my biggest complaint is a philosophical one. it conceptually becomes a distribution package manager, which leads me to think of tools like (nix-based) devbox and devenv which ar more holistically designed and can manage service infrastructure as well.
- jdxcode 3y ago> offline users this is a use-case I should be more thoughtful around. I do try to never ever block on HTTP for anything where you aren't explicitly calling mise—so like `mise ls-remote` obviously is going to block, but if mise is just running to update PATH behind the scenes it should never, ever cause any significant delay. If you ever see this happen try to let me know—though I understand that by its nature that can be a very difficult thing to reproduce. > conceptually becomes a distribution package manager I talk about this a lot in private but I don't think it's in any docs but this is expressly not something I would ever do. Mise stops at your system. I'll never try to install openssl or something to patch your system or get libraries in place. Nix is the tool for people that want that sort of thing. IMO the biggest competitor to mise isn't asdf, it's nix and docker and mise is the polar opposite of both. That's not to say those tools don't have their place but at their core: docker and nix try to _bypass_ your environment by building their own. Mise augments your environment which means you don't need to figure out how to get stuff into or out of the environment. You environment is what it was before, just with tools, env vars, and tasks to make working in that environment easier. However yes, this does mean you may be missing a shared object from time to time. Or need to install libxml. But at least you don't need to setup rsync.
- avree 3y agoUsed it since it was called rtx - a great tool.
- tmountain 3y agoAh, another Nix competitor… /sarcasm
- johnathon023 3y agoMise has quickly become my favorite local development tool. Only thing is I wished it had windows support, so my (misguided) coworkers could use it too.