Saturday, September 19, 2009

Lock Free Programming

I've been following this blog for a while:
http://bartoszmilewski.wordpress.com/

Generally a lot of good stuff there, but lately I've become interested in lock free programming and reasoning in a relaxed memory model.

Here's a taste:
http://bartoszmilewski.wordpress.com/2008/11/05/who-ordered-memory-fences-on-an-x86/

I find it interesting that the textbook linked on the page:
"The Art of MultiProcessor Programming"
Has this in the reader reviews:

The content is perfect and deserves 5 stars and I agree with the 5 stars comments,
but the code deserves the only 3 stars as there are a lot of flaws in it - the code even contradicts its description( both in the book and in the code downloaded from a site )...


This punctuates that the subject is so dense and counter-intuitive that even the experts in the field can't seem to get it right.

Chilli Recipe

Bought a crock pot, and made my first batch of chili today.
It went something like this:

.25Lb Bacon.
1 LB Beef.
(Cook Bacon (medium not crispy))
Lightly brown Beef in bacon.

1 Can Kidney Beans.
1 Can Black Beans.
1 small can Tomato Paste.
1 Can Stewed Tomato..
1/2 Onion Diced.
1 Fresh Tomato Whole.
3 cloves garlic diced.
10 oz Beef Broth.

1/2 Tbl Cumin, Oregano, Paprika.
1-2 Tbl Chili Powder.
4 diced Limon Habenero's (Lemon Yellow Habenero) (My fav hot pepper)

Slow cook on low overnight.
Serves... 6ish? TBD