Why elixir for an embedded device? Elixir treats binary as a data type. Sending a binary stream to a device can be trivial and elegant. Pretend that we have a device that requires 17 bits per message (like a MCP3008 analog input). We can send a start bit, followed by a mode bit, then 3 bits for sensor id, then 12 bits of empty bits, in a very succinct way1:
My phoenix-based project uses two
Dockerfiles. There is one for local
development and CI and another one for production. Ideally I would want one
Dockerfile; use the same image for local and production. But ease of
development is also important.