Skip to content

Commit 2bddf52

Browse files
committed
Apply review suggestions
1 parent f66b178 commit 2bddf52

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

en/news/_posts/2018-02-24-ruby-2-6-0-preview1-released.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Ruby 2.6 introduces an initial implementation of JIT (Just-in-time) compiler.
1818

1919
JIT compiler aims to improve performance of any Ruby program execution.
2020
Unlike ordinary JIT compilers for other languages, Ruby's JIT compiler does JIT compilation in a unique way, which prints C code to a disk and spawns common C compiler process to generate native code.
21-
See also: [Vladimir Makarov's mjit-organization branch](https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch#mjit-organization).
21+
See also: [MJIT organization by Vladimir Makarov](https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch#mjit-organization).
2222

2323
How to use: Just specify `--jit` in command line or `$RUBYOPT` environment variable. Specifying `--jit-verbose=1` allows to print basic information of ongoing JIT compilation. See `ruby --help` for other options.
2424

@@ -27,7 +27,7 @@ Currently JIT compiler is supported only when Ruby is built by gcc or clang and
2727

2828
As of 2.6.0-preview1, we're just preparing infrastructure for JIT and very few optimizations are implemented. You can measure some of potential improvements in micro benchmarks with this release, but it is NOT ready for benchmarking final performance of Ruby's JIT compiler, especially for large programs like Rails applications.
2929

30-
We're going to implement method iniling in JIT compiler, which is expected to increase Ruby's performance in order of magnitude.
30+
We're going to implement method inlining in JIT compiler, which is expected to increase Ruby's performance significantly.
3131

3232
Also, we're planning to increase the supported platforms, and the next plan is to support Visual Studio.
3333

@@ -38,7 +38,7 @@ Stay tuned for the new age of Ruby's performance.
3838
* Add `Random.bytes`. [Feature #4938]
3939
* Add `Binding#source_location`. [Feature #14230]
4040

41-
This method returns the source location of binding, a 2-element array of `__FILE__` and `__LINE__`. Traditionally, the same information could be retrieved by `eval("[__FILE__, __LINE__]", binding)`, but we are planning to change this behavior so that `Kernel#eval` ignores binding's source location [Bug #4352]. So, users should use this newly-introduced method instead of `Kernel#eval`.
41+
This method returns the source location of binding, a 2-element array of `__FILE__` and `__LINE__`. Traditionally, the same information could be retrieved by `eval("[__FILE__, __LINE__]", binding)`, but we are planning to change this behavior so that `Kernel#eval` ignores `binding`'s source location [Bug #4352]. So, users should use this newly-introduced method instead of `Kernel#eval`.
4242

4343
* Add `:exception` option to let `Kernel.#system` raise error instead of returning `false`. [Feature #14386]
4444

ja/news/_posts/2018-02-24-ruby-2-6-0-preview1-released.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Ruby 2.6.0-preview1は、重要な新機能であるJITを含むため、例年
1717
Ruby 2.6ではJIT (Just-in-time) コンパイラが導入されました。
1818

1919
JITコンパイラはあらゆるRubyプログラムの実行を高速化することを目的としています。
20-
他言語の一般的なJITコンパイラと異なり、RubyのJITコンパイラはC言語のソースコードをファイルとしてディスクに書き、通常のCコンパイラを用いてネイティブコードに変換することでJITコンパイルを行うという手法を用いています。(参考: [Vladimir Makarovのmjit-organizationブランチ](https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch#mjit-organization))
20+
他言語の一般的なJITコンパイラと異なり、RubyのJITコンパイラはC言語のソースコードをファイルとしてディスクに書き、通常のCコンパイラを用いてネイティブコードに変換することでJITコンパイルを行うという手法を用いています。(参考: [Vladimir MakarovのMJIT organization](https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch#mjit-organization))
2121

2222
JITコンパイルを有効にするには `--jit` オプションをコマンドラインまたは`$RUBYOPT`環境変数を指定します。`--jit-verbose=1`を指定すれば指定すれば実行中のJITコンパイルの基本的な情報を表示します。その他のオプションについては `ruby --help` を参照ください。
2323

@@ -33,9 +33,9 @@ JITコンパイルを有効にするには `--jit` オプションをコマン
3333
* `Random.bytes` の追加 [Feature #4938]
3434
* `Binding#source_location` の追加 [Feature #14230]
3535

36-
`binding`のソースコード上の位置を `__FILE__``__LINE__` の二要素配列として返します。従来でも `eval("[__FILE__, __LINE__]", binding)` とすることでこれらの情報は得られましたが、将来的に `Kernel#eval` はbindingのソースコード行を無視する変更を予定しているため [Bug #4352]、この新しいメソッドを用いることが今後は推奨されます。
36+
`binding`のソースコード上の位置を `__FILE__``__LINE__` の二要素配列として返します。従来でも `eval("[__FILE__, __LINE__]", binding)` とすることでこれらの情報は得られましたが、将来的に `Kernel#eval` `binding`のソースコード行を無視する変更を予定しているため [Bug #4352]、この新しいメソッドを用いることが今後は推奨されます。
3737

38-
* `Kernel#system` の失敗時に、`false`を返す代わりに例外を上げさせる :exception オプションを追加 [Feature #14386]
38+
* `Kernel#system` の失敗時に、`false`を返す代わりに例外を上げさせる `:exception` オプションを追加 [Feature #14386]
3939

4040
## パフォーマンスの改善
4141

@@ -50,7 +50,7 @@ JITコンパイルを有効にするには `--jit` オプションをコマン
5050

5151
## その他の注目すべき 2.5 からの変更点
5252

53-
* `$SAFE` はプロセスグローバルで扱われることになると共に、`0`以外を設定した後に0に戻せるようになりました [Feature #14250]
53+
* `$SAFE` はプロセスグローバルで扱われることになると共に、`0`以外を設定した後に`0`に戻せるようになりました [Feature #14250]
5454
* `ERB.new``safe_level`を渡すのは非推奨になりました。また、`trim_mode``eoutvar`はキーワード引数に変更されました。 [Feature #14256]
5555
* RubyGems 2.7.6 をマージしました
5656

0 commit comments

Comments
 (0)