Stop memoizing Hash lookups in Ruby
nithinbekal.com/posts/ruby-h...
#ruby
@nithinbekal.bsky.social
Staff developer at Shopify. I mostly post about Ruby, Rails, Vim/Neovim and assorted programming related topics. Blog: https://nithinbekal.com/
Stop memoizing Hash lookups in Ruby
nithinbekal.com/posts/ruby-h...
#ruby
Andrej Karpathy: Software Is Changing (Again)
www.youtube.com/watch?v=LCEm...
#ai #llm
ZJIT has been merged into Ruby
railsatscale.com/2025-05-14-m...
"ZJIT is a new just-in-time (JIT) Ruby compiler built into the reference Ruby implementation, YARV, by the same compiler group that brought you YJIT."
#ruby
Fast Allocations in Ruby 3.5
railsatscale.com/2025-05-21-f...
#ruby
My teammate Alexandre Terrasa wrote a great post about using inline RBS with Sorbet.
Weβve been slowly adopting it at Shopify. And while weβre still improving Sorbet and all the supporting projects, itβs already working well!
railsatscale.com/2025-04-23-r...
One benefit of #Sorbet is that it can make VSCode and Neovim almost on par with RubyMine's excellent behavior of being able to go to definitions and references from almost anywhere to anywhere. It helps so with debugging and refactoring.Β
This is amazing in a dynamically typed language like #Ruby
... RBS can be the syntax for types and sorbet, steep, typeprof etc can be the frontends for it.
26.02.2025 03:32 β π 1 π 0 π¬ 1 π 0I agree that type annotations are too fragmented, which is why I'm excited about this change. Sorbet is miles ahead of other type checkers right now in terms of speed and usability, so it adopting RBS can only help consolidate things in the community. ...
26.02.2025 03:32 β π 1 π 0 π¬ 1 π 0Forgot to mention: the 2 main drivers behind this work: Alexandre Terrasa and Alexander Momchilov, will both be speaking at this year's RubyKaigi.
So definitely come to their talks and ask them questions to learn more about the challenges and visions behind it π
It's an idea my colleague Alexandre Terrasa and the team explored way back in 2020. But due to various challenges we couldn't make it work at the time.
Maybe 2025 will be the year to finally make it happen?
- 2020 PR: github.com/sorbet/sorbe...
- 2025 PR: github.com/sorbet/sorbe...
Sorbet now has (experimental) support for RBS comments for adding types to methods. Now the major type checkers for ruby are all converging towards RBS for annotations, and this could be huge for the future of types in Ruby!
sorbet.org/docs/rbs-sup...
#ruby #sorbet
"My team's intern just found a critical bug by shitposting in our codebase" πππ
www.reddit.com/r/csMajors/c...
So You Want To Remove The GVL From Ruby?
byroot.github.io/ruby/perform...
#ruby
A simple trick to understand Rubyβs lazy enumerator
joyofrails.com/articles/sim...
Beautiful visual demo of how lazy enumerators help avoid unnecessary work.
#ruby
Favorite books of 2024
nithinbekal.com/posts/books-...
#books
Admittedly, these are small apps (largest is < 3k LOC) and I kinda cheated by having a script that does the version bumps, but even then it's a good sign about how stable things are right now!
nithinbekal.com/posts/bump-r...
#ruby #rails
Ruby upgrades are so incredibly smooth these days!
I have 3 small hobby rails apps that I wanted to upgrade to Ruby 3.4, and it took me 20 minutes to upgrade and deploy them all! And 5 of those minutes were spent downloading the latest ruby.
#ruby #rails
Rails for everything
literallythevoid.com/blog/rails_f...
#ruby #rails
What's new in Ruby 3.4
nithinbekal.com/posts/ruby-3...
The next release of Ruby is just a week away. Dive into the latest features, including the new it block parameter, chilled strings, the Prism parser, and modular GC.
#ruby
avante.nvim: AI copilot in Neovim
nithinbekal.com/posts/avante...
#neovim #ai
Optimizing page loads for Giscus comments
nithinbekal.com/posts/giscus...
Rails 8 authentication generator #rails #ruby
nithinbekal.com/posts/rails-...