[erlang-questions] Microsoft developer vision - functional programming

Zvi <>
Sat Oct 20 17:39:30 CEST 2007


this would work if all the data stored in the global VM heap, but in Erlang
b/c of Soft Real-Time constraint, each process has it's own heap, so you
can't just pass pointer to object from another process' heap, which can be
garbage collected any time.
 Erlang have some optimizations, for large binaries, which are stored in the
global heap, and using reference counting for garbage collection.

Zvi


Cameron Kerr-2 wrote:
> 
> On Fri, Oct 19, 2007 at 10:42:42PM +0200, Hugh Perkins wrote:
> 
> Please correct me if I'm wrong, but isn't one of the benefits of
> Erlang's (in particular) single-assignment restriction that you only
> need to pass around a pointer, and never need to copy the data (because
> the data cannot be modified once it is first assigned). Obviously, you
> would need to copy the data if sending to a different machine.
> 
> -- 
> Cameron Kerr <>
> Telecommunications Teaching Fellow
> University of Otago, New Zealand
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> 

-- 
View this message in context: http://www.nabble.com/Microsoft-developer-vision---functional-programming-tf4646804.html#a13311055
Sent from the Erlang Questions mailing list archive at Nabble.com.




More information about the erlang-questions mailing list