Shipping embedded erlang application in native applications on the OS?

Hi,

I’ve been looking at GRiSP, which provides a way to run Erlang on bare metal and also supports Linux.

My question is: are there today any state-of-the-art approaches to embed Erlang inside native applications?

The goal would be to ship an application together with Erlang as a native app on macOS, Windows, and possibly iOS and Android.

I can already achieve this with some custom plumbing, but my main concern is the size of an Erlang release. In practice, it is around 20 MB, which is quite large for this kind of use case. Ideally, I would like to bring it down to something in the 5–10 MB range.

Does anyone have experience with this, or recommendations on how to reduce the footprint significantly?

Thanks in advance.