Re: Are NIF resources meant to be destroyed immediately on GC?
Sean Hinde <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <[email protected]> |
>> I agree. My use case for this was building a nif for the oracle oci bindings. > > Uhm... But this is exactly what ports are supposed to handle and it's > exactly how they work. Why shoehorning NIFs here? For sure we could have used a port. I think some earlier version of the library used a port. NIFs involve a whole lot *less* shoehorning though - the programming model of NIFs is really so much nicer than all the complexity of building a multithreaded port program. Why write all your own when dirty NIFs are so beautiful. Sean > > -- > Stanislaw Klekot