{"id":106416,"date":"2026-03-19T18:33:08","date_gmt":"2026-03-19T22:33:08","guid":{"rendered":"http:\/\/pappp.net\/?guid=85c72b607f7114931a85a53a0352d4d4"},"modified":"2026-03-19T18:33:08","modified_gmt":"2026-03-19T22:33:08","slug":"minecraft-source-code-is-interesting","status":"publish","type":"post","link":"https:\/\/pappp.net\/?p=106416","title":{"rendered":"Minecraft Source Code Is Interesting"},"content":{"rendered":"<p class=\"syndicated-attribution\">Source: <a href=\"https:\/\/www.karanjanthe.me\/posts\/minecraft-source\/\">Hacker News<\/a><\/p>\n<div style=\"background-color : #fff7d5;\n\t\t\tborder-width : 1px; padding : 5px; border-style : dashed; border-color : #e7d796;margin-bottom : 1em; color : #9a8c59;\">Article note: There are some fun tricks in here that I'm vaguely aware of, but I love the nice intuitive demos. \nBunch of classic packing and compression hacks. Standard \"memory allocator is bullshit; consistent under the upper bound wins over fragmentation\" type optimizations.\nZ-order curves (linearizing a n-space in a locality-preserving way) are a thing, but this is a lovely illustration. \nUsing (n & -n) == n; as \"Is power of 2\" for 2s compliment.\nIt's a fun read.<\/div><a href=\"https:\/\/news.ycombinator.com\/item?id=47447317\" rel=\"noopener noreferrer\">Comments<\/a>","protected":false},"excerpt":{"rendered":"<p>Comments<\/p>\n<p> <a href=\"https:\/\/pappp.net\/?p=106416\">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":{"footnotes":""},"categories":[226],"tags":[],"class_list":["post-106416","post","type-post","status-publish","format-standard","hentry","category-news-2"],"_links":{"self":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/106416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=106416"}],"version-history":[{"count":0,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/106416\/revisions"}],"wp:attachment":[{"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=106416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=106416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=106416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}