[erlang-questions] An NIF example (libiconv binding)

Dave Smith dizzyd@REDACTED
Thu Feb 18 15:04:10 CET 2010


A big thanks to the OTP team for the ErlNifResourceType! :) Indeed,
the NIF API is really quite nice now and once it has a way to send
messages to other processes, I think most of the ports I wrote will be
better done as NIFs (since I typically hand off to other threads for
processing).

Keep it up OTP team! :)

D.

On Wed, Feb 17, 2010 at 10:59 AM, Sverker Eriksson
<sverker@REDACTED> wrote:
> Aleksey Yeschenko wrote:
>>
>> There aren't many NIF examples, so I've created one:
>> http://github.com/iamaleksey/iconverl
>> It's a simple libiconv wrapper - it uses the latest NIF api (though
>> not  ErlNifResourceType  for the descriptors, yet).
>> Please fork it if you have something to add
>
> Nice!
>
> Would be neat with ErlNifResourceType though. Safer and simpler usage as you
> can skip "close". The garbage collector will take care of that.
>
> /Sverker, Erlang/OTP Ericsson
>
>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list