rss_feed_plus 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1843 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+
4
+ <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
5
+ <channel>
6
+ <title>Ruby News</title>
7
+ <link>https://www.ruby-lang.org/en/feeds/news.rss</link>
8
+ <language>en-US</language>
9
+ <ttl>40</ttl>
10
+ <description>The latest news from ruby-lang.org.</description>
11
+
12
+ <item>
13
+ <title>CVE-2024-27281: RCE vulnerability with .rdoc_options in RDoc</title>
14
+ <description>&lt;p&gt;We have released the RDoc gem version 6.3.4.1, 6.4.1.1, 6.5.1.1 and 6.6.3.1 that have a security fix for a RCE vulnerability.
15
+ This vulnerability has been assigned the CVE identifier &lt;a href=&quot;https://www.cve.org/CVERecord?id=CVE-2024-27281&quot;&gt;CVE-2024-27281&lt;/a&gt;.&lt;/p&gt;
16
+
17
+ &lt;h2&gt;Details&lt;/h2&gt;
18
+
19
+ &lt;p&gt;An issue was discovered in RDoc 6.3.3 through 6.6.2, as distributed in Ruby 3.x through 3.3.0.&lt;/p&gt;
20
+
21
+ &lt;p&gt;When parsing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.rdoc_options&lt;/code&gt; (used for configuration in RDoc) as a YAML file, object injection and resultant remote code execution are possible because there are no restrictions on the classes that can be restored.&lt;/p&gt;
22
+
23
+ &lt;p&gt;When loading the documentation cache, object injection and resultant remote code execution are also possible if there were a crafted cache.&lt;/p&gt;
24
+
25
+ &lt;h2&gt;Recommended action&lt;/h2&gt;
26
+
27
+ &lt;p&gt;We recommend to update the RDoc gem to version 6.6.3.1 or later. In order to ensure compatibility with bundled version in older Ruby series, you may update as follows instead:&lt;/p&gt;
28
+
29
+ &lt;ul&gt;
30
+ &lt;li&gt;For Ruby 3.0 users: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rdoc&lt;/code&gt; 6.3.4.1&lt;/li&gt;
31
+ &lt;li&gt;For Ruby 3.1 users: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rdoc&lt;/code&gt; 6.4.1.1&lt;/li&gt;
32
+ &lt;li&gt;For Ruby 3.2 users: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rdoc&lt;/code&gt; 6.5.1.1&lt;/li&gt;
33
+ &lt;/ul&gt;
34
+
35
+ &lt;p&gt;You can use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem update rdoc&lt;/code&gt; to update it. If you are using bundler, please add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem &quot;rdoc&quot;, &quot;&amp;gt;= 6.6.3.1&quot;&lt;/code&gt; to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt;.&lt;/p&gt;
36
+
37
+ &lt;p&gt;Note: 6.3.4, 6.4.1, 6.5.1 and 6.6.3 have a incorrect fix. We recommend to upgrade 6.3.4.1, 6.4.1.1, 6.5.1.1 and 6.6.3.1 instead of them.&lt;/p&gt;
38
+
39
+ &lt;h2&gt;Affected versions&lt;/h2&gt;
40
+
41
+ &lt;ul&gt;
42
+ &lt;li&gt;Ruby 3.0.6 or lower&lt;/li&gt;
43
+ &lt;li&gt;Ruby 3.1.4 or lower&lt;/li&gt;
44
+ &lt;li&gt;Ruby 3.2.3 or lower&lt;/li&gt;
45
+ &lt;li&gt;Ruby 3.3.0&lt;/li&gt;
46
+ &lt;li&gt;RDoc gem 6.3.3 or lower, 6.4.0 through 6.6.2 without the patch versions (6.3.4, 6.4.1, 6.5.1)&lt;/li&gt;
47
+ &lt;/ul&gt;
48
+
49
+ &lt;h2&gt;Credits&lt;/h2&gt;
50
+
51
+ &lt;p&gt;Thanks to &lt;a href=&quot;https://hackerone.com/ooooooo_q?type=user&quot;&gt;ooooooo_q&lt;/a&gt; for discovering this issue.&lt;/p&gt;
52
+
53
+ &lt;h2&gt;History&lt;/h2&gt;
54
+
55
+ &lt;ul&gt;
56
+ &lt;li&gt;Originally published at 2024-03-21 4:00:00 (UTC)&lt;/li&gt;
57
+ &lt;/ul&gt;
58
+
59
+ &lt;p&gt;Posted by hsbt on 21 Mar 2024&lt;/p&gt;</description>
60
+ <pubDate>Thu, 21 Mar 2024 04:00:00 +0000</pubDate>
61
+ <guid>https://www.ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/</guid>
62
+ <link>https://www.ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/</link>
63
+ </item>
64
+
65
+ <item>
66
+ <title>CVE-2024-27280: Buffer overread vulnerability in StringIO</title>
67
+ <description>&lt;p&gt;We have released the StringIO gem version 3.0.1.1 and 3.0.1.2 that have a security fix for a buffer overread vulnerability.
68
+ This vulnerability has been assigned the CVE identifier &lt;a href=&quot;https://www.cve.org/CVERecord?id=CVE-2024-27280&quot;&gt;CVE-2024-27280&lt;/a&gt;.&lt;/p&gt;
69
+
70
+ &lt;h2&gt;Details&lt;/h2&gt;
71
+
72
+ &lt;p&gt;An issue was discovered in StringIO 3.0.1, as distributed in Ruby 3.0.x through 3.0.6 and 3.1.x through 3.1.4.&lt;/p&gt;
73
+
74
+ &lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ungetbyte&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ungetc&lt;/code&gt; methods on a StringIO can read past the end of a string, and a subsequent call to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;StringIO.gets&lt;/code&gt; may return the memory value.&lt;/p&gt;
75
+
76
+ &lt;p&gt;This vulnerability is not affected StringIO 3.0.3 and later, and Ruby 3.2.x and later.&lt;/p&gt;
77
+
78
+ &lt;h2&gt;Recommended action&lt;/h2&gt;
79
+
80
+ &lt;p&gt;We recommend to update the StringIO gem to version 3.0.3 or later. In order to ensure compatibility with bundled version in older Ruby series, you may update as follows instead:&lt;/p&gt;
81
+
82
+ &lt;ul&gt;
83
+ &lt;li&gt;For Ruby 3.0 users: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;stringio&lt;/code&gt; 3.0.1.1&lt;/li&gt;
84
+ &lt;li&gt;For Ruby 3.1 users: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;stringio&lt;/code&gt; 3.0.1.2&lt;/li&gt;
85
+ &lt;/ul&gt;
86
+
87
+ &lt;p&gt;Note: that StringIO 3.0.1.2 contains not only the fix for this vulnerability but also a bugfix for &lt;a href=&quot;https://github.com/ruby/ruby/commit/1d24a931c458c93463da1d5885f33edef3677cc2&quot;&gt;[Bug #19389]&lt;/a&gt;.&lt;/p&gt;
88
+
89
+ &lt;p&gt;You can use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem update stringio&lt;/code&gt; to update it. If you are using bundler, please add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem &quot;stringio&quot;, &quot;&amp;gt;= 3.0.1.2&quot;&lt;/code&gt; to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt;.&lt;/p&gt;
90
+
91
+ &lt;h2&gt;Affected versions&lt;/h2&gt;
92
+
93
+ &lt;ul&gt;
94
+ &lt;li&gt;Ruby 3.0.6 or lower&lt;/li&gt;
95
+ &lt;li&gt;Ruby 3.1.4 or lower&lt;/li&gt;
96
+ &lt;li&gt;StringIO gem 3.0.2 or lower&lt;/li&gt;
97
+ &lt;/ul&gt;
98
+
99
+ &lt;h2&gt;Credits&lt;/h2&gt;
100
+
101
+ &lt;p&gt;Thanks to &lt;a href=&quot;https://hackerone.com/david_h1?type=user&quot;&gt;david_h1&lt;/a&gt; for discovering this issue.&lt;/p&gt;
102
+
103
+ &lt;h2&gt;History&lt;/h2&gt;
104
+
105
+ &lt;ul&gt;
106
+ &lt;li&gt;Originally published at 2024-03-21 4:00:00 (UTC)&lt;/li&gt;
107
+ &lt;/ul&gt;
108
+
109
+ &lt;p&gt;Posted by hsbt on 21 Mar 2024&lt;/p&gt;</description>
110
+ <pubDate>Thu, 21 Mar 2024 04:00:00 +0000</pubDate>
111
+ <guid>https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/</guid>
112
+ <link>https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/</link>
113
+ </item>
114
+
115
+ <item>
116
+ <title>Ruby 3.2.3 Released</title>
117
+ <description>&lt;p&gt;Ruby 3.2.3 has been released.&lt;/p&gt;
118
+
119
+ &lt;p&gt;This release includes many bug-fixes.
120
+ See the &lt;a href=&quot;https://github.com/ruby/ruby/releases/tag/v3_2_3&quot;&gt;GitHub releases&lt;/a&gt; for further details.&lt;/p&gt;
121
+
122
+ &lt;p&gt;This release also includes the update of uri.gem to 0.12.2 which contains the security fix.
123
+ Please check the topics below for details.&lt;/p&gt;
124
+
125
+ &lt;ul&gt;
126
+ &lt;li&gt;&lt;a href=&quot;/en/news/2023/06/29/redos-in-uri-CVE-2023-36617/&quot;&gt;CVE-2023-36617: ReDoS vulnerability in URI&lt;/a&gt;&lt;/li&gt;
127
+ &lt;/ul&gt;
128
+
129
+ &lt;h2&gt;Download&lt;/h2&gt;
130
+
131
+ &lt;ul&gt;
132
+ &lt;li&gt;
133
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz&lt;/a&gt;&lt;/p&gt;
134
+
135
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 20577155
136
+ SHA1: 7f553e514cb42751a61c3a560a7e8d727c6931ca
137
+ SHA256: af7f1757d9ddb630345988139211f1fd570ff5ba830def1cc7c468ae9b65c9ba
138
+ SHA512: 75aecd9cf87f1fa66b24ecda8837a53162071b4f8801dcfd79119a24c6e81df3e3e2ba478e1cc48c60103dfaab12a00cfa2039a621f8651298eba8bd8d576360
139
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
140
+ &lt;/li&gt;
141
+ &lt;li&gt;
142
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.xz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.xz&lt;/a&gt;&lt;/p&gt;
143
+
144
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 15163960
145
+ SHA1: 08e0016c8b96103930aaa3b2323081d8f5756e25
146
+ SHA256: cfb231954b8c241043a538a4c682a1cca0b2016d835fee0b9e4a0be3ceba476b
147
+ SHA512: d2a1897c2f4e801a28acb869322abfee76775115016252cecad90639485ed51deda1446cb16edb387f10a2e188602d646ef9b008b57f27bd745071277c535f3b
148
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
149
+ &lt;/li&gt;
150
+ &lt;li&gt;
151
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.zip&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.zip&lt;/a&gt;&lt;/p&gt;
152
+
153
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 24734275
154
+ SHA1: e305dfe36229c5328d231ea0ac03ae5e05bfaca6
155
+ SHA256: 42aa39f74e5be9e24e4db47e7bfb15dc7e095f7e2295859b355edccf6fab96a2
156
+ SHA512: fd89a0a833df4b5cb1734a7ffc86a8cf7cb3a8e25944331db674d3ad7732f615867e7e214e1fdd61e44e9c9c856b461b46219b340de7c87a758f28f3a99dd172
157
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
158
+ &lt;/li&gt;
159
+ &lt;/ul&gt;
160
+
161
+ &lt;h2&gt;Release Comment&lt;/h2&gt;
162
+
163
+ &lt;p&gt;Many committers, developers, and users who provided bug reports helped us make this release.
164
+ Thanks for their contributions.&lt;/p&gt;
165
+
166
+ &lt;p&gt;Posted by nagachika on 18 Jan 2024&lt;/p&gt;</description>
167
+ <pubDate>Thu, 18 Jan 2024 09:00:00 +0000</pubDate>
168
+ <guid>https://www.ruby-lang.org/en/news/2024/01/18/ruby-3-2-3-released/</guid>
169
+ <link>https://www.ruby-lang.org/en/news/2024/01/18/ruby-3-2-3-released/</link>
170
+ </item>
171
+
172
+ <item>
173
+ <title>Ruby 3.3.0 Released</title>
174
+ <description>
175
+ &lt;p&gt;We are pleased to announce the release of Ruby 3.3.0. Ruby 3.3 adds a new parser named Prism, uses Lrama as a parser generator, adds a new pure-Ruby JIT compiler named RJIT, and many performance improvements especially YJIT.&lt;/p&gt;
176
+
177
+ &lt;h2&gt;Prism&lt;/h2&gt;
178
+
179
+ &lt;ul&gt;
180
+ &lt;li&gt;Introduced &lt;a href=&quot;https://github.com/ruby/prism&quot;&gt;the Prism parser&lt;/a&gt; as a default gem
181
+ &lt;ul&gt;
182
+ &lt;li&gt;Prism is a portable, error tolerant, and maintainable recursive descent parser for the Ruby language&lt;/li&gt;
183
+ &lt;/ul&gt;
184
+ &lt;/li&gt;
185
+ &lt;li&gt;Prism is production ready and actively maintained, you can use it in place of Ripper
186
+ &lt;ul&gt;
187
+ &lt;li&gt;There is &lt;a href=&quot;https://ruby.github.io/prism/&quot;&gt;extensive documentation&lt;/a&gt; on how to use Prism&lt;/li&gt;
188
+ &lt;li&gt;Prism is both a C library that will be used internally by CRuby and a Ruby gem that can be used by any tooling which needs to parse Ruby code&lt;/li&gt;
189
+ &lt;li&gt;Notable methods in the Prism API are:
190
+ &lt;ul&gt;
191
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.parse(source)&lt;/code&gt; which returns the AST as part of a parse result object&lt;/li&gt;
192
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.parse_comments(source)&lt;/code&gt; which returns the comments&lt;/li&gt;
193
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.parse_success?(source)&lt;/code&gt; which returns true if there are no errors&lt;/li&gt;
194
+ &lt;/ul&gt;
195
+ &lt;/li&gt;
196
+ &lt;/ul&gt;
197
+ &lt;/li&gt;
198
+ &lt;li&gt;You can make pull requests or issues directly on &lt;a href=&quot;https://github.com/ruby/prism&quot;&gt;the Prism repository&lt;/a&gt; if you are interested in contributing&lt;/li&gt;
199
+ &lt;li&gt;You can now use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ruby --parser=prism&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBYOPT=&quot;--parser=prism&quot;&lt;/code&gt; to experiment with the Prism compiler. Please note that this flag is for debugging only.&lt;/li&gt;
200
+ &lt;/ul&gt;
201
+
202
+ &lt;h2&gt;Use Lrama instead of Bison&lt;/h2&gt;
203
+
204
+ &lt;ul&gt;
205
+ &lt;li&gt;Replace Bison with &lt;a href=&quot;https://github.com/ruby/lrama&quot;&gt;Lrama LALR parser generator&lt;/a&gt; &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19637&quot;&gt;[Feature #19637]&lt;/a&gt;
206
+ &lt;ul&gt;
207
+ &lt;li&gt;If you have interest, please see &lt;a href=&quot;https://rubykaigi.org/2023/presentations/spikeolaf.html&quot;&gt;The future vision of Ruby Parser&lt;/a&gt;&lt;/li&gt;
208
+ &lt;li&gt;Lrama internal parser is replaced with LR parser generated by Racc for maintainability&lt;/li&gt;
209
+ &lt;li&gt;Parameterizing Rules &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(?, *, +)&lt;/code&gt; are supported, it will be used in Ruby parse.y&lt;/li&gt;
210
+ &lt;/ul&gt;
211
+ &lt;/li&gt;
212
+ &lt;/ul&gt;
213
+
214
+ &lt;h2&gt;YJIT&lt;/h2&gt;
215
+
216
+ &lt;ul&gt;
217
+ &lt;li&gt;Major performance improvements over Ruby 3.2
218
+ &lt;ul&gt;
219
+ &lt;li&gt;Support for splat and rest arguments has been improved.&lt;/li&gt;
220
+ &lt;li&gt;Registers are allocated for stack operations of the virtual machine.&lt;/li&gt;
221
+ &lt;li&gt;More calls with optional arguments are compiled. Exception handlers are also compiled.&lt;/li&gt;
222
+ &lt;li&gt;Unsupported call types and megamorphic call sites no longer exit to the interpreter.&lt;/li&gt;
223
+ &lt;li&gt;Basic methods like Rails &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#blank?&lt;/code&gt; and
224
+ &lt;a href=&quot;https://github.com/rails/rails/pull/49909&quot;&gt;specialized &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#present?&lt;/code&gt;&lt;/a&gt; are inlined.&lt;/li&gt;
225
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Integer#*&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Integer#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String#getbyte&lt;/code&gt;,
226
+ &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#block_given?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#is_a?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#instance_of?&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Module#===&lt;/code&gt;
227
+ are specially optimized.&lt;/li&gt;
228
+ &lt;li&gt;Compilation speed is now slightly faster than Ruby 3.2.&lt;/li&gt;
229
+ &lt;li&gt;Now more than 3x faster than the interpreter on Optcarrot!&lt;/li&gt;
230
+ &lt;/ul&gt;
231
+ &lt;/li&gt;
232
+ &lt;li&gt;Significantly improved memory usage over Ruby 3.2
233
+ &lt;ul&gt;
234
+ &lt;li&gt;Metadata for compiled code uses a lot less memory.&lt;/li&gt;
235
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-call-threshold&lt;/code&gt; is automatically raised from 30 to 120
236
+ when the application has more than 40,000 ISEQs.&lt;/li&gt;
237
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-cold-threshold&lt;/code&gt; is added to skip compiling cold ISEQs.&lt;/li&gt;
238
+ &lt;li&gt;More compact code is generated on Arm64.&lt;/li&gt;
239
+ &lt;/ul&gt;
240
+ &lt;/li&gt;
241
+ &lt;li&gt;Code GC is now disabled by default
242
+ &lt;ul&gt;
243
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-exec-mem-size&lt;/code&gt; is treated as a hard limit where compilation of new code stops.&lt;/li&gt;
244
+ &lt;li&gt;No sudden drops in performance due to code GC.
245
+ Better copy-on-write behavior on servers reforking with
246
+ &lt;a href=&quot;https://github.com/shopify/pitchfork&quot;&gt;Pitchfork&lt;/a&gt;.&lt;/li&gt;
247
+ &lt;li&gt;You can still enable code GC if desired with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-code-gc&lt;/code&gt;&lt;/li&gt;
248
+ &lt;/ul&gt;
249
+ &lt;/li&gt;
250
+ &lt;li&gt;Add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RubyVM::YJIT.enable&lt;/code&gt; that can enable YJIT at run-time
251
+ &lt;ul&gt;
252
+ &lt;li&gt;You can start YJIT without modifying command-line arguments or environment variables.
253
+ Rails 7.2 will &lt;a href=&quot;https://github.com/rails/rails/pull/49947&quot;&gt;enable YJIT by default&lt;/a&gt;
254
+ using this method.&lt;/li&gt;
255
+ &lt;li&gt;This can also be used to enable YJIT only once your application is
256
+ done booting. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-disable&lt;/code&gt; can be used if you want to use other
257
+ YJIT options while disabling YJIT at boot.&lt;/li&gt;
258
+ &lt;/ul&gt;
259
+ &lt;/li&gt;
260
+ &lt;li&gt;More YJIT stats are available by default
261
+ &lt;ul&gt;
262
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;yjit_alloc_size&lt;/code&gt; and several more metadata-related stats are now available by default.&lt;/li&gt;
263
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ratio_in_yjit&lt;/code&gt; stat produced by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-stats&lt;/code&gt; is now available in release builds,
264
+ a special stats or dev build is no longer required to access most stats.&lt;/li&gt;
265
+ &lt;/ul&gt;
266
+ &lt;/li&gt;
267
+ &lt;li&gt;Add more profiling capabilities
268
+ &lt;ul&gt;
269
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-perf&lt;/code&gt; is added to facilitate profiling with Linux perf.&lt;/li&gt;
270
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-trace-exits&lt;/code&gt; now supports sampling with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-trace-exits-sample-rate=N&lt;/code&gt;&lt;/li&gt;
271
+ &lt;/ul&gt;
272
+ &lt;/li&gt;
273
+ &lt;li&gt;More thorough testing and multiple bug fixes&lt;/li&gt;
274
+ &lt;/ul&gt;
275
+
276
+ &lt;h2&gt;RJIT&lt;/h2&gt;
277
+
278
+ &lt;ul&gt;
279
+ &lt;li&gt;Introduced a pure-Ruby JIT compiler RJIT and replaced MJIT.
280
+ &lt;ul&gt;
281
+ &lt;li&gt;RJIT supports only x86-64 architecture on Unix platforms.&lt;/li&gt;
282
+ &lt;li&gt;Unlike MJIT, it doesn’t require a C compiler at runtime.&lt;/li&gt;
283
+ &lt;/ul&gt;
284
+ &lt;/li&gt;
285
+ &lt;li&gt;RJIT exists only for experimental purposes.
286
+ &lt;ul&gt;
287
+ &lt;li&gt;You should keep using YJIT in production.&lt;/li&gt;
288
+ &lt;/ul&gt;
289
+ &lt;/li&gt;
290
+ &lt;li&gt;If you are interested in developing JIT for Ruby, please check out &lt;a href=&quot;https://rubykaigi.org/2023/presentations/k0kubun.html#day3&quot;&gt;k0kubun’s presentation on Day 3 of RubyKaigi&lt;/a&gt;.&lt;/li&gt;
291
+ &lt;/ul&gt;
292
+
293
+ &lt;h2&gt;M:N thread scheduler&lt;/h2&gt;
294
+
295
+ &lt;ul&gt;
296
+ &lt;li&gt;M:N thread scheduler was introduced. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19842&quot;&gt;[Feature #19842]&lt;/a&gt;
297
+ &lt;ul&gt;
298
+ &lt;li&gt;M Ruby threads are managed by N native threads (OS threads) so the thread creation and management cost are reduced.&lt;/li&gt;
299
+ &lt;li&gt;It can break C-extension compatibility so that M:N thread scheduler is disabled on the main Ractor by default.
300
+ &lt;ul&gt;
301
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MN_THREADS=1&lt;/code&gt; environment variable enables M:N threads on the main Ractor.&lt;/li&gt;
302
+ &lt;li&gt;M:N threads are always enabled on non-main Ractors.&lt;/li&gt;
303
+ &lt;/ul&gt;
304
+ &lt;/li&gt;
305
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MAX_CPU=n&lt;/code&gt; environment variable sets maximum number of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;N&lt;/code&gt; (maximum number of native threads). The default value is 8.
306
+ &lt;ul&gt;
307
+ &lt;li&gt;Since only one Ruby thread per Ractor can run at the same time, the number of native threads will be used, which is the smaller of the number specified in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MAX_CPU&lt;/code&gt; and the number of running Ractors. So that single Ractor applications (most of applications) will only use 1 native thread.&lt;/li&gt;
308
+ &lt;li&gt;To support blocking operations, more than &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;N&lt;/code&gt; native threads can be used.&lt;/li&gt;
309
+ &lt;/ul&gt;
310
+ &lt;/li&gt;
311
+ &lt;/ul&gt;
312
+ &lt;/li&gt;
313
+ &lt;/ul&gt;
314
+
315
+ &lt;h2&gt;Performance improvements&lt;/h2&gt;
316
+
317
+ &lt;ul&gt;
318
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;defined?(@ivar)&lt;/code&gt; is optimized with Object Shapes.&lt;/li&gt;
319
+ &lt;li&gt;Name resolution such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.getaddrinfo&lt;/code&gt; can now be interrupted (in environments where pthreads are available). &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19965&quot;&gt;[Feature #19965]&lt;/a&gt;&lt;/li&gt;
320
+ &lt;li&gt;Several performance improvements to the Garbage Collector
321
+ &lt;ul&gt;
322
+ &lt;li&gt;Young objects referenced by old objects are no longer immediately
323
+ promoted to the old generation. This significantly reduces the frequency of
324
+ major GC collections. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19678&quot;&gt;[Feature #19678]&lt;/a&gt;&lt;/li&gt;
325
+ &lt;li&gt;A new &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;REMEMBERED_WB_UNPROTECTED_OBJECTS_LIMIT_RATIO&lt;/code&gt; tuning variable was
326
+ introduced to control the number of unprotected objects cause a major GC
327
+ collection to trigger. The default is set to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.01&lt;/code&gt; (1%). This significantly
328
+ reduces the frequency of major GC collection. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19571&quot;&gt;[Feature #19571]&lt;/a&gt;&lt;/li&gt;
329
+ &lt;li&gt;Write Barriers were implemented for many core types that were missing them,
330
+ notably &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Enumerator&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MatchData&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Method&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File::Stat&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;BigDecimal&lt;/code&gt;
331
+ and several others. This significantly reduces minor GC collection time and major
332
+ GC collection frequency.&lt;/li&gt;
333
+ &lt;li&gt;Most core classes are now using Variable Width Allocation, notably &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hash&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time&lt;/code&gt;,
334
+ &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Thread::Backtrace&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Thread::Backtrace::Location&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File::Stat&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Method&lt;/code&gt;.
335
+ This makes these classes faster to allocate and free, use less memory and reduce
336
+ heap fragmentation.&lt;/li&gt;
337
+ &lt;li&gt;Support for weak references has been added to the garbage collector. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19783&quot;&gt;[Feature #19783]&lt;/a&gt;&lt;/li&gt;
338
+ &lt;/ul&gt;
339
+ &lt;/li&gt;
340
+ &lt;/ul&gt;
341
+
342
+ &lt;h2&gt;Other notable changes since 3.2&lt;/h2&gt;
343
+
344
+ &lt;h3&gt;IRB&lt;/h3&gt;
345
+
346
+ &lt;p&gt;IRB has received several enhancements, including but not limited to:&lt;/p&gt;
347
+
348
+ &lt;ul&gt;
349
+ &lt;li&gt;Advanced &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;irb:rdbg&lt;/code&gt; integration that provides an equivalent debugging experience to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pry-byebug&lt;/code&gt; (&lt;a href=&quot;https://github.com/ruby/irb#debugging-with-irb&quot;&gt;doc&lt;/a&gt;).&lt;/li&gt;
350
+ &lt;li&gt;Pager support for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_source&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_cmds&lt;/code&gt; commands.&lt;/li&gt;
351
+ &lt;li&gt;More accurate and helpful information provided by the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_source&lt;/code&gt; commands.&lt;/li&gt;
352
+ &lt;li&gt;Experimental autocompletion using type analysis (&lt;a href=&quot;https://github.com/ruby/irb#type-based-completion&quot;&gt;doc&lt;/a&gt;).&lt;/li&gt;
353
+ &lt;li&gt;It is now possible to change the font color and font style in the completion dialog by a newly introduced class Reline::Face (&lt;a href=&quot;https://github.com/ruby/ruby/blob/master/doc/reline/face.md&quot;&gt;doc&lt;/a&gt;)&lt;/li&gt;
354
+ &lt;/ul&gt;
355
+
356
+ &lt;p&gt;In addition, IRB has also undergone extensive refactoring and received dozens of bug fixes to facilitate easier future enhancements.&lt;/p&gt;
357
+
358
+ &lt;p&gt;For more detailed updates, please refer to &lt;a href=&quot;https://railsatscale.com/2023-12-19-irb-for-ruby-3-3/&quot;&gt;Unveiling the big leap in Ruby 3.3’s IRB&lt;/a&gt;.&lt;/p&gt;
359
+
360
+ &lt;h2&gt;Compatibility issues&lt;/h2&gt;
361
+
362
+ &lt;p&gt;Note: Excluding feature bug fixes.&lt;/p&gt;
363
+
364
+ &lt;ul&gt;
365
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;it&lt;/code&gt; calls without arguments in a block with no ordinary parameters are
366
+ deprecated. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;it&lt;/code&gt; will be a reference to the first block parameter in Ruby 3.4.
367
+ &lt;a href=&quot;https://bugs.ruby-lang.org/issues/18980&quot;&gt;[Feature #18980]&lt;/a&gt;&lt;/li&gt;
368
+ &lt;/ul&gt;
369
+
370
+ &lt;h3&gt;Removed environment variables&lt;/h3&gt;
371
+
372
+ &lt;p&gt;The following deprecated methods are removed.&lt;/p&gt;
373
+
374
+ &lt;ul&gt;
375
+ &lt;li&gt;Environment variable &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_GC_HEAP_INIT_SLOTS&lt;/code&gt; has been deprecated and is a no-op. Please use environment variables &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_GC_HEAP_{0,1,2,3,4}_INIT_SLOTS&lt;/code&gt; instead. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19785&quot;&gt;[Feature #19785]&lt;/a&gt;&lt;/li&gt;
376
+ &lt;/ul&gt;
377
+
378
+ &lt;h2&gt;Stdlib compatibility issues&lt;/h2&gt;
379
+
380
+ &lt;h3&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; is retired&lt;/h3&gt;
381
+
382
+ &lt;ul&gt;
383
+ &lt;li&gt;We have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; that is pure Ruby implementation compatible with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; API. We rely on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; in the future. If you need to use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt;, you can install &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; via rubygems.org with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem install readline-ext&lt;/code&gt;.&lt;/li&gt;
384
+ &lt;li&gt;We no longer need to install libraries like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libreadline&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libedit&lt;/code&gt;.&lt;/li&gt;
385
+ &lt;/ul&gt;
386
+
387
+ &lt;h2&gt;Standard library updates&lt;/h2&gt;
388
+
389
+ &lt;p&gt;RubyGems and Bundler warn if users do &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;require&lt;/code&gt; the following gems without adding them to Gemfile or gemspec. This is because they will become the bundled gems in the future version of Ruby.&lt;/p&gt;
390
+
391
+ &lt;p&gt;This warning is suppressed if you use bootsnap gem. We recommend to run your application with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DISABLE_BOOTSNAP=1&lt;/code&gt; environment variable at least once. This is limitation of this version.&lt;/p&gt;
392
+
393
+ &lt;p&gt;Targeted libraries are:&lt;/p&gt;
394
+ &lt;ul&gt;
395
+ &lt;li&gt;abbrev&lt;/li&gt;
396
+ &lt;li&gt;base64&lt;/li&gt;
397
+ &lt;li&gt;bigdecimal&lt;/li&gt;
398
+ &lt;li&gt;csv&lt;/li&gt;
399
+ &lt;li&gt;drb&lt;/li&gt;
400
+ &lt;li&gt;getoptlong&lt;/li&gt;
401
+ &lt;li&gt;mutex_m&lt;/li&gt;
402
+ &lt;li&gt;nkf&lt;/li&gt;
403
+ &lt;li&gt;observer&lt;/li&gt;
404
+ &lt;li&gt;racc&lt;/li&gt;
405
+ &lt;li&gt;resolv-replace&lt;/li&gt;
406
+ &lt;li&gt;rinda&lt;/li&gt;
407
+ &lt;li&gt;syslog&lt;/li&gt;
408
+ &lt;/ul&gt;
409
+
410
+ &lt;p&gt;The following default gem is added.&lt;/p&gt;
411
+
412
+ &lt;ul&gt;
413
+ &lt;li&gt;prism 0.19.0&lt;/li&gt;
414
+ &lt;/ul&gt;
415
+
416
+ &lt;p&gt;The following default gems are updated.&lt;/p&gt;
417
+
418
+ &lt;ul&gt;
419
+ &lt;li&gt;RubyGems 3.5.3&lt;/li&gt;
420
+ &lt;li&gt;abbrev 0.1.2&lt;/li&gt;
421
+ &lt;li&gt;base64 0.2.0&lt;/li&gt;
422
+ &lt;li&gt;benchmark 0.3.0&lt;/li&gt;
423
+ &lt;li&gt;bigdecimal 3.1.5&lt;/li&gt;
424
+ &lt;li&gt;bundler 2.5.3&lt;/li&gt;
425
+ &lt;li&gt;cgi 0.4.1&lt;/li&gt;
426
+ &lt;li&gt;csv 3.2.8&lt;/li&gt;
427
+ &lt;li&gt;date 3.3.4&lt;/li&gt;
428
+ &lt;li&gt;delegate 0.3.1&lt;/li&gt;
429
+ &lt;li&gt;drb 2.2.0&lt;/li&gt;
430
+ &lt;li&gt;english 0.8.0&lt;/li&gt;
431
+ &lt;li&gt;erb 4.0.3&lt;/li&gt;
432
+ &lt;li&gt;error_highlight 0.6.0&lt;/li&gt;
433
+ &lt;li&gt;etc 1.4.3&lt;/li&gt;
434
+ &lt;li&gt;fcntl 1.1.0&lt;/li&gt;
435
+ &lt;li&gt;fiddle 1.1.2&lt;/li&gt;
436
+ &lt;li&gt;fileutils 1.7.2&lt;/li&gt;
437
+ &lt;li&gt;find 0.2.0&lt;/li&gt;
438
+ &lt;li&gt;getoptlong 0.2.1&lt;/li&gt;
439
+ &lt;li&gt;io-console 0.7.1&lt;/li&gt;
440
+ &lt;li&gt;io-nonblock 0.3.0&lt;/li&gt;
441
+ &lt;li&gt;io-wait 0.3.1&lt;/li&gt;
442
+ &lt;li&gt;ipaddr 1.2.6&lt;/li&gt;
443
+ &lt;li&gt;irb 1.11.0&lt;/li&gt;
444
+ &lt;li&gt;json 2.7.1&lt;/li&gt;
445
+ &lt;li&gt;logger 1.6.0&lt;/li&gt;
446
+ &lt;li&gt;mutex_m 0.2.0&lt;/li&gt;
447
+ &lt;li&gt;net-http 0.4.0&lt;/li&gt;
448
+ &lt;li&gt;net-protocol 0.2.2&lt;/li&gt;
449
+ &lt;li&gt;nkf 0.1.3&lt;/li&gt;
450
+ &lt;li&gt;observer 0.1.2&lt;/li&gt;
451
+ &lt;li&gt;open-uri 0.4.1&lt;/li&gt;
452
+ &lt;li&gt;open3 0.2.1&lt;/li&gt;
453
+ &lt;li&gt;openssl 3.2.0&lt;/li&gt;
454
+ &lt;li&gt;optparse 0.4.0&lt;/li&gt;
455
+ &lt;li&gt;ostruct 0.6.0&lt;/li&gt;
456
+ &lt;li&gt;pathname 0.3.0&lt;/li&gt;
457
+ &lt;li&gt;pp 0.5.0&lt;/li&gt;
458
+ &lt;li&gt;prettyprint 0.2.0&lt;/li&gt;
459
+ &lt;li&gt;pstore 0.1.3&lt;/li&gt;
460
+ &lt;li&gt;psych 5.1.2&lt;/li&gt;
461
+ &lt;li&gt;rdoc 6.6.2&lt;/li&gt;
462
+ &lt;li&gt;readline 0.0.4&lt;/li&gt;
463
+ &lt;li&gt;reline 0.4.1&lt;/li&gt;
464
+ &lt;li&gt;resolv 0.3.0&lt;/li&gt;
465
+ &lt;li&gt;rinda 0.2.0&lt;/li&gt;
466
+ &lt;li&gt;securerandom 0.3.1&lt;/li&gt;
467
+ &lt;li&gt;set 1.1.0&lt;/li&gt;
468
+ &lt;li&gt;shellwords 0.2.0&lt;/li&gt;
469
+ &lt;li&gt;singleton 0.2.0&lt;/li&gt;
470
+ &lt;li&gt;stringio 3.1.0&lt;/li&gt;
471
+ &lt;li&gt;strscan 3.0.7&lt;/li&gt;
472
+ &lt;li&gt;syntax_suggest 2.0.0&lt;/li&gt;
473
+ &lt;li&gt;syslog 0.1.2&lt;/li&gt;
474
+ &lt;li&gt;tempfile 0.2.1&lt;/li&gt;
475
+ &lt;li&gt;time 0.3.0&lt;/li&gt;
476
+ &lt;li&gt;timeout 0.4.1&lt;/li&gt;
477
+ &lt;li&gt;tmpdir 0.2.0&lt;/li&gt;
478
+ &lt;li&gt;tsort 0.2.0&lt;/li&gt;
479
+ &lt;li&gt;un 0.3.0&lt;/li&gt;
480
+ &lt;li&gt;uri 0.13.0&lt;/li&gt;
481
+ &lt;li&gt;weakref 0.1.3&lt;/li&gt;
482
+ &lt;li&gt;win32ole 1.8.10&lt;/li&gt;
483
+ &lt;li&gt;yaml 0.3.0&lt;/li&gt;
484
+ &lt;li&gt;zlib 3.1.0&lt;/li&gt;
485
+ &lt;/ul&gt;
486
+
487
+ &lt;p&gt;The following bundled gem is promoted from default gems.&lt;/p&gt;
488
+
489
+ &lt;ul&gt;
490
+ &lt;li&gt;racc 1.7.3&lt;/li&gt;
491
+ &lt;/ul&gt;
492
+
493
+ &lt;p&gt;The following bundled gems are updated.&lt;/p&gt;
494
+
495
+ &lt;ul&gt;
496
+ &lt;li&gt;minitest 5.20.0&lt;/li&gt;
497
+ &lt;li&gt;rake 13.1.0&lt;/li&gt;
498
+ &lt;li&gt;test-unit 3.6.1&lt;/li&gt;
499
+ &lt;li&gt;rexml 3.2.6&lt;/li&gt;
500
+ &lt;li&gt;rss 0.3.0&lt;/li&gt;
501
+ &lt;li&gt;net-ftp 0.3.3&lt;/li&gt;
502
+ &lt;li&gt;net-imap 0.4.9&lt;/li&gt;
503
+ &lt;li&gt;net-smtp 0.4.0&lt;/li&gt;
504
+ &lt;li&gt;rbs 3.4.0&lt;/li&gt;
505
+ &lt;li&gt;typeprof 0.21.9&lt;/li&gt;
506
+ &lt;li&gt;debug 1.9.1&lt;/li&gt;
507
+ &lt;/ul&gt;
508
+
509
+ &lt;p&gt;See GitHub releases like &lt;a href=&quot;https://github.com/ruby/logger/releases&quot;&gt;Logger&lt;/a&gt; or
510
+ changelog for details of the default gems or bundled gems.&lt;/p&gt;
511
+
512
+ &lt;p&gt;See &lt;a href=&quot;https://github.com/ruby/ruby/blob/v3_3_0/NEWS.md&quot;&gt;NEWS&lt;/a&gt;
513
+ or &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0&quot;&gt;commit logs&lt;/a&gt;
514
+ for more details.&lt;/p&gt;
515
+
516
+ &lt;p&gt;With those changes, &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0#file_bucket&quot;&gt;5532 files changed, 326851 insertions(+), 185793 deletions(-)&lt;/a&gt;
517
+ since Ruby 3.2.0!&lt;/p&gt;
518
+
519
+ &lt;p&gt;Merry Christmas, Happy Holidays, and enjoy programming with Ruby 3.3!&lt;/p&gt;
520
+
521
+ &lt;h2&gt;Download&lt;/h2&gt;
522
+
523
+ &lt;ul&gt;
524
+ &lt;li&gt;
525
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz&lt;/a&gt;&lt;/p&gt;
526
+
527
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 22065999
528
+ SHA1: 1a7e56851bf29bda1183aca99b3b323c58e0187b
529
+ SHA256: 96518814d9832bece92a85415a819d4893b307db5921ae1f0f751a9a89a56b7d
530
+ SHA512: 26074009b501fc793d71a74e419f34a6033c9353433919ca74ba2d24a3de432dbb11fd92c2bc285f0e4d951a6d6c74bf5b69a2ab36200c8c26e871746d6e0fc6
531
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
532
+ &lt;/li&gt;
533
+ &lt;li&gt;
534
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.xz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.xz&lt;/a&gt;&lt;/p&gt;
535
+
536
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 16345456
537
+ SHA1: c8f68e1b0a114b90460a0b44165a3b2f540fa5b6
538
+ SHA256: 676b65a36e637e90f982b57b059189b3276b9045034dcd186a7e9078847b975b
539
+ SHA512: 7959c5753bfa0bfc4d6d74060869aabbe9815c1c97930659da11b917ee0803ddbbd80e869e00c48b8694b4ba48709c3b6493fd045568e36e902616c35ababf01
540
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
541
+ &lt;/li&gt;
542
+ &lt;li&gt;
543
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.zip&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.zip&lt;/a&gt;&lt;/p&gt;
544
+
545
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 26935108
546
+ SHA1: a433eef1d7f96daeaf3b4cb842d0ed2dd82e7dc1
547
+ SHA256: 0e6563f679dd3694732eb3addf9de681c67b584602ac574376b60e7a509d2cd8
548
+ SHA512: a94a85937a14b217c1f4b90d24185289ed4aee79239c4f3eecf8034d3fd34e65ee8d66869473857ed153067188adc9b70c0471e4ebe842c9f98ef60c34090450
549
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
550
+ &lt;/li&gt;
551
+ &lt;/ul&gt;
552
+
553
+ &lt;h2&gt;What is Ruby&lt;/h2&gt;
554
+
555
+ &lt;p&gt;Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993,
556
+ and is now developed as Open Source. It runs on multiple platforms
557
+ and is used all over the world especially for web development.&lt;/p&gt;
558
+
559
+ &lt;p&gt;Posted by naruse on 25 Dec 2023&lt;/p&gt;</description>
560
+ <pubDate>Mon, 25 Dec 2023 00:00:00 +0000</pubDate>
561
+ <guid>https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/</guid>
562
+ <link>https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/</link>
563
+ </item>
564
+
565
+ <item>
566
+ <title>Ruby 3.3.0-rc1 Released</title>
567
+ <description>
568
+ &lt;p&gt;We are pleased to announce the release of Ruby 3.3.0-rc1. Ruby 3.3 adds a new parser named Prism, uses Lrama as a parser generator, adds a new pure-Ruby JIT compiler named RJIT, and many performance improvements especially YJIT.&lt;/p&gt;
569
+
570
+ &lt;p&gt;After the release of RC1, we will avoid introducing ABI incompatibilities wherever possible. If we need to do, we’ll announce it in the release note.&lt;/p&gt;
571
+
572
+ &lt;h2&gt;Prism&lt;/h2&gt;
573
+
574
+ &lt;ul&gt;
575
+ &lt;li&gt;Introduced &lt;a href=&quot;https://github.com/ruby/prism&quot;&gt;the Prism parser&lt;/a&gt; as a default gem
576
+ &lt;ul&gt;
577
+ &lt;li&gt;Prism is a portable, error tolerant, and maintainable recursive descent parser for the Ruby language&lt;/li&gt;
578
+ &lt;/ul&gt;
579
+ &lt;/li&gt;
580
+ &lt;li&gt;Prism is production ready and actively maintained, you can use it in place of Ripper
581
+ &lt;ul&gt;
582
+ &lt;li&gt;There is &lt;a href=&quot;https://ruby.github.io/prism/&quot;&gt;extensive documentation&lt;/a&gt; on how to use Prism&lt;/li&gt;
583
+ &lt;li&gt;Prism is both a C library that will be used internally by CRuby and a Ruby gem that can be used by any tooling which needs to parse Ruby code&lt;/li&gt;
584
+ &lt;li&gt;Notable methods in the Prism API are:
585
+ &lt;ul&gt;
586
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.parse(source)&lt;/code&gt; which returns the AST as part of a ParseResult&lt;/li&gt;
587
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.dump(source)&lt;/code&gt; which returns the serialized AST as a String&lt;/li&gt;
588
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.parse_comments(source)&lt;/code&gt; which returns the comments&lt;/li&gt;
589
+ &lt;/ul&gt;
590
+ &lt;/li&gt;
591
+ &lt;/ul&gt;
592
+ &lt;/li&gt;
593
+ &lt;li&gt;You can make pull requests or issues directly on &lt;a href=&quot;https://github.com/ruby/prism&quot;&gt;the Prism repository&lt;/a&gt; if you are interested in contributing&lt;/li&gt;
594
+ &lt;/ul&gt;
595
+
596
+ &lt;h2&gt;Use Lrama instead of Bison&lt;/h2&gt;
597
+
598
+ &lt;ul&gt;
599
+ &lt;li&gt;Replace Bison with &lt;a href=&quot;https://github.com/ruby/lrama&quot;&gt;Lrama LALR parser generator&lt;/a&gt; &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19637&quot;&gt;Feature #19637&lt;/a&gt;
600
+ &lt;ul&gt;
601
+ &lt;li&gt;If you have interest, please see &lt;a href=&quot;https://rubykaigi.org/2023/presentations/spikeolaf.html&quot;&gt;The future vision of Ruby Parser&lt;/a&gt;&lt;/li&gt;
602
+ &lt;li&gt;Lrama internal parser is replaced with LR parser generated by Racc for maintainability&lt;/li&gt;
603
+ &lt;li&gt;Parameterizing Rules &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(?, *, +)&lt;/code&gt; are supported, it will be used in Ruby parse.y&lt;/li&gt;
604
+ &lt;/ul&gt;
605
+ &lt;/li&gt;
606
+ &lt;/ul&gt;
607
+
608
+ &lt;h2&gt;RJIT&lt;/h2&gt;
609
+
610
+ &lt;ul&gt;
611
+ &lt;li&gt;Introduced a pure-Ruby JIT compiler RJIT and replaced MJIT.
612
+ &lt;ul&gt;
613
+ &lt;li&gt;RJIT supports only x86-64 architecture on Unix platforms.&lt;/li&gt;
614
+ &lt;li&gt;Unlike MJIT, it doesn’t require a C compiler at runtime.&lt;/li&gt;
615
+ &lt;/ul&gt;
616
+ &lt;/li&gt;
617
+ &lt;li&gt;RJIT exists only for experimental purposes.
618
+ &lt;ul&gt;
619
+ &lt;li&gt;You should keep using YJIT in production.&lt;/li&gt;
620
+ &lt;/ul&gt;
621
+ &lt;/li&gt;
622
+ &lt;li&gt;If you are interested in developing JIT for Ruby, please check out &lt;a href=&quot;https://rubykaigi.org/2023/presentations/k0kubun.html#day3&quot;&gt;k0kubun’s presentation on Day 3 of RubyKaigi&lt;/a&gt;.&lt;/li&gt;
623
+ &lt;/ul&gt;
624
+
625
+ &lt;h2&gt;YJIT&lt;/h2&gt;
626
+
627
+ &lt;ul&gt;
628
+ &lt;li&gt;Major performance improvements over 3.2
629
+ &lt;ul&gt;
630
+ &lt;li&gt;Support for splat and rest arguments has been improved.&lt;/li&gt;
631
+ &lt;li&gt;Registers are allocated for stack operations of the virtual machine.&lt;/li&gt;
632
+ &lt;li&gt;More calls with optional arguments are compiled.&lt;/li&gt;
633
+ &lt;li&gt;Exception handlers are also compiled.&lt;/li&gt;
634
+ &lt;li&gt;Instance variables no longer exit to the interpreter
635
+ with megamorphic object shapes.&lt;/li&gt;
636
+ &lt;li&gt;Unsupported call types no longer exit to the interpreter.&lt;/li&gt;
637
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Integer#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#block_given?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#is_a?&lt;/code&gt;,
638
+ &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#instance_of?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Module#===&lt;/code&gt; are specially optimized.&lt;/li&gt;
639
+ &lt;li&gt;Now more than 3x faster than the interpreter on optcarrot!&lt;/li&gt;
640
+ &lt;/ul&gt;
641
+ &lt;/li&gt;
642
+ &lt;li&gt;Significantly improved memory usage over 3.2
643
+ &lt;ul&gt;
644
+ &lt;li&gt;Metadata for compiled code uses a lot less memory.&lt;/li&gt;
645
+ &lt;li&gt;Generate more compact code on ARM64&lt;/li&gt;
646
+ &lt;/ul&gt;
647
+ &lt;/li&gt;
648
+ &lt;li&gt;Compilation speed is now slightly faster than 3.2.&lt;/li&gt;
649
+ &lt;li&gt;Add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RubyVM::YJIT.enable&lt;/code&gt; that can enable YJIT at run-time
650
+ &lt;ul&gt;
651
+ &lt;li&gt;You can start YJIT without modifying command-line arguments or environment variables.&lt;/li&gt;
652
+ &lt;li&gt;This can also be used to enable YJIT only once your application is
653
+ done booting. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-disable&lt;/code&gt; can be used if you want to use other
654
+ YJIT options while disabling YJIT at boot.&lt;/li&gt;
655
+ &lt;/ul&gt;
656
+ &lt;/li&gt;
657
+ &lt;li&gt;Code GC is now disabled by default, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-exec-mem-size&lt;/code&gt; is treated
658
+ as a hard limit where compilation of new code stops.
659
+ &lt;ul&gt;
660
+ &lt;li&gt;Better copy-on-write behavior on servers using unicorn and forking&lt;/li&gt;
661
+ &lt;li&gt;No sudden drops in performance due to code GC.&lt;/li&gt;
662
+ &lt;li&gt;You can still enable code GC if desired with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-code-gc&lt;/code&gt;&lt;/li&gt;
663
+ &lt;/ul&gt;
664
+ &lt;/li&gt;
665
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ratio_in_yjit&lt;/code&gt; stat produced by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-stats&lt;/code&gt; is now available in release builds,
666
+ a special stats or dev build is no longer required to access most stats.&lt;/li&gt;
667
+ &lt;li&gt;Exit tracing option now supports sampling
668
+ &lt;ul&gt;
669
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--trace-exits-sample-rate=N&lt;/code&gt;&lt;/li&gt;
670
+ &lt;/ul&gt;
671
+ &lt;/li&gt;
672
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-perf&lt;/code&gt; is added to facilitate profiling with Linux perf.&lt;/li&gt;
673
+ &lt;li&gt;More thorough testing and multiple bug fixes&lt;/li&gt;
674
+ &lt;/ul&gt;
675
+
676
+ &lt;h3&gt;M:N thread scheduler&lt;/h3&gt;
677
+
678
+ &lt;ul&gt;
679
+ &lt;li&gt;M:N thread scheduler was introduced. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19842&quot;&gt;[Feature #19842]&lt;/a&gt;
680
+ &lt;ul&gt;
681
+ &lt;li&gt;M Ruby threads are managed by N native threads (OS threads) so the thread creation and management cost are reduced.&lt;/li&gt;
682
+ &lt;li&gt;It can break C-extension compatibility so that M:N thread scheduler is disabled on the main Ractor by default.
683
+ &lt;ul&gt;
684
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MN_THREADS=1&lt;/code&gt; environment variable enables M:N threads on the main Ractor.&lt;/li&gt;
685
+ &lt;li&gt;M:N threads are enabled on non-main Ractors.&lt;/li&gt;
686
+ &lt;/ul&gt;
687
+ &lt;/li&gt;
688
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MAX_CPU=n&lt;/code&gt; environment variable sets maximum number of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;N&lt;/code&gt; (maximum number of native threads). The default value is 8.
689
+ &lt;ul&gt;
690
+ &lt;li&gt;Since only one Ruby thread per Ractor can run at the same time, the number of native threads will be used, which is the smaller of the number specified in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MAX_CPU&lt;/code&gt; and the number of running Ractors. So that single Ractor applications (most of applications) will use 1 native thread.&lt;/li&gt;
691
+ &lt;li&gt;To support blocking operations, more than &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;N&lt;/code&gt; native threads can be used.&lt;/li&gt;
692
+ &lt;/ul&gt;
693
+ &lt;/li&gt;
694
+ &lt;/ul&gt;
695
+ &lt;/li&gt;
696
+ &lt;/ul&gt;
697
+
698
+ &lt;h2&gt;Other Notable New Features&lt;/h2&gt;
699
+
700
+ &lt;h3&gt;Language&lt;/h3&gt;
701
+
702
+ &lt;h2&gt;Performance improvements&lt;/h2&gt;
703
+
704
+ &lt;ul&gt;
705
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;defined?(@ivar)&lt;/code&gt; is optimized with Object Shapes.&lt;/li&gt;
706
+ &lt;li&gt;Name resolution such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.getaddrinfo&lt;/code&gt; can now be interrupted (in environments where pthreads are available). &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19965&quot;&gt;Feature #19965&lt;/a&gt;
707
+ &lt;ul&gt;
708
+ &lt;li&gt;For this purpose, a pthread is now created whenever calling getaddrinfo or getnameinfo. This incurs some overhead in name resolution (about 2.5x in our experiments). We do not expect the name resolution overhead to be a problem for most applications, but if you observe such, or if you see unexpected affects that you believe are due to this change, please report them.&lt;/li&gt;
709
+ &lt;/ul&gt;
710
+ &lt;/li&gt;
711
+ &lt;li&gt;Several performance improvements to the Garbage Collector
712
+ &lt;ul&gt;
713
+ &lt;li&gt;Young objects referenced by old objects are no longer immediately
714
+ promoted to the old generation. This significantly reduces the frequency of
715
+ major GC collections. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19678&quot;&gt;[Feature #19678]&lt;/a&gt;&lt;/li&gt;
716
+ &lt;li&gt;A new &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;REMEMBERED_WB_UNPROTECTED_OBJECTS_LIMIT_RATIO&lt;/code&gt; tuning variable was
717
+ introduced to control the number of unprotected objects cause a major GC
718
+ collection to trigger. The default is set to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.01&lt;/code&gt; (1%). This significantly
719
+ reduces the frequency of major GC collection. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19571&quot;&gt;[Feature #19571]&lt;/a&gt;&lt;/li&gt;
720
+ &lt;li&gt;Write Barriers were implemented for many core types that were missing them,
721
+ notably &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Enumerator&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MatchData&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Method&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File::Stat&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;BigDecimal&lt;/code&gt;
722
+ and several others. This significantly reduces minor GC collection time and major
723
+ GC collection frequency.&lt;/li&gt;
724
+ &lt;li&gt;Most core classes are now using Variable Width Allocation, notably &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hash&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time&lt;/code&gt;,
725
+ &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Thread::Backtrace&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Thread::Backtrace::Location&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File::Stat&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Method&lt;/code&gt;.
726
+ This makes these classes faster to allocate and free, use less memory and reduce
727
+ heap fragmentation.&lt;/li&gt;
728
+ &lt;li&gt;Support for weak references has been added to the garbage collector. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19783&quot;&gt;[Feature #19783]&lt;/a&gt;&lt;/li&gt;
729
+ &lt;/ul&gt;
730
+ &lt;/li&gt;
731
+ &lt;/ul&gt;
732
+
733
+ &lt;h2&gt;Other notable changes since 3.2&lt;/h2&gt;
734
+
735
+ &lt;h3&gt;IRB&lt;/h3&gt;
736
+
737
+ &lt;p&gt;IRB has received several enhancements, including but not limited to:&lt;/p&gt;
738
+
739
+ &lt;ul&gt;
740
+ &lt;li&gt;Advanced &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;irb:rdbg&lt;/code&gt; integration that provides an equivalent debugging experience to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pry-byebug&lt;/code&gt; (&lt;a href=&quot;https://github.com/ruby/irb#debugging-with-irb&quot;&gt;doc&lt;/a&gt;).&lt;/li&gt;
741
+ &lt;li&gt;Pager support for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_source&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_cmds&lt;/code&gt; commands.&lt;/li&gt;
742
+ &lt;li&gt;More accurate and helpful information provided by the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_source&lt;/code&gt; commands.&lt;/li&gt;
743
+ &lt;li&gt;Experimental autocompletion using type analysis (&lt;a href=&quot;https://github.com/ruby/irb#type-based-completion&quot;&gt;doc&lt;/a&gt;).&lt;/li&gt;
744
+ &lt;li&gt;It is now possible to change the font color and font style in the completion dialog by a newly introduced class Reline::Face (&lt;a href=&quot;https://github.com/ruby/ruby/blob/master/doc/reline/face.md&quot;&gt;doc&lt;/a&gt;)&lt;/li&gt;
745
+ &lt;/ul&gt;
746
+
747
+ &lt;p&gt;In addition, IRB has also undergone extensive refactoring and received dozens of bug fixes to facilitate easier future enhancements.&lt;/p&gt;
748
+
749
+ &lt;h2&gt;Compatibility issues&lt;/h2&gt;
750
+
751
+ &lt;p&gt;Note: Excluding feature bug fixes.&lt;/p&gt;
752
+
753
+ &lt;ul&gt;
754
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;it&lt;/code&gt; calls without arguments in a block with no ordinary parameters are
755
+ deprecated. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;it&lt;/code&gt; will be a reference to the first block parameter in Ruby 3.4.
756
+ &lt;a href=&quot;https://bugs.ruby-lang.org/issues/18980&quot;&gt;Feature #18980&lt;/a&gt;&lt;/li&gt;
757
+ &lt;/ul&gt;
758
+
759
+ &lt;h3&gt;Removed constants&lt;/h3&gt;
760
+
761
+ &lt;p&gt;The following deprecated constants are removed.&lt;/p&gt;
762
+
763
+ &lt;h3&gt;Removed methods&lt;/h3&gt;
764
+
765
+ &lt;p&gt;The following deprecated methods are removed.&lt;/p&gt;
766
+
767
+ &lt;h3&gt;Removed environment variables&lt;/h3&gt;
768
+
769
+ &lt;p&gt;The following deprecated environment variables are removed.&lt;/p&gt;
770
+
771
+ &lt;ul&gt;
772
+ &lt;li&gt;Environment variable &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_GC_HEAP_INIT_SLOTS&lt;/code&gt; has been deprecated and is a no-op. Please use environment variables &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_GC_HEAP_{0,1,2,3,4}_INIT_SLOTS&lt;/code&gt; instead. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19785&quot;&gt;Feature #19785&lt;/a&gt;&lt;/li&gt;
773
+ &lt;/ul&gt;
774
+
775
+ &lt;h2&gt;Stdlib compatibility issues&lt;/h2&gt;
776
+
777
+ &lt;h3&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; is retired&lt;/h3&gt;
778
+
779
+ &lt;ul&gt;
780
+ &lt;li&gt;We have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; that is pure Ruby implementation compatible with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; API. We rely on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; in the future. If you need to use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt;, you can install &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; via rubygems.org with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem install readline-ext&lt;/code&gt;.&lt;/li&gt;
781
+ &lt;li&gt;We no longer need to install libraries like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libreadline&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libedit&lt;/code&gt;.&lt;/li&gt;
782
+ &lt;/ul&gt;
783
+
784
+ &lt;h2&gt;C API updates&lt;/h2&gt;
785
+
786
+ &lt;h3&gt;Updated C APIs&lt;/h3&gt;
787
+
788
+ &lt;p&gt;The following APIs are updated.&lt;/p&gt;
789
+
790
+ &lt;h3&gt;Removed C APIs&lt;/h3&gt;
791
+
792
+ &lt;p&gt;The following deprecated APIs are removed.&lt;/p&gt;
793
+
794
+ &lt;h2&gt;Standard library updates&lt;/h2&gt;
795
+
796
+ &lt;p&gt;RubyGems and Bundler warn if users require gem that is scheduled to become the bundled gems in the future version of Ruby.&lt;/p&gt;
797
+
798
+ &lt;p&gt;Targeted libraries are:&lt;/p&gt;
799
+ &lt;ul&gt;
800
+ &lt;li&gt;abbrev&lt;/li&gt;
801
+ &lt;li&gt;base64&lt;/li&gt;
802
+ &lt;li&gt;bigdecimal&lt;/li&gt;
803
+ &lt;li&gt;csv&lt;/li&gt;
804
+ &lt;li&gt;drb&lt;/li&gt;
805
+ &lt;li&gt;getoptlong&lt;/li&gt;
806
+ &lt;li&gt;mutex_m&lt;/li&gt;
807
+ &lt;li&gt;nkf&lt;/li&gt;
808
+ &lt;li&gt;observer&lt;/li&gt;
809
+ &lt;li&gt;racc&lt;/li&gt;
810
+ &lt;li&gt;resolv-replace&lt;/li&gt;
811
+ &lt;li&gt;rinda&lt;/li&gt;
812
+ &lt;li&gt;syslog&lt;/li&gt;
813
+ &lt;/ul&gt;
814
+
815
+ &lt;p&gt;The following default gem is added.&lt;/p&gt;
816
+
817
+ &lt;ul&gt;
818
+ &lt;li&gt;prism 0.15.1&lt;/li&gt;
819
+ &lt;/ul&gt;
820
+
821
+ &lt;p&gt;The following default gems are updated.&lt;/p&gt;
822
+
823
+ &lt;ul&gt;
824
+ &lt;li&gt;RubyGems 3.5.0.dev&lt;/li&gt;
825
+ &lt;li&gt;base64 0.2.0&lt;/li&gt;
826
+ &lt;li&gt;benchmark 0.3.0&lt;/li&gt;
827
+ &lt;li&gt;bigdecimal 3.1.5&lt;/li&gt;
828
+ &lt;li&gt;bundler 2.5.0.dev&lt;/li&gt;
829
+ &lt;li&gt;cgi 0.4.0&lt;/li&gt;
830
+ &lt;li&gt;csv 3.2.8&lt;/li&gt;
831
+ &lt;li&gt;date 3.3.4&lt;/li&gt;
832
+ &lt;li&gt;delegate 0.3.1&lt;/li&gt;
833
+ &lt;li&gt;drb 2.2.0&lt;/li&gt;
834
+ &lt;li&gt;english 0.8.0&lt;/li&gt;
835
+ &lt;li&gt;erb 4.0.3&lt;/li&gt;
836
+ &lt;li&gt;etc 1.4.3.dev.1&lt;/li&gt;
837
+ &lt;li&gt;fcntl 1.1.0&lt;/li&gt;
838
+ &lt;li&gt;fiddle 1.1.2&lt;/li&gt;
839
+ &lt;li&gt;fileutils 1.7.2&lt;/li&gt;
840
+ &lt;li&gt;find 0.2.0&lt;/li&gt;
841
+ &lt;li&gt;getoptlong 0.2.1&lt;/li&gt;
842
+ &lt;li&gt;io-console 0.6.1.dev&lt;/li&gt;
843
+ &lt;li&gt;irb 1.8.3&lt;/li&gt;
844
+ &lt;li&gt;logger 1.6.0&lt;/li&gt;
845
+ &lt;li&gt;mutex_m 0.2.0&lt;/li&gt;
846
+ &lt;li&gt;net-http 0.4.0&lt;/li&gt;
847
+ &lt;li&gt;net-protocol 0.2.2&lt;/li&gt;
848
+ &lt;li&gt;nkf 0.1.3&lt;/li&gt;
849
+ &lt;li&gt;observer 0.1.2&lt;/li&gt;
850
+ &lt;li&gt;open-uri 0.4.0&lt;/li&gt;
851
+ &lt;li&gt;open3 0.2.0&lt;/li&gt;
852
+ &lt;li&gt;openssl 3.2.0&lt;/li&gt;
853
+ &lt;li&gt;optparse 0.4.0&lt;/li&gt;
854
+ &lt;li&gt;ostruct 0.6.0&lt;/li&gt;
855
+ &lt;li&gt;pathname 0.3.0&lt;/li&gt;
856
+ &lt;li&gt;pp 0.5.0&lt;/li&gt;
857
+ &lt;li&gt;prettyprint 0.2.0&lt;/li&gt;
858
+ &lt;li&gt;pstore 0.1.3&lt;/li&gt;
859
+ &lt;li&gt;psych 5.1.1.1&lt;/li&gt;
860
+ &lt;li&gt;rdoc 6.6.0&lt;/li&gt;
861
+ &lt;li&gt;reline 0.3.9&lt;/li&gt;
862
+ &lt;li&gt;rinda 0.2.0&lt;/li&gt;
863
+ &lt;li&gt;securerandom 0.3.0&lt;/li&gt;
864
+ &lt;li&gt;shellwords 0.2.0&lt;/li&gt;
865
+ &lt;li&gt;singleton 0.2.0&lt;/li&gt;
866
+ &lt;li&gt;stringio 3.0.9&lt;/li&gt;
867
+ &lt;li&gt;strscan 3.0.7&lt;/li&gt;
868
+ &lt;li&gt;syntax_suggest 1.1.0&lt;/li&gt;
869
+ &lt;li&gt;tempfile 0.2.0&lt;/li&gt;
870
+ &lt;li&gt;time 0.3.0&lt;/li&gt;
871
+ &lt;li&gt;timeout 0.4.1&lt;/li&gt;
872
+ &lt;li&gt;tmpdir 0.2.0&lt;/li&gt;
873
+ &lt;li&gt;tsort 0.2.0&lt;/li&gt;
874
+ &lt;li&gt;un 0.3.0&lt;/li&gt;
875
+ &lt;li&gt;uri 0.13.0&lt;/li&gt;
876
+ &lt;li&gt;weakref 0.1.3&lt;/li&gt;
877
+ &lt;li&gt;win32ole 1.8.10&lt;/li&gt;
878
+ &lt;li&gt;yaml 0.3.0&lt;/li&gt;
879
+ &lt;li&gt;zlib 3.1.0&lt;/li&gt;
880
+ &lt;/ul&gt;
881
+
882
+ &lt;p&gt;The following bundled gem is promoted from default gems.&lt;/p&gt;
883
+
884
+ &lt;ul&gt;
885
+ &lt;li&gt;racc 1.7.3&lt;/li&gt;
886
+ &lt;/ul&gt;
887
+
888
+ &lt;p&gt;The following bundled gems are updated.&lt;/p&gt;
889
+
890
+ &lt;ul&gt;
891
+ &lt;li&gt;minitest 5.20.0&lt;/li&gt;
892
+ &lt;li&gt;rake 13.1.0&lt;/li&gt;
893
+ &lt;li&gt;test-unit 3.6.1&lt;/li&gt;
894
+ &lt;li&gt;rexml 3.2.6&lt;/li&gt;
895
+ &lt;li&gt;rss 0.3.0&lt;/li&gt;
896
+ &lt;li&gt;net-imap 0.4.4&lt;/li&gt;
897
+ &lt;li&gt;net-smtp 0.4.0&lt;/li&gt;
898
+ &lt;li&gt;rbs 3.2.2&lt;/li&gt;
899
+ &lt;li&gt;typeprof 0.21.8&lt;/li&gt;
900
+ &lt;li&gt;debug 1.8.0&lt;/li&gt;
901
+ &lt;/ul&gt;
902
+
903
+ &lt;p&gt;See GitHub releases like &lt;a href=&quot;https://github.com/ruby/logger/releases&quot;&gt;Logger&lt;/a&gt; or
904
+ changelog for details of the default gems or bundled gems.&lt;/p&gt;
905
+
906
+ &lt;p&gt;See &lt;a href=&quot;https://github.com/ruby/ruby/blob/v3_3_0_rc1/NEWS.md&quot;&gt;NEWS&lt;/a&gt;
907
+ or &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_rc1&quot;&gt;commit logs&lt;/a&gt;
908
+ for more details.&lt;/p&gt;
909
+
910
+ &lt;p&gt;With those changes, &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_rc1#file_bucket&quot;&gt;5414 files changed, 306141 insertions(+), 183575 deletions(-)&lt;/a&gt;
911
+ since Ruby 3.2.0!&lt;/p&gt;
912
+
913
+ &lt;h2&gt;Download&lt;/h2&gt;
914
+
915
+ &lt;ul&gt;
916
+ &lt;li&gt;
917
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-rc1.tar.gz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-rc1.tar.gz&lt;/a&gt;&lt;/p&gt;
918
+
919
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 21783575
920
+ SHA1: c75a860e06f27b7f69b874757417277c21d1d3f4
921
+ SHA256: c4ff82395a90ef76c7f906b7687026e0ab96b094dcf3a532d9ab97784a073222
922
+ SHA512: 265fb2ffe55af47d8349edffcebe749cc170291227cef55529fe4e67363e4e84b88daa34ffb5364a99c8a0e32110266a34c9a11d62f3bd6f6d47fa76eca641f4
923
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
924
+ &lt;/li&gt;
925
+ &lt;li&gt;
926
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-rc1.tar.xz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-rc1.tar.xz&lt;/a&gt;&lt;/p&gt;
927
+
928
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 16163884
929
+ SHA1: 26503f9bdc7d0a05aaa9836f54d3aa9e74a9ead9
930
+ SHA256: 051815637f1fa75a1edf2c54b66d5d5b69563daad777da8dc39543b7754b5290
931
+ SHA512: 82f4acfaad1dc47db27ee3eb952481a95b3474a98059e9e9f5ceb035b690d1faabe99f2ec52371c4089ed1615eb10c395f029088418fec4d26399b65b4f259b9
932
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
933
+ &lt;/li&gt;
934
+ &lt;li&gt;
935
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-rc1.zip&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-rc1.zip&lt;/a&gt;&lt;/p&gt;
936
+
937
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 26735443
938
+ SHA1: 35583453a7734216b08829ef0ec9ea1bc0d4ae7f
939
+ SHA256: 56dd82e1dd714f2889ca975ae7befbe005675de08839c2cc4a484de2ae65201c
940
+ SHA512: 7fbe414c230aedc9f364512bcbc213038f8f6e4268929a559d2527e2f3e32a140b394e37098ab7e59161236eca8b89cc9e52d73a3be8d7bd44faa91681483f5d
941
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
942
+ &lt;/li&gt;
943
+ &lt;/ul&gt;
944
+
945
+ &lt;h2&gt;What is Ruby&lt;/h2&gt;
946
+
947
+ &lt;p&gt;Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993,
948
+ and is now developed as Open Source. It runs on multiple platforms
949
+ and is used all over the world especially for web development.&lt;/p&gt;
950
+
951
+ &lt;p&gt;Posted by naruse on 11 Dec 2023&lt;/p&gt;</description>
952
+ <pubDate>Mon, 11 Dec 2023 00:00:00 +0000</pubDate>
953
+ <guid>https://www.ruby-lang.org/en/news/2023/12/11/ruby-3-3-0-rc1-released/</guid>
954
+ <link>https://www.ruby-lang.org/en/news/2023/12/11/ruby-3-3-0-rc1-released/</link>
955
+ </item>
956
+
957
+ <item>
958
+ <title>Ruby 3.3.0-preview3 Released</title>
959
+ <description>
960
+ &lt;p&gt;We are pleased to announce the release of Ruby 3.3.0-preview3. Ruby 3.3 adds a new parser named Prism, uses Lrama as a parser generator, adds a new pure-Ruby JIT compiler named RJIT, and many performance improvements especially YJIT.&lt;/p&gt;
961
+
962
+ &lt;h2&gt;Prism&lt;/h2&gt;
963
+
964
+ &lt;ul&gt;
965
+ &lt;li&gt;Introduced &lt;a href=&quot;https://github.com/ruby/prism&quot;&gt;the Prism parser&lt;/a&gt; as a default gem
966
+ &lt;ul&gt;
967
+ &lt;li&gt;Prism is a portable, error tolerant, and maintainable recursive descent parser for the Ruby language&lt;/li&gt;
968
+ &lt;/ul&gt;
969
+ &lt;/li&gt;
970
+ &lt;li&gt;Prism is production ready and actively maintained, you can use it in place of Ripper
971
+ &lt;ul&gt;
972
+ &lt;li&gt;There is &lt;a href=&quot;https://ruby.github.io/prism/&quot;&gt;extensive documentation&lt;/a&gt; on how to use Prism&lt;/li&gt;
973
+ &lt;li&gt;Prism is both a C library that will be used internally by CRuby and a Ruby gem that can be used by any tooling which needs to parse Ruby code&lt;/li&gt;
974
+ &lt;li&gt;Notable methods in the Prism API are:
975
+ &lt;ul&gt;
976
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.parse(source)&lt;/code&gt; which returns the AST as part of a ParseResult&lt;/li&gt;
977
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.dump(source)&lt;/code&gt; which returns the serialized AST as a String&lt;/li&gt;
978
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prism.parse_comments(source)&lt;/code&gt; which returns the comments&lt;/li&gt;
979
+ &lt;/ul&gt;
980
+ &lt;/li&gt;
981
+ &lt;/ul&gt;
982
+ &lt;/li&gt;
983
+ &lt;li&gt;You can make pull requests or issues directly on &lt;a href=&quot;https://github.com/ruby/prism&quot;&gt;the Prism repository&lt;/a&gt; if you are interested in contributing&lt;/li&gt;
984
+ &lt;/ul&gt;
985
+
986
+ &lt;h2&gt;Use Lrama instead of Bison&lt;/h2&gt;
987
+
988
+ &lt;ul&gt;
989
+ &lt;li&gt;Replace Bison with &lt;a href=&quot;https://github.com/yui-knk/lrama&quot;&gt;Lrama LALR parser generator&lt;/a&gt; &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19637&quot;&gt;Feature #19637&lt;/a&gt;
990
+ &lt;ul&gt;
991
+ &lt;li&gt;If you have interest, please see &lt;a href=&quot;https://rubykaigi.org/2023/presentations/spikeolaf.html&quot;&gt;The future vision of Ruby Parser&lt;/a&gt;&lt;/li&gt;
992
+ &lt;li&gt;Lrama internal parser is replaced with LR parser generated by Racc for maintainability&lt;/li&gt;
993
+ &lt;li&gt;Parameterizing Rules &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(?, *, +)&lt;/code&gt; are supported, it will be used in Ruby parse.y&lt;/li&gt;
994
+ &lt;/ul&gt;
995
+ &lt;/li&gt;
996
+ &lt;/ul&gt;
997
+
998
+ &lt;h2&gt;RJIT&lt;/h2&gt;
999
+
1000
+ &lt;ul&gt;
1001
+ &lt;li&gt;Introduced a pure-Ruby JIT compiler RJIT and replaced MJIT.
1002
+ &lt;ul&gt;
1003
+ &lt;li&gt;RJIT supports only x86-64 architecture on Unix platforms.&lt;/li&gt;
1004
+ &lt;li&gt;Unlike MJIT, it doesn’t require a C compiler at runtime.&lt;/li&gt;
1005
+ &lt;/ul&gt;
1006
+ &lt;/li&gt;
1007
+ &lt;li&gt;RJIT exists only for experimental purposes.
1008
+ &lt;ul&gt;
1009
+ &lt;li&gt;You should keep using YJIT in production.&lt;/li&gt;
1010
+ &lt;/ul&gt;
1011
+ &lt;/li&gt;
1012
+ &lt;li&gt;If you are interested in developing JIT for Ruby, please check out &lt;a href=&quot;https://rubykaigi.org/2023/presentations/k0kubun.html#day3&quot;&gt;k0kubun’s presentation on Day 3 of RubyKaigi&lt;/a&gt;.&lt;/li&gt;
1013
+ &lt;/ul&gt;
1014
+
1015
+ &lt;h2&gt;YJIT&lt;/h2&gt;
1016
+
1017
+ &lt;ul&gt;
1018
+ &lt;li&gt;Major performance improvements over 3.2
1019
+ &lt;ul&gt;
1020
+ &lt;li&gt;Support for splat and rest arguments has been improved.&lt;/li&gt;
1021
+ &lt;li&gt;Registers are allocated for stack operations of the virtual machine.&lt;/li&gt;
1022
+ &lt;li&gt;More calls with optional arguments are compiled.&lt;/li&gt;
1023
+ &lt;li&gt;Exception handlers are also compiled.&lt;/li&gt;
1024
+ &lt;li&gt;Instance variables no longer exit to the interpreter
1025
+ with megamorphic object shapes.&lt;/li&gt;
1026
+ &lt;li&gt;Unsupported call types no longer exit to the interpreter.&lt;/li&gt;
1027
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Integer#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#block_given?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#is_a?&lt;/code&gt;,
1028
+ &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#instance_of?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Module#===&lt;/code&gt; are specially optimized.&lt;/li&gt;
1029
+ &lt;li&gt;Now more than 3x faster than the interpreter on optcarrot!&lt;/li&gt;
1030
+ &lt;/ul&gt;
1031
+ &lt;/li&gt;
1032
+ &lt;li&gt;Significantly improved memory usage over 3.2
1033
+ &lt;ul&gt;
1034
+ &lt;li&gt;Metadata for compiled code uses a lot less memory.&lt;/li&gt;
1035
+ &lt;li&gt;Generate more compact code on ARM64&lt;/li&gt;
1036
+ &lt;/ul&gt;
1037
+ &lt;/li&gt;
1038
+ &lt;li&gt;Compilation speed is now slightly faster than 3.2.&lt;/li&gt;
1039
+ &lt;li&gt;Add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RubyVM::YJIT.enable&lt;/code&gt; that can enable YJIT at run-time
1040
+ &lt;ul&gt;
1041
+ &lt;li&gt;You can start YJIT without modifying command-line arguments or environment variables.&lt;/li&gt;
1042
+ &lt;li&gt;This can also be used to enable YJIT only once your application is
1043
+ done booting. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-disable&lt;/code&gt; can be used if you want to use other
1044
+ YJIT options while disabling YJIT at boot.&lt;/li&gt;
1045
+ &lt;/ul&gt;
1046
+ &lt;/li&gt;
1047
+ &lt;li&gt;Option to disable code GC and treat &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-exec-mem-size&lt;/code&gt; as a hard limit
1048
+ &lt;ul&gt;
1049
+ &lt;li&gt;Can produce better copy-on-write behavior on servers using unicorn and forking&lt;/li&gt;
1050
+ &lt;/ul&gt;
1051
+ &lt;/li&gt;
1052
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ratio_in_yjit&lt;/code&gt; stat produced by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-stats&lt;/code&gt; is now available in release builds,
1053
+ a special stats or dev build is no longer required to access most stats.&lt;/li&gt;
1054
+ &lt;li&gt;Exit tracing option now supports sampling
1055
+ &lt;ul&gt;
1056
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--trace-exits-sample-rate=N&lt;/code&gt;&lt;/li&gt;
1057
+ &lt;/ul&gt;
1058
+ &lt;/li&gt;
1059
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-perf&lt;/code&gt; is added to facilitate profiling with Linux perf.&lt;/li&gt;
1060
+ &lt;li&gt;More thorough testing and multiple bug fixes&lt;/li&gt;
1061
+ &lt;/ul&gt;
1062
+
1063
+ &lt;h3&gt;M:N thread scheduler&lt;/h3&gt;
1064
+
1065
+ &lt;ul&gt;
1066
+ &lt;li&gt;M:N thread scheduler was introduced. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19842&quot;&gt;[Feature #19842]&lt;/a&gt;
1067
+ &lt;ul&gt;
1068
+ &lt;li&gt;M Ruby threads are managed by N native threads (OS threads) so the thread creation and management cost are reduced.&lt;/li&gt;
1069
+ &lt;li&gt;It can break C-extension compatibility so that M:N thread scheduler is disabled on the main Ractor by default.
1070
+ &lt;ul&gt;
1071
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MN_THREADS=1&lt;/code&gt; environment variable enables M:N threads on the main Ractor.&lt;/li&gt;
1072
+ &lt;li&gt;M:N threads are enabled on non-main Ractors.&lt;/li&gt;
1073
+ &lt;/ul&gt;
1074
+ &lt;/li&gt;
1075
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MAX_CPU=n&lt;/code&gt; environment variable sets maximum number of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;N&lt;/code&gt; (maximum number of native threads). The default value is 8.
1076
+ &lt;ul&gt;
1077
+ &lt;li&gt;Since only one Ruby thread per Ractor can run at the same time, the number of native threads will be used, which is the smaller of the number specified in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_MAX_CPU&lt;/code&gt; and the number of running Ractors. So that single Ractor applications (most of applications) will use 1 native thread.&lt;/li&gt;
1078
+ &lt;li&gt;To support blocking operations, more than &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;N&lt;/code&gt; native threads can be used.&lt;/li&gt;
1079
+ &lt;/ul&gt;
1080
+ &lt;/li&gt;
1081
+ &lt;/ul&gt;
1082
+ &lt;/li&gt;
1083
+ &lt;/ul&gt;
1084
+
1085
+ &lt;h2&gt;Other Notable New Features&lt;/h2&gt;
1086
+
1087
+ &lt;h3&gt;Language&lt;/h3&gt;
1088
+
1089
+ &lt;h2&gt;Performance improvements&lt;/h2&gt;
1090
+
1091
+ &lt;ul&gt;
1092
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;defined?(@ivar)&lt;/code&gt; is optimized with Object Shapes.&lt;/li&gt;
1093
+ &lt;li&gt;Name resolution such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.getaddrinfo&lt;/code&gt; can now be interrupted (in environments where pthreads are available). &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19965&quot;&gt;Feature #19965&lt;/a&gt;
1094
+ &lt;ul&gt;
1095
+ &lt;li&gt;For this purpose, a pthread is now created whenever calling getaddrinfo or getnameinfo. This incurs some overhead in name resolution (about 2.5x in our experiments). We do not expect the name resolution overhead to be a problem for most applications, but if you observe such, or if you see unexpected affects that you believe are due to this change, please report them.&lt;/li&gt;
1096
+ &lt;/ul&gt;
1097
+ &lt;/li&gt;
1098
+ &lt;li&gt;Environment variable &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_GC_HEAP_REMEMBERED_WB_UNPROTECTED_OBJECTS_LIMIT_RATIO&lt;/code&gt; has been added. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19571&quot;&gt;Feature #19571&lt;/a&gt;&lt;/li&gt;
1099
+ &lt;li&gt;Children of old objects are no longer immediately promoted to the old generation in the garbage collector. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19678&quot;&gt;Feature #19678&lt;/a&gt;&lt;/li&gt;
1100
+ &lt;li&gt;Support for weak references has been added to the garbage collector. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19783&quot;&gt;Feature #19783&lt;/a&gt;&lt;/li&gt;
1101
+ &lt;/ul&gt;
1102
+
1103
+ &lt;h2&gt;Other notable changes since 3.2&lt;/h2&gt;
1104
+
1105
+ &lt;h3&gt;IRB&lt;/h3&gt;
1106
+
1107
+ &lt;p&gt;IRB has received several enhancements, including but not limited to:&lt;/p&gt;
1108
+
1109
+ &lt;ul&gt;
1110
+ &lt;li&gt;Advanced &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;irb:rdbg&lt;/code&gt; integration that provides an equivalent debugging experience to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pry-byebug&lt;/code&gt; (&lt;a href=&quot;https://github.com/ruby/irb#debugging-with-irb&quot;&gt;doc&lt;/a&gt;).&lt;/li&gt;
1111
+ &lt;li&gt;Pager support for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_source&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_cmds&lt;/code&gt; commands.&lt;/li&gt;
1112
+ &lt;li&gt;More accurate and helpful information provided by the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_source&lt;/code&gt; commands.&lt;/li&gt;
1113
+ &lt;li&gt;Experimental autocompletion using type analysis (&lt;a href=&quot;https://github.com/ruby/irb#type-based-completion&quot;&gt;doc&lt;/a&gt;).&lt;/li&gt;
1114
+ &lt;li&gt;It is now possible to change the font color and font style in the completion dialog by a newly introduced class Reline::Face (&lt;a href=&quot;https://github.com/ruby/ruby/blob/master/doc/reline/face.md&quot;&gt;doc&lt;/a&gt;)&lt;/li&gt;
1115
+ &lt;/ul&gt;
1116
+
1117
+ &lt;p&gt;In addition, IRB has also undergone extensive refactoring and received dozens of bug fixes to facilitate easier future enhancements.&lt;/p&gt;
1118
+
1119
+ &lt;h2&gt;Compatibility issues&lt;/h2&gt;
1120
+
1121
+ &lt;p&gt;Note: Excluding feature bug fixes.&lt;/p&gt;
1122
+
1123
+ &lt;h3&gt;Removed constants&lt;/h3&gt;
1124
+
1125
+ &lt;p&gt;The following deprecated constants are removed.&lt;/p&gt;
1126
+
1127
+ &lt;h3&gt;Removed methods&lt;/h3&gt;
1128
+
1129
+ &lt;p&gt;The following deprecated methods are removed.&lt;/p&gt;
1130
+
1131
+ &lt;h3&gt;Removed environment variables&lt;/h3&gt;
1132
+
1133
+ &lt;p&gt;The following deprecated environment variables are removed.&lt;/p&gt;
1134
+
1135
+ &lt;ul&gt;
1136
+ &lt;li&gt;Environment variable &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_GC_HEAP_INIT_SLOTS&lt;/code&gt; has been deprecated and is a no-op. Please use environment variables &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RUBY_GC_HEAP_{0,1,2,3,4}_INIT_SLOTS&lt;/code&gt; instead. &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19785&quot;&gt;Feature #19785&lt;/a&gt;&lt;/li&gt;
1137
+ &lt;/ul&gt;
1138
+
1139
+ &lt;h2&gt;Stdlib compatibility issues&lt;/h2&gt;
1140
+
1141
+ &lt;h3&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; is retired&lt;/h3&gt;
1142
+
1143
+ &lt;ul&gt;
1144
+ &lt;li&gt;We have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; that is pure Ruby implementation compatible with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; API. We rely on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; in the future. If you need to use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt;, you can install &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; via rubygems.org with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem install readline-ext&lt;/code&gt;.&lt;/li&gt;
1145
+ &lt;li&gt;We no longer need to install libraries like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libreadline&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libedit&lt;/code&gt;.&lt;/li&gt;
1146
+ &lt;/ul&gt;
1147
+
1148
+ &lt;h2&gt;C API updates&lt;/h2&gt;
1149
+
1150
+ &lt;h3&gt;Updated C APIs&lt;/h3&gt;
1151
+
1152
+ &lt;p&gt;The following APIs are updated.&lt;/p&gt;
1153
+
1154
+ &lt;h3&gt;Removed C APIs&lt;/h3&gt;
1155
+
1156
+ &lt;p&gt;The following deprecated APIs are removed.&lt;/p&gt;
1157
+
1158
+ &lt;h2&gt;Standard library updates&lt;/h2&gt;
1159
+
1160
+ &lt;p&gt;RubyGems and Bundler warn if users require gem that is scheduled to become the bundled gems in the future version of Ruby.&lt;/p&gt;
1161
+
1162
+ &lt;p&gt;Targeted libraries are:&lt;/p&gt;
1163
+ &lt;ul&gt;
1164
+ &lt;li&gt;abbrev&lt;/li&gt;
1165
+ &lt;li&gt;base64&lt;/li&gt;
1166
+ &lt;li&gt;bigdecimal&lt;/li&gt;
1167
+ &lt;li&gt;csv&lt;/li&gt;
1168
+ &lt;li&gt;drb&lt;/li&gt;
1169
+ &lt;li&gt;getoptlong&lt;/li&gt;
1170
+ &lt;li&gt;mutex_m&lt;/li&gt;
1171
+ &lt;li&gt;nkf&lt;/li&gt;
1172
+ &lt;li&gt;observer&lt;/li&gt;
1173
+ &lt;li&gt;racc&lt;/li&gt;
1174
+ &lt;li&gt;resolv-replace&lt;/li&gt;
1175
+ &lt;li&gt;rinda&lt;/li&gt;
1176
+ &lt;li&gt;syslog&lt;/li&gt;
1177
+ &lt;/ul&gt;
1178
+
1179
+ &lt;p&gt;The following default gem is added.&lt;/p&gt;
1180
+
1181
+ &lt;ul&gt;
1182
+ &lt;li&gt;prism 0.15.1&lt;/li&gt;
1183
+ &lt;/ul&gt;
1184
+
1185
+ &lt;p&gt;The following default gems are updated.&lt;/p&gt;
1186
+
1187
+ &lt;ul&gt;
1188
+ &lt;li&gt;RubyGems 3.5.0.dev&lt;/li&gt;
1189
+ &lt;li&gt;base64 0.2.0&lt;/li&gt;
1190
+ &lt;li&gt;benchmark 0.3.0&lt;/li&gt;
1191
+ &lt;li&gt;bigdecimal 3.1.5&lt;/li&gt;
1192
+ &lt;li&gt;bundler 2.5.0.dev&lt;/li&gt;
1193
+ &lt;li&gt;cgi 0.4.0&lt;/li&gt;
1194
+ &lt;li&gt;csv 3.2.8&lt;/li&gt;
1195
+ &lt;li&gt;date 3.3.4&lt;/li&gt;
1196
+ &lt;li&gt;delegate 0.3.1&lt;/li&gt;
1197
+ &lt;li&gt;drb 2.2.0&lt;/li&gt;
1198
+ &lt;li&gt;english 0.8.0&lt;/li&gt;
1199
+ &lt;li&gt;erb 4.0.3&lt;/li&gt;
1200
+ &lt;li&gt;etc 1.4.3.dev.1&lt;/li&gt;
1201
+ &lt;li&gt;fcntl 1.1.0&lt;/li&gt;
1202
+ &lt;li&gt;fiddle 1.1.2&lt;/li&gt;
1203
+ &lt;li&gt;fileutils 1.7.2&lt;/li&gt;
1204
+ &lt;li&gt;find 0.2.0&lt;/li&gt;
1205
+ &lt;li&gt;getoptlong 0.2.1&lt;/li&gt;
1206
+ &lt;li&gt;io-console 0.6.1.dev&lt;/li&gt;
1207
+ &lt;li&gt;irb 1.8.3&lt;/li&gt;
1208
+ &lt;li&gt;logger 1.6.0&lt;/li&gt;
1209
+ &lt;li&gt;mutex_m 0.2.0&lt;/li&gt;
1210
+ &lt;li&gt;net-http 0.4.0&lt;/li&gt;
1211
+ &lt;li&gt;net-protocol 0.2.2&lt;/li&gt;
1212
+ &lt;li&gt;nkf 0.1.3&lt;/li&gt;
1213
+ &lt;li&gt;observer 0.1.2&lt;/li&gt;
1214
+ &lt;li&gt;open-uri 0.4.0&lt;/li&gt;
1215
+ &lt;li&gt;open3 0.2.0&lt;/li&gt;
1216
+ &lt;li&gt;openssl 3.2.0&lt;/li&gt;
1217
+ &lt;li&gt;optparse 0.4.0&lt;/li&gt;
1218
+ &lt;li&gt;ostruct 0.6.0&lt;/li&gt;
1219
+ &lt;li&gt;pathname 0.3.0&lt;/li&gt;
1220
+ &lt;li&gt;pp 0.5.0&lt;/li&gt;
1221
+ &lt;li&gt;prettyprint 0.2.0&lt;/li&gt;
1222
+ &lt;li&gt;pstore 0.1.3&lt;/li&gt;
1223
+ &lt;li&gt;psych 5.1.1.1&lt;/li&gt;
1224
+ &lt;li&gt;rdoc 6.6.0&lt;/li&gt;
1225
+ &lt;li&gt;reline 0.3.9&lt;/li&gt;
1226
+ &lt;li&gt;rinda 0.2.0&lt;/li&gt;
1227
+ &lt;li&gt;securerandom 0.3.0&lt;/li&gt;
1228
+ &lt;li&gt;shellwords 0.2.0&lt;/li&gt;
1229
+ &lt;li&gt;singleton 0.2.0&lt;/li&gt;
1230
+ &lt;li&gt;stringio 3.0.9&lt;/li&gt;
1231
+ &lt;li&gt;strscan 3.0.7&lt;/li&gt;
1232
+ &lt;li&gt;syntax_suggest 1.1.0&lt;/li&gt;
1233
+ &lt;li&gt;tempfile 0.2.0&lt;/li&gt;
1234
+ &lt;li&gt;time 0.3.0&lt;/li&gt;
1235
+ &lt;li&gt;timeout 0.4.1&lt;/li&gt;
1236
+ &lt;li&gt;tmpdir 0.2.0&lt;/li&gt;
1237
+ &lt;li&gt;tsort 0.2.0&lt;/li&gt;
1238
+ &lt;li&gt;un 0.3.0&lt;/li&gt;
1239
+ &lt;li&gt;uri 0.13.0&lt;/li&gt;
1240
+ &lt;li&gt;weakref 0.1.3&lt;/li&gt;
1241
+ &lt;li&gt;win32ole 1.8.10&lt;/li&gt;
1242
+ &lt;li&gt;yaml 0.3.0&lt;/li&gt;
1243
+ &lt;li&gt;zlib 3.1.0&lt;/li&gt;
1244
+ &lt;/ul&gt;
1245
+
1246
+ &lt;p&gt;The following bundled gem is promoted from default gems.&lt;/p&gt;
1247
+
1248
+ &lt;ul&gt;
1249
+ &lt;li&gt;racc 1.7.3&lt;/li&gt;
1250
+ &lt;/ul&gt;
1251
+
1252
+ &lt;p&gt;The following bundled gems are updated.&lt;/p&gt;
1253
+
1254
+ &lt;ul&gt;
1255
+ &lt;li&gt;minitest 5.20.0&lt;/li&gt;
1256
+ &lt;li&gt;rake 13.1.0&lt;/li&gt;
1257
+ &lt;li&gt;test-unit 3.6.1&lt;/li&gt;
1258
+ &lt;li&gt;rexml 3.2.6&lt;/li&gt;
1259
+ &lt;li&gt;rss 0.3.0&lt;/li&gt;
1260
+ &lt;li&gt;net-imap 0.4.4&lt;/li&gt;
1261
+ &lt;li&gt;net-smtp 0.4.0&lt;/li&gt;
1262
+ &lt;li&gt;rbs 3.2.2&lt;/li&gt;
1263
+ &lt;li&gt;typeprof 0.21.8&lt;/li&gt;
1264
+ &lt;li&gt;debug 1.8.0&lt;/li&gt;
1265
+ &lt;/ul&gt;
1266
+
1267
+ &lt;p&gt;See GitHub releases like &lt;a href=&quot;https://github.com/ruby/logger/releases&quot;&gt;Logger&lt;/a&gt; or
1268
+ changelog for details of the default gems or bundled gems.&lt;/p&gt;
1269
+
1270
+ &lt;p&gt;See &lt;a href=&quot;https://github.com/ruby/ruby/blob/v3_3_0_preview3/NEWS.md&quot;&gt;NEWS&lt;/a&gt;
1271
+ or &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview3&quot;&gt;commit logs&lt;/a&gt;
1272
+ for more details.&lt;/p&gt;
1273
+
1274
+ &lt;p&gt;With those changes, &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview3#file_bucket&quot;&gt;5207 files changed, 284820 insertions(+), 174773 deletions(-)&lt;/a&gt;
1275
+ since Ruby 3.2.0!&lt;/p&gt;
1276
+
1277
+ &lt;h2&gt;Download&lt;/h2&gt;
1278
+
1279
+ &lt;ul&gt;
1280
+ &lt;li&gt;
1281
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview3.tar.gz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview3.tar.gz&lt;/a&gt;&lt;/p&gt;
1282
+
1283
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 21550473
1284
+ SHA1: 2811f191d66dffee0206771873bd990857ae4ed6
1285
+ SHA256: 0969141be92e67e0edb84a8fb354acc98f01bd78e602a23a0f136045c82f4809
1286
+ SHA512: 94db07a6958c09809b2e5b597fa55a121074e8bacb3bf588c83cf0d35b07a8b070172035a49d1abf0d8ee364a9ace824f34e677f7327ffe1acdbab0938ac49c4
1287
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1288
+ &lt;/li&gt;
1289
+ &lt;li&gt;
1290
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview3.tar.xz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview3.tar.xz&lt;/a&gt;&lt;/p&gt;
1291
+
1292
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 15970144
1293
+ SHA1: 496600612605f8ebeb955255e98bac73a4cbc045
1294
+ SHA256: f79afcf122dc7d04fe26cfa4436b9c488b21766fc54b0d2dfb2ba41cd0cdd355
1295
+ SHA512: d7ab0d703e7884efd31045933409cd68fac1d9941963537ccc8e309ca7c8bee8500a68182135acba22cbdbf4a8ae99f39bf7f0925273eb4fbc3728c0c1ba0c19
1296
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1297
+ &lt;/li&gt;
1298
+ &lt;li&gt;
1299
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview3.zip&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview3.zip&lt;/a&gt;&lt;/p&gt;
1300
+
1301
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 26618303
1302
+ SHA1: 6a13e08c7e484d42037c1e2c87c5d0e220f893a0
1303
+ SHA256: c35bf637a647c2f60148368ffb374db5c258570911794f46b6dfdb98ebfe95d9
1304
+ SHA512: c4ef2cdcdadeb85ad1d42aedc97f9f3d609b3b01eea2319451cf92c81bd31ae8129b7c91fc68571469dd888c01ea0f48f73234b965db17f6a87404ca382f7794
1305
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1306
+ &lt;/li&gt;
1307
+ &lt;/ul&gt;
1308
+
1309
+ &lt;h2&gt;What is Ruby&lt;/h2&gt;
1310
+
1311
+ &lt;p&gt;Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993,
1312
+ and is now developed as Open Source. It runs on multiple platforms
1313
+ and is used all over the world especially for web development.&lt;/p&gt;
1314
+
1315
+ &lt;p&gt;Posted by naruse on 12 Nov 2023&lt;/p&gt;</description>
1316
+ <pubDate>Sun, 12 Nov 2023 00:00:00 +0000</pubDate>
1317
+ <guid>https://www.ruby-lang.org/en/news/2023/11/12/ruby-3-3-0-preview3-released/</guid>
1318
+ <link>https://www.ruby-lang.org/en/news/2023/11/12/ruby-3-3-0-preview3-released/</link>
1319
+ </item>
1320
+
1321
+ <item>
1322
+ <title>Ruby 3.3.0-preview2 Released</title>
1323
+ <description>
1324
+ &lt;p&gt;We are pleased to announce the release of Ruby 3.3.0-preview2. Ruby 3.3 adds a new pure-Ruby JIT compiler named RJIT, uses Lrama as a parser generator, and many performance improvements especially YJIT.&lt;/p&gt;
1325
+
1326
+ &lt;h2&gt;RJIT&lt;/h2&gt;
1327
+
1328
+ &lt;ul&gt;
1329
+ &lt;li&gt;Introduced a pure-Ruby JIT compiler RJIT and replaced MJIT.
1330
+ &lt;ul&gt;
1331
+ &lt;li&gt;RJIT supports only x86_64 architecture on Unix platforms.&lt;/li&gt;
1332
+ &lt;li&gt;Unlike MJIT, it doesn’t require a C compiler at runtime.&lt;/li&gt;
1333
+ &lt;/ul&gt;
1334
+ &lt;/li&gt;
1335
+ &lt;li&gt;RJIT exists only for experimental purposes.
1336
+ &lt;ul&gt;
1337
+ &lt;li&gt;You should keep using YJIT in production.&lt;/li&gt;
1338
+ &lt;/ul&gt;
1339
+ &lt;/li&gt;
1340
+ &lt;li&gt;If you are interested in developing JIT for Ruby, please check out &lt;a href=&quot;https://rubykaigi.org/2023/presentations/k0kubun.html#day3&quot;&gt;k0kubun’s presentation on Day 3 of RubyKaigi&lt;/a&gt;.&lt;/li&gt;
1341
+ &lt;/ul&gt;
1342
+
1343
+ &lt;h2&gt;Use Lrama instead of Bison&lt;/h2&gt;
1344
+
1345
+ &lt;ul&gt;
1346
+ &lt;li&gt;Replace Bison with &lt;a href=&quot;https://github.com/yui-knk/lrama&quot;&gt;Lrama LALR parser generator&lt;/a&gt; &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19637&quot;&gt;Feature #19637&lt;/a&gt;
1347
+ &lt;ul&gt;
1348
+ &lt;li&gt;If you have interest, please see &lt;a href=&quot;https://rubykaigi.org/2023/presentations/spikeolaf.html&quot;&gt;The future vision of Ruby Parser&lt;/a&gt;&lt;/li&gt;
1349
+ &lt;/ul&gt;
1350
+ &lt;/li&gt;
1351
+ &lt;/ul&gt;
1352
+
1353
+ &lt;h2&gt;YJIT&lt;/h2&gt;
1354
+
1355
+ &lt;ul&gt;
1356
+ &lt;li&gt;Major performance improvements over 3.2
1357
+ &lt;ul&gt;
1358
+ &lt;li&gt;Support for splat and rest arguments has been improved.&lt;/li&gt;
1359
+ &lt;li&gt;Registers are allocated for stack operations of the virtual machine.&lt;/li&gt;
1360
+ &lt;li&gt;More calls with optional arguments are compiled.&lt;/li&gt;
1361
+ &lt;li&gt;Exception handlers are also compiled.&lt;/li&gt;
1362
+ &lt;li&gt;Instance variables no longer exit to the interpreter
1363
+ with megamorphic Object Shapes.&lt;/li&gt;
1364
+ &lt;li&gt;Unsupported call types no longer exit to the interpreter.&lt;/li&gt;
1365
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Integer#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#block_given?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#is_a?&lt;/code&gt;,
1366
+ &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#instance_of?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Module#===&lt;/code&gt; are specially optimized.&lt;/li&gt;
1367
+ &lt;li&gt;Now more than 3x faster than the interpreter on optcarrot!&lt;/li&gt;
1368
+ &lt;/ul&gt;
1369
+ &lt;/li&gt;
1370
+ &lt;li&gt;Metadata for compiled code uses a lot less memory.&lt;/li&gt;
1371
+ &lt;li&gt;Generate more compact code on ARM64&lt;/li&gt;
1372
+ &lt;li&gt;Option to start YJIT in paused mode and then later enable it manually
1373
+ &lt;ul&gt;
1374
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-pause&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RubyVM::YJIT.resume&lt;/code&gt;&lt;/li&gt;
1375
+ &lt;li&gt;This can be used to enable YJIT only once your application is done booting&lt;/li&gt;
1376
+ &lt;/ul&gt;
1377
+ &lt;/li&gt;
1378
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ratio_in_yjit&lt;/code&gt; stat produced by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-stats&lt;/code&gt; is now available in release builds,
1379
+ a special stats or dev build is no longer required.&lt;/li&gt;
1380
+ &lt;li&gt;Exit tracing option now supports sampling
1381
+ &lt;ul&gt;
1382
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--trace-exits-sample-rate=N&lt;/code&gt;&lt;/li&gt;
1383
+ &lt;/ul&gt;
1384
+ &lt;/li&gt;
1385
+ &lt;li&gt;More thorough testing and multiple bug fixes&lt;/li&gt;
1386
+ &lt;/ul&gt;
1387
+
1388
+ &lt;h2&gt;Other Notable New Features&lt;/h2&gt;
1389
+
1390
+ &lt;h3&gt;Language&lt;/h3&gt;
1391
+
1392
+ &lt;h2&gt;Performance improvements&lt;/h2&gt;
1393
+
1394
+ &lt;ul&gt;
1395
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;defined?(@ivar)&lt;/code&gt; is optimized with Object Shapes.&lt;/li&gt;
1396
+ &lt;/ul&gt;
1397
+
1398
+ &lt;h2&gt;Other notable changes since 3.2&lt;/h2&gt;
1399
+
1400
+ &lt;h3&gt;IRB&lt;/h3&gt;
1401
+
1402
+ &lt;p&gt;IRB has received several enhancements, including but not limited to:&lt;/p&gt;
1403
+
1404
+ &lt;ul&gt;
1405
+ &lt;li&gt;Advanced &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;irb:rdbg&lt;/code&gt; integration that provides an equivalent debugging experience to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pry-byebug&lt;/code&gt; (&lt;a href=&quot;https://github.com/ruby/irb#debugging-with-irb&quot;&gt;doc&lt;/a&gt;).&lt;/li&gt;
1406
+ &lt;li&gt;Pager support for commands like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_cmds&lt;/code&gt;.&lt;/li&gt;
1407
+ &lt;li&gt;More accurate and helpful information provided by the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ls&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_source&lt;/code&gt; commands.&lt;/li&gt;
1408
+ &lt;/ul&gt;
1409
+
1410
+ &lt;p&gt;In addition, IRB has also undergone extensive refactoring and received dozens of bug fixes to facilitate easier future enhancements.&lt;/p&gt;
1411
+
1412
+ &lt;h2&gt;Compatibility issues&lt;/h2&gt;
1413
+
1414
+ &lt;p&gt;Note: Excluding feature bug fixes.&lt;/p&gt;
1415
+
1416
+ &lt;h3&gt;Removed constants&lt;/h3&gt;
1417
+
1418
+ &lt;p&gt;The following deprecated constants are removed.&lt;/p&gt;
1419
+
1420
+ &lt;h3&gt;Removed methods&lt;/h3&gt;
1421
+
1422
+ &lt;p&gt;The following deprecated methods are removed.&lt;/p&gt;
1423
+
1424
+ &lt;h2&gt;Stdlib compatibility issues&lt;/h2&gt;
1425
+
1426
+ &lt;h3&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; is retired&lt;/h3&gt;
1427
+
1428
+ &lt;ul&gt;
1429
+ &lt;li&gt;We have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; that is pure Ruby implementation compatible with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; API. We rely on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; in the future. If you need to use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt;, you can install &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; via rubygems.org with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem install readline-ext&lt;/code&gt;.&lt;/li&gt;
1430
+ &lt;li&gt;We no longer need to install libraries like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libreadline&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libedit&lt;/code&gt;.&lt;/li&gt;
1431
+ &lt;/ul&gt;
1432
+
1433
+ &lt;h2&gt;C API updates&lt;/h2&gt;
1434
+
1435
+ &lt;h3&gt;Updated C APIs&lt;/h3&gt;
1436
+
1437
+ &lt;p&gt;The following APIs are updated.&lt;/p&gt;
1438
+
1439
+ &lt;h3&gt;Removed C APIs&lt;/h3&gt;
1440
+
1441
+ &lt;p&gt;The following deprecated APIs are removed.&lt;/p&gt;
1442
+
1443
+ &lt;h2&gt;Standard library updates&lt;/h2&gt;
1444
+
1445
+ &lt;p&gt;RubyGems and Bundler warn if users require gem that is scheduled to become the bundled gems in the future version of Ruby.&lt;/p&gt;
1446
+
1447
+ &lt;p&gt;The following default gems are updated.&lt;/p&gt;
1448
+
1449
+ &lt;ul&gt;
1450
+ &lt;li&gt;RubyGems 3.5.0.dev&lt;/li&gt;
1451
+ &lt;li&gt;bigdecimal 3.1.4&lt;/li&gt;
1452
+ &lt;li&gt;bundler 2.5.0.dev&lt;/li&gt;
1453
+ &lt;li&gt;csv 3.2.8&lt;/li&gt;
1454
+ &lt;li&gt;erb 4.0.3&lt;/li&gt;
1455
+ &lt;li&gt;fiddle 1.1.2&lt;/li&gt;
1456
+ &lt;li&gt;fileutils 1.7.1&lt;/li&gt;
1457
+ &lt;li&gt;irb 1.7.4&lt;/li&gt;
1458
+ &lt;li&gt;nkf 0.1.3&lt;/li&gt;
1459
+ &lt;li&gt;optparse 0.4.0.pre.1&lt;/li&gt;
1460
+ &lt;li&gt;psych 5.1.0&lt;/li&gt;
1461
+ &lt;li&gt;reline 0.3.8&lt;/li&gt;
1462
+ &lt;li&gt;stringio 3.0.9&lt;/li&gt;
1463
+ &lt;li&gt;strscan 3.0.7&lt;/li&gt;
1464
+ &lt;li&gt;syntax_suggest 1.1.0&lt;/li&gt;
1465
+ &lt;li&gt;time 0.2.2&lt;/li&gt;
1466
+ &lt;li&gt;timeout 0.4.0&lt;/li&gt;
1467
+ &lt;li&gt;uri 0.12.2&lt;/li&gt;
1468
+ &lt;li&gt;yarp 0.9.0&lt;/li&gt;
1469
+ &lt;/ul&gt;
1470
+
1471
+ &lt;p&gt;The following bundled gems are updated.&lt;/p&gt;
1472
+
1473
+ &lt;ul&gt;
1474
+ &lt;li&gt;minitest 5.19.0&lt;/li&gt;
1475
+ &lt;li&gt;test-unit 3.6.1&lt;/li&gt;
1476
+ &lt;li&gt;rexml 3.2.6&lt;/li&gt;
1477
+ &lt;li&gt;rss 0.3.0&lt;/li&gt;
1478
+ &lt;li&gt;net-imap 0.3.7&lt;/li&gt;
1479
+ &lt;li&gt;rbs 3.2.1&lt;/li&gt;
1480
+ &lt;li&gt;typeprof 0.21.8&lt;/li&gt;
1481
+ &lt;li&gt;debug 1.8.0&lt;/li&gt;
1482
+ &lt;/ul&gt;
1483
+
1484
+ &lt;p&gt;The following default gem is now bundled.&lt;/p&gt;
1485
+
1486
+ &lt;ul&gt;
1487
+ &lt;li&gt;racc 1.7.1&lt;/li&gt;
1488
+ &lt;/ul&gt;
1489
+
1490
+ &lt;p&gt;See GitHub releases like &lt;a href=&quot;https://github.com/ruby/logger/releases&quot;&gt;Logger&lt;/a&gt; or
1491
+ changelog for details of the default gems or bundled gems.&lt;/p&gt;
1492
+
1493
+ &lt;p&gt;See &lt;a href=&quot;https://github.com/ruby/ruby/blob/v3_3_0_preview2/NEWS.md&quot;&gt;NEWS&lt;/a&gt;
1494
+ or &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview2&quot;&gt;commit logs&lt;/a&gt;
1495
+ for more details.&lt;/p&gt;
1496
+
1497
+ &lt;p&gt;With those changes, &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview2#file_bucket&quot;&gt;4970 files changed, 239635 insertions(+), 165275 deletions(-)&lt;/a&gt;
1498
+ since Ruby 3.2.0!&lt;/p&gt;
1499
+
1500
+ &lt;h2&gt;Download&lt;/h2&gt;
1501
+
1502
+ &lt;ul&gt;
1503
+ &lt;li&gt;
1504
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.gz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.gz&lt;/a&gt;&lt;/p&gt;
1505
+
1506
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 21074209
1507
+ SHA1: cf7329019235dc36b8e3f382a8b8b744922b1163
1508
+ SHA256: 30ce8b0fe11b37b5ac088f5a5765744b935eac45bb89a9e381731533144f5991
1509
+ SHA512: 1c5a13e519e8487fd40d932b96d14fa729521925c288e7841ab5eada628e506ceca2605bae36eea1aa505d9253383d53cd933b7a4bff96e6de5b1130c7c558e6
1510
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1511
+ &lt;/li&gt;
1512
+ &lt;li&gt;
1513
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.xz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.xz&lt;/a&gt;&lt;/p&gt;
1514
+
1515
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 15600992
1516
+ SHA1: 606d6423137a24eef4f6b07d167596b63c7aaa17
1517
+ SHA256: 62b1c4f586c70bf1cb58f2d909d0d824506315782e835f9dd3fcc0b659a70fc1
1518
+ SHA512: 5ff609a66b7359006df0d87477cf70e6e26c5f40ced81b8254f8154f4fc82c77fed297471b55706c1a4466f2a4257999e933b2ed085f695ace265757ab9500a2
1519
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1520
+ &lt;/li&gt;
1521
+ &lt;li&gt;
1522
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.zip&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.zip&lt;/a&gt;&lt;/p&gt;
1523
+
1524
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 26095651
1525
+ SHA1: 4441cd0db23d133e6e2f7dea28f931a68dac6ca5
1526
+ SHA256: c9771d24c9b1eab532c04ed076087285601693e4d1c63f131fd078c47c5c0cea
1527
+ SHA512: bfeed21d011f891fe22510fe7242992c98f7fd2ce863d8be5740f56a34b726134cb3f5304e8b2dcd468fbc939648f10aae482eee15c1bf6c64b705484ed9e197
1528
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1529
+ &lt;/li&gt;
1530
+ &lt;/ul&gt;
1531
+
1532
+ &lt;h2&gt;What is Ruby&lt;/h2&gt;
1533
+
1534
+ &lt;p&gt;Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993,
1535
+ and is now developed as Open Source. It runs on multiple platforms
1536
+ and is used all over the world especially for web development.&lt;/p&gt;
1537
+
1538
+ &lt;p&gt;Posted by naruse on 14 Sep 2023&lt;/p&gt;</description>
1539
+ <pubDate>Thu, 14 Sep 2023 00:00:00 +0000</pubDate>
1540
+ <guid>https://www.ruby-lang.org/en/news/2023/09/14/ruby-3-3-0-preview2-released/</guid>
1541
+ <link>https://www.ruby-lang.org/en/news/2023/09/14/ruby-3-3-0-preview2-released/</link>
1542
+ </item>
1543
+
1544
+ <item>
1545
+ <title>CVE-2023-36617: ReDoS vulnerability in URI</title>
1546
+ <description>&lt;p&gt;We have released the uri gem version 0.12.2, 0.10.3 that has a security fix for a ReDoS vulnerability.
1547
+ This vulnerability has been assigned the CVE identifier &lt;a href=&quot;https://www.cve.org/CVERecord?id=CVE-2023-36617&quot;&gt;CVE-2023-36617&lt;/a&gt;.&lt;/p&gt;
1548
+
1549
+ &lt;h2&gt;Details&lt;/h2&gt;
1550
+
1551
+ &lt;p&gt;A ReDoS issue was discovered in the URI component through 0.12.1 for Ruby. The URI parser mishandles invalid URLs that have specific characters. There is an increase in execution time for parsing strings to URI objects with rfc2396_parser.rb and rfc3986_parser.rb.&lt;/p&gt;
1552
+
1553
+ &lt;p&gt;NOTE: this issue exists because of an incomplete fix for &lt;a href=&quot;https://www.ruby-lang.org/en/news/2023/03/28/redos-in-uri-cve-2023-28755/&quot;&gt;CVE-2023-28755&lt;/a&gt;.&lt;/p&gt;
1554
+
1555
+ &lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri&lt;/code&gt; gem version 0.12.1 and all versions prior 0.12.1 are vulnerable for this vulnerability.&lt;/p&gt;
1556
+
1557
+ &lt;h2&gt;Recommended action&lt;/h2&gt;
1558
+
1559
+ &lt;p&gt;We recommend to update the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri&lt;/code&gt; gem to 0.12.2. In order to ensure compatibility with bundled version in older Ruby series, you may update as follows instead:&lt;/p&gt;
1560
+
1561
+ &lt;ul&gt;
1562
+ &lt;li&gt;For Ruby 3.0: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri&lt;/code&gt; 0.10.3&lt;/li&gt;
1563
+ &lt;li&gt;For Ruby 3.1: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri&lt;/code&gt; 0.12.2&lt;/li&gt;
1564
+ &lt;li&gt;For Ruby 3.2: Update to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri&lt;/code&gt; 0.12.2, or update to Ruby 3.2.3&lt;/li&gt;
1565
+ &lt;/ul&gt;
1566
+
1567
+ &lt;p&gt;You can use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem update uri&lt;/code&gt; to update it. If you are using bundler, please add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem &quot;uri&quot;, &quot;&amp;gt;= 0.12.2&quot;&lt;/code&gt; (or other version mentioned above) to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt;.&lt;/p&gt;
1568
+
1569
+ &lt;h2&gt;Affected versions&lt;/h2&gt;
1570
+
1571
+ &lt;ul&gt;
1572
+ &lt;li&gt;uri gem 0.12.1 or before&lt;/li&gt;
1573
+ &lt;/ul&gt;
1574
+
1575
+ &lt;h2&gt;Credits&lt;/h2&gt;
1576
+
1577
+ &lt;p&gt;Thanks to &lt;a href=&quot;https://hackerone.com/ooooooo_q&quot;&gt;ooooooo_q&lt;/a&gt; for discovering this issue.&lt;/p&gt;
1578
+
1579
+ &lt;p&gt;Thanks to &lt;a href=&quot;https://github.com/nobu&quot;&gt;nobu&lt;/a&gt; for fixing this issue.&lt;/p&gt;
1580
+
1581
+ &lt;h2&gt;History&lt;/h2&gt;
1582
+
1583
+ &lt;ul&gt;
1584
+ &lt;li&gt;Added a new recommended action for Ruby 3.2 at 2024-01-18 12:00:00 (UTC)&lt;/li&gt;
1585
+ &lt;li&gt;Originally published at 2023-06-29 01:00:00 (UTC)&lt;/li&gt;
1586
+ &lt;/ul&gt;
1587
+
1588
+ &lt;p&gt;Posted by hsbt on 29 Jun 2023&lt;/p&gt;</description>
1589
+ <pubDate>Thu, 29 Jun 2023 01:00:00 +0000</pubDate>
1590
+ <guid>https://www.ruby-lang.org/en/news/2023/06/29/redos-in-uri-CVE-2023-36617/</guid>
1591
+ <link>https://www.ruby-lang.org/en/news/2023/06/29/redos-in-uri-CVE-2023-36617/</link>
1592
+ </item>
1593
+
1594
+ <item>
1595
+ <title>Ruby 3.3.0-preview1 Released</title>
1596
+ <description>
1597
+ &lt;p&gt;We are pleased to announce the release of Ruby 3.3.0-preview1. Ruby 3.3 adds a new pure-Ruby JIT compiler named RJIT, uses Lrama as a parser generator, and many performance improvements especially YJIT.&lt;/p&gt;
1598
+
1599
+ &lt;h2&gt;RJIT&lt;/h2&gt;
1600
+
1601
+ &lt;ul&gt;
1602
+ &lt;li&gt;Introduced a pure-Ruby JIT compiler RJIT and replaced MJIT.
1603
+ &lt;ul&gt;
1604
+ &lt;li&gt;RJIT supports only x86_64 architecture on Unix platforms.&lt;/li&gt;
1605
+ &lt;li&gt;Unlike MJIT, it doesn’t require a C compiler at runtime.&lt;/li&gt;
1606
+ &lt;/ul&gt;
1607
+ &lt;/li&gt;
1608
+ &lt;li&gt;RJIT exists only for experimental purposes.
1609
+ &lt;ul&gt;
1610
+ &lt;li&gt;You should keep using YJIT in production.&lt;/li&gt;
1611
+ &lt;/ul&gt;
1612
+ &lt;/li&gt;
1613
+ &lt;li&gt;If you are interested in developing JIT for Ruby, please check out &lt;a href=&quot;https://rubykaigi.org/2023/presentations/k0kubun.html#day3&quot;&gt;k0kubun’s presentation on Day 3 of RubyKaigi&lt;/a&gt;.&lt;/li&gt;
1614
+ &lt;/ul&gt;
1615
+
1616
+ &lt;h2&gt;Use Lrama instead of Bison&lt;/h2&gt;
1617
+
1618
+ &lt;ul&gt;
1619
+ &lt;li&gt;Replace Bison with &lt;a href=&quot;https://github.com/yui-knk/lrama&quot;&gt;Lrama LALR parser generator&lt;/a&gt; &lt;a href=&quot;https://bugs.ruby-lang.org/issues/19637&quot;&gt;Feature #19637&lt;/a&gt;
1620
+ &lt;ul&gt;
1621
+ &lt;li&gt;If you have interest, please see &lt;a href=&quot;https://rubykaigi.org/2023/presentations/spikeolaf.html&quot;&gt;The future vision of Ruby Parser&lt;/a&gt;&lt;/li&gt;
1622
+ &lt;/ul&gt;
1623
+ &lt;/li&gt;
1624
+ &lt;/ul&gt;
1625
+
1626
+ &lt;h2&gt;YJIT&lt;/h2&gt;
1627
+
1628
+ &lt;ul&gt;
1629
+ &lt;li&gt;Significant performance improvements over 3.2
1630
+ &lt;ul&gt;
1631
+ &lt;li&gt;Splat and rest arguments support has been improved.&lt;/li&gt;
1632
+ &lt;li&gt;Registers are allocated for stack operations of the virtual machine.&lt;/li&gt;
1633
+ &lt;li&gt;More calls with optional arguments are compiled.&lt;/li&gt;
1634
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Integer#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String#!=&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#block_given?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#is_a?&lt;/code&gt;,
1635
+ &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel#instance_of?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Module#===&lt;/code&gt; are specially optimized.&lt;/li&gt;
1636
+ &lt;li&gt;Instance variables no longer exit to the interpreter
1637
+ with megamorphic Object Shapes.&lt;/li&gt;
1638
+ &lt;/ul&gt;
1639
+ &lt;/li&gt;
1640
+ &lt;li&gt;Metadata for compiled code uses a lot less memory.&lt;/li&gt;
1641
+ &lt;li&gt;Improved code generation on ARM64&lt;/li&gt;
1642
+ &lt;li&gt;Option to start YJIT in paused mode and then later enable it manually
1643
+ &lt;ul&gt;
1644
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--yjit-pause&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RubyVM::YJIT.resume&lt;/code&gt;&lt;/li&gt;
1645
+ &lt;li&gt;This can be used to enable YJIT only once your application is done booting&lt;/li&gt;
1646
+ &lt;/ul&gt;
1647
+ &lt;/li&gt;
1648
+ &lt;li&gt;Exit tracing option now supports sampling
1649
+ &lt;ul&gt;
1650
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--trace-exits-sample-rate=N&lt;/code&gt;&lt;/li&gt;
1651
+ &lt;/ul&gt;
1652
+ &lt;/li&gt;
1653
+ &lt;li&gt;Multiple bug fixes&lt;/li&gt;
1654
+ &lt;/ul&gt;
1655
+
1656
+ &lt;h2&gt;Other Notable New Features&lt;/h2&gt;
1657
+
1658
+ &lt;h3&gt;Language&lt;/h3&gt;
1659
+
1660
+ &lt;h2&gt;Performance improvements&lt;/h2&gt;
1661
+
1662
+ &lt;ul&gt;
1663
+ &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;defined?(@ivar)&lt;/code&gt; is optimized with Object Shapes.&lt;/li&gt;
1664
+ &lt;/ul&gt;
1665
+
1666
+ &lt;h2&gt;Other notable changes since 3.2&lt;/h2&gt;
1667
+
1668
+ &lt;h2&gt;Compatibility issues&lt;/h2&gt;
1669
+
1670
+ &lt;p&gt;Note: Excluding feature bug fixes.&lt;/p&gt;
1671
+
1672
+ &lt;h3&gt;Removed constants&lt;/h3&gt;
1673
+
1674
+ &lt;p&gt;The following deprecated constants are removed.&lt;/p&gt;
1675
+
1676
+ &lt;h3&gt;Removed methods&lt;/h3&gt;
1677
+
1678
+ &lt;p&gt;The following deprecated methods are removed.&lt;/p&gt;
1679
+
1680
+ &lt;h2&gt;Stdlib compatibility issues&lt;/h2&gt;
1681
+
1682
+ &lt;h3&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; is retired&lt;/h3&gt;
1683
+
1684
+ &lt;ul&gt;
1685
+ &lt;li&gt;We have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; that is pure Ruby implementation compatible with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; API. We rely on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reline&lt;/code&gt; in the future. If you need to use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt;, you can install &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ext/readline&lt;/code&gt; via rubygems.org with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gem install readline-ext&lt;/code&gt;.&lt;/li&gt;
1686
+ &lt;li&gt;We no longer need to install libraries like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libreadline&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;libedit&lt;/code&gt;.&lt;/li&gt;
1687
+ &lt;/ul&gt;
1688
+
1689
+ &lt;h2&gt;C API updates&lt;/h2&gt;
1690
+
1691
+ &lt;h3&gt;Updated C APIs&lt;/h3&gt;
1692
+
1693
+ &lt;p&gt;The following APIs are updated.&lt;/p&gt;
1694
+
1695
+ &lt;h3&gt;Removed C APIs&lt;/h3&gt;
1696
+
1697
+ &lt;p&gt;The following deprecated APIs are removed.&lt;/p&gt;
1698
+
1699
+ &lt;h2&gt;Standard library updates&lt;/h2&gt;
1700
+
1701
+ &lt;p&gt;The following default gems are updated.&lt;/p&gt;
1702
+
1703
+ &lt;ul&gt;
1704
+ &lt;li&gt;RubyGems 3.5.0.dev&lt;/li&gt;
1705
+ &lt;li&gt;bigdecimal 3.1.4&lt;/li&gt;
1706
+ &lt;li&gt;bundler 2.5.0.dev&lt;/li&gt;
1707
+ &lt;li&gt;csv 3.2.7&lt;/li&gt;
1708
+ &lt;li&gt;fiddle 1.1.2&lt;/li&gt;
1709
+ &lt;li&gt;fileutils 1.7.1&lt;/li&gt;
1710
+ &lt;li&gt;irb 1.6.4&lt;/li&gt;
1711
+ &lt;li&gt;optparse 0.4.0.pre.1&lt;/li&gt;
1712
+ &lt;li&gt;psych 5.1.0&lt;/li&gt;
1713
+ &lt;li&gt;reline 0.3.3&lt;/li&gt;
1714
+ &lt;li&gt;stringio 3.0.7&lt;/li&gt;
1715
+ &lt;li&gt;strscan 3.0.7&lt;/li&gt;
1716
+ &lt;li&gt;syntax_suggest 1.0.4&lt;/li&gt;
1717
+ &lt;li&gt;time 0.2.2&lt;/li&gt;
1718
+ &lt;li&gt;timeout 0.3.2&lt;/li&gt;
1719
+ &lt;li&gt;uri 0.12.1&lt;/li&gt;
1720
+ &lt;/ul&gt;
1721
+
1722
+ &lt;p&gt;The following bundled gems are updated.&lt;/p&gt;
1723
+
1724
+ &lt;ul&gt;
1725
+ &lt;li&gt;minitest 5.18.0&lt;/li&gt;
1726
+ &lt;li&gt;rbs 3.1.0&lt;/li&gt;
1727
+ &lt;li&gt;typeprof 0.21.7&lt;/li&gt;
1728
+ &lt;li&gt;debug 1.8.0&lt;/li&gt;
1729
+ &lt;/ul&gt;
1730
+
1731
+ &lt;p&gt;See GitHub releases like &lt;a href=&quot;https://github.com/ruby/logger/releases&quot;&gt;Logger&lt;/a&gt; or
1732
+ changelog for details of the default gems or bundled gems.&lt;/p&gt;
1733
+
1734
+ &lt;p&gt;See &lt;a href=&quot;https://github.com/ruby/ruby/blob/v3_3_0_preview1/NEWS.md&quot;&gt;NEWS&lt;/a&gt;
1735
+ or &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview1&quot;&gt;commit logs&lt;/a&gt;
1736
+ for more details.&lt;/p&gt;
1737
+
1738
+ &lt;p&gt;With those changes, &lt;a href=&quot;https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview1#file_bucket&quot;&gt;1922 files changed, 75283 insertions(+), 44896 deletions(-)&lt;/a&gt;
1739
+ since Ruby 3.2.0!&lt;/p&gt;
1740
+
1741
+ &lt;h2&gt;Download&lt;/h2&gt;
1742
+
1743
+ &lt;ul&gt;
1744
+ &lt;li&gt;
1745
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview1.tar.gz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview1.tar.gz&lt;/a&gt;&lt;/p&gt;
1746
+
1747
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 20428213
1748
+ SHA1: 5445eec1cd9ddb44e03e74568cac94209c91b42d
1749
+ SHA256: c3454a911779b8d747ab0ea87041030d002d533edacb2485fe558b7084da25ed
1750
+ SHA512: 0f891f140ddc6372aa7c4459f8784126e0c341db7b80e72c51e441c5153c43c2d7b965f7807c076862ac84b9b8b0c6a66bbf66fc341746016151397bb21c782a
1751
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1752
+ &lt;/li&gt;
1753
+ &lt;li&gt;
1754
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview1.tar.xz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview1.tar.xz&lt;/a&gt;&lt;/p&gt;
1755
+
1756
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 15074600
1757
+ SHA1: 4c22ebca287c87811e1050bf4d59b7d32255b212
1758
+ SHA256: ae300b49e06c13087dd163b97eddd38db895dc8e0c9904284119795d75303fbb
1759
+ SHA512: 46c1134dba5810847f7f6b4298900a91f5225679d7873548b271f4ef2ad1dc168722562a2e468a2ccf136314176ee613d8c7792fd4411a3f7a44c80b93b417ee
1760
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1761
+ &lt;/li&gt;
1762
+ &lt;li&gt;
1763
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview1.zip&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview1.zip&lt;/a&gt;&lt;/p&gt;
1764
+
1765
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 24846962
1766
+ SHA1: 31774fa653c54107b6afc30adda3a0350d8f41d2
1767
+ SHA256: 6ecafecf83f2cacf446b2326012f2b6ee1a0614d8dd29bb1fb3f105c27e2c553
1768
+ SHA512: 794bef847fefbbdbbdced85975a00c9289ef6464810408af3f0f2055052d6b5ef5576dbd41e0d87bb73f1ad276d8e27c36018610f8e2b9936828c0e692f611f0
1769
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1770
+ &lt;/li&gt;
1771
+ &lt;/ul&gt;
1772
+
1773
+ &lt;h2&gt;What is Ruby&lt;/h2&gt;
1774
+
1775
+ &lt;p&gt;Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993,
1776
+ and is now developed as Open Source. It runs on multiple platforms
1777
+ and is used all over the world especially for web development.&lt;/p&gt;
1778
+
1779
+ &lt;p&gt;Posted by naruse on 12 May 2023&lt;/p&gt;</description>
1780
+ <pubDate>Fri, 12 May 2023 00:00:00 +0000</pubDate>
1781
+ <guid>https://www.ruby-lang.org/en/news/2023/05/12/ruby-3-3-0-preview1-released/</guid>
1782
+ <link>https://www.ruby-lang.org/en/news/2023/05/12/ruby-3-3-0-preview1-released/</link>
1783
+ </item>
1784
+
1785
+ <item>
1786
+ <title>Ruby 3.2.2 Released</title>
1787
+ <description>&lt;p&gt;Ruby 3.2.2 has been released.&lt;/p&gt;
1788
+
1789
+ &lt;p&gt;This release includes security fixes.
1790
+ Please check the topics below for details.&lt;/p&gt;
1791
+
1792
+ &lt;ul&gt;
1793
+ &lt;li&gt;&lt;a href=&quot;/en/news/2023/03/28/redos-in-uri-cve-2023-28755/&quot;&gt;CVE-2023-28755: ReDoS vulnerability in URI&lt;/a&gt;&lt;/li&gt;
1794
+ &lt;li&gt;&lt;a href=&quot;/en/news/2023/03/30/redos-in-time-cve-2023-28756/&quot;&gt;CVE-2023-28756: ReDoS vulnerability in Time&lt;/a&gt;&lt;/li&gt;
1795
+ &lt;/ul&gt;
1796
+
1797
+ &lt;p&gt;See the &lt;a href=&quot;https://github.com/ruby/ruby/releases/tag/v3_2_2&quot;&gt;GitHub releases&lt;/a&gt; for further details.&lt;/p&gt;
1798
+
1799
+ &lt;h2&gt;Download&lt;/h2&gt;
1800
+
1801
+ &lt;ul&gt;
1802
+ &lt;li&gt;
1803
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz&lt;/a&gt;&lt;/p&gt;
1804
+
1805
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 20467023
1806
+ SHA1: 670fce00d83771a1349b116e56a8a3b0ad323769
1807
+ SHA256: 96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc
1808
+ SHA512: bcc68f3f24c1c8987d9c80b57332e5791f25b935ba38daf5addf60dbfe3a05f9dcaf21909681b88e862c67c6ed103150f73259c6e35c564f13a00f432e3c1e46
1809
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1810
+ &lt;/li&gt;
1811
+ &lt;li&gt;
1812
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.xz&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.xz&lt;/a&gt;&lt;/p&gt;
1813
+
1814
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 15118856
1815
+ SHA1: 087af286b70b0e17f88c9c4469b471eca2010161
1816
+ SHA256: 4b352d0f7ec384e332e3e44cdbfdcd5ff2d594af3c8296b5636c710975149e23
1817
+ SHA512: a29f24cd80f563f6368952d06d6273f7241a409fa9ab2f60e03dde2ac58ca06bee1750715b6134caebf4c061d3503446dc37a6059e19860bb0010eef34951935
1818
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1819
+ &lt;/li&gt;
1820
+ &lt;li&gt;
1821
+ &lt;p&gt;&lt;a href=&quot;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.zip&quot;&gt;https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.zip&lt;/a&gt;&lt;/p&gt;
1822
+
1823
+ &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;SIZE: 24615317
1824
+ SHA1: a1b6d57019d41dca269b4b16a80784755d34b81d
1825
+ SHA256: cc216ecb4f49064d8f44e10ecf9218cfd7b28cf4168bb79ecdf171e321db4af1
1826
+ SHA512: 569a68d89cc9a646cd0319d7cb8d57df3a55c0ac2c64f1f61607cc9c06b3aa8415eb8d38f7893ab3dbf072da9e919fbc454a9338e924c20a6a5110a1fa301d52
1827
+ &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/div&gt;
1828
+ &lt;/li&gt;
1829
+ &lt;/ul&gt;
1830
+
1831
+ &lt;h2&gt;Release Comment&lt;/h2&gt;
1832
+
1833
+ &lt;p&gt;Many committers, developers, and users who provided bug reports helped us make this release.
1834
+ Thanks for their contributions.&lt;/p&gt;
1835
+
1836
+ &lt;p&gt;Posted by naruse on 30 Mar 2023&lt;/p&gt;</description>
1837
+ <pubDate>Thu, 30 Mar 2023 12:00:00 +0000</pubDate>
1838
+ <guid>https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-2-2-released/</guid>
1839
+ <link>https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-2-2-released/</link>
1840
+ </item>
1841
+
1842
+ </channel>
1843
+ </rss>