Wed Mar 31 10:24:28 CEST 2010
On Wed, Mar 31, 2010 at 10:00 AM, William v Doorn
> Since I've been using Erlang, I've needed a function shuffle lists alot. Now
> I was wondering if there could be a C implementation of this method in maybe
> the lists module. Using this in raw erlang is much slower, and so I was
> going to use the erl_nif interface along with some other lists functions to
> make this faster. I want to know what you guys would think about
> implementing this into the lists module.
We are generally wary about including new functions into the lists modules.
Only functions that would be useful for many users will be considered for
Another thing is that we don't want the lists module to start loading NIFs
(we will probably never have any NIFs in the kernel and stdlib applications).
If a function deserves to be in the lists module and if it should be
implemented in C, we will implement it as an ordinary BIF.
What exactly does your shuffle function do?
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-patches