Skip to content

mruby 4.0.0 released.#271

Merged
matz merged 1 commit intomruby:masterfrom
mruby-Forum:release-mruby-4.0.0
Apr 20, 2026
Merged

mruby 4.0.0 released.#271
matz merged 1 commit intomruby:masterfrom
mruby-Forum:release-mruby-4.0.0

Conversation

@mimaki
Copy link
Copy Markdown
Member

@mimaki mimaki commented Apr 20, 2026

No description provided.

@mimaki mimaki requested a review from matz as a code owner April 20, 2026 08:52
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a blog post announcing the release of mruby 4.0.0, which details significant updates including pattern matching, ROM method tables for reduced memory usage, and various VM and GC optimizations. The review feedback focuses on improving the clarity and flow of the introductory text, ensuring consistency by adding missing reference links to new method entries, and removing a redundant item regarding compiler optimizations.


We are announcing the first stable release of mruby 4.0 series - [mruby 4.0.0](https://github.com/mruby/mruby/releases/tag/4.0.0).

Describes the new features and changes in mruby 4.0.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The sentence is a fragment. Adding a subject improves the flow and clarity of the introduction.

This post describes the new features and changes in mruby 4.0.  


# User visible changes in `mruby4.0` from `mruby3.4`

"**_NOTE_**:" are changes to be aware of.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrasing is a bit awkward. Consider a more descriptive explanation of what the 'NOTE' prefix signifies.

Items marked with "**_NOTE_**:" are significant changes to be aware of.


- **_NOTE_**: `Hash#deconstruct_keys` removed for CRuby compatibility ([34b9412](https://github.com/mruby/mruby/commit/34b9412))
- **mruby-enum-lazy**: Fix `Lazy#flat_map` to handle non-enumerable block return values ([#6765](https://github.com/mruby/mruby/pull/6765))
- **mruby-array-ext**: Add `Array#find` and `Array#rfind` methods
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This entry is missing a reference link (commit or PR), which is inconsistent with the other items in this section. Please add the relevant link if available.

- **mruby-array-ext**: Add `Array#find` and `Array#rfind` methods
- **mruby-io**: Add `IO#putc` and `Kernel#putc` ([baff6e6](https://github.com/mruby/mruby/commit/baff6e6))
- **mruby-random**: Replace xoshiro with PCG for better memory efficiency ([f1bab01](https://github.com/mruby/mruby/commit/f1bab01))
- **mruby-compiler**: Variable-sized AST nodes for reduced memory usage
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This item is redundant as it is listed again under 'Compiler Improvements' (line 145) with a reference link. Consider removing this duplicate entry.

@matz matz merged commit 5180d54 into mruby:master Apr 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants