{"id":761526,"date":"2020-05-28T09:19:42","date_gmt":"2020-05-28T13:19:42","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=761526"},"modified":"2020-05-28T09:19:42","modified_gmt":"2020-05-28T13:19:42","slug":"merkle-trees-and-build-systems","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=761526","title":{"rendered":"[$] Merkle trees and build systems"},"content":{"rendered":"<p>In traditional build tools like Make, targets and dependencies are always<br \/>\n<em>files<\/em>. Imagine if you could specify an entire <em>tree<\/em> (directory) as a<br \/>\ndependency: You could exhaustively specify a &#8220;build root&#8221; filesystem containing<br \/>\nthe toolchain used for building some target as a dependency of that target.<br \/>\nSimilarly, a rule that <em>creates<\/em> that build root would have the tree as its<br \/>\n<em>target<\/em>.<br \/>\nUsing <a href=\"https:\/\/en.wikipedia.org\/wiki\/Merkle_tree\">Merkle<br \/>\ntrees<\/a> as first-class citizens in a build system gives great<br \/>\nflexibility and many optimization opportunities. In this article, guest author David R\u00f6thlisberger<br \/>\nexplores this idea using <a href=\"https:\/\/ostree.readthedocs.io\">OSTree<\/a>,<br \/>\n<a href=\"https:\/\/ninja-build.org\/\">Ninja<\/a>, and <a href=\"https:\/\/www.python.org\/\">Python<\/a>.&#013;<br \/>\n&#013;<br \/>\nSource: LWN.net &#8211; <a href=\"https:\/\/lwn.net\/Articles\/821367\/rss\" target=\"_blank\" rel=\"noopener noreferrer\">[$] Merkle trees and build systems<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In traditional build tools like Make, targets and dependencies are always files. Imagine if you could specify an entire tree (directory) as a dependency: You could exhaustively specify a &#8220;build root&#8221; filesystem containing the toolchain used for building some target &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=761526\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[72],"tags":[75],"class_list":["post-761526","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/761526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=761526"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/761526\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=761526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=761526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=761526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}