{"id":483,"date":"2003-05-28T20:32:20","date_gmt":"2003-05-29T00:32:20","guid":{"rendered":"\/?p=483"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T04:00:00","slug":"memory_models","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2003\/05\/28\/memory_models\/","title":{"rendered":"Memory Models"},"content":{"rendered":"<p>\n\n<a href=\"http:\/\/blogs.gotdotnet.com\/cbrumme\/PermaLink.aspx\/480d3a6d-1aa8-4694-96db-c69f01d7ff2b\">Chris Brumme<\/a>:\n\n<\/p>\n\n\n\n<blockquote cite=\"http:\/\/blogs.gotdotnet.com\/cbrumme\/PermaLink.aspx\/480d3a6d-1aa8-4694-96db-c69f01d7ff2b\">\n\nThe  trade-off between developer productivity and computer performance is really an  economic one. &nbsp;If there&rsquo;s sufficient  incentive to write code to a weak memory model so it can execute efficiently on  future computers, then developers will do so. &nbsp;At that point, we will allow them to  mark their assemblies (or individual methods) to indicate that they are &ldquo;weak  model clean&rdquo;. &nbsp;This will permit the  native code generator to emit normal stores rather than store.release  instructions. &nbsp;You&rsquo;ll be able to  achieve high performance on weak machines, but this will always be &ldquo;opt  in&rdquo;. &nbsp;And we won&rsquo;t build this  capability until there&rsquo;s a real demand for it. \n\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Chris Brumme: The trade-off between developer productivity and computer performance is really an economic one. &nbsp;If there&rsquo;s sufficient incentive to write code to a weak memory model so it can execute efficiently on future computers, then developers will do so. &nbsp;At that point, we will allow them to mark their assemblies (or individual methods) to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-483","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=483"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/483\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}