<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ruby-3-4-0-released-with-key-features-and-performance-enhancements-prodewcq0" -->

---
title: Ruby 3.4.0 Released with Key Features and Performance...
description: Ruby 3.4.0 introduces notable features and improvements, including the &#x27;it&#x27; block parameter reference for simpler syntax, Prism as the default parser for...
canonical: https://daily.dev/posts/ruby-3-4-0-released-with-key-features-and-performance-enhancements-prodewcq0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Ruby 3.4.0 Released with Key Features and Performance Enhancements | daily.dev
og:description: Ruby 3.4.0 introduces notable features and improvements, including the &#x27;it&#x27; block parameter reference for simpler syntax, Prism as the default parser for...
og:url: https://daily.dev/posts/ruby-3-4-0-released-with-key-features-and-performance-enhancements-prodewcq0
og:image: https://api.daily.dev/og/posts/ProDeWcQ0.png
og:image:alt: Ruby 3.4.0 Released with Key Features and Performance Enhancements
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Ruby 3.4.0 Released with Key Features and Performance Enhancements

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 1 upvotes · 0 comments

## Summary

Ruby 3.4.0 introduces notable features and improvements, including the 'it' block parameter reference for simpler syntax, Prism as the default parser for better performance, and the Happy Eyeballs Version 2 for improved network connectivity. Significant enhancements to YJIT and memory performance, updates to core classes and standard libraries, along with new deprecation warnings and keyword splatting with `nil`, contribute to its elevated performance and usability.

## Content

# Ruby 3.4.0 Released: Key Features and Improvements
Ruby 3.4.0 brings a wealth of new features and enhancements that aim to improve the developer experience and performance of the language. Here are the key highlights of this release:

## Key Features and Improvements

1. **'it' Block Parameter Reference**: Developers can now use `it` as a block parameter reference without having to specify a variable name. This feature simplifies the syntax and improves code readability.

2. **Prism as Default Parser**: Prism has replaced `RubyVM::AbstractSyntaxTree` as the default parser, offering better performance and more accurate parsing.

3. **Happy Eyeballs Version 2**: The socket library now supports Happy Eyeballs Version 2, improving connectivity performance and reliability in network applications.

4. **Enhanced YJIT Performance**: The YJIT (Yet Another Ruby JIT) has received significant performance improvements, making Ruby 3.4.0 faster for Just-in-Time compilation tasks.

5. **Modular Garbage Collector**: A modular garbage collector has been introduced, which improves memory management efficiency and application performance. Major Garbage Collection has been disabled by default, contributing to these advancements.

## Notable Updates

- **Core Classes and Standard Libraries**: Several core classes and standard libraries have been updated. For example, key methods in the `Array` class have been rewritten for better performance, while the `Hash` and `Pathname` classes also get performance boosts.

- **Deprecation Warnings**: Deprecation warnings are now issued for mutated string literals without a `frozen_string_literal` comment. Warnings for unused method blocks in verbose mode have also been added.

- **Keyword Splatting with `nil`**: The language now supports keyword splatting with `nil`, adding more flexibility to method parameter handling.

- **Memory Performance Improvements**: Enhancements have been made to reduce memory usage in single and double splat arguments, contributing to overall efficiency.

- **JSON Parsing**: JSON parsing has been optimized, with notable improvements in version 2.8.0 making it faster than previous releases.

- **REPL Type Completer**: The Read-Eval-Print Loop (REPL) type completer is now bundled by default, offering developers an improved interactive coding experience.

## Compatibility Changes and Deprecations

This release also includes various compatibility changes and deprecations that developers should be aware of. For instance, the `frozen_string_literal` pragma will be removed in future versions, signaling a shift towards immutable string literals by default.

Overall, Ruby 3.4.0 marks a significant step forward in terms of performance, usability, and modern language features, reaffirming Ruby's position as a preferred programming language for developers.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#ruby](https://daily.dev/tags/ruby)

[View this post on daily.dev](https://daily.dev/posts/ruby-3-4-0-released-with-key-features-and-performance-enhancements-prodewcq0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Ruby 3.4.0 Released with Key Features and Performance Enhancements","url":"https://daily.dev/posts/ruby-3-4-0-released-with-key-features-and-performance-enhancements-prodewcq0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ruby-3-4-0-released-with-key-features-and-performance-enhancements-prodewcq0"},"datePublished":"2024-12-25T11:26:37.136Z","dateModified":"2024-12-25T14:21:59.009Z","description":"Ruby 3.4.0 introduces notable features and improvements, including the 'it' block parameter reference for simpler syntax, Prism as the default parser for...","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/ruby-3-4-0-released-with-key-features-and-performance-enhancements-prodewcq0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,ruby","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Ruby 3.4.0 Released with Key Features and Performance Enhancements"}]}
```

