Transition from .NET Core/C# to Elixir with NIFs

107
clicks
Transition from .NET Core/C# to Elixir with NIFs
The author mrmarbury is considering the migration of a C# application to Elixir for various reasons that are beyond the scope of the discussion. The approach involves setting up a basic Elixir application (potentially a Phoenix API without views) and leveraging NIFs to interface with the existing C# functionality. mrmarbury suggests incrementally re-implementing each feature in Elixir and replacing the corresponding NIFs with native Elixir implementations. Despite knowing the limitations of NIFs, mrmarbury is particularly interested in understanding whether it's feasible to call C# code with a NIF, whether this method could quickly establish a running application, and if there are any case studies or experiences shared by others who have attempted similar migrations. The author also seeks advice on how to approach this gradual re-implementation, given the extensive amount of code to be translated and time constraints dictated by business needs. The comment by jdugaduc suggests considering Inter-Process Communication (IPC) or ports as an alternative to NIFs, hinting at better compatibility with Elixir's principles.

© HashMerge 2024