はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    iPhone 17

『Rails at Scale』

  • 人気
  • 新着
  • すべて
  • How Ruby Executes JIT Code: The Hidden Mechanics Behind the Magic

    13 users

    railsatscale.com

    Ever since YJIT’s introduction, I’ve felt simultaneously close to and distant from Ruby’s JIT compiler. I know how to enable it in my Ruby programs. I know it makes my Ruby programs run faster by compiling some of them into machine code. But my understanding around YJIT, or JIT compilers in Ruby in general, seems to end here. A few months ago, my colleague Max Bernstein wrote ZJIT has been merged

    • テクノロジー
    • 2025/09/10 22:14
    • JIT
    • ruby
    • あとで読む
    • Ruby Debugging Tips and Recommendations in 2025

      5 users

      railsatscale.com

      Debugging is a crucial skill for any Ruby developer. And as the tools and techniques evolve, it’s important to keep up-to-date with the latest best practices. So here are some of my Ruby debugging tips and recommendations that I’d offer to Ruby developers in 2025. You can use the Ruby LSP extension to connect to debug.gem too. It requires a slightly different launch.json configuration (example) an

      • テクノロジー
      • 2025/05/25 18:00
      • ruby
      • Fast Allocations in Ruby 3.5

        14 users

        railsatscale.com

        Many Ruby applications allocate objects. What if we could make allocating objects six times faster? We can! Read on to learn more! Speeding up allocations in Ruby Object allocation in Ruby 3.5 will be much faster than previous versions of Ruby. I want to start this article with benchmarks and graphs, but if you stick around I’ll also be explaining how we achieved this speedup. For allocation bench

        • テクノロジー
        • 2025/05/23 07:57
        • ruby
        • Rails
        • ZJIT has been merged into Ruby

          10 users

          railsatscale.com

          Following Maxime’s presentation at RubyKaigi 2025, the Ruby developers meeting, and Matz-san’s approval, ZJIT has been merged into Ruby. Hurray! In this post, we will give a high-level overview of the project, which is very early in development. 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. We (M

          • テクノロジー
          • 2025/05/15 08:58
          • Ruby
          • OSS
          • Performance
          • Rails
          • あとで読む
          • ZJIT
          • Interprocedural Sparse Conditional Type Propagation

            3 users

            railsatscale.com

            It’s 11 o’clock. Do you know where your variables are pointing? def shout(obj) obj.to_s + "!" end It’s hard to tell just looking at the code what type obj is. We assume it has a to_s method, but many classes define methods named to_s. Which to_s method are we calling? What is the return type of shout? If to_s doesn’t return a String, it’s really hard to say. Adding type annotations would help… a l

            • テクノロジー
            • 2025/02/25 15:20
            • ruby
            • Tiny JITs for a Faster FFI

              20 users

              railsatscale.com

              Can we have a faster FFI for CRuby? Yes. Can we have a faster FFI for CRuby? I love programming in Ruby, and I advocate for people to write as much Ruby as possible. But sometimes you really really must call out to native code. Even in those cases, I encourage people to write as much Ruby as possible, especially because YJIT can optimize Ruby code but not C code. Taken to its logical extreme, this

              • テクノロジー
              • 2025/02/13 08:51
              • Ruby
              • JIT
              • あとで読む
              • YJIT 3.4: Even Faster and More Memory-Efficient

                16 users

                railsatscale.com

                It’s 2025, and this year again, the YJIT team brings you a new version of YJIT that is even faster, more stable, and more memory-efficient. A new baseline Last year’s YJIT release delivered an impressive performance boost which earned us multiple shoutouts on social media. I was pleasantly surprised to hear that many large businesses running Rails in production had upgraded to the latest version o

                • テクノロジー
                • 2025/01/11 05:06
                • ruby
                • あとで読む
                • Mastering Ruby Code Navigation: Major Ruby LSP Enhancements in the First Half of 2024

                  6 users

                  railsatscale.com

                  In the first half of 2024, Ruby LSP has seen significant enhancements, particularly in the area of code navigation, thanks to the advancement of its indexer. In this post, we’ll dive into the major code navigation enhancements that have been made to Ruby LSP. We’ll also touch on some experimental features that are on the horizon. NOTE While the Ruby LSP server (ruby-lsp gem) can be integrated with

                  • テクノロジー
                  • 2024/07/24 07:27
                  • ruby
                  • Rails
                  • Mid-Year Review: IRB and Rails Console Enhancements in the First Half of 2024

                    4 users

                    railsatscale.com

                    As a core part of the Ruby ecosystem, IRB (Interactive Ruby) is an invaluable tool for developers. With its rapid pace of changes and improvements, staying up-to-date with the latest features can significantly enhance your development workflow. In this post, we’ll cover the significant updates to IRB from the first half of 2024 (between v1.11.0 and v1.14.0), as well as enhancements in the Rails Co

                    • テクノロジー
                    • 2024/07/19 06:56
                    • rails
                    • ruby
                    • Finding Memory Leaks in the Ruby Ecosystem

                      10 users

                      railsatscale.com

                      This blog post is adapted from a talk that Adam Hess and I gave at RubyKaigi 2024. Until recently, Ruby lacked a mechanism for detecting native-level memory leaks from within Ruby and native gems. This was because, when Ruby terminates, it does not free the objects that are still alive or the memory used by Ruby’s virtual machine. This is because the system will reclaim all the memory used anyway,

                      • テクノロジー
                      • 2024/07/11 22:55
                      • Ruby
                      • Fixing a footgun in ActiveRecord::Core#inspect

                        3 users

                        railsatscale.com

                        The inspect method on Active Record models returns a string including the model’s class and a list of all its attributes and their values. In Rails 7.2, you can configure which attributes are included in the output of inspect. In this post, I’ll discuss the performance issue that led me to implement this feature. I’ll also talk about how this feature can be used to improve developer experience. to

                        • テクノロジー
                        • 2024/05/02 15:14
                        • Autotuner: How to Speed Up Your Rails App

                          9 users

                          railsatscale.com

                          This article was adapted from my Rails World talk “Rails and the Ruby Garbage Collector: How to Speed Up Your Rails App”. Ruby’s garbage collector is designed to be adaptable, scaling from short Ruby scripts to running apps that serve millions of requests per second. While it’s designed to be adaptable, it may not work optimally for every use case. For this reason, Ruby’s garbage collector support

                          • テクノロジー
                          • 2024/04/25 10:44
                          • あとで読む
                          • Prism in 2024

                            19 users

                            railsatscale.com

                            In Ruby 3.3.0, a new standard library was added to CRuby called Prism. Prism is a parser for the Ruby language, exposed as both a C library (optionally usable by CRuby) and a Ruby library (usable as a Ruby gem). The Prism project represents many person-years worth of effort, and is the result of a collaboration between Shopify, CRuby core contributors, other Ruby implementation authors, and Ruby t

                            • テクノロジー
                            • 2024/04/17 10:44
                            • Parser
                            • Ruby
                            • あとで読む
                            • A Packwerk Retrospective

                              7 users

                              railsatscale.com

                              In September, 2020, our team at Shopify released a Ruby gem named Packwerk, a tool to enforce boundaries and modularize Rails applications. Since its release, Packwerk has taken on a life of its own, inspiring blog posts, conference talks, and even an entire gem ecosystem. Its popularity is an indication that Packwerk clearly filled a void in the Rails community. Packwerk is a static analysis tool

                              • テクノロジー
                              • 2024/01/27 14:09
                              • rails
                              • あとで読む
                              • Ruby 3.3’s YJIT: Faster While Using Less Memory

                                8 users

                                railsatscale.com

                                This year, the YJIT team has been working hard to improve and optimize YJIT. We’re proud to say that the version of YJIT to be included with Ruby 3.3 is leaps and bounds ahead of Ruby 3.2’s. It provides better performance across the board, while also warming up faster and using less memory. The 3.3 release is also more robust, including a number of bug fixes along with an improved test suite. In t

                                • テクノロジー
                                • 2023/12/19 09:03
                                • ruby
                                • YJIT Is the Most Memory-Efficient Ruby JIT

                                  18 users

                                  railsatscale.com

                                  This year, the YJIT team and I have gotten a paper accepted at MPLR 2023 (Managed Programming Languages and Runtimes), which is now freely available through ACM open access. The paper, titled “Evaluating YJIT’s Performance in a Production Context: A Pragmatic Approach”, goes into details of the strategy taken to evaluate YJIT’s performance in a production context. One of our key findings, when com

                                  • テクノロジー
                                  • 2023/11/15 07:35
                                  • JIT
                                  • Ruby
                                  • あとで読む
                                  • YJIT
                                  • Performance impact of the memoization idiom on modern Ruby

                                    3 users

                                    railsatscale.com

                                    One major internal change in Ruby 3.2 was the introduction of object shapes. In this post, we’ll try to cover why they were introduced, how they work, and what their limitations are. How object instance variables are stored Because of how dynamic Ruby is, an operation as simple as accessing an instance variable is a lot of work. In most cases, Ruby objects store their instance variables in an arra

                                    • テクノロジー
                                    • 2023/10/27 02:04
                                    • Programming
                                    • Effects of Pitchfork reforking on Shopify’s Monolith

                                      11 users

                                      railsatscale.com

                                      Over the last year, I’ve been working on a new Ruby application server called Pitchfork. In most regards it’s extremely similar to the venerable Unicorn, from which it originates, but with one major extra feature: Reforking, which reduce memory usage of Ruby applications. For most of last year, we couldn’t enable reforking on our application because of an incompatibility with one of our dependenci

                                      • テクノロジー
                                      • 2023/10/24 09:35
                                      • Shopify
                                      • Rails
                                      • Ruby
                                      • Ruby 3.3’s YJIT Runs Shopify’s Production Code 15% Faster

                                        53 users

                                        railsatscale.com

                                        Ruby 3.2 YJIT is Battle-Tested Shopify deploys YJIT on business-critical services in production, such as Storefront Renderer, the software that powers all online storefronts on Shopify’s platform, and Shopify’s Monolith. As of the Ruby 3.2 release, YJIT sped up our Storefront Renderer by 10% on average. Storefront Renderer is a complex application. Your more reasonable-sized app might get better/w

                                        • テクノロジー
                                        • 2023/09/20 01:39
                                        • ruby
                                        • JIT
                                        • performance
                                        • あとで読む
                                        • yjit
                                        • Ruby Outperforms C: Breaking the Catch-22

                                          3 users

                                          railsatscale.com

                                          Ruby Outperforms C: Breaking the Catch-22 Ruby is an expressive, and fun language to write. It helps us get our job done quickly by allowing us to easily get our thoughts written down as executable code. That said, sometimes the code we write doesn’t perform as well as we would like. In those circumstances, one common solution in both Ruby and Python has been to rewrite the slow code as C extensio

                                          • テクノロジー
                                          • 2023/08/31 17:03
                                          • Ruby
                                          • Open Sourcing Shopify’s Ruby Builds

                                            15 users

                                            railsatscale.com

                                            We’ve open sourced shopify-ruby-definitions, which contains definitions to build the Ruby we use at Shopify in development, testing, and production. Our builds of Ruby are API compliant with the vanilla Rubies, but with additional bug fixes and performance improvements we’ve backported from the next major version. Why we use custom builds of Ruby Shopify has one of the largest and highest traffic

                                            • テクノロジー
                                            • 2023/06/17 04:46
                                            • Ruby
                                            • API
                                            • あとで読む
                                            • Rewriting the Ruby parser

                                              31 users

                                              railsatscale.com

                                              At Shopify, we have spent the last year writing a new Ruby parser, which we’ve called YARP (Yet Another Ruby Parser). As of the date of this post, YARP can parse a semantically equivalent syntax tree to Ruby 3.3 on every Ruby file in Shopify’s main codebase, GitHub’s main codebase, CRuby, and the 100 most popular gems downloaded from rubygems.org. We recently got approval to merge this work into C

                                              • テクノロジー
                                              • 2023/06/13 10:43
                                              • ruby
                                              • parser
                                              • あとで読む
                                              • android
                                              • Rails at Scale

                                                3 users

                                                railsatscale.com

                                                2025-07-19 • Stan Lo AI Coding Agents Are Removing Programming Language Barriers AI coding tools are dissolving the language barriers that once defined our careers. As someone who coded exclusively in Ruby for a decade, I'm now contributing to low-level system projects I couldn't have touched before. Here's how AI coding agents enabled my leap from Ruby to C, C++, and Rust. 2025-07-01 • Siddarth C

                                                • テクノロジー
                                                • 2023/06/07 15:12
                                                • rails
                                                • blog
                                                • Monitoring YJIT in Production

                                                  14 users

                                                  railsatscale.com

                                                  YJIT is a JIT compiler for Ruby that Shopify has developed. In 2022, we enabled YJIT in all storefront requests and observed ~10% speedups. Do you use an app performance monitor like NewRelic or Scout, or check your daily performance graphs? Here’s how you can make sure YJIT is doing what you want when you monitor. Use what you already have We work hard to make YJIT efficient on various workloads

                                                  • テクノロジー
                                                  • 2023/06/07 02:09
                                                  • ruby
                                                  • あとで読む

                                                  このページはまだ
                                                  ブックマークされていません

                                                  このページを最初にブックマークしてみませんか?

                                                  『Rails at Scale』の新着エントリーを見る

                                                  キーボードショートカット一覧

                                                  j次のブックマーク

                                                  k前のブックマーク

                                                  lあとで読む

                                                  eコメント一覧を開く

                                                  oページを開く

                                                  はてなブックマーク

                                                  • 総合
                                                  • 一般
                                                  • 世の中
                                                  • 政治と経済
                                                  • 暮らし
                                                  • 学び
                                                  • テクノロジー
                                                  • エンタメ
                                                  • アニメとゲーム
                                                  • おもしろ
                                                  • アプリ・拡張機能
                                                  • 開発ブログ
                                                  • ヘルプ
                                                  • お問い合わせ
                                                  • ガイドライン
                                                  • 利用規約
                                                  • プライバシーポリシー
                                                  • 利用者情報の外部送信について
                                                  • ガイドライン
                                                  • 利用規約
                                                  • プライバシーポリシー
                                                  • 利用者情報の外部送信について

                                                  公式Twitter

                                                  • 公式アカウント
                                                  • ホットエントリー

                                                  はてなのサービス

                                                  • はてなブログ
                                                  • はてなブログPro
                                                  • 人力検索はてな
                                                  • はてなブログ タグ
                                                  • はてなニュース
                                                  • ソレドコ
                                                  • App Storeからダウンロード
                                                  • Google Playで手に入れよう
                                                  Copyright © 2005-2025 Hatena. All Rights Reserved.
                                                  設定を変更しましたx