Shopify-built YJIT compiler promises to bring faster warmup and higher performance to Ruby on Rails apps. Credit: Thinkstock Ruby, the popular dynamic programming language that is now more than a quarter-century old, is set to add a performance-boosting, just-in-time compiler with the planned 3.1.0 version. Now in an initial preview as of November 9, Ruby 3.1.0 is downloadable from the project website. Ruby 3.1.0 integrates YJIT (Yet Another Ruby JIT), an in-process JIT compiler developed by Shopify. YJIT still is an experimental feature. The developers of Ruby describe YJIT as an important contribution that is intended to improve Ruby on Rails application performance. YJIT is a basic block versioning JIT compiler that achieves both fast warmup and performance improvements on most real-world software, a ruby-lang.org blog post said. YJIT is disabled by default at this stage. Developers who want to enable it it must specify the --yjit command-line option. YJIT is currently limited to MacOS and Linux on x86-64 platforms. Also in Ruby 3.1.0: The debug.gem debugger replaces the lib/debug.rb standard library, promising faster debugging and capabilities such as remote debugging, colorful REPL and Visual Studio Code. A built-in gem, error_highlight, brings fine-grained error location in backtrace. For the language itself, values in Hash literals and keyword arguments can be omitted. The pin operator in pattern matching now takes an expression. Updates to the RBS language for describing the structure of Ruby programs include rbs collection, to manage gems’ RBSs, and updates and additions to signatures for built-in and standard libraries. Bug fixes and performance improvements also have been made to RBS. The TypeProf static type analyzer has been updated with experimental IDE support as well as bug fixes and performance improvements. Performance of the MJIT compiler has been improved. Ruby 3.0.0, featuring parallel execution, arrived last Christmas. Related content feature 14 great preprocessors for developers who love to code Sometimes it seems like the rules of programming are designed to make coding a chore. Here are 14 ways preprocessors can help make software development fun again. By Peter Wayner Nov 18, 2024 10 mins Development Tools Software Development feature Designing the APIs that accidentally power businesses Well-designed APIs, even those often-neglected internal APIs, make developers more productive and businesses more agile. By Jean Yang Nov 18, 2024 6 mins APIs Software Development news Spin 3.0 supports polyglot development using Wasm components Fermyon’s open source framework for building server-side WebAssembly apps allows developers to compose apps from components created with different languages. By Paul Krill Nov 18, 2024 2 mins Microservices Serverless Computing Development Libraries and Frameworks news Go language evolving for future hardware, AI workloads The Go team is working to adapt Go to large multicore systems, the latest hardware instructions, and the needs of developers of large-scale AI systems. By Paul Krill Nov 15, 2024 3 mins Google Go Generative AI Programming Languages Resources Videos