{"id":72,"date":"2004-02-15T13:27:49","date_gmt":"2004-02-15T12:27:49","guid":{"rendered":"http:\/\/www.nobugs.org\/blog\/archives\/2004\/02\/15\/optimizing-programs\/"},"modified":"2004-02-15T13:27:49","modified_gmt":"2004-02-15T12:27:49","slug":"optimizing-programs","status":"publish","type":"post","link":"https:\/\/www.nobugs.org\/blog\/archives\/2004\/02\/15\/optimizing-programs\/","title":{"rendered":"Optimizing programs"},"content":{"rendered":"<p>Simple program gets complex when you make it faster.<br \/>\nWant to encapsulate &#8220;optimizations&#8221; for clarity, explanation and reuse.<br \/>\nIn the compiler?  Don&#8217;t know if it gets used.  Can&#8217;t rely on it.  Hidden.  Someone will &#8220;optimize the source&#8221; later.<br \/>\nBy hand, in the source?  Original version lost.  Confusing now.<br \/>\nSeperately, in macros?  Can&#8217;t flip between the transformed versions easily.  Hard to debug?<\/p>\n<p>Eg. Drawing a gradient.  Incremental computations.<\/p>\n<p>Eg. writing xml and a stylesheet, rather than flat html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple program gets complex when you make it faster. Want to encapsulate &#8220;optimizations&#8221; for clarity, explanation and reuse. In the compiler? Don&#8217;t know if it gets used. Can&#8217;t rely on it. Hidden. Someone will &#8220;optimize the source&#8221; later. By hand, in the source? Original version lost. Confusing now. Seperately, in macros? Can&#8217;t flip between the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":0,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}