TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ruby 3.3

605 pointsby dduuggover 1 year ago

16 comments

ciconiaover 1 year ago
I believe with version 3.3 Ruby is back in a big way! The language focused on developer happiness and derided for its slowness is slow no more.<p>YJIT is an amazing technology, and together with other innovations like object shapes and various GC optimizations, Ruby is becoming seriously fast! Big Ruby shops such as Shopify [1] have been running 3.3 pre-release with YJIT and reporting double digit percentage performance improvements.<p>Personally I&#x27;m really excited about Ruby and its future. I can&#x27;t wait to start working with Ruby 3.3 and using it on my client&#x27;s production sites...<p>[1] <a href="https:&#x2F;&#x2F;railsatscale.com&#x2F;2023-09-18-ruby-3-3-s-yjit-runs-shopify-s-production-code-15-faster&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;railsatscale.com&#x2F;2023-09-18-ruby-3-3-s-yjit-runs-sho...</a><p>Edit: add percentage to performance improvements.
评论 #38763042 未加载
评论 #38763945 未加载
评论 #38761057 未加载
评论 #38764097 未加载
评论 #38764217 未加载
评论 #38764574 未加载
评论 #38766006 未加载
ksecover 1 year ago
I think Ruby 3.3 is perhaps one of the most important and feature rich Ruby release in the past 10 years. I never thought Ruby would have a shipping and production ready JIT before Python. And Prism, Lrama, IRB. A lot of these were discussed in previous HN submissions.<p>But one thing that is not mentioned or discussed enough, is Ractor, M:N thread scheduler, Fibre and Async. Especially in the context of Rails. I am wondering if any one are using these features in productions and if you could share any thoughts on the subject.
评论 #38761499 未加载
评论 #38761263 未加载
评论 #38760785 未加载
alberthover 1 year ago
Every Christmas, like clockwork, Ruby Lang drops a new release.
评论 #38760720 未加载
评论 #38763302 未加载
schneemsover 1 year ago
Available on Heroku <a href="https:&#x2F;&#x2F;devcenter.heroku.com&#x2F;changelog-items&#x2F;2772" rel="nofollow noreferrer">https:&#x2F;&#x2F;devcenter.heroku.com&#x2F;changelog-items&#x2F;2772</a>
评论 #38764862 未加载
DanielKehoeover 1 year ago
Looks good. There&#x27;s a new IRB, the interactive Ruby interpreter, with better autocompletion and debugging. Most of the Ruby 3.3 changes will lead to improved developer tooling. The language API is largely unchanged and consistent with previous releases. I wrote a guide [1] for the update to Ruby 3.3, with notes for each of the various version managers.<p>[1] <a href="https:&#x2F;&#x2F;mac.install.guide&#x2F;ruby&#x2F;update.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;mac.install.guide&#x2F;ruby&#x2F;update.html</a><p>Just curious, which version manager would you recommend? Previously I recommended asdf, frum, or chruby.
评论 #38770075 未加载
xpressvideozover 1 year ago
&gt; Name resolution such as `Socket.getaddrinfo` can now be interrupted. Whenever it needs name resolution, it creates a worker pthread, and executes `getaddrinfo(3)` in it.<p>Do other language runtimes do similar things? Creating a thread sounds too heavy, though it might not matter in practice. As per their own benchmark, the overhead is minimal but still not zero.<p><pre><code> 10000.times { Addrinfo.getaddrinfo(&quot;www.ruby- lang.org&quot;, 80) } # Before patch: 2.3 sec. # After ptach: 3.0 sec. 100.times { URI.open(&quot;https:&#x2F;&#x2F;www.ruby-lang.org&quot;).read } # Before patch: 3.36 sec. # After ptach: 3.40 sec.</code></pre>
评论 #38763638 未加载
评论 #38761466 未加载
999900000999over 1 year ago
Worth it to learn Ruby if you already know Python and NodeJS ?<p>I find Ruby fascinating yet difficult.
评论 #38763546 未加载
评论 #38762667 未加载
评论 #38765875 未加载
评论 #38763960 未加载
评论 #38762965 未加载
评论 #38762921 未加载
评论 #38763834 未加载
评论 #38766061 未加载
评论 #38763917 未加载
phaedryxover 1 year ago
Prism is interesting. Any Ruby code analysis tools that use it? I&#x27;ve been looking for ways to analyze my code at work.
评论 #38760656 未加载
nextaccounticover 1 year ago
&gt; RUBY_MAX_CPU=n environment variable sets maximum number of N (maximum number of native threads). The default value is 8.<p>Shouldn&#x27;t the default be the number of logical cores? Like Rust&#x27;s Tokio and countless other M:N runtimes
评论 #38760975 未加载
评论 #38761225 未加载
revskillover 1 year ago
I hope Ruby 4.0 could allow explicit import and avoid implicit, global namespace gem import mechanism like nowsdays.
评论 #38760986 未加载
评论 #38760940 未加载
评论 #38760642 未加载
评论 #38762759 未加载
评论 #38760815 未加载
pmdrover 1 year ago
The perfect Christmas gift!
nixpulvisover 1 year ago
Anyone have a link to some good examples of using Prism? I was disappointed to not really see anything other than the “Notable API” from this release page.
评论 #38767539 未加载
captn3m0over 1 year ago
Friendly reminder that Ruby 3.0 will now go EOL in 3 months, so you have 12 weeks to upgrade.
评论 #38762786 未加载
mortallywoundedover 1 year ago
It&#x27;s nice to see improvements to Ruby, but the hype around a ~13% performance boost feels... weird.<p>It looks like a big leap, but when you compare the actual speed to _any_ other language you realize Ruby still has many, many percent to go to even be in the same game.
评论 #38765005 未加载
Exumaover 1 year ago
Just enabled YJIT this morning. Merry CHristmas!
pgibover 1 year ago
Very much looking forward to upgrading our application to ensure 3.3 compatibility.