TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ruby 3.3

605 点作者 dduugg超过 1 年前

16 条评论

ciconia超过 1 年前
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 未加载
ksec超过 1 年前
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 未加载
alberth超过 1 年前
Every Christmas, like clockwork, Ruby Lang drops a new release.
评论 #38760720 未加载
评论 #38763302 未加载
schneems超过 1 年前
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 未加载
DanielKehoe超过 1 年前
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 未加载
xpressvideoz超过 1 年前
&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 未加载
999900000999超过 1 年前
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 未加载
phaedryx超过 1 年前
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 未加载
nextaccountic超过 1 年前
&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 未加载
revskill超过 1 年前
I hope Ruby 4.0 could allow explicit import and avoid implicit, global namespace gem import mechanism like nowsdays.
评论 #38760986 未加载
评论 #38760940 未加载
评论 #38760642 未加载
评论 #38762759 未加载
评论 #38760815 未加载
pmdr超过 1 年前
The perfect Christmas gift!
nixpulvis超过 1 年前
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 未加载
captn3m0超过 1 年前
Friendly reminder that Ruby 3.0 will now go EOL in 3 months, so you have 12 weeks to upgrade.
评论 #38762786 未加载
mortallywounded超过 1 年前
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 未加载
Exuma超过 1 年前
Just enabled YJIT this morning. Merry CHristmas!
pgib超过 1 年前
Very much looking forward to upgrading our application to ensure 3.3 compatibility.