digitalmars.D - Joe Duffy's "Thoughts on immutability and concurrency"
- Andrei Alexandrescu (3/3) Jul 28 2010 This blog entry looks interesting:
- Jesse Phillips (3/8) Jul 28 2010 I must not be understanding something in his use of immutability. For hi...
- bearophile (7/8) Jul 28 2010 To know the answer you need to know what a piece-table is, here you can ...
- Jesse Phillips (2/12) Jul 28 2010 Forgot to look that up after I had finished the article. Thanks for the ...
This blog entry looks interesting: http://www.bluebytesoftware.com/blog/PermaLink,guid,7a57f623-d65d-4212-973d-29bdcf61dd3a.aspx Andrei
Jul 28 2010
Andrei Alexandrescu Wrote:This blog entry looks interesting: http://www.bluebytesoftware.com/blog/PermaLink,guid,7a57f623-d65d-4212-973d-29bdcf61dd3a.aspx AndreiI must not be understanding something in his use of immutability. For his spellchecker example he suggested making a copy of some portion of the document into an immutable data-structure so that it can be shared without locks or copying. How is this better than message passing of mutable data? I suppose you can then pass this immutable structure to a spellchecker, grammar analyzer, and a haiku generator without multiple memory copies? In which case you're still assuming shared memory across threads or programs.
Jul 28 2010
Jesse Phillips:I must not be understanding something in his use of immutability. For his spellchecker example he suggested making a copy of some portion of the document into an immutable data-structure so that it can be shared without locks or copying. How is this better than message passing of mutable data?To know the answer you need to know what a piece-table is, here you can find some info: http://www.cs.unm.edu/~crowley/papers/sds/node15.html You can find the missing images here: http://www.cs.unm.edu/~crowley/papers/sds.pdf Bye, bearophile
Jul 28 2010
bearophile Wrote:Jesse Phillips:Forgot to look that up after I had finished the article. Thanks for the links.I must not be understanding something in his use of immutability. For his spellchecker example he suggested making a copy of some portion of the document into an immutable data-structure so that it can be shared without locks or copying. How is this better than message passing of mutable data?To know the answer you need to know what a piece-table is, here you can find some info: http://www.cs.unm.edu/~crowley/papers/sds/node15.html You can find the missing images here: http://www.cs.unm.edu/~crowley/papers/sds.pdf Bye, bearophile
Jul 28 2010