linusdm

linusdm

I’m trying out burrito. It seems to fit my needs to cross-compile a Phoenix application into a single self-extracting binary for Windows.

Are there any problems to be expected with dependencies that are not written in Elixir? I see there are solutions for NIF based dependencies (I’m not an expert at all on this matter!). I’m not sure how transparently this is handled (and if it’s a good idea in the first place).

I’m thinking of these dependencies in particular:

  • sqlite3 adapter
  • Nx, Exla, Explorer, etc. (e.g. the typical dependencies to run inference on a neural network). This could also fallback to a non-accelerated version of the inference, without GPU support, but at least Nx should be available.

Or more in general: what will make a non-Elixir dependency compile successfully for Windows, with burrito? Or are all such dependencies expected to just work out of the box?

Showing Posts 3 to 1

cmo

cmo

Righto. I think that is easier but I’m sure I’ve seen Jonaton mention that some things in the Nx ecosystem just won’t work on Windows. Best of luck :crossed_fingers:

linusdm

linusdm OP

Thx for the heads up.

I don’t necessarily want to build on Windows as the host platform, but rather want to compile for Windows as the target platform. The host can be macos or Linux.

Since most of thr Nx related libraries require some kind of binding to another language, I suspect this might not be smooth ride.

cmo

cmo

If you’re wanting to compile on a Windows machine:

You need Visual Studio Build Tools or Visual Studio installed.

scoop install coreutils make 7zip xz zig. If you don’t use scoop, install those things some other way.

Build from inside the Developer Command Prompt, which should become available as an option in Terminal after installing VS/VS Build Tools. If you don’t use Terminal then a) you should and b) find that shortcut - I think it shows up in the start menu.

I’m not sure how many of the Nx libraries will compile on Windows though.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

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
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews