why

why

Hi,

I’m trying to decide on an OTP version for a new project.

Would you say OTP26 is a good choice at this point? By that I mean supported broadly in the eco system and with limited head scratching “why does x -which used to work so well for me in the past- no longer work”?

Thank you!

Showing Posts 1 to 10

wmnnd

wmnnd

If you are starting a new project, you might as well start with the latest versions of OTP and Elixir, because it’s unlikely that in the future we’ll move back to older versions of OTP :wink:

JeyHey

JeyHey

It seems the FreeBSD package of Erlang only supports OTP 25. Maybe there are some issue to be fixed.

D4no0

D4no0

I would recommend to use rtx or asdf to manage elixir/erlang versions to avoid having problems with dependencies, OTP-26 is present there.

dimitarvp

dimitarvp

I remember some issues in the very first few patch releases but nobody is mentioning them lately so I am pretty sure that installing OTP 26.1 is safe nowadays.

why

why OP

Thank you all for the thoughts :+1:

I ended up going with OTP 24, as it turned out that is the version of the official package for Ubuntu 22.04.

I was trying to go a bit more ‘up to date’, but Erlang Solutions’ pre-built packages seem to have certificate problems (at least for me). I try to avoid asdf, etc, as I like to stay close to the source of things, where possible. Building from source would be a viable alternative, though.

Installing Elixir was a bit more complicated, as the official Elixir package on Ubuntu 22.04 is 1.12, which is too low for Phoenix. So I used the official pre-compiled packages from the Elixir Github releases page. Unzip, add to path, done.

It would be so nice (and a great developer experience), if the Elixir package on Ubuntu was at least the version Phoenix needs… But it’s probably not trivial to get an official Ubuntu package updated…

adamu

adamu

The official docker erlang image hasn’t been manually updated (as is required for every release) to the latest OTP version yet. The hexpm images are fine as always though.

dimitarvp

dimitarvp

That’s exactly what asdf and rtx do (I recommend rtx). They build from source.

There’s no need to be conservative about using version managers. They fill a much-needed niche.

12
Post #7
nallwhy

nallwhy

This is a part of my Dockerfile. You can find the URLs of the sources codes.

# Install Erlang
ARG OTP_VERSION
WORKDIR /tmp
RUN mkdir -p otp && \
    curl -LS "https://github.com/erlang/otp/releases/download/OTP-${OTP_VERSION}/otp_src_${OTP_VERSION}.tar.gz" --output otp.tar.gz && \
    tar xfz otp.tar.gz -C otp --strip-components=1
WORKDIR /tmp/otp
RUN ./configure && make && make install

# Install Elixir
ARG ELIXIR_VERSION
ENV LC_ALL en_US.UTF-8
WORKDIR /tmp
RUN mkdir -p elixir && \
    curl -LS "https://github.com/elixir-lang/elixir/archive/v${ELIXIR_VERSION}.tar.gz" --output elixir.tar.gz && \
    tar xfz elixir.tar.gz -C elixir --strip-components=1
WORKDIR /tmp/elixir
RUN make install -e PATH="${PATH}:/usr/local/bin"
dimitarvp

dimitarvp

Or you can use HexPM’s Docker image.

why

why OP

Thanks for the Docker tips!

Re asdf: Maybe it’s silly, but I’m always a bit worried that somebody might be able to slip a commit in that does something naughty. I say this based on what I see in the npm world…

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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
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

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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
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

Latest on Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews