[plt-scheme] Native code generation and immutable pairs

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Fri Mar 10 09:11:18 EST 2006

--- Lauri Alanko <la at iki.fi> wrote:

> What's so horrible about mutable cons cells, anyway? They
> are just
> two-element structures. Do you want to make structures
> immutable as
> well?

In the presence of mutation analysis becomes harder,
therefore optimisation is harder.  Whether any of these
optimisations are actually performed by any compiler is a
different story.

In the presence of mutation message passing concurrency
requires data be copied, which is rather expensive.  This
is one reason why Erlang forbids mutation.


Email: noelwelsh <at> yahoo <dot> com   noel <at> untyped <dot> com
AIM: noelhwelsh
Blogs: http://monospaced.blogspot.com/  http://www.untyped.com/untyping/

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

Posted on the users mailing list.