Comment on I let LLMs write an Elixir NIF in C; it mostly workedparentComments−overbring_labsOP1yI mean, you aren't wrong. I'm looking into converting it into Rust with Rustler right now.−abrookewood1yYep, was wondering why you didn't go down that path in the first place. Seems way safer.−leansensei1yIt's because the most familiar thing to me that uses a NIF was Exqlite, so that was my starting point.Using Rust and Rustler turned out to be way easier and it also now works across Elixir versions 1.14 to 1.18.−abrookewood1yGreat outcome :)−overbring_labsOP1yTruly, way better than before: https://github.com/waseigo/disk_spaceAnd it now runs on everything, across more Elixir and Erlang/OTP versions than before!
Comments
I mean, you aren't wrong. I'm looking into converting it into Rust with Rustler right now.
Yep, was wondering why you didn't go down that path in the first place. Seems way safer.
It's because the most familiar thing to me that uses a NIF was Exqlite, so that was my starting point.
Using Rust and Rustler turned out to be way easier and it also now works across Elixir versions 1.14 to 1.18.
Great outcome :)
Truly, way better than before: https://github.com/waseigo/disk_space
And it now runs on everything, across more Elixir and Erlang/OTP versions than before!