{"id":126832,"date":"2024-12-30T10:40:42","date_gmt":"2024-12-30T01:40:42","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=126832"},"modified":"2024-12-30T10:40:42","modified_gmt":"2024-12-30T01:40:42","slug":"fish-porting-to-rust","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/fish-porting-to-rust\/","title":{"rendered":"\u3053\u308c\u305e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8X\uff1fFish\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u5927\u898f\u6a21C++\u30b3\u30fc\u30c9\u3092Rust\u3078\u79fb\u690d\u3057\u305f\u65b9\u6cd5\u3092\u89e3\u8aac"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/12\/s_20241230_101119.jpg\" alt=\"\" width=\"1280\" height=\"800\" class=\"aligncenter size-full wp-image-126833\" \/><\/p>\n<p>\u5148\u65e5\u3001Fish Shell\u306e\u6700\u65b0\u7248\u300cFish Shell 4.0b1\u300d\u304c<a href=\"https:\/\/softantenna.com\/blog\/fish-shell-4b\/\">\u30ea\u30ea\u30fc\u30b9<\/a>\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>Fish Shell 4.0\u306f\u5927\u898f\u6a21\u306a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3001\u5f93\u6765\u306eC++\u30b3\u30fc\u30c9\u304cRust\u306b\u79fb\u690d\u3055\u308c\u305f\u3053\u3068\u304c\u7279\u306b\u6ce8\u76ee\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u3001Fish\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u5927\u898f\u6a21\u306aC++\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3092Rust\u306b\u79fb\u690d\u3057\u305f\u969b\u306b\u5b66\u3093\u3060\u3053\u3068\u3084\u906d\u9047\u3057\u305f\u8ab2\u984c\u306b\u95a2\u3057\u3066\u6982\u8aac\u3059\u308b<a href=\"https:\/\/fishshell.com\/blog\/rustport\/\">\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u516c\u958b<\/a>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a18\u4e8b\u306b\u3088\u308b\u3068\u3001Fish\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304cC++\u3067\u906d\u9047\u3057\u305f\u554f\u984c\u306f\u3001\u30c4\u30fc\u30eb\u3084\u30b3\u30f3\u30d1\u30a4\u30e9\/\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u9055\u3044\u3001\u4eba\u9593\u5de5\u5b66\u3084\u30b9\u30ec\u30c3\u30c9\u5b89\u5168\u6027\u3001\u958b\u767a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u95a2\u3059\u308b\u3082\u306e\u3067\u3042\u3063\u305f\u3068\u306e\u3053\u3068\u3002\u4e00\u4f8b\u3068\u3057\u3066\u3001C++\u3067\u771f\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5b9f\u884c\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u4f5c\u6210\u3057\u305f\u3082\u306e\u306e\u3001\u3053\u306e\u4f5c\u696d\u306f\u5927\u5909\u306a\u3082\u306e\u3060\u3063\u305f\u3053\u3068\u3092\u3042\u3052\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Rust\u3092\u63a1\u7528\u3057\u305f\u3053\u3068\u306b\u3064\u3044\u3066\u300c<strong>Rust\u306f\u30af\u30fc\u30eb\u3067\u697d\u3057\u3044<\/strong>\u300d\u3068\u3057\u3001Rust\u306e\u30c4\u30fc\u30eb\u3001\u7c21\u5358\u306a\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3001\u512a\u308c\u305f\u4eba\u9593\u5de5\u5b66\u3001\u3088\u308a\u826f\u3044\u4f9d\u5b58\u95a2\u4fc2\u7ba1\u7406\u3001\u9001\u4fe1\u3068\u540c\u671f\u306e\u80fd\u529b\u306f\u3001\u30b9\u30ec\u30c3\u30c9\u51e6\u7406\u306b\u975e\u5e38\u306b\u9069\u3057\u3066\u3044\u308b\u3068\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001Rust\u306f\u3059\u3079\u3066\u306b\u304a\u3044\u3066\u5b8c\u74a7\u3067\u306f\u306a\u304f\u3001\u30dd\u30fc\u30bf\u30d3\u30ea\u30c6\u30a3\u306e\u6271\u3044\u65b9\u3084\u30c4\u30fc\u30ea\u30f3\u30b0\u304c\u4ed6\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u8003\u616e\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3053\u3068\u3001\u30ed\u30fc\u30ab\u30e9\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\u306e\u554f\u984c\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u8ab2\u984c\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3082\u8a8d\u3081\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001Cargo\u306b\u95a2\u3057\u3066\u3082\u3001\u30d3\u30eb\u30c9\u306b\u306f\u6700\u9069\u3067\u3042\u308b\u3082\u306e\u306e\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u95a2\u3059\u308b\u6a5f\u80fd\u306f\u5358\u7d14\u3067\u3042\u308b\u305f\u3081\u3001Fish\u306f\u4f9d\u7136\u3068\u3057\u3066CMake\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Fish\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>\nThe port wasn\u2019t without challenges, and it did not all go entirely as planned. But overall, it went pretty dang well. We\u2019re now left with a codebase that we like a lot more, that has already gained some features that would have been much more annoying to add with C++, with more on the way, and we did it while creating a separate 3.7 release that also included some cool stuff.<\/p>\n<p>And we had fun doing it.<\/p>\n<p>\u79fb\u690d\u306b\u8ab2\u984c\u304c\u306a\u304b\u3063\u305f\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u3059\u3079\u3066\u304c\u8a08\u753b\u901a\u308a\u306b\u9032\u3093\u3060\u308f\u3051\u3067\u3082\u306a\u3044\u3002\u3057\u304b\u3057\u3001\u5168\u4f53\u7684\u306b\u306f\u3068\u3066\u3082\u3046\u307e\u304f\u3044\u3063\u305f\u3002C++\u3067\u8ffd\u52a0\u3059\u308b\u306e\u306f\u3082\u3063\u3068\u5384\u4ecb\u3060\u3063\u305f\u3060\u308d\u3046\u6a5f\u80fd\u304c\u3059\u3067\u306b\u3044\u304f\u3064\u304b\u8ffd\u52a0\u3055\u308c\u3001\u3055\u3089\u306b\u8ffd\u52a0\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3042\u308b\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u79c1\u305f\u3061\u306f\u305d\u308c\u3092\u697d\u3057\u3093\u3067\u3084\u3063\u305f\u3002\n<\/p><\/blockquote>\n<p>Fish\u306fBash\u3068\u4e92\u63db\u6027\u3092\u6301\u305f\u306a\u3044\u72ec\u5275\u7684\u306a\u30b7\u30a7\u30eb\u3068\u3057\u3066\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u958b\u767a\u8005\u304c\u65b0\u305f\u306a\u9053\u3092\u63a2\u3057\u3066C++\u304b\u3089Rust\u306b\u79fb\u884c\u3057\u305f\u306e\u3082\u81ea\u7136\u306a\u6d41\u308c\u3068\u8a00\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>[via <a href=\"https:\/\/www.phoronix.com\/news\/Fish-Shell-4.0-Beta\">Phoronix<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u3001Fish Shell\u306e\u6700\u65b0\u7248\u300cFish Shell 4.0b1\u300d\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002 Fish Shell 4.0\u306f\u5927\u898f\u6a21\u306a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3001\u5f93\u6765\u306eC++\u30b3\u30fc\u30c9\u304cRust\u306b\u79fb\u690d\u3055\u308c\u305f\u3053\u3068\u304c\u7279\u306b\u6ce8\u76ee\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u304c\u3001 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":126833,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[4202],"class_list":["post-126832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-fish"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/126832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=126832"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/126832\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/126833"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=126832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=126832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=126832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}