Show HN: Burrito v1.0.0 – Wrap Elixir Apps into Standalone Binaries (github.com)

8 points by doawoo ↗ HN
Burrito has been in development for a long time, but just last night (PST) I finally gathered the confidence to push the project to Hex.pm (Elixir's official package manager) so everyone can easily use it.

Burrito is a Mix release tool that allows you to wrap your entire Elixir based application (including the Erlang VM runtime) into a single-file, standalone executable for MacOS, Linux, and Windows. It currently utilizes Zig to build a cross-platform wrapper around a self-extracting payload.

Burrito will grab pre-built Erlang VM builds from a build server I operate (https://beammachine.cloud) that will run on any Linux distribution (using musl libC) and any MacOS system (Apple Silicon/Intel bundled as fat binaries).

You can build for all platforms from Linux and MacOS. You can even compile a MacOS or a Windows binary on Linux! We also use `zig cc` to find NIFs inside your project, and re-compile them for the target platform.

Currently as a non-trivial proof of concept, one of the latest LSP editor plugins for Elixir, NextLS (https://github.com/elixir-tools/next-ls), is using Burrito to effortlessly deploy a single-file binary of the language server to thousands of people already.

Burrito was created to help folks use Elixir for applications outside of the standard Web App space. I hope it helps expand the type of projects people use Elixir for, and I'm excited to see what people create :)

1 comment

[ 2.4 ms ] story [ 10.1 ms ] thread
Hey, this is really awesome work, thanks for making it available.