Skip to content

Refactor EXLA NIFs to use Fine #1581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 19, 2025
Merged

Refactor EXLA NIFs to use Fine #1581

merged 5 commits into from
Feb 19, 2025

Conversation

jonatanklosko
Copy link
Member

While working on pythonx, I built a small C++ library to reduce the amount of boilerplate necessary for encoding/decoding terms between Elixir and C++, providing conveniences around resources, and more. I've just extracted it into elixir-nx/fine.

This PR rewrites EXLA NIFs. I used this to further validate Fine, and given the amount of removed code, I believe it makes for a good case. The most important features is encoding/decoding based on NIF signature, and managing resources.

Also, while rewriting the resource management, I noticed a few possible memory leaks, which should now be addressed.

@jonatanklosko jonatanklosko merged commit 5d30718 into main Feb 19, 2025
8 checks passed
@jonatanklosko jonatanklosko deleted the jk-fine branch February 19, 2025 10:21
TomasPegado pushed a commit to TomasPegado/nx that referenced this pull request Mar 31, 2025
TomasPegado pushed a commit to TomasPegado/nx that referenced this pull request Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants