-
Notifications
You must be signed in to change notification settings - Fork 631
Translate 2.6.0-preview1 to Simplified Chinese (zh_cn) #1749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fb2ac50
to
b0bfb5b
Compare
thanks for the translation, the english source has changed, please rebase on top of it. |
This PR and #1753, have followed up the latest #1750 patch, and have already rebased to get a clean patch. By the time this commit followed up the translation of #1750 and rebased, the original commit still hasn't been merged into master. So this commit forked from an outdated base, but the patch has already followed up the latest post. I'm not sure if it is necessary to rebase to the latest master again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have few suggestions, others LGTM 👍
|
||
Ruby 2.6 引入了 JIT (Just-in-time) 编译器的初始实现。 | ||
|
||
JIT 编译器旨在提升任何 Ruby 程序的执行速度。不同于其他语言中常见的 JIT 编译器,Ruby 的 JIT 编译器进行 JIT 编译的过程非常独特。其将生成的 C 代码打印至磁盘并 spawn 常见的 C 编译器进行代码的生成工作。详见:[Vladimir Makarov 的 MJIT 组织分支](https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch#mjit-organization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove 分支 from Vladimir Makarov 的 MJIT 组织
. It is referring to MJIT organization section in the README.md.
|
||
JIT 编译器旨在提升任何 Ruby 程序的执行速度。不同于其他语言中常见的 JIT 编译器,Ruby 的 JIT 编译器进行 JIT 编译的过程非常独特。其将生成的 C 代码打印至磁盘并 spawn 常见的 C 编译器进行代码的生成工作。详见:[Vladimir Makarov 的 MJIT 组织分支](https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch#mjit-organization) | ||
|
||
如何使用:在命令行或 $RUBYOPT 环境变量中指定 "--jit" 参数。指定 "--jit-verbose=1" 将允许打印 JIT 编译过程中的调试信息。详见 "ruby --help" 查看更多其他选项。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$RUBYOPT -> `$RUBYOPT`
"--jit" -> `--jit`
"--jit-verbose=1" -> `--jit-verbose=1`
`ruby --help`
* 新增 `Random.bytes`。[功能 #4938] | ||
|
||
* 新增 `Binding#source_location`。[功能 #14230] | ||
此方法以一个二元组数组 `__FILE__` and `__LINE__` 的形式返回绑定的源代码路径。传统上,这可以通过执行 `eval("[__FILE__, __LINE__]", binding)` 来获得相同的数据。但我们计划改变这一行为让 `Kernel#eval` 忽略绑定的源代码路径 [漏洞 #4352]。所以,用户需要通过新加入的方法来替代之前的 `Kernel#eval`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
绑定 in 形式返回绑定的源代码路径
should be binding
.
b0bfb5b
to
abfdb5d
Compare
Problems mentioned have fixed. |
Thank you 👍 ! Merged as 6ee4eb8 |
No description provided.