{"id":6600,"date":"2026-05-10T05:05:56","date_gmt":"2026-05-10T02:05:56","guid":{"rendered":"https:\/\/biyer.com.tr\/?p=6600"},"modified":"2026-05-10T05:05:56","modified_gmt":"2026-05-10T02:05:56","slug":"buns-rewrite-from-zig-to-rust-passes-99-8-of-testsuite","status":"publish","type":"post","link":"https:\/\/biyer.com.tr\/?p=6600","title":{"rendered":"Bun\u2019s rewrite from Zig to Rust passes 99.8% of testsuite"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>per @jarredsumner:<\/p>\n<blockquote>\n<p>99.8% of bun\u2019s pre-existing test suite passes on Linux x64 glibc in the rust rewrite<\/p>\n<p>it\u2019s basically the same codebase except now we can have the compiler enforce the lifetimes of types and we get destructors when we want them. and the ugly parts look uglier (unsafe) which encourages refactoring.<\/p>\n<p>why: I am so tired of worrying about &amp; spending lots of time fixing memory leaks and crashes and stability issues. it would be so nice if the language provided more powerful tools for preventing these things.<\/p>\n<blockquote>\n<p>But how long does it take to compile?<\/p>\n<\/blockquote>\n<p>It\u2019s basically the same as in zig using our faster zig compiler. If we were using the upstream zig compiler, rust port would compile faster<\/p>\n<\/blockquote><\/div>\n<p><!-- SC_ON --> &#032; submitted by &#032; <a href=\"https:\/\/www.reddit.com\/user\/read_volatile\"> \/u\/read_volatile <\/a> <br \/> <span><a href=\"https:\/\/xcancel.com\/jarredsumner\/status\/2053047748191232310\">[link]<\/a><\/span> &#032; <span><a href=\"https:\/\/www.reddit.com\/r\/programming\/comments\/1t8n0vl\/buns_rewrite_from_zig_to_rust_passes_998_of\/\">[comments]<\/a><\/span><\/p>\n<p><a href=\"https:\/\/www.reddit.com\/r\/programming\/comments\/1t8n0vl\/buns_rewrite_from_zig_to_rust_passes_998_of\/\" target=\"_blank\">Orijinal Kayna\u011fa Git<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>per @jarredsumner: 99.8% of bun\u2019s pre-existing test suite passes on Linux x64 glibc in the rust rewrite it\u2019s basically the same codebase except now we can have the compiler enforce the lifetimes of types and we get destructors when we want them. and the ugly parts look uglier (unsafe) which encourages refactoring. why: I am [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6600","post","type-post","status-publish","format-standard","hentry","category-genel"],"_links":{"self":[{"href":"https:\/\/biyer.com.tr\/index.php?rest_route=\/wp\/v2\/posts\/6600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/biyer.com.tr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/biyer.com.tr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/biyer.com.tr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/biyer.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6600"}],"version-history":[{"count":1,"href":"https:\/\/biyer.com.tr\/index.php?rest_route=\/wp\/v2\/posts\/6600\/revisions"}],"predecessor-version":[{"id":6601,"href":"https:\/\/biyer.com.tr\/index.php?rest_route=\/wp\/v2\/posts\/6600\/revisions\/6601"}],"wp:attachment":[{"href":"https:\/\/biyer.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/biyer.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/biyer.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}