mikowitz / xairo.v1

Elixir bindings for the cairo graphics library
5 stars 0 forks source link

Port vs NIFs #33

Closed mikowitz closed 2 years ago

mikowitz commented 2 years ago

Would this be any cleaner? Just have a loop running and keep returning a reference? This might actually add complexity, since we don't expect anything to be particularly long running.

Porcelain would help with this on the Elixir side

reference for basic getting started: https://stackoverflow.com/questions/44050019/using-elixir-to-talk-to-rust-via-ports-what-am-i-getting-wrong

mikowitz commented 2 years ago

I'm not convinced this is the right approach, but leaving the ticket here for now as a reminder

mikowitz commented 2 years ago

Nah, I think the NIF version is cleaner.