Richardm

Richardm

Hi,

Is asdf still the best way of installing Elixir and Erlang on a Linux system?

Thanks

Richard

Showing Posts 1 to 10

DaAnalyst

DaAnalyst

I think so. I have Elixir, Erlang, Java, Nodejs and Rust all installed and managed with asdf.

dimitarvp

dimitarvp

Nope, it’s slower and with less features than mise. It’s superior in every way, though using asdf is not likely to stop you from developing your project of course.

22
Post #2
ltd

ltd

Having containers with all your dev stuff is just wonderful after you get it all set up. I’m a solo developer and it’s still a win, but it will take you a weekend to iron out all your mount points, editor integrations etc.

jamiecurle

jamiecurle

I did use asdf for a while, but I recently switched over to mise. It feels faster and doesn’t seem to get in my way as much. I may be a weird edge case but I always found that asdf always seemed to insert itself into my workflow and block me on silly things. Granted I could have went and learned asdf a little better, but I prefer my tooling to be straight forward and not get in my way.

10
Post #4
acrolink

acrolink

For me it is doing the job.

thiagomajesk

thiagomajesk

Is that still the case, though? IIRC, they migrated to Go some time ago. I tried mise a while back, and I couldn’t spot that big of a difference. What makes you like mise more than asdf these days - “it’s superior in every way” is kinda broad haha XD

ricardo-valero

ricardo-valero

If you’re already using Nix (or open to trying it), this is all you need in a flake.nix:

{
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  outputs = {nixpkgs, ...}: let
    systems = nixpkgs.lib.systems.flakeExposed;
  in {
    devShells = nixpkgs.lib.genAttrs systems (system: let
      pkgs = nixpkgs.legacyPackages.${system};
      beam-pkgs = pkgs.beam.packages.erlang_26;
    in {
      default = pkgs.mkShell {
        inherit (beam-pkgs) elixir erlang;
      };
    });
  };
}

Then nix develop and you’re done. Works the same on Linux and macOS.

13
Post #7
dimitarvp

dimitarvp

I haven’t checked it after the rewrite so, fair call out, thank you.

“Superior in every way” was mostly coming from it having more features that I made use of, really. Maybe “bigger scope” would have been a better formulation.

ghannam80

ghannam80

It depends , I have recently installed Erlang/Elixir on Oracle Linux 8.5 and I had to use Kerl & Kiex because I do not want to risk updating some dependent packages for asdf “Latest one is using Go” in case the older versions is used by other applications

aseigo

aseigo

It is still the case, yes, at least imho.

While mise does play with your paths, it doesn’t use “shims” to make things work, which is one less thing to go wrong. Mise’s UX is also a bit more ergonomic and overall it is (still) faster IME.

We’ve moved our entire dev team over to mise, as a result, and it’s been happy times.

One place both asdf and mise have given fits is with the expert LS. They’ve had a few bugs with asdf and mise (and sometimes specific shells used with them), but it turns out that mise provides a good solution: set the LS command to mise exec -- expert --stdio, voila, not more breakages as expert will get the right environment set up for it without it having to figure out what the installer (mise, in this case) has done.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews