cocoa-xu / evision

Evision: An OpenCV-Erlang/Elixir binding
https://evision.app
Apache License 2.0
322 stars 22 forks source link

Proposal: To prevent the entire Erlang VM from crashing when Evision's NIF aborts #209

Open zacky1972 opened 11 months ago

zacky1972 commented 11 months ago

Hi,

I've just released SpawnCoElixir, which has only a feature that spawn cooperative Elixir nodes that are supervised:

https://hex.pm/packages/spawn_co_elixir

I hope this helps fix potential issues resulting from NIFs of Evision possibly aborting.

cocoa-xu commented 11 months ago

Hi @zacky1972, this looks awesome! I'll try this later today :)

cocoa-xu commented 11 months ago

I'll add this after #210 ~

josevalim commented 11 months ago

There is also the Unifex library, used by the Membrane team, which allows you to choose between nodes and NIFs transparently: https://github.com/membraneframework/unifex