[erlang-questions] Representation of a map in bytecode?

Dustin Sallings dustin@REDACTED
Sat Sep 15 06:44:24 CEST 2007


On Sep 14, 2007, at 21:02, Hugh Perkins wrote:

> How is a map represented in bytecode?  To what extent is it clearly
> identifiable as a map, directly from the bytecode?
>
> Kindof contemplating to what extent it could be interesting/useful/fun
> to make a fork of Erlang that automatically parallelizes maps across
> available processor cores.

	Do you mean lists:map/{2,3}?  It'd be trivial to write your own map  
functions to use in place of lists:map.  If you wanted to have it  
replaced wholesale, then you'd need to patch the lists module, of  
course.

-- 
Dustin Sallings





More information about the erlang-questions mailing list