Replies: 1 comment
-
|
some logs when installing Bun using the provided binary $ which mise
/home/user/.local/bin/mise
$ mise --version
_ __
____ ___ (_)_______ ___ ____ ____ / /___ _________
/ __ `__ \/ / ___/ _ \______/ _ \/ __ \______/ __ \/ / __ `/ ___/ _ \
/ / / / / / (__ ) __/_____/ __/ / / /_____/ /_/ / / /_/ / /__/ __/
/_/ /_/ /_/_/____/\___/ \___/_/ /_/ / .___/_/\__,_/\___/\___/
/_/ by @jdx
2025.11.7 linux-x64 (2025-11-20)
$ mise install bun@1.3.0
mise bun@1.3.0 download bun-linux-x64-baseline.zipthis one when building from source using the above env variable $ which ./mise
/mnt/workspace/misc/mise/target/serious/mise
$ ./mise --version
_ __
____ ___ (_)_______ ___ ____ ____ / /___ _________
/ __ `__ \/ / ___/ _ \______/ _ \/ __ \______/ __ \/ / __ `/ ___/ _ \
/ / / / / / (__ ) __/_____/ __/ / / /_____/ /_/ / / /_/ / /__/ __/
/_/ /_/ /_/_/____/\___/ \___/_/ /_/ / .___/_/\__,_/\___/\___/
/_/ by @jdx
2025.11.7 linux-x64 (2025-11-22)
$ ./mise install bun@1.3.0
mise bun@1.3.0 download bun-linux-x64.zip |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I understand the currently proivided binary, at least on Linux, is more of a "baseline" version (taking example/parallel from something like Bun) which meant to be more compatible with more machine that do not have specific instruction.
However the drawback is that for something like Bun installation detection, as shown here
https://github.com/jdx/mise/blob/main/src/plugins/core/bun.rs#L189-L214
permalink (in case changes):
mise/src/plugins/core/bun.rs
Lines 189 to 214 in 58a4276
means that, to my understanding, specifically on the "avx2" check won't ever to be true since it's not detected at build time
causing the non "baseline" result in the lines below to never resolved
https://github.com/jdx/mise/blob/main/src/plugins/core/bun.rs#L172-L186
permalink (in case changes):
mise/src/plugins/core/bun.rs
Lines 172 to 186 in 58a4276
resulting in Bun installation to always download the
-baselineversion instead the more optimized version, it is also confirmed when building from scratch as it doesn't "see" the "avx2" feature, I have to do something like line below to detect the "avx2"potentially can be solved by this too if you decide to install through cargo
RUSTFLAGS="--codegen target-cpu=native" cargo install mise --profile serioushowever it would be nice if mise provide an optimized version, in this case one with avx2 support, alongside the "baseline" and have the installation shell script to have detection like what Bun do from the link below on line 105
https://github.com/oven-sh/bun/blob/main/src/cli/install.sh#L105-L118
permalink (in case changes):
https://github.com/oven-sh/bun/blob/f31db64bd424a7d3ed69319f3e279f7b5699a403/src/cli/install.sh#L105-L118
Beta Was this translation helpful? Give feedback.
All reactions