DEV Community

Susumu Yamazaki
Susumu Yamazaki

Posted on

2

Pelemay Backend (Aspirations for 2022)

Nx is "Numerical Elixir," which realizes multi-dimensional arrays (tensors) and numerical definitions for Elixir. Nx can have a backend. The default backend is the binary backend written in pure Elixir. EXLA, Elixir client for Google's XLA (Accelerated Linear Algebra), and Torchx, Elixir client for LibTorch (from PyTorch), have each backend. Such a backend can be implemented the behavior defined by Nx.Backend.

We researched and developed Pelemay, a native compiler for Elixir. We made presentations about it at Lonestar ElixirConf 2019 and ElixirConf US 2019. It can compile Elixir code with pipelined Enum.map into native code with SIMD instruction, just in time.

So, we propose to apply the Pelemay technology to Nx, Pelemay Backend: Image description

To be continued...

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay