[erlang-questions] '--' BIF to be used with caution?

Hynek Vychodil <>
Tue Feb 10 09:44:20 CET 2009


On Mon, Feb 9, 2009 at 1:20 AM, Richard O'Keefe <> wrote:

>
> On 6 Feb 2009, at 3:30 am, Malcolm Dowse wrote:
> >
> > I don't mind too much if '--' remains O(N^2). But the fact that it
> > made ERTS unresponsive is more of a worry, to me, because this
> > seemed to go against the spirit of the language.
>
> Since -- is seriously inefficient (you can easily get O(|l1|.lg|l2|)
> in pure Erlang, so what's the point of doing O(|l1|.|l2|) in C?),
> why not fix the blocking issue by just turning it into ordinary
> Erlang code?  Is there any reason why an operator can't be implemented
> in Erlang?


It's easy, constants for serious amount |2|.

>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



-- 
--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill your
boss.  Be a data hero!
Try Good Data now for free: www.gooddata.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090210/69817d9e/attachment.html>


More information about the erlang-questions mailing list