{"id":2305,"date":"2023-02-07T19:13:37","date_gmt":"2023-02-07T11:13:37","guid":{"rendered":"https:\/\/www.shuizilong.com\/house\/?p=2305"},"modified":"2023-08-16T16:41:34","modified_gmt":"2023-08-16T08:41:34","slug":"global-game-jam-2023-%e5%8f%82%e8%b5%9b%e7%ba%aa%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.shuizilong.com\/house\/archives\/global-game-jam-2023-%e5%8f%82%e8%b5%9b%e7%ba%aa%e5%bd%95\/","title":{"rendered":"Global Game Jam 2023 \u53c2\u8d5b\u7eaa\u5f55"},"content":{"rendered":"<blockquote><p>57. [20] When a program changes one or more of its own instructions in memory, it is said to have self-modifying code. MMIX insists that a SYNCID command be issued before such modified commands are executed. Explain why self-modifying code is usually undesirable in a modern computer.<br \/>\n\u2014\u2014 THE ART OF COMPUTER PROGRAMMING VOLUME 1, FASCICLE 1, MMIX, A RISC Computer for the New Millennium, Page 28<\/p><\/blockquote>\n\n<ul>\n<li><a href=\"https:\/\/www.bilibili.com\/video\/BV1kd4y1n7NJ\/\">\u3010GGJ2023\u3011\u300aArcknight_ Escape from the source code\u300b\u6f14\u793a | Bilibili<\/a><\/li>\n<li><a href=\"https:\/\/globalgamejam.org\/2023\/games\/%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F%EF%BC%9A%E9%87%8D%E7%94%9F%E4%B9%8B%E9%80%83%E7%A6%BB%E6%BA%90%E4%BB%A3%E7%A0%81-9\">Arcknight Escape from the source code | Global Game Jam<\/a><\/li>\n<\/ul>\n<h2>\u9012\u5f52\u3001\u5143\u7f16\u7a0b\u3001\u4e0e\u81ea\u4fee\u6539\u4ee3\u7801<\/h2>\n<p>\u4f5c\u4e3a\u4e00\u540d OIer\uff0c\u7406\u6240\u5e94\u5f53\u7684\uff0c\u6211\u5341\u5206\u559c\u6b22\u542b\u6709 <a href=\"http:\/\/www.matrix67.com\/blog\/archives\/380\">\u81ea\u6211\u6307\u6d89<\/a> \u7684\u7a0b\u5e8f\uff0c\u6700\u7b80\u5355\u7684\u81ea\u6211\u6307\u6d89\u53ef\u80fd\u5c31\u662f\u9012\u5f52\u4e86\uff0c\u5728\u521d\u4e00\u7b2c\u4e00\u6b21\u770b\u5230\u9012\u5f52\u7a0b\u5e8f\u65f6\uff0c\u6211\u7684\u611f\u60f3\u662f\uff1a\u54c7\uff0c\u7a0b\u5e8f\u8fd8\u80fd\u8fd9\u4e48\u5199\uff01\uff08\u8981\u662f\u80fd\u6709\u4eba\u5728\u66f4\u5c0f\u7684\u65f6\u5019\u6559\u6211\u5c31\u66f4\u597d\u4e86&#8230;\uff09<br \/>\n\u957f\u5927\u540e\u53d1\u73b0\u6bd4\u9012\u5f52\u66f4\u9ad8\u7ea7\u7684\u81ea\u6211\u6307\u6d89\uff0c\u662f\u5b58\u5728\u7684\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f\uff0c\u5143\u7f16\u7a0b\u3002\u3002\u3002<\/p>\n<p>\u4f8b\u5982\u5728 <a href=\"https:\/\/github.com\/pytorch\/pytorch\/wiki\/Codegen-and-Structured-Kernels\">Pytorch<\/a> \u4e2d\uff0c\u5c31\u6709\u5229\u7528\u5143\u7f16\u7a0b\u65b9\u6cd5\u751f\u6210\u5404\u79cd\u6a21\u677f\u7684\u7279\u5316\u4ee3\u7801\u4ee5\u4f18\u5316\u6548\u7387\u7684\u8bbe\u8ba1\u3002\u3002\u3002<br \/>\n\u5728\u5f00\u6e90\u673a\u5668\u4eba\u6a21\u62df\u8f6f\u4ef6 <a href=\"https:\/\/github.com\/rdiankov\/openrave\">OpenRave<\/a> \u4e2d\u3001\u4e5f\u6709\u7c7b\u4f3c\u65b9\u6cd5\u751f\u6210\u89e3\u52a8\u6001\u8fd0\u52a8\u5b66\u65b9\u7a0b\uff08Dynamics Kinetic Equation\uff09\u7684\u5b9a\u5236\u4ee3\u7801\u3002\uff08\u6211\u662f\u542c\u8001\u677f\u8bf4\u7684\u3002\u3002\u3002\u6211\u53ef\u6ca1\u529e\u6cd5\u6c42\u8bc1\u3002\u3002\u56e7\u3002\u3002\u3002\uff09<\/p>\n<p>\u6bd4\u5143\u7f16\u7a0b\u66f4\u9ad8\u7ea7\u7684\u81ea\u6211\u6307\u6d89\u7a0b\u5e8f\u4e5f\u662f\u5b58\u5728\u7684\u3002\u3002\u3002\u3002<br \/>\n\u5c31\u662f\u4e0a\u9762 MMIX \u91cc\u63d0\u5230\u7684\u3002\u3002\u3002<a href=\"https:\/\/en.wikipedia.org\/wiki\/Self-modifying_code\">self-modifying code<\/a>\u3002\u3002\u3002\u3002<\/p>\n<p>self-modifying code \u6216\u8bb8\u53ea\u80fd\u5728\u6c47\u7f16\u8bed\u8a00\u8fd9\u4e2a\u5c42\u7ea7\u5b58\u5728\uff1f\u56e0\u4e3a\u5b83\u8981\u53bb\u4fee\u6539\u8fd0\u884c\u65f6\u8fd9\u4e2a\u4ee3\u7801\u672c\u8eab\u6240\u5904\u5728\u7684\u5b58\u50a8\u7a7a\u95f4\u3002\u3002\u5728\u8fd9\u7c7b\u4ee3\u7801\u4e2d\uff0c\u7a7a\u95f4\uff0c\u89c4\u5219\uff0c\u51fd\u6570\uff0c\u4e00\u5207\u7684\u4e00\u5207\u90fd\u662f\u90a3\u4e48\u7684\u4e0d\u53ef\u8003\u3002\u3002\u3002\u81ea\u7136\u4f1a\u4ea7\u751f\u5f88\u591a\u5947\u5999\u7684\u4e8b\u4ef6\u3002\u3002\u3002<br \/>\n\uff08\u6240\u4ee5\u4e0d\u4f1a\u6709\u4eba\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u8fd9\u4e48\u5e72\u5427\u3002\u3002\u3002\uff09<\/p>\n<p>\u6216\u8bb8\u5728\u4e00\u4e9b\u89e3\u8c1c\u6e38\u620f\u4e2d\u4f1a\u4ea7\u751f\u8fd9\u79cd self-modifying code \u3002\u3002\u3002\u6211\u4e0d\u786e\u5b9a\u3002\u3002\u3002\u4f46\u662f\u6211\u73b0\u5728\u4e5f\u6ca1\u6709\u7279\u522b\u597d\u7684 self-modifying code \u7684\u4f8b\u5b50\u3002\u3002\u3002<br \/>\n\u4f60\u770b\u5230\u7684\u662f\uff0c\u8d8a\u63a5\u8fd1\u5e95\u5c42\uff0c\u6211\u4eec\u6709\u65f6\u53cd\u800c\u5c31\u8d8a\u63a5\u8fd1\u771f\u7406\u3002\u3002\u3002<\/p>\n<p>\u5f53\u7136\u4e86\u3002\u3002\u3002\u5728\u52a8\u6001\u8bed\u8a00\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Eval\">Eval<\/a> \u6765 somehow \u6a21\u62df\u8fd9\u79cd self-modifying code \u7684\u611f\u89c9\u3002\u3002\u3002<br \/>\n\uff08\u56e0\u4e3a\u8bb8\u591a\u9759\u6001\u8bed\u8a00\u4e5f\u90fd\u6709\u4e00\u5b9a\u7684 reflection \u80fd\u529b\u4e86\uff0c\u6240\u4ee5\u770b\u8d77\u6765\u662f\u5426\u652f\u6301 Eval \u662f\u4e00\u4e2a\u66f4\u597d\u7684\u533a\u522b\u52a8\u6001\u8bed\u8a00\u548c\u9759\u6001\u8bed\u8a00\u7684 Critiria\u3002\u3002\uff09<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u559c\u6b22\u81ea\u6211\u6307\u6d89\uff1f<\/h2>\n<p>\u56e0\u4e3a\u81ea\u6211\u6307\u6d89\u901a\u5e38\u4f34\u968f\u7740\u6096\u8bba\u3002\u3002\u3002\u800c\u6096\u8bba\u7684\u51fa\u73b0\u901a\u5e38\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8fdb\u884c debug \u3002\u3002\u3002\u4ece\u800c\u83b7\u5f97\u6d1e\u89c1\u3002\u3002\u3002\uff08\u65e0\u7406\u6570\u3001\u5149\u7535\u6548\u5e94\u3001etcs\uff09<br \/>\n\u6839\u636e\u67cf\u62c9\u56fe\u7684 <a href=\"https:\/\/zh.wikipedia.org\/wiki\/%E5%9C%B0%E7%A9%B4%E5%AF%93%E8%A8%80\">\u6d1e\u7a74\u7406\u8bba<\/a>\uff0c\u73b0\u5728\u4e0d\u641e\u70b9 bug \u51fa\u6765\u6211\u4eec\u600e\u4e48\u53bb\u8ba4\u8bc6\u5916\u9762\u7684\u4e16\u754c\u554a\u3002\u3002\u3002<\/p>\n<p>WIP &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>57. [20] When a program changes one or more of its own instructions in memory, it is said to have self-modifying code. MMIX insists that a SYNCID command be issued before such modified commands are executed. Explain why self-modifying code is usually undesirable in a modern computer. \u2014\u2014 THE ART OF COMPUTER PROGRAMMING VOLUME 1, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[],"class_list":["post-2305","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2tdP7-Bb","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/2305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/comments?post=2305"}],"version-history":[{"count":10,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/2305\/revisions"}],"predecessor-version":[{"id":3132,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/2305\/revisions\/3132"}],"wp:attachment":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/media?parent=2305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/categories?post=2305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/tags?post=2305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}