{"id":1241,"date":"2025-03-24T08:52:30","date_gmt":"2025-03-23T23:52:30","guid":{"rendered":"https:\/\/dexall.co.jp\/articles\/?p=1241"},"modified":"2025-03-24T08:52:30","modified_gmt":"2025-03-23T23:52:30","slug":"ruby-3-3%e5%ae%8c%e5%85%a8%e3%82%ac%e3%82%a4%e3%83%89%ef%bc%9a%e3%83%91%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%b3%e3%82%b92%e5%80%8d%e3%81%ae%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/dexall.co.jp\/articles\/?p=1241","title":{"rendered":"Ruby 3.3\u5b8c\u5168\u30ac\u30a4\u30c9\uff1a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b92\u500d\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u7684\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u89e3\u8aac\u30102024\u5e74\u4fdd\u5b58\u7248\u3011"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"i-0\">Ruby 3.3 \u306e\u9769\u65b0\u7684\u306a\u9032\u5316\u3068\u306f<\/h1>\n\n\n\n<p>Ruby 3.3\u306f\u30012023\u5e7412\u670825\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u753b\u671f\u7684\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002\u7279\u306b\u6ce8\u76ee\u3059\u3079\u304d\u306f\u3001YJIT 2.0\u306b\u3088\u308b\u5287\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u3068\u3001\u65b0\u3057\u3044\u30d1\u30fc\u30b5\u30fc\u30a8\u30f3\u30b8\u30f3Prism\u306e\u5c0e\u5165\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u9769\u65b0\u306b\u3088\u308a\u3001Ruby\u306e\u5b9f\u884c\u901f\u5ea6\u3068\u958b\u767a\u52b9\u7387\u304c\u5927\u5e45\u306b\u6539\u5584\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"toc\"><br \/>\n<b>Warning<\/b>:  Undefined array key \"is_admin\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>116<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_category_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>121<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>128<\/b><br \/>\n    <div id=\"toc_container\" class=\"sgb-toc--bullets js-smooth-scroll\" data-dialog-title=\"\u76ee\u6b21\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">Ruby 3.3 \u306e\u9769\u65b0\u7684\u306a\u9032\u5316\u3068\u306f<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-1\">YJIT 2.0 \u306b\u3088\u308b\u9a5a\u7570\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-4\">Prism\uff1a\u65b0\u6642\u4ee3\u306e\u30d1\u30fc\u30b5\u30fc\u30a8\u30f3\u30b8\u30f3<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-7\">\u4e3b\u8981\u306a\u65b0\u6a5f\u80fd\u3068\u6539\u5584\u70b9\u3092\u5fb9\u5e95\u89e3\u8aac<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-8\">\u30e1\u30e2\u30ea\u4f7f\u7528\u52b9\u7387\u306e\u5927\u5e45\u306a\u6539\u5584<\/a>      <\/li>      <li>        <a href=\"#i-11\">\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u5f37\u5316<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-14\">\u30d0\u30a4\u30ca\u30ea\u51e6\u7406\u306e\u6700\u9069\u5316<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-17\">\u5b9f\u8df5\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-18\">YJIT\u3092\u6700\u5927\u9650\u6d3b\u7528\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a<\/a>      <\/li>      <li>        <a href=\"#i-21\">\u30e1\u30e2\u30ea\u6700\u9069\u5316\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-24\">\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u4f8b<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-28\">Ruby 3.3 \u3078\u306e\u79fb\u884c\u30ac\u30a4\u30c9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-29\">\u4e92\u63db\u6027\u306e\u6ce8\u610f\u70b9\u3068\u5bfe\u51e6\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-32\">\u30b9\u30e0\u30fc\u30ba\u306a\u79fb\u884c\u306e\u305f\u3081\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/a>      <\/li>      <li>        <a href=\"#i-33\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5b9f\u8df5\u7684\u30a2\u30d7\u30ed\u30fc\u30c1<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-36\">\u79fb\u884c\u5f8c\u306e\u691c\u8a3c\u3068\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-37\">Ruby 3.3\u3067\u5b9f\u73fe\u3059\u308b\u6b21\u4e16\u4ee3\u306e\u958b\u767a\u4f53\u9a13<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-38\">\u958b\u767a\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u308b\u65b0\u6a5f\u80fd\u306e\u6d3b\u7528\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-41\">\u5b9f\u52d9\u3067\u306e\u5177\u4f53\u7684\u306a\u6d3b\u7528\u624b\u9806<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-44\">\u5c06\u6765\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3078\u306e\u5c55\u671b<\/a>      <\/li>    <\/ul>  <\/li><\/ul>\n      <a href=\"#\" class=\"sgb-toc-button js-toc-button\" rel=\"nofollow\" data-open-dialog=\"true\"><i class=\"fa fa-list\"><\/i><span class=\"sgb-toc-button__text\">\u76ee\u6b21\u3078<\/span><\/a>\n    <\/div><\/div><h2 class=\"wp-block-heading\" id=\"i-1\">YJIT 2.0 \u306b\u3088\u308b\u9a5a\u7570\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/h2>\n\n\n\n<p>YJIT 2.0\u306f\u3001Ruby 3.3\u306b\u304a\u3051\u308b\u6700\u3082\u91cd\u8981\u306a\u9032\u5316\u306e\u4e00\u3064\u3067\u3059\u3002\u5f93\u6765\u306eYJIT\u3068\u6bd4\u8f03\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u70b9\u3067\u5927\u304d\u306a\u6539\u5584\u304c\u5b9f\u73fe\u3055\u308c\u307e\u3057\u305f\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-2\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u306e\u30dd\u30a4\u30f3\u30c8<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30b3\u30fc\u30c9\u751f\u6210\u306e\u6700\u9069\u5316<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u524a\u6e1b<\/li>\n\n\n\n<li>\u6761\u4ef6\u5206\u5c90\u306e\u52b9\u7387\u5316<\/li>\n\n\n\n<li>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5272\u308a\u5f53\u3066\u306e\u6700\u9069\u5316<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30e1\u30e2\u30ea\u4f7f\u7528\u52b9\u7387\u306e\u5411\u4e0a<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JIT\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u6700\u592775%\u524a\u6e1b<\/li>\n\n\n\n<li>\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u52b9\u7387\u5316<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-3\">\u5b9f\u969b\u306e\u6027\u80fd\u5411\u4e0a\u4f8b<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Rails\u74b0\u5883\u3067\u306e\u5178\u578b\u7684\u306a\u30b1\u30fc\u30b9\n# Before (Ruby 3.2)\nBenchmark.measure do\n  1000.times { complex_calculation }\nend\n# =&gt; 2.840 seconds\n\n# After (Ruby 3.3 with YJIT 2.0)\nBenchmark.measure do\n  1000.times { complex_calculation }\nend\n# =&gt; 1.420 seconds<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-4\">Prism\uff1a\u65b0\u6642\u4ee3\u306e\u30d1\u30fc\u30b5\u30fc\u30a8\u30f3\u30b8\u30f3<\/h2>\n\n\n\n<p>Prism\u306f\u3001Ruby\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u89e3\u6790\u3059\u308b\u65b0\u3057\u3044\u30d1\u30fc\u30b5\u30fc\u30a8\u30f3\u30b8\u30f3\u3067\u3059\u3002\u5f93\u6765\u306e\u30d1\u30fc\u30b5\u30fc\u3068\u6bd4\u8f03\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-5\">Prism\u306e\u4e3b\u8981\u306a\u7279\u5fb4<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u9ad8\u901f\u306a\u69cb\u6587\u89e3\u6790<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d1\u30fc\u30b9\u901f\u5ea6\u304c\u5f93\u6765\u6bd4\u3067\u7d0430%\u5411\u4e0a<\/li>\n\n\n\n<li>\u30e1\u30e2\u30ea\u4f7f\u7528\u52b9\u7387\u306e\u6539\u5584<\/li>\n\n\n\n<li>\u30a8\u30e9\u30fc\u8a3a\u65ad\u306e\u7cbe\u5ea6\u5411\u4e0a<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u958b\u767a\u8005\u4f53\u9a13\u306e\u5411\u4e0a<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u3088\u308a\u6b63\u78ba\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/li>\n\n\n\n<li>IDE\u3068\u306e\u9023\u643a\u5f37\u5316<\/li>\n\n\n\n<li>\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u306e\u5145\u5b9f<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-6\">\u5b9f\u88c5\u4f8b<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Prism\u3092\u4f7f\u7528\u3057\u305f\u69cb\u6587\u89e3\u6790\u306e\u4f8b\nrequire 'prism'\n\n# \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u89e3\u6790\nresult = Prism.parse(&lt;&lt;~RUBY)\n  def hello(name)\n    puts \"Hello, #{name}!\"\n  end\nRUBY\n\n# \u89e3\u6790\u7d50\u679c\u3078\u306e\u30a2\u30af\u30bb\u30b9\nresult.value.statements.each do |node|\n  puts node.inspect\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u9769\u65b0\u7684\u306a\u9032\u5316\u306b\u3088\u308a\u3001Ruby 3.3\u306f\u5b9f\u52d9\u3067\u306e\u4f7f\u7528\u306b\u304a\u3044\u3066\u3082\u5927\u304d\u306a\u4fa1\u5024\u3092\u3082\u305f\u3089\u3057\u307e\u3059\u3002\u7279\u306b\u5927\u898f\u6a21\u306aRails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593\u306e\u77ed\u7e2e\u3084\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u306e\u5411\u4e0a\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u6539\u5584\u70b9\u3092\u3088\u308a\u8a73\u7d30\u306b\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-7\">\u4e3b\u8981\u306a\u65b0\u6a5f\u80fd\u3068\u6539\u5584\u70b9\u3092\u5fb9\u5e95\u89e3\u8aac<\/h1>\n\n\n\n<p>Ruby 3.3\u3067\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30e1\u30e2\u30ea\u52b9\u7387\u306e\u4e21\u9762\u3067\u5927\u5e45\u306a\u6539\u5584\u304c\u5b9f\u73fe\u3055\u308c\u307e\u3057\u305f\u3002\u672c\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u6539\u5584\u70b9\u3092\u5b9f\u88c5\u4f8b\u3068\u3068\u3082\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-8\">\u30e1\u30e2\u30ea\u4f7f\u7528\u52b9\u7387\u306e\u5927\u5e45\u306a\u6539\u5584<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-9\">GC\uff08\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff09\u306e\u6700\u9069\u5316<\/h3>\n\n\n\n<p>Ruby 3.3\u3067\u306f\u3001GC\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u5927\u5e45\u306b\u6539\u5584\u3055\u308c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># GC\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6700\u9069\u5316\u4f8b\nGC.configure(\n  malloc_limit: 16 * 1024 * 1024,      # \u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u306e\u5236\u9650\n  malloc_limit_max: 32 * 1024 * 1024,  # \u6700\u5927\u30e1\u30e2\u30ea\u5236\u9650\n  oldmalloc_limit: 16 * 1024 * 1024,   # \u30aa\u30fc\u30eb\u30c9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u7528\u30e1\u30e2\u30ea\u5236\u9650\n  heap_free_slots: 4096                # \u30d5\u30ea\u30fc\u30b9\u30ed\u30c3\u30c8\u6570\n)\n\n# GC\u306e\u632f\u308b\u821e\u3044\u306e\u78ba\u8a8d\nGC.stat.select { |k, v| [:heap_live_slots, :heap_free_slots].include?(k) }<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-10\">\u30e1\u30e2\u30ea\u30a2\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52b9\u7387\u5316<\/h3>\n\n\n\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5272\u308a\u5f53\u3066\u3068\u89e3\u653e\u304c\u6700\u9069\u5316\u3055\u308c\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u304c\u524a\u6e1b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30e1\u30e2\u30ea\u52b9\u7387\u7684\u306a\u914d\u5217\u64cd\u4f5c\u306e\u4f8b\n# \u5f93\u6765\u306e\u65b9\u6cd5\nresult = []\n1000.times do |i|\n  result &lt;&lt; i.to_s\nend\n\n# \u6700\u9069\u5316\u3055\u308c\u305f\u65b9\u6cd5\uff08\u30d7\u30ea\u30a2\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\uff09\nresult = Array.new(1000) { |i| i.to_s }<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-11\">\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u5f37\u5316<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-12\">\u914d\u5217\u51e6\u7406\u306e\u6700\u9069\u5316<\/h3>\n\n\n\n<p>\u914d\u5217\u64cd\u4f5c\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001\u5927\u898f\u6a21\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u304c\u52b9\u7387\u5316\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u65b0\u3057\u3044\u914d\u5217\u30e1\u30bd\u30c3\u30c9\u306e\u4f8b\nnumbers = (1..1000000).to_a\n\n# \u52b9\u7387\u7684\u306a\u691c\u7d22\uff08\u30d0\u30a4\u30ca\u30ea\u30b5\u30fc\u30c1\u306e\u6539\u5584\uff09\nnumbers.bsearch { |x| x &gt;= 500000 }  # \u3088\u308a\u9ad8\u901f\u306b\u52d5\u4f5c\n\n# \u4e26\u5217\u51e6\u7406\u3068\u306e\u7d44\u307f\u5408\u308f\u305b\nnumbers.parallel_map { |n| n * 2 }   # \u81ea\u52d5\u7684\u306b\u4e26\u5217\u5316<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-13\">\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u306e\u6539\u5584<\/h3>\n\n\n\n<p>\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u90e8\u5b9f\u88c5\u304c\u6539\u5584\u3055\u308c\u3001\u30ad\u30fc\u691c\u7d22\u3068\u5024\u306e\u66f4\u65b0\u304c\u9ad8\u901f\u5316\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5927\u898f\u6a21\u30cf\u30c3\u30b7\u30e5\u306e\u52b9\u7387\u7684\u306a\u64cd\u4f5c\nlarge_hash = (1..100000).to_h { |i| [i, i * 2] }\n\n# \u9ad8\u901f\u306a\u30ad\u30fc\u691c\u7d22\nlarge_hash.key?(50000)  # \u6539\u5584\u3055\u308c\u305f\u691c\u7d22\u901f\u5ea6\n\n# \u30e1\u30e2\u30ea\u52b9\u7387\u306e\u826f\u3044\u30cf\u30c3\u30b7\u30e5\u7d50\u5408\nhash1 = { a: 1, b: 2 }\nhash2 = { b: 3, c: 4 }\nhash1.merge(hash2)      # \u6700\u9069\u5316\u3055\u308c\u305f\u7d50\u5408\u51e6\u7406<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-14\">\u30d0\u30a4\u30ca\u30ea\u51e6\u7406\u306e\u6700\u9069\u5316<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-15\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/h3>\n\n\n\n<p>\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u901f\u5ea6\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u3001\u3088\u308a\u52b9\u7387\u7684\u306a\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u52b9\u7387\u7684\u306a\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u51e6\u7406\nFile.open('large_file.bin', 'rb') do |file|\n  # \u30c1\u30e3\u30f3\u30af\u5358\u4f4d\u3067\u306e\u52b9\u7387\u7684\u306a\u8aad\u307f\u8fbc\u307f\n  while chunk = file.read(8192)\n    # \u30c1\u30e3\u30f3\u30af\u51e6\u7406\n    process_binary_data(chunk)\n  end\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-16\">\u65b0\u3057\u3044\u30d0\u30a4\u30ca\u30ea\u51e6\u7406API<\/h3>\n\n\n\n<p>\u3088\u308a\u76f4\u611f\u7684\u3067\u52b9\u7387\u7684\u306a\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u64cd\u4f5c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30d0\u30a4\u30ca\u30ea\u6587\u5b57\u5217\u306e\u52b9\u7387\u7684\u306a\u64cd\u4f5c\nbinary_data = \"Hello\".encode('ASCII-8BIT')\nbinary_data.bytes  # \u9ad8\u901f\u306a\u30d0\u30a4\u30c8\u914d\u5217\u3078\u306e\u5909\u63db\n\n# \u30d3\u30c3\u30c8\u64cd\u4f5c\u306e\u6700\u9069\u5316\nclass String\n  def set_bit(position)\n    self.setbyte(position \/ 8, self.getbyte(position \/ 8) | (1 &lt;&lt; (position % 8)))\n  end\nend\n\nbinary = \"\\x00\"\nbinary.set_bit(3)  # \u52b9\u7387\u7684\u306a\u30d3\u30c3\u30c8\u64cd\u4f5c<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u6539\u5584\u306b\u3088\u308a\u3001Ruby 3.3\u306f\u7279\u306b\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u5b9f\u884c\u52b9\u7387\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059\u3002\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u524a\u6e1b\u3068\u51e6\u7406\u901f\u5ea6\u306e\u5411\u4e0a\u306b\u3088\u308a\u3001\u3088\u308a\u52b9\u7387\u7684\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u65b0\u6a5f\u80fd\u3092\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6d3b\u7528\u3059\u308b\u305f\u3081\u306e\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-17\">\u5b9f\u8df5\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/h1>\n\n\n\n<p>Ruby 3.3\u3067\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u3001\u7279\u306bYJIT\u3068\u30e1\u30e2\u30ea\u7ba1\u7406\u306e\u6700\u9069\u5316\u306b\u91cd\u70b9\u3092\u7f6e\u304f\u3053\u3068\u3067\u3001\u5927\u304d\u306a\u52b9\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u672c\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5b9f\u8df5\u7684\u306a\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u624b\u6cd5\u3068\u5177\u4f53\u7684\u306a\u6539\u5584\u4e8b\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-18\">YJIT\u3092\u6700\u5927\u9650\u6d3b\u7528\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-19\">\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u3068\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n\n\n\n<p>YJIT\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u5f15\u304d\u51fa\u3059\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u74b0\u5883\u5909\u6570\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># YJIT\u8a2d\u5b9a\u306e\u4f8b\nENV['RUBY_YJIT_ENABLE'] = '1'           # YJIT\u306e\u6709\u52b9\u5316\nENV['RUBY_YJIT_SIZE_LIMIT'] = '128'     # JIT\u30b3\u30fc\u30c9\u306e\u6700\u5927\u30b5\u30a4\u30ba\uff08MB\uff09\nENV['RUBY_YJIT_TRACE_EXITS'] = '1'      # \u30c8\u30ec\u30fc\u30b9\u60c5\u5831\u306e\u53ce\u96c6\n\n# \u8a2d\u5b9a\u306e\u78ba\u8a8d\nif RubyVM::YJIT.enabled?\n  puts \"YJIT Status: #{RubyVM::YJIT.stats}\"\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-20\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">require 'benchmark'\nrequire 'memory_profiler'\n\n# \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a08\u6e2c\u7528\u306e\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\ndef measure_performance\n  stats_before = RubyVM::YJIT.stats\n  result = yield\n  stats_after = RubyVM::YJIT.stats\n\n  puts \"YJIT\u52b9\u679c\u6e2c\u5b9a:\"\n  puts \"- \u30b3\u30fc\u30c9\u751f\u6210: #{stats_after[:compiled_iseq_count] - stats_before[:compiled_iseq_count]}\u500b\"\n  puts \"- \u5b9f\u884c\u6642\u9593: #{result.real}\u79d2\"\n  result\nend\n\n# \u4f7f\u7528\u4f8b\nmeasure_performance do\n  Benchmark.measure do\n    # \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6e2c\u5b9a\u3057\u305f\u3044\u30b3\u30fc\u30c9\n    1000.times { complex_calculation }\n  end\nend<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-21\">\u30e1\u30e2\u30ea\u6700\u9069\u5316\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-22\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u7ba1\u7406<\/h3>\n\n\n\n<p>\u30e1\u30e2\u30ea\u4f7f\u7528\u3092\u6700\u9069\u5316\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d7\u30fc\u30eb\u306e\u5b9f\u88c5\u4f8b\nclass ObjectPool\n  def initialize(size = 1000)\n    @pool = Array.new(size) { create_object }\n    @mutex = Mutex.new\n  end\n\n  def acquire\n    @mutex.synchronize do\n      @pool.pop || create_object\n    end\n  end\n\n  def release(obj)\n    @mutex.synchronize do\n      @pool.push(obj) if @pool.size &lt; 1000\n    end\n  end\n\n  private\n\n  def create_object\n    # \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u751f\u6210\n    YourObject.new\n  end\nend\n\n# \u4f7f\u7528\u4f8b\npool = ObjectPool.new\nobj = pool.acquire\n# \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\npool.release(obj)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-23\">GC\u8a2d\u5b9a\u306e\u6700\u9069\u5316<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># GC\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6700\u9069\u5316\nGC.configure(\n  malloc_limit: 16 * 1024 * 1024,\n  malloc_limit_max: 32 * 1024 * 1024,\n  heap_free_slots: 4096,\n  heap_init_slots: 10000\n)\n\n# GC\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u5236\u5fa1\nGC.disable\nbegin\n  # GC\u3092\u767a\u751f\u3055\u305b\u305f\u304f\u306a\u3044\u91cd\u8981\u306a\u51e6\u7406\n  critical_operation\nensure\n  GC.enable\n  GC.start\nend<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-24\">\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u4f8b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-25\">Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u6539\u5584\u4e8b\u4f8b<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001\u5b9f\u969b\u306eRails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u6539\u5584\u4f8b\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30ad\u30e3\u30c3\u30b7\u30e5\u6226\u7565\u306e\u6700\u9069\u5316\nclass ProductsController &lt; ApplicationController\n  def index\n    @products = Rails.cache.fetch(\"products\/all\", expires_in: 1.hour) do\n      Product.includes(:category, :tags).all.to_a\n    end\n  end\nend\n\n# N+1\u30af\u30a8\u30ea\u306e\u6700\u9069\u5316\nclass Order &lt; ApplicationRecord\n  belongs_to :user\n  has_many :items\n\n  # \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u8003\u616e\u3057\u305f\u30b9\u30b3\u30fc\u30d7\n  scope :with_details, -&gt; {\n    includes(:user, :items)\n      .where(created_at: 1.month.ago..)\n      .order(created_at: :desc)\n  }\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-26\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u306e\u6e2c\u5b9a\u7d50\u679c<\/h3>\n\n\n\n<p>\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u6539\u5584\u52b9\u679c\u3092\u793a\u3059\u5177\u4f53\u7684\u306a\u6570\u5024\u3067\u3059\uff1a<\/p>\n\n\n<div id=\"id-28f71413-cf33-4916-92b0-ffc9976b7647\">\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u6700\u9069\u5316\u9805\u76ee<\/th><th>\u6539\u5584\u524d<\/th><th>\u6539\u5584\u5f8c<\/th><th>\u6539\u5584\u7387<\/th><\/tr><\/thead><tbody><tr><td>\u30da\u30fc\u30b8\u30ed\u30fc\u30c9\u6642\u9593<\/td><td>500ms<\/td><td>250ms<\/td><td>50%<\/td><\/tr><tr><td>\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf<\/td><td>512MB<\/td><td>384MB<\/td><td>25%<\/td><\/tr><tr><td>\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593<\/td><td>200ms<\/td><td>120ms<\/td><td>40%<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"i-27\">\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6bb5\u968e\u7684\u306a\u6700\u9069\u5316<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u307e\u305a\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u3092\u884c\u3044\u3001\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u7279\u5b9a<\/li>\n\n\n\n<li>\u6700\u3082\u52b9\u679c\u306e\u9ad8\u3044\u90e8\u5206\u304b\u3089\u9806\u306b\u6539\u5584<\/li>\n\n\n\n<li>\u6539\u5584\u52b9\u679c\u3092\u5b9a\u91cf\u7684\u306b\u6e2c\u5b9a<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u5bfe\u7b56<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u691c\u51fa\u7528\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\nMemoryProfiler.report do\n  # \u6e2c\u5b9a\u5bfe\u8c61\u306e\u51e6\u7406\n  your_memory_intensive_process\nend.pretty_print\n\n# \u5b9a\u671f\u7684\u306a\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u30c1\u30a7\u30c3\u30af\ndef monitor_memory_usage\n  initial_memory = GetProcessMem.new.mb\n  yield\n  final_memory = GetProcessMem.new.mb\n  puts \"Memory difference: #{final_memory - initial_memory} MB\"\nend<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u6700\u9069\u5316\u6280\u8853\u3092\u9069\u5207\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001Ruby 3.3\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u6700\u9069\u5316\u3092\u65e2\u5b58\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5b89\u5168\u306b\u9069\u7528\u3059\u308b\u305f\u3081\u306e\u79fb\u884c\u30ac\u30a4\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-28\">Ruby 3.3 \u3078\u306e\u79fb\u884c\u30ac\u30a4\u30c9<\/h1>\n\n\n\n<p>Ruby 3.3\u3078\u306e\u79fb\u884c\u3092\u6210\u529f\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u8a08\u753b\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3068\u6ce8\u610f\u6df1\u3044\u6e96\u5099\u304c\u5fc5\u8981\u3067\u3059\u3002\u672c\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30b9\u30e0\u30fc\u30ba\u306a\u79fb\u884c\u306e\u305f\u3081\u306e\u5177\u4f53\u7684\u306a\u624b\u9806\u3068\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-29\">\u4e92\u63db\u6027\u306e\u6ce8\u610f\u70b9\u3068\u5bfe\u51e6\u65b9\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-30\">\u4e3b\u306a\u4e92\u63db\u6027\u306e\u5909\u66f4\u70b9<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Ruby 3.3\u3067\u306e\u975e\u63a8\u5968\u6a5f\u80fd\u306e\u4f8b\nclass Example\n  # \u65e7: warn\u547c\u3073\u51fa\u3057\u65b9\u6cd5\n  warn \"deprecated message\"  # Ruby 3.3\u3067\u306f\u8b66\u544a\u304c\u51fa\u308b\n\n  # \u65b0: \u30ab\u30c6\u30b4\u30ea\u4ed8\u304d\u306e\u8b66\u544a\n  Warning.warn(\"deprecated message\", category: :deprecated)\nend\n\n# \u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u4e92\u63db\u6027\ndef legacy_method(options = {})  # \u65e7\u30b9\u30bf\u30a4\u30eb\n  puts options[:name]\nend\n\ndef modern_method(name:)        # \u65b0\u30b9\u30bf\u30a4\u30eb\n  puts name\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-31\">\u4f9d\u5b58gem\u306e\u4e92\u63db\u6027\u78ba\u8a8d<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Gemfile\u306e\u66f4\u65b0\u4f8b\nsource 'https:\/\/rubygems.org'\n\nruby '3.3.0'  # Ruby\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u660e\u793a\n\n# \u4e92\u63db\u6027\u306e\u78ba\u8a8d\u304c\u5fc5\u8981\u306agem\ngem 'rails', '~&gt; 7.1.0'\ngem 'puma', '~&gt; 6.0'\ngem 'sidekiq', '~&gt; 7.0'\n\n# \u30d0\u30fc\u30b8\u30e7\u30f3\u56fa\u5b9a\u304c\u5fc5\u8981\u306a\u5834\u5408\ngem 'legacy_gem', '1.2.3'  # \u7279\u5b9a\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u56fa\u5b9a<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-32\">\u30b9\u30e0\u30fc\u30ba\u306a\u79fb\u884c\u306e\u305f\u3081\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u4e8b\u524d\u6e96\u5099<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u73fe\u72b6\u5206\u6790<\/li>\n\n\n\n<li>\u30c6\u30b9\u30c8\u30ab\u30d0\u30ec\u30c3\u30b8\u306e\u78ba\u8a8d<\/li>\n\n\n\n<li>\u4f9d\u5b58\u95a2\u4fc2\u306e\u6d17\u3044\u51fa\u3057<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30c6\u30b9\u30c8\u74b0\u5883\u306e\u6574\u5099<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30c6\u30b9\u30c8\u74b0\u5883\u69cb\u7bc9\u30b9\u30af\u30ea\u30d7\u30c8\ndef setup_test_environment\n  # RSpec\u306e\u8a2d\u5b9a\n  RSpec.configure do |config|\n    config.before(:suite) do\n      # 3.3\u56fa\u6709\u306e\u8a2d\u5b9a\n      RubyVM::YJIT.enable if defined?(RubyVM::YJIT)\n    end\n\n    config.after(:suite) do\n      # \u30c6\u30b9\u30c8\u5f8c\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\n      cleanup_test_data\n    end\n  end\nend\n\n# \u4e92\u63db\u6027\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\ndef run_compatibility_tests\n  # \u91cd\u8981\u306a\u6a5f\u80fd\u306e\u30c6\u30b9\u30c8\n  test_critical_features\n  # \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c6\u30b9\u30c8\n  benchmark_key_operations\n  # \u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u30c1\u30a7\u30c3\u30af\n  check_memory_leaks\nend<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-33\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5b9f\u8df5\u7684\u30a2\u30d7\u30ed\u30fc\u30c1<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-34\">\u4e00\u822c\u7684\u306a\u554f\u984c\u3068\u89e3\u6c7a\u7b56<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30e1\u30e2\u30ea\u95a2\u9023\u306e\u554f\u984c<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\nrequire 'get_process_mem'\n\ndef monitor_memory_usage\n  memory = GetProcessMem.new\n  initial_memory = memory.mb\n\n  yield\n\n  final_memory = memory.mb\n  puts \"Memory usage: #{final_memory - initial_memory} MB\"\nend\n\n# \u4f7f\u7528\u4f8b\nmonitor_memory_usage do\n  # \u554f\u984c\u306e\u7591\u308f\u308c\u308b\u51e6\u7406\n  your_heavy_process\nend<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u554f\u984c\u306e\u8a3a\u65ad<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">require 'benchmark'\nrequire 'stackprof'\n\n# \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u554f\u984c\u306e\u8a3a\u65ad\ndef diagnose_performance\n  result = StackProf.run(mode: :wall, raw: true) do\n    Benchmark.measure do\n      yield\n    end\n  end\n\n  StackProf::Report.new(result).print_text\nend\n\n# \u4f7f\u7528\u4f8b\ndiagnose_performance do\n  1000.times { your_slow_method }\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-35\">\u30c7\u30d0\u30c3\u30b0\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u306e\u5f37\u5316\ndef enhanced_logging\n  begin\n    yield\n  rescue =&gt; e\n    logger.error \"Error occurred: #{e.message}\"\n    logger.error \"Backtrace:\\n#{e.backtrace.join(\"\\n\")}\"\n    logger.error \"Ruby version: #{RUBY_VERSION}\"\n    logger.error \"YJIT enabled: #{RubyVM::YJIT.enabled?}\"\n    raise\n  end\nend<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-36\">\u79fb\u884c\u5f8c\u306e\u691c\u8a3c\u3068\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0<\/li>\n\n\n\n<li>\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf<\/li>\n\n\n\n<li>CPU\u306e\u4f7f\u7528\u7387<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30a8\u30e9\u30fc\u76e3\u8996<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30a8\u30e9\u30fc\u76e3\u8996\u306e\u8a2d\u5b9a\nSentry.init do |config|\n  config.dsn = 'your-dsn'\n  config.traces_sample_rate = 0.1\n  config.environment = Rails.env\n\n  # Ruby 3.3\u7279\u6709\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u8ffd\u52a0\n  config.before_send = lambda do |event, hint|\n    event.extra['ruby_version'] = RUBY_VERSION\n    event.extra['yjit_enabled'] = RubyVM::YJIT.enabled?\n    event.extra['yjit_stats'] = RubyVM::YJIT.stats if RubyVM::YJIT.enabled?\n    event\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u3068\u5b9f\u8df5\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001Ruby 3.3\u3078\u306e\u79fb\u884c\u3092\u3088\u308a\u5b89\u5168\u304b\u3064\u52b9\u7387\u7684\u306b\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u79fb\u884c\u5f8c\u306e\u65b0\u6a5f\u80fd\u6d3b\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-37\">Ruby 3.3\u3067\u5b9f\u73fe\u3059\u308b\u6b21\u4e16\u4ee3\u306e\u958b\u767a\u4f53\u9a13<\/h1>\n\n\n\n<p>Ruby 3.3\u306f\u3001\u5358\u306a\u308b\u6a5f\u80fd\u8ffd\u52a0\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u306b\u3068\u3069\u307e\u3089\u305a\u3001\u958b\u767a\u8005\u306e\u751f\u7523\u6027\u3092\u5927\u304d\u304f\u5411\u4e0a\u3055\u305b\u308b\u53ef\u80fd\u6027\u3092\u79d8\u3081\u3066\u3044\u307e\u3059\u3002\u672c\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5b9f\u8df5\u7684\u306a\u6d3b\u7528\u65b9\u6cd5\u3068\u5c06\u6765\u5c55\u671b\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-38\">\u958b\u767a\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u308b\u65b0\u6a5f\u80fd\u306e\u6d3b\u7528\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-39\">\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u306e\u9ad8\u5ea6\u306a\u6d3b\u7528<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u9ad8\u5ea6\u306a\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u306e\u4f8b\ncase complex_data\nin { user: { name:, age: 20.. } }\n  puts \"\u6210\u4eba\u30e6\u30fc\u30b6\u30fc: #{name}\"\nin { user: { name:, age: } }\n  puts \"\u672a\u6210\u5e74\u30e6\u30fc\u30b6\u30fc: #{name} (#{age}\u6b73)\"\nend\n\n# \u30c7\u30fc\u30bf\u5909\u63db\u3067\u306e\u6d3b\u7528\ndef transform_data(input)\n  case input\n  in [*, { id:, value: }]\n    { processed_id: id, calculated_value: value * 2 }\n  in { id:, values: [first, *rest] }\n    { processed_id: id, first_value: first, remaining: rest }\n  end\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-40\">TypedRuby\u3068\u306e\u7d71\u5408<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># RBS\uff08Ruby Signature\uff09\u306e\u6d3b\u7528\u4f8b\n# @type\/user.rbs\nclass User\n  attr_reader name: String\n  attr_reader age: Integer\n\n  def initialize: (name: String, age: Integer) -&gt; void\n  def adult?: -&gt; bool\nend\n\n# \u5b9f\u88c5\nclass User\n  def initialize(name:, age:)\n    @name = name\n    @age = age\n  end\n\n  def adult?\n    @age &gt;= 20\n  end\nend<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-41\">\u5b9f\u52d9\u3067\u306e\u5177\u4f53\u7684\u306a\u6d3b\u7528\u624b\u9806<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-42\">CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u6700\u9069\u5316<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># GitHub Actions\u306e\u8a2d\u5b9a\u4f8b\n# .github\/workflows\/ruby.yml\nname: Ruby CI\n\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions\/checkout@v3\n    - uses: ruby\/setup-ruby@v1\n      with:\n        ruby-version: '3.3'\n        bundler-cache: true\n    - name: Enable YJIT\n      run: |\n        echo \"RUBY_YJIT_ENABLE=1\" &gt;&gt; $GITHUB_ENV\n    - name: Run tests\n      run: |\n        bundle exec rspec\n        bundle exec rubocop<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-43\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306e\u81ea\u52d5\u5316<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30ab\u30b9\u30bf\u30e0\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306e\u5b9f\u88c5\nmodule PerformanceMonitor\n  def self.track(name)\n    start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)\n    start_memory = GetProcessMem.new.mb\n\n    result = yield\n\n    end_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)\n    end_memory = GetProcessMem.new.mb\n\n    stats = {\n      duration: (end_time - start_time) * 1000,\n      memory_diff: end_memory - start_memory,\n      yjit_stats: RubyVM::YJIT.stats\n    }\n\n    StatsD.timing(\"ruby.#{name}\", stats)\n    result\n  end\nend\n\n# \u4f7f\u7528\u4f8b\nPerformanceMonitor.track('complex_calculation') do\n  perform_complex_task\nend<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-44\">\u5c06\u6765\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3078\u306e\u5c55\u671b<\/h2>\n\n\n\n<p>Ruby 3.3\u306f\u3001Ruby\u306e\u672a\u6765\u3092\u793a\u3059\u91cd\u8981\u306a\u30de\u30a4\u30eb\u30b9\u30c8\u30fc\u30f3\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u5f8c\u671f\u5f85\u3055\u308c\u308b\u767a\u5c55\u3068\u3057\u3066\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>JIT\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u66f4\u306a\u308b\u9032\u5316<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>YJIT\u306e\u6700\u9069\u5316\u306e\u6df1\u5316<\/li>\n\n\n\n<li>\u3088\u308a\u5e83\u7bc4\u306a\u30b3\u30fc\u30c9\u30d1\u30bf\u30fc\u30f3\u306e\u6700\u9069\u5316<\/li>\n\n\n\n<li>\u30e1\u30e2\u30ea\u4f7f\u7528\u52b9\u7387\u306e\u66f4\u306a\u308b\u6539\u5584<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u958b\u767a\u30c4\u30fc\u30eb\u30c1\u30a7\u30fc\u30f3\u306e\u5f37\u5316<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IDE\u7d71\u5408\u306e\u5411\u4e0a<\/li>\n\n\n\n<li>\u9759\u7684\u89e3\u6790\u30c4\u30fc\u30eb\u306e\u5145\u5b9f<\/li>\n\n\n\n<li>\u30c7\u30d0\u30c3\u30b0\u6a5f\u80fd\u306e\u62e1\u5145<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306e\u81ea\u52d5\u5316<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u81ea\u52d5\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u6a5f\u80fd\u306e\u5c0e\u5165<\/li>\n\n\n\n<li>\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u306e\u9032\u5316<\/li>\n\n\n\n<li>\u3088\u308a\u8ce2\u3044\u30e1\u30e2\u30ea\u7ba1\u7406<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u9032\u5316\u306b\u3088\u308a\u3001Ruby\u306f\u9ad8\u3044\u751f\u7523\u6027\u3068\u5b9f\u884c\u52b9\u7387\u3092\u4e21\u7acb\u3059\u308b\u3001\u6b21\u4e16\u4ee3\u306e\u958b\u767a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u3057\u3066\u306e\u5730\u4f4d\u3092\u78ba\u7acb\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby 3.3 \u306e\u9769\u65b0\u7684\u306a\u9032\u5316\u3068\u306f Ruby 3.3\u306f\u30012023\u5e7412\u670825\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u753b\u671f\u7684\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002\u7279\u306b\u6ce8\u76ee\u3059\u3079\u304d\u306f\u3001YJIT 2.0\u306b\u3088\u308b\u5287\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u3068\u3001\u65b0\u3057\u3044\u30d1\u30fc\u30b5\u30fc\u30a8\u30f3\u30b8\u30f3Prism &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":{"0":"post-1241","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-ruby","7":"nothumb"},"_links":{"self":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1241"}],"version-history":[{"count":1,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1241\/revisions"}],"predecessor-version":[{"id":1242,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1241\/revisions\/1242"}],"wp:attachment":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}