[erlang-questions] Human readable errors in lists module
Zvi
exta7@REDACTED
Fri Feb 13 16:07:04 CET 2009
I was talking about parallel-comprehensions aka zip-comprehensions, not
parallelized comprehensions:
http://en.wikipedia.org/wiki/List_comprehension#Parallel_list_comprehension
Zvi
Ulf Wiger (TN/EAB) wrote:
>
> Zvi skrev:
>> I think instead of "fixing" lists:zipwith, it's better to add
>> parallel list comprehensions, i.e.:
>>
>> lists:zipwith(F, Xs, Ys) = [F(X,Y) || X<-Xs ; Y<-Ys].
>>
>> Note ";" instead of ",".
>
>
> This is actually more difficult than it seems
> at first glance.
>
> I went through parallelization of lists:map/2
> as an exercise in a recent presentation:
>
> http://ulf.wiger.net/weblog/wp-content/uploads/2009/01/damp09-erlang-multicore.pdf
>
> The things that need careful consideration are
> side-effects and exceptions. It's not obvious how
> a generic implementation should behave, as there is
> a cost/safety tradeoff.
>
> BR,
> Ulf W
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
--
View this message in context: http://www.nabble.com/Human-readable-errors-in-lists-module-tp21936024p21998151.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
More information about the erlang-questions
mailing list