erl_nif improvements

Michal Ptaszek michal.ptaszek@REDACTED
Mon Jan 4 19:56:14 CET 2010


Hi all,

First of all I would like to say a big "thank you" 
to all the people who decided to introduce NIFs 
into Erlang. Together with the real-time low-level 
(i.e. assembly) programming it was on my 'most-wanted' 
list here. 

Recently I am playing with the Erlang-Python bindings 
(they are still in a very alpha-version but they are 
working well - called Pytherl and available at 
http://bit.ly/7HZBAm) which should allow users to reuse 
Python libraries in Erlang projects. However, using 
the very narrow NIF exports it is a tedious task to 
play with. 

Moreover I have seen a lot of changes in the official 
github repository (e.g. added enif_get_double or enif_get_tuple).

However, I would like to ask if there are any plans to 
extend the list of the C functions with e.g.:
- enif_get_atom/2 (returning const 'char *')
- enif_get/set_tuple_element/4
- enif_make_tuple/list/(ErlNifEnv env, ERL_NIF_TERM erl_term, 
int count, ERL_NIF_TERM **elements) (not a variadic versions. 
As far as I read the NIFs implementation it should be a very
simple change/copy-paste in the code)

Best regards,
Michal 
---------------------------------------------------

---------------------------------------------------

WE'VE CHANGED NAMES!

Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.

www.erlang-solutions.com



More information about the erlang-questions mailing list