I don’t know anything about Elixir, but Nx
sounds really cool!
Python has a similar project called numba
which uses Just-In-Time (JIT) compilation, and can target graphics cards.
A quick search for Elixir on this forum finds this project: ElixerHTM: new HTM implementation