Showing results for Immutability - Developer Support

Nov 19, 2014
Post comments count0
Post likes count0

ImmutableObjectGraph has some big updates now, and more coming soon

Andrew Arnott
Andrew Arnott

I was able to work out a model for continued open source development of ImmutableObjectGraph -- at least in a limited way. This means that the 16 month silence on the public repo is over, and I was able to push a bunch of the commits I had been keeping internal to the public. For those of you not already familiar with the library/tool, you can c...

andarno.NETVisual Studio
May 7, 2013
Post comments count0
Post likes count0

Immutable Object Graph updates

Andrew Arnott
Andrew Arnott

In my last post, I introduced a T4 template that constructs efficient and quite capable immutable objects based on the simplest mutable type definition. I also mentioned that the published sample is (necessarily, ala T4 style) open source and hosted online. Two outsiders have already submitted pull requests that have been accepted. Some thoughtful ...

andarno.NETImmutability
Jan 8, 2013
Post comments count0
Post likes count0

Simple immutable objects

Andrew Arnott
Andrew Arnott

We’re all familiar with immutable collections now. But immutability is only as immutable as it is deep. And an immutable collection of mutable objects may not provide the depth you’re looking for. So how can one create an immutable object? Suppose you would define the mutable version like this: An immutable version might be defined ...

andarno.NETImmutability
Jan 7, 2013
Post comments count0
Post likes count0

Immutable collection algorithmic complexity

Andrew Arnott
Andrew Arnott

I received some feedback from my recent BCL blog post on the prerelease of the immutable collections that my algorithm complexity table left a few important entries out. Here is the table again, with more data filled in (particularly around list indexer lookup and enumeration): A noteworthy trait to call out here is that where a List<T>...

andarno.NETImmutability
Dec 19, 2012
Post comments count0
Post likes count0

Immutable collections now available

Andrew Arnott
Andrew Arnott

In previous posts, I discussed immutable collections. I’m pleased to say they are now available. Read my announcement on the BCL blog.

andarno.NETImmutability
Aug 29, 2011
Post comments count0
Post likes count0

Immutable collections with mutable performance

Andrew Arnott
Andrew Arnott

In my last post, I detailed the differences among read/write, read only, frozen and immutable collection types.  I described how immutable collections come with a hit to the garbage collector due to the garbage they generate during mutations.  I have a very positive update on that topic. My previous implementation for the immutable col...

andarno.NETImmutability
Aug 21, 2011
Post comments count0
Post likes count0

Read only, frozen, and immutable collections

Andrew Arnott
Andrew Arnott

[Update: a more recent post with new data on attainable performance of immutable collections] The topics of immutability and functional programming has fascinated me lately.  Mostly because of my work on the Visual Studio Common Project System (CPS) which is a large, highly multi-threaded code base that only remains sane because of its reli...

andarno.NETImmutability