{"id":132239,"date":"2025-12-26T10:56:38","date_gmt":"2025-12-26T01:56:38","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=132239"},"modified":"2025-12-26T10:56:38","modified_gmt":"2025-12-26T01:56:38","slug":"ruby-4-0-0","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/ruby-4-0-0\/","title":{"rendered":"Ruby 4.0.0\u304c\u30ea\u30ea\u30fc\u30b9 - Box\u30fbZJIT\u30fbRactor\u306a\u3069\u958b\u767a\u8005\u304c\u77e5\u308b\u3079\u304d\u65b0\u6a5f\u80fd\u3068\u5909\u66f4\u70b9"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2025\/12\/s_20251226-_102145.jpg\" alt=\"\" width=\"1076\" height=\"673\" class=\"aligncenter size-full wp-image-132242\" \/><\/p>\n<p>2025\u5e7412\u670825\u65e5\u3001Ruby\u306e\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u7248\u300cRuby 4.0.0\u300d\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f(<a href=\"https:\/\/www.ruby-lang.org\/ja\/news\/2025\/12\/25\/ruby-4-0-0-released\/\">ruby-lang.org<\/a>)\u3002<\/p>\n<p>Ruby 4.0.0\u3067\u306f\u3001<strong>\u8a00\u8a9e\u4ed5\u69d8\u30fb\u4e26\u5217\u51e6\u7406\u30fbJIT\u30fb\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u30fb\u5185\u90e8\u5b9f\u88c5<\/strong>\u306a\u3069\u3055\u307e\u3056\u307e\u306a\u9762\u3067\u65b0\u6a5f\u80fd\u306e\u8ffd\u52a0\u3084\u6539\u826f\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u516c\u5f0f\u30a2\u30ca\u30a6\u30f3\u30b9\u3092\u3082\u3068\u306b\u3001\u958b\u767a\u8005\u76ee\u7dda\u3067\u62bc\u3055\u3048\u308b\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n<h2>Ruby Box \u2015 \u5b9a\u7fa9\u3092\u201c\u9694\u96e2\u201d\u3067\u304d\u308b\u65b0\u6a5f\u80fd<\/h2>\n<p>Ruby 4.0.0\u3067\u306f\u3001\u30af\u30e9\u30b9\u5b9a\u7fa9\u3084\u30e2\u30f3\u30ad\u30fc\u30d1\u30c3\u30c1\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306a\u3069\u3092\u5206\u96e2\u30fb\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u5b9f\u9a13\u7684\u6a5f\u80fd\u300cRuby Box\u300d\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u306e\u30e2\u30f3\u30ad\u30fc\u30d1\u30c3\u30c1\u3092\u5b89\u5168\u306b\u9589\u3058\u8fbc\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u307b\u304b\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Box\u5185\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001Blue-Green \u30c7\u30d7\u30ed\u30a4\u3092\u30d7\u30ed\u30bb\u30b9\u5185\u3067\u5b9f\u73fe\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4f9d\u5b58\u95a2\u4fc2\u66f4\u65b0\u6642\u306e\u4e26\u5217\u691c\u8a3c\u3084\u3001\u300c\u30d1\u30c3\u30b1\u30fc\u30b8 API\u300d\u57fa\u76e4\u3068\u3057\u3066\u5f79\u7acb\u3066\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Ruby Box\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/docs.ruby-lang.org\/en\/master\/Ruby\/Box.html\">\u3053\u3061\u3089<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>ZJIT \u2015 \u6b21\u4e16\u4ee3 JIT \u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u767b\u5834<\/h2>\n<p>YJIT \u306b\u7d9a\u304f\u65b0\u3057\u3044 JIT\u3001ZJIT \u304c\u5b9f\u9a13\u7684\u306b\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002Rust 1.85.0\u4ee5\u964d\u304c\u5fc5\u8981\u3067\u3001<strong>\u2013zjit<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u6709\u52b9\u5316\u3067\u304d\u307e\u3059\u3002\u3088\u308a\u5927\u304d\u306a\u30b3\u30f3\u30d1\u30a4\u30eb\u5358\u4f4d\u3092\u6271\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u5916\u90e8\u30b3\u30f3\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u53d7\u3051\u5165\u308c\u3084\u3059\u3044\u8a2d\u8a08\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u73fe\u72b6\u3067\u306f\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u3088\u308a\u901f\u3044\u3082\u306e\u306e\u3001YJIT\u307b\u3069\u3067\u306f\u306a\u3044\u72b6\u614b\u3067\u3001\u672c\u756a\u5229\u7528\u306f\u307e\u3060\u975e\u63a8\u5968\u3067\u3059\u3002Ruby 4.1\u3067\u306e\u672c\u683c\u5316\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>Ractor \u304c\u5927\u5e45\u5f37\u5316 \u2015 \u4e26\u5217\u51e6\u7406\u304c\u5b9f\u7528\u30ec\u30d9\u30eb\u3078<\/h2>\n<p>Ruby 3.0 \u3067\u5b9f\u9a13\u7684\u306b\u5c0e\u5165\u3055\u308c\u305f Ractor \u304c\u30014.0 \u3067\u5927\u304d\u304f\u6539\u5584\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"is-style-icon_info\">Ractor\u306fRuby\u306e\u5b89\u5168\u306a\u4e26\u5217\u51e6\u7406\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u9694\u96e2\u3055\u308c\u305f\u5b9f\u884c\u5358\u4f4d\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u65b0\u3057\u3044\u901a\u4fe1\u6a5f\u69cb Ractor::Port \u306e\u8ffd\u52a0<\/li>\n<li>Ractor.shareable_proc \u306b\u3088\u308a Proc \u306e\u5171\u6709\u304c\u5bb9\u6613\u306b<\/li>\n<li>\u30b0\u30ed\u30fc\u30d0\u30eb\u30ed\u30c3\u30af\u7af6\u5408\u306e\u524a\u6e1b<\/li>\n<li>CPU \u30ad\u30e3\u30c3\u30b7\u30e5\u885d\u7a81\u306e\u4f4e\u6e1b<\/li>\n<li>\u591a\u6570\u306e\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u30fb\u7af6\u5408\u30d0\u30b0\u3092\u4fee\u6b63<\/li>\n<\/ul>\n<h2>\u305d\u306e\u4ed6\u591a\u6570\u306e\u6539\u826f<\/h2>\n<p>\u305d\u306e\u4ed6\u8a00\u8a9e\u4f7f\u7528\u306e\u5909\u66f4\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<p><span><code>*nil<\/code> \u304c <code>nil.to_a<\/code> \u3092\u547c\u3070\u306a\u304f\u306a\u3063\u305f<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u884c\u982d\u306e <code>&amp;&amp;<\/code> \/ <code>||<\/code> \/ <code>and<\/code> \/ <code>or<\/code> \u304c\u884c\u7d99\u7d9a\u3068\u3057\u3066\u6271\u308f\u308c\u308b<\/span><\/p>\n<\/li>\n<li>\n<p><span><code>Array#rfind<\/code> \u3084 <code>Array#find<\/code> \u306e\u8ffd\u52a0<\/span><\/p>\n<\/li>\n<li>\n<p><span><code>Enumerator.produce<\/code> \u304c <code>size:<\/code> \u3092\u53d7\u3051\u53d6\u308c\u308b\u3088\u3046\u306b<\/span><\/p>\n<\/li>\n<li>\n<p><span><code>ErrorHighlight<\/code> \u304c caller\/callee \u4e21\u65b9\u3092\u8868\u793a<\/span><\/p>\n<\/li>\n<\/ul>\n<p>\u307e\u305fbundled gem \/ default gem \u306e\u5165\u308c\u66ff\u3048\u3084\u66f4\u65b0\u304c\u5927\u91cf\u306b\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<p><span><code>Pathname<\/code> \u3068 <code>Set<\/code> \u304c\u30b3\u30a2\u30af\u30e9\u30b9\u3078\u6607\u683c<\/span><\/p>\n<\/li>\n<li>\n<p><span><code>CGI<\/code> \u306f default gem \u304b\u3089\u9664\u5916\uff08escape \u7cfb\u306e\u307f\u6b8b\u308b\uff09<\/span><\/p>\n<\/li>\n<li>\n<p><span>RubyGems \/ Bundler \u304c Version 4 \u306b<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u591a\u6570\u306e gem \u304c\u6700\u65b0\u5316<\/span><\/p>\n<\/li>\n<\/ul>\n<p>GC\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u7ba1\u7406\u3001JIT\u306a\u3069\u5185\u90e8\u5b9f\u88c5\u3082\u5237\u65b0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<p><span><code>Class#new<\/code> \u304c\u9ad8\u901f\u5316<\/span><\/p>\n<\/li>\n<li>\n<p><span>GC \u306e\u30d2\u30fc\u30d7\u6210\u9577\u6226\u7565\u304c\u6539\u5584<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u201cGeneric ivar\u201d \u306e\u5c0e\u5165\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u30a2\u30af\u30bb\u30b9\u304c\u9ad8\u901f\u5316<\/span><\/p>\n<\/li>\n<li>\n<p><span>Ractor \u74b0\u5883\u4e0b\u3067\u306e GC\/TracePoint \u306e\u554f\u984c\u3092\u4fee\u6b63<\/span><\/p>\n<\/li>\n<li>\n<p><span>YJIT \u306e\u7d71\u8a08\u60c5\u5831\u304c\u6574\u7406\u3055\u308c\u3001<code>invalidate_everything<\/code> \u304c\u8ffd\u52a0<\/span><\/p>\n<\/li>\n<\/ul>\n<p>Ruby 4.0.0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fruby-lang.org\u306e<a href=\"https:\/\/www.ruby-lang.org\/ja\/downloads\/\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a>\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2025\u5e7412\u670825\u65e5\u3001Ruby\u306e\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u7248\u300cRuby 4.0.0\u300d\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f(ruby-lang.org)\u3002 Ruby 4.0.0\u3067\u306f\u3001\u8a00\u8a9e\u4ed5\u69d8\u30fb\u4e26\u5217\u51e6\u7406\u30fbJIT\u30fb\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u30fb\u5185\u90e8\u5b9f\u88c5\u306a\u3069\u3055\u307e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":132242,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[154],"class_list":["post-132239","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-ruby"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/132239","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=132239"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/132239\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/132242"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=132239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=132239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=132239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}