Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Brian Bondy
Hub FS
Full List

Browse by Tags

All Tags » Immutable » C#   (RSS)
Immutable vs. Mutable Collection Performance
One argument I commonly hear against immutable collections is they are slow.  I’ve held the opposite belief for some time but shamefully had yet to look at actual numbers on the CLR.  Tonight I decided to change that by benchmarking one of my Read More...

Posted Monday, April 06, 2009 8:00 AM by Jared Parsons | 6 Comments

Filed under: , ,

Why are thread safe collections so hard?
Writing a collection which is mutable, thread safe and usable is an extremely difficult process. At least that’s what you’ve likely been told all through your schooling. But then you get out on the web and see a multitude of thread safe lists, maps and Read More...

Posted Wednesday, February 11, 2009 8:00 AM by Jared Parsons | 52 Comments

Immutable Collections and Compatibility with Existing Frameworks
When developing my immutable collections library , I spent a lot of time on usability. After all, if a library is not useful then what’s the point? A big portion of usability is being able to work with existing frameworks and technologies. For .Net and Read More...

Posted Wednesday, December 10, 2008 8:00 AM by Jared Parsons | 3 Comments

A Lesson in Serialization
A few days ago, I recklessly added a [Serialization] attribute to a few of my immutable collection types.  I needed to pass data between AppDomain's and adding [Serialization] was the quick and dirty fix.  Compiled, ran and I didn't think much Read More...

Posted Tuesday, September 02, 2008 8:00 AM by Jared Parsons | 2 Comments

Filed under: , , ,

Immutability and ReadOnlyCollection<T>
I am a huge fan of read only/immutable collections and data. Hopefully the increased exposure through the blogosphere alerted users to the advantages of this type of programming for the appropriate scenarios. I wanted to discuss ReadOnlyCollection<T> Read More...

Posted Tuesday, April 22, 2008 8:42 AM by Jared Parsons | 1 Comments

Filed under: , , ,

PipeSingleReaderNoLock
Previously we discussed a multi-thread safe queue like data structure using locks as an internal synchronization mechanism. This time we'll look at a version requiring no locks. In the previous version, locks were used to synchronize access to an underlying Read More...

Posted Monday, March 03, 2008 12:46 AM by Jared Parsons | 0 Comments

Filed under: , ,

Tuples Part 7: Mutable Tuples
Part 6 left us with comparable tuples.  At this point, the Tuple class is functionally complete.  There will be a little more done with the debugability and overall fit into larger projects.  But otherwise it is sound.  Now the focus Read More...

Posted Wednesday, January 23, 2008 2:56 AM by Jared Parsons | 1 Comments

Filed under: , , ,

Tuples Part 1
A tuple in computer science can be described as a set of name/value pairs. In some cases it can be described as simply a set of values that are accessible via an index [1]. Previously I discussed how to create a Tuple inside of PowerShell . This series Read More...

Posted Thursday, January 03, 2008 11:25 AM by Jared Parsons | 6 Comments

Page view tracker