Skip to content

Commit 4d05db7

Browse files
committed
Add some clarifications in 3.1.0 post (en)
* Note that Optcarrot is a benchmark. * Clarify pin operator `^`. * Clarify some links (like `RBS repository` instead of `repository`).
1 parent 6c93da7 commit 4d05db7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

en/news/_posts/2021-12-25-ruby-3-1-0-released.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We are pleased to announce the release of Ruby {{ release.version }}. Ruby 3.1 k
1616

1717
Ruby 3.1 merges YJIT, a new in-process JIT compiler developed by Shopify.
1818

19-
Since [Ruby 2.6 introduced MJIT in 2018](https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/), its performance greatly improved, and finally [we achieved Ruby3x3 last year](https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/). But even though Optcarrot has shown impressive speedups, the JIT has not benefited real world business applications.
19+
Since [Ruby 2.6 introduced MJIT in 2018](https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/), its performance greatly improved, and finally [we achieved Ruby3x3 last year](https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/). But even though the Optcarrot benchmark has shown impressive speedups, the JIT has not benefited real world business applications.
2020

2121
Recently Shopify contributed many Ruby improvements to speed up their Rails application. YJIT is an important contribution, and aims to improve the performance of Rails applications.
2222

@@ -62,7 +62,7 @@ Did you mean? times
6262

6363
Currently, only `NameError` is supported.
6464

65-
This gem is enabled by default. You can disable it by using the command-line option `--disable-error_highlight`. See the [repository](https://github.com/ruby/error_highlight) for details.
65+
This gem is enabled by default. You can disable it by using the command-line option `--disable-error_highlight`. See the [error_highlight repository](https://github.com/ruby/error_highlight) for details.
6666

6767
## IRB Autocomplete and Documentation Display
6868

@@ -82,7 +82,7 @@ If documentation is installed when you select a completion candidate, the docume
8282
* `{x:, y:}` is syntax sugar for `{x: x, y: y}`.
8383
* `foo(x:, y:)` is syntax sugar for `foo(x: x, y: y)`.
8484

85-
* The pin operator in pattern matching now takes an expression. [Feature #17411]
85+
* The pin operator (`^`) in pattern matching now takes an expression. [Feature #17411]
8686

8787
```ruby
8888
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
@@ -100,7 +100,7 @@ y #=> 2
100100

101101
### RBS
102102

103-
RBS is a language to describe the structure of Ruby programs. See the [repository](https://github.com/ruby/rbs) for details.
103+
RBS is a language to describe the structure of Ruby programs. See the [RBS repository](https://github.com/ruby/rbs) for details.
104104

105105
Updates since Ruby 3.0.0:
106106

@@ -110,7 +110,7 @@ Updates since Ruby 3.0.0:
110110
* Many signatures for built-in and standard libraries have been added/updated.
111111
* It includes many bug fixes and performance improvements too.
112112

113-
See the [changelog](https://github.com/ruby/rbs/blob/master/CHANGELOG.md) for more information.
113+
See the [RBS changelog](https://github.com/ruby/rbs/blob/master/CHANGELOG.md) for more information.
114114

115115
### TypeProf
116116

0 commit comments

Comments
 (0)