♊️ GemiNews 🗞️
(dev)
🏡
📰 Articles
🏷️ Tags
🧠 Queries
📈 Graphs
☁️ Stats
💁🏻 Assistant
💬
🎙️
Demo 1: Embeddings + Recommendation
Demo 2: Bella RAGa
Demo 3: NewRetriever
Demo 4: Assistant function calling
Editing article
Title
Summary
<p>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.</p> <h2>RJIT</h2> <ul> <li>Introduced a pure-Ruby JIT compiler RJIT and replaced MJIT. <ul> <li>RJIT supports only x86_64 architecture on Unix platforms.</li> <li>Unlike MJIT, it doesn’t require a C compiler at runtime.</li> </ul> </li> <li>RJIT exists only for experimental purposes. <ul> <li>You should keep using YJIT in production.</li> </ul> </li> <li>If you are interested in developing JIT for Ruby, please check out <a href="https://rubykaigi.org/2023/presentations/k0kubun.html#day3">k0kubun’s presentation on Day 3 of RubyKaigi</a>.</li> </ul> <h2>Use Lrama instead of Bison</h2> <ul> <li>Replace Bison with <a href="https://github.com/yui-knk/lrama">Lrama LALR parser generator</a> <a href="https://bugs.ruby-lang.org/issues/19637">Feature #19637</a> <ul> <li>If you have interest, please see <a href="https://rubykaigi.org/2023/presentations/spikeolaf.html">The future vision of Ruby Parser</a></li> </ul> </li> </ul> <h2>YJIT</h2> <ul> <li>Major performance improvements over 3.2 <ul> <li>Support for splat and rest arguments has been improved.</li> <li>Registers are allocated for stack operations of the virtual machine.</li> <li>More calls with optional arguments are compiled.</li> <li>Exception handlers are also compiled.</li> <li>Instance variables no longer exit to the interpreter with megamorphic Object Shapes.</li> <li>Unsupported call types no longer exit to the interpreter.</li> <li><code class="language-plaintext highlighter-rouge">Integer#!=</code>, <code class="language-plaintext highlighter-rouge">String#!=</code>, <code class="language-plaintext highlighter-rouge">Kernel#block_given?</code>, <code class="language-plaintext highlighter-rouge">Kernel#is_a?</code>, <code class="language-plaintext highlighter-rouge">Kernel#instance_of?</code>, <code class="language-plaintext highlighter-rouge">Module#===</code> are specially optimized.</li> <li>Now more than 3x faster than the interpreter on optcarrot!</li> </ul> </li> <li>Metadata for compiled code uses a lot less memory.</li> <li>Generate more compact code on ARM64</li> <li>Option to start YJIT in paused mode and then later enable it manually <ul> <li><code class="language-plaintext highlighter-rouge">--yjit-pause</code> and <code class="language-plaintext highlighter-rouge">RubyVM::YJIT.resume</code></li> <li>This can be used to enable YJIT only once your application is done booting</li> </ul> </li> <li><code class="language-plaintext highlighter-rouge">ratio_in_yjit</code> stat produced by <code class="language-plaintext highlighter-rouge">--yjit-stats</code> is now available in release builds, a special stats or dev build is no longer required.</li> <li>Exit tracing option now supports sampling <ul> <li><code class="language-plaintext highlighter-rouge">--trace-exits-sample-rate=N</code></li> </ul> </li> <li>More thorough testing and multiple bug fixes</li> </ul> <h2>Other Notable New Features</h2> <h3>Language</h3> <h2>Performance improvements</h2> <ul> <li><code class="language-plaintext highlighter-rouge">defined?(@ivar)</code> is optimized with Object Shapes.</li> </ul> <h2>Other notable changes since 3.2</h2> <h3>IRB</h3> <p>IRB has received several enhancements, including but not limited to:</p> <ul> <li>Advanced <code class="language-plaintext highlighter-rouge">irb:rdbg</code> integration that provides an equivalent debugging experience to <code class="language-plaintext highlighter-rouge">pry-byebug</code> (<a href="https://github.com/ruby/irb#debugging-with-irb">doc</a>).</li> <li>Pager support for commands like <code class="language-plaintext highlighter-rouge">ls</code> and <code class="language-plaintext highlighter-rouge">show_cmds</code>.</li> <li>More accurate and helpful information provided by the <code class="language-plaintext highlighter-rouge">ls</code> and <code class="language-plaintext highlighter-rouge">show_source</code> commands.</li> </ul> <p>In addition, IRB has also undergone extensive refactoring and received dozens of bug fixes to facilitate easier future enhancements.</p> <h2>Compatibility issues</h2> <p>Note: Excluding feature bug fixes.</p> <h3>Removed constants</h3> <p>The following deprecated constants are removed.</p> <h3>Removed methods</h3> <p>The following deprecated methods are removed.</p> <h2>Stdlib compatibility issues</h2> <h3><code class="language-plaintext highlighter-rouge">ext/readline</code> is retired</h3> <ul> <li>We have <code class="language-plaintext highlighter-rouge">reline</code> that is pure Ruby implementation compatible with <code class="language-plaintext highlighter-rouge">ext/readline</code> API. We rely on <code class="language-plaintext highlighter-rouge">reline</code> in the future. If you need to use <code class="language-plaintext highlighter-rouge">ext/readline</code>, you can install <code class="language-plaintext highlighter-rouge">ext/readline</code> via rubygems.org with <code class="language-plaintext highlighter-rouge">gem install readline-ext</code>.</li> <li>We no longer need to install libraries like <code class="language-plaintext highlighter-rouge">libreadline</code> or <code class="language-plaintext highlighter-rouge">libedit</code>.</li> </ul> <h2>C API updates</h2> <h3>Updated C APIs</h3> <p>The following APIs are updated.</p> <h3>Removed C APIs</h3> <p>The following deprecated APIs are removed.</p> <h2>Standard library updates</h2> <p>RubyGems and Bundler warn if users require gem that is scheduled to become the bundled gems in the future version of Ruby.</p> <p>The following default gems are updated.</p> <ul> <li>RubyGems 3.5.0.dev</li> <li>bigdecimal 3.1.4</li> <li>bundler 2.5.0.dev</li> <li>csv 3.2.8</li> <li>erb 4.0.3</li> <li>fiddle 1.1.2</li> <li>fileutils 1.7.1</li> <li>irb 1.7.4</li> <li>nkf 0.1.3</li> <li>optparse 0.4.0.pre.1</li> <li>psych 5.1.0</li> <li>reline 0.3.8</li> <li>stringio 3.0.9</li> <li>strscan 3.0.7</li> <li>syntax_suggest 1.1.0</li> <li>time 0.2.2</li> <li>timeout 0.4.0</li> <li>uri 0.12.2</li> <li>yarp 0.9.0</li> </ul> <p>The following bundled gems are updated.</p> <ul> <li>minitest 5.19.0</li> <li>test-unit 3.6.1</li> <li>rexml 3.2.6</li> <li>rss 0.3.0</li> <li>net-imap 0.3.7</li> <li>rbs 3.2.1</li> <li>typeprof 0.21.8</li> <li>debug 1.8.0</li> </ul> <p>The following default gem is now bundled.</p> <ul> <li>racc 1.7.1</li> </ul> <p>See GitHub releases like <a href="https://github.com/ruby/logger/releases">Logger</a> or changelog for details of the default gems or bundled gems.</p> <p>See <a href="https://github.com/ruby/ruby/blob/v3_3_0_preview2/NEWS.md">NEWS</a> or <a href="https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview2">commit logs</a> for more details.</p> <p>With those changes, <a href="https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview2#file_bucket">4970 files changed, 239635 insertions(+), 165275 deletions(-)</a> since Ruby 3.2.0!</p> <h2>Download</h2> <ul> <li> <p><a href="https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.gz">https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.gz</a></p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>SIZE: 21074209 SHA1: cf7329019235dc36b8e3f382a8b8b744922b1163 SHA256: 30ce8b0fe11b37b5ac088f5a5765744b935eac45bb89a9e381731533144f5991 SHA512: 1c5a13e519e8487fd40d932b96d14fa729521925c288e7841ab5eada628e506ceca2605bae36eea1aa505d9253383d53cd933b7a4bff96e6de5b1130c7c558e6 </code></pre></div> </div> </li> <li> <p><a href="https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.xz">https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.xz</a></p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>SIZE: 15600992 SHA1: 606d6423137a24eef4f6b07d167596b63c7aaa17 SHA256: 62b1c4f586c70bf1cb58f2d909d0d824506315782e835f9dd3fcc0b659a70fc1 SHA512: 5ff609a66b7359006df0d87477cf70e6e26c5f40ced81b8254f8154f4fc82c77fed297471b55706c1a4466f2a4257999e933b2ed085f695ace265757ab9500a2 </code></pre></div> </div> </li> <li> <p><a href="https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.zip">https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.zip</a></p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>SIZE: 26095651 SHA1: 4441cd0db23d133e6e2f7dea28f931a68dac6ca5 SHA256: c9771d24c9b1eab532c04ed076087285601693e4d1c63f131fd078c47c5c0cea SHA512: bfeed21d011f891fe22510fe7242992c98f7fd2ce863d8be5740f56a34b726134cb3f5304e8b2dcd468fbc939648f10aae482eee15c1bf6c64b705484ed9e197 </code></pre></div> </div> </li> </ul> <h2>What is Ruby</h2> <p>Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993, and is now developed as Open Source. It runs on multiple platforms and is used all over the world especially for web development.</p> <p>Posted by naruse on 14 Sep 2023</p>
Content
empty
Author
Link
Published date
Image url
Feed url
Guid
Hidden blurb
--- !ruby/object:Feedjira::Parser::RSSEntry published: 2023-09-14 00:00:00.000000000 Z carlessian_info: news_filer_version: 2 newspaper: Ruby (EN RSS) macro_region: Technology entry_id: !ruby/object:Feedjira::Parser::GloballyUniqueIdentifier guid: https://www.ruby-lang.org/en/news/2023/09/14/ruby-3-3-0-preview2-released/ title: Ruby 3.3.0-preview2 Released categories: [] summary: |2- <p>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.</p> <h2>RJIT</h2> <ul> <li>Introduced a pure-Ruby JIT compiler RJIT and replaced MJIT. <ul> <li>RJIT supports only x86_64 architecture on Unix platforms.</li> <li>Unlike MJIT, it doesn’t require a C compiler at runtime.</li> </ul> </li> <li>RJIT exists only for experimental purposes. <ul> <li>You should keep using YJIT in production.</li> </ul> </li> <li>If you are interested in developing JIT for Ruby, please check out <a href="https://rubykaigi.org/2023/presentations/k0kubun.html#day3">k0kubun’s presentation on Day 3 of RubyKaigi</a>.</li> </ul> <h2>Use Lrama instead of Bison</h2> <ul> <li>Replace Bison with <a href="https://github.com/yui-knk/lrama">Lrama LALR parser generator</a> <a href="https://bugs.ruby-lang.org/issues/19637">Feature #19637</a> <ul> <li>If you have interest, please see <a href="https://rubykaigi.org/2023/presentations/spikeolaf.html">The future vision of Ruby Parser</a></li> </ul> </li> </ul> <h2>YJIT</h2> <ul> <li>Major performance improvements over 3.2 <ul> <li>Support for splat and rest arguments has been improved.</li> <li>Registers are allocated for stack operations of the virtual machine.</li> <li>More calls with optional arguments are compiled.</li> <li>Exception handlers are also compiled.</li> <li>Instance variables no longer exit to the interpreter with megamorphic Object Shapes.</li> <li>Unsupported call types no longer exit to the interpreter.</li> <li><code class="language-plaintext highlighter-rouge">Integer#!=</code>, <code class="language-plaintext highlighter-rouge">String#!=</code>, <code class="language-plaintext highlighter-rouge">Kernel#block_given?</code>, <code class="language-plaintext highlighter-rouge">Kernel#is_a?</code>, <code class="language-plaintext highlighter-rouge">Kernel#instance_of?</code>, <code class="language-plaintext highlighter-rouge">Module#===</code> are specially optimized.</li> <li>Now more than 3x faster than the interpreter on optcarrot!</li> </ul> </li> <li>Metadata for compiled code uses a lot less memory.</li> <li>Generate more compact code on ARM64</li> <li>Option to start YJIT in paused mode and then later enable it manually <ul> <li><code class="language-plaintext highlighter-rouge">--yjit-pause</code> and <code class="language-plaintext highlighter-rouge">RubyVM::YJIT.resume</code></li> <li>This can be used to enable YJIT only once your application is done booting</li> </ul> </li> <li><code class="language-plaintext highlighter-rouge">ratio_in_yjit</code> stat produced by <code class="language-plaintext highlighter-rouge">--yjit-stats</code> is now available in release builds, a special stats or dev build is no longer required.</li> <li>Exit tracing option now supports sampling <ul> <li><code class="language-plaintext highlighter-rouge">--trace-exits-sample-rate=N</code></li> </ul> </li> <li>More thorough testing and multiple bug fixes</li> </ul> <h2>Other Notable New Features</h2> <h3>Language</h3> <h2>Performance improvements</h2> <ul> <li><code class="language-plaintext highlighter-rouge">defined?(@ivar)</code> is optimized with Object Shapes.</li> </ul> <h2>Other notable changes since 3.2</h2> <h3>IRB</h3> <p>IRB has received several enhancements, including but not limited to:</p> <ul> <li>Advanced <code class="language-plaintext highlighter-rouge">irb:rdbg</code> integration that provides an equivalent debugging experience to <code class="language-plaintext highlighter-rouge">pry-byebug</code> (<a href="https://github.com/ruby/irb#debugging-with-irb">doc</a>).</li> <li>Pager support for commands like <code class="language-plaintext highlighter-rouge">ls</code> and <code class="language-plaintext highlighter-rouge">show_cmds</code>.</li> <li>More accurate and helpful information provided by the <code class="language-plaintext highlighter-rouge">ls</code> and <code class="language-plaintext highlighter-rouge">show_source</code> commands.</li> </ul> <p>In addition, IRB has also undergone extensive refactoring and received dozens of bug fixes to facilitate easier future enhancements.</p> <h2>Compatibility issues</h2> <p>Note: Excluding feature bug fixes.</p> <h3>Removed constants</h3> <p>The following deprecated constants are removed.</p> <h3>Removed methods</h3> <p>The following deprecated methods are removed.</p> <h2>Stdlib compatibility issues</h2> <h3><code class="language-plaintext highlighter-rouge">ext/readline</code> is retired</h3> <ul> <li>We have <code class="language-plaintext highlighter-rouge">reline</code> that is pure Ruby implementation compatible with <code class="language-plaintext highlighter-rouge">ext/readline</code> API. We rely on <code class="language-plaintext highlighter-rouge">reline</code> in the future. If you need to use <code class="language-plaintext highlighter-rouge">ext/readline</code>, you can install <code class="language-plaintext highlighter-rouge">ext/readline</code> via rubygems.org with <code class="language-plaintext highlighter-rouge">gem install readline-ext</code>.</li> <li>We no longer need to install libraries like <code class="language-plaintext highlighter-rouge">libreadline</code> or <code class="language-plaintext highlighter-rouge">libedit</code>.</li> </ul> <h2>C API updates</h2> <h3>Updated C APIs</h3> <p>The following APIs are updated.</p> <h3>Removed C APIs</h3> <p>The following deprecated APIs are removed.</p> <h2>Standard library updates</h2> <p>RubyGems and Bundler warn if users require gem that is scheduled to become the bundled gems in the future version of Ruby.</p> <p>The following default gems are updated.</p> <ul> <li>RubyGems 3.5.0.dev</li> <li>bigdecimal 3.1.4</li> <li>bundler 2.5.0.dev</li> <li>csv 3.2.8</li> <li>erb 4.0.3</li> <li>fiddle 1.1.2</li> <li>fileutils 1.7.1</li> <li>irb 1.7.4</li> <li>nkf 0.1.3</li> <li>optparse 0.4.0.pre.1</li> <li>psych 5.1.0</li> <li>reline 0.3.8</li> <li>stringio 3.0.9</li> <li>strscan 3.0.7</li> <li>syntax_suggest 1.1.0</li> <li>time 0.2.2</li> <li>timeout 0.4.0</li> <li>uri 0.12.2</li> <li>yarp 0.9.0</li> </ul> <p>The following bundled gems are updated.</p> <ul> <li>minitest 5.19.0</li> <li>test-unit 3.6.1</li> <li>rexml 3.2.6</li> <li>rss 0.3.0</li> <li>net-imap 0.3.7</li> <li>rbs 3.2.1</li> <li>typeprof 0.21.8</li> <li>debug 1.8.0</li> </ul> <p>The following default gem is now bundled.</p> <ul> <li>racc 1.7.1</li> </ul> <p>See GitHub releases like <a href="https://github.com/ruby/logger/releases">Logger</a> or changelog for details of the default gems or bundled gems.</p> <p>See <a href="https://github.com/ruby/ruby/blob/v3_3_0_preview2/NEWS.md">NEWS</a> or <a href="https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview2">commit logs</a> for more details.</p> <p>With those changes, <a href="https://github.com/ruby/ruby/compare/v3_2_0...v3_3_0_preview2#file_bucket">4970 files changed, 239635 insertions(+), 165275 deletions(-)</a> since Ruby 3.2.0!</p> <h2>Download</h2> <ul> <li> <p><a href="https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.gz">https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.gz</a></p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>SIZE: 21074209 SHA1: cf7329019235dc36b8e3f382a8b8b744922b1163 SHA256: 30ce8b0fe11b37b5ac088f5a5765744b935eac45bb89a9e381731533144f5991 SHA512: 1c5a13e519e8487fd40d932b96d14fa729521925c288e7841ab5eada628e506ceca2605bae36eea1aa505d9253383d53cd933b7a4bff96e6de5b1130c7c558e6 </code></pre></div> </div> </li> <li> <p><a href="https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.xz">https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.tar.xz</a></p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>SIZE: 15600992 SHA1: 606d6423137a24eef4f6b07d167596b63c7aaa17 SHA256: 62b1c4f586c70bf1cb58f2d909d0d824506315782e835f9dd3fcc0b659a70fc1 SHA512: 5ff609a66b7359006df0d87477cf70e6e26c5f40ced81b8254f8154f4fc82c77fed297471b55706c1a4466f2a4257999e933b2ed085f695ace265757ab9500a2 </code></pre></div> </div> </li> <li> <p><a href="https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.zip">https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0-preview2.zip</a></p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>SIZE: 26095651 SHA1: 4441cd0db23d133e6e2f7dea28f931a68dac6ca5 SHA256: c9771d24c9b1eab532c04ed076087285601693e4d1c63f131fd078c47c5c0cea SHA512: bfeed21d011f891fe22510fe7242992c98f7fd2ce863d8be5740f56a34b726134cb3f5304e8b2dcd468fbc939648f10aae482eee15c1bf6c64b705484ed9e197 </code></pre></div> </div> </li> </ul> <h2>What is Ruby</h2> <p>Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993, and is now developed as Open Source. It runs on multiple platforms and is used all over the world especially for web development.</p> <p>Posted by naruse on 14 Sep 2023</p> rss_fields: - title - url - summary - published - entry_id url: https://www.ruby-lang.org/en/news/2023/09/14/ruby-3-3-0-preview2-released/
Language
Active
Ricc internal notes
Imported via /Users/ricc/git/gemini-news-crawler/webapp/db/seeds.d/import-feedjira.rb on 2024-04-01 22:13:37 +0200. Content is EMPTY here. Entried: title,url,summary,published,entry_id. TODO add Newspaper: filename = /Users/ricc/git/gemini-news-crawler/webapp/db/seeds.d/../../../crawler/out/feedjira/Technology/Ruby (EN RSS)/2023-09-14-Ruby_3.3.0-preview2_Released-v2.yaml
Ricc source
Show this article
Back to articles