Skip to content

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

Closed
wants to merge 1 commit into from

Conversation

dsh0416
Copy link
Contributor

@dsh0416 dsh0416 commented Feb 24, 2018

No description provided.

@dsh0416 dsh0416 force-pushed the dsh0416/translate-2-6-0-preview branch from fb2ac50 to b0bfb5b Compare February 24, 2018 09:28
@JuanitoFatas
Copy link
Member

thanks for the translation, the english source has changed, please rebase on top of it.

@dsh0416
Copy link
Contributor Author

dsh0416 commented Feb 24, 2018

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.

Copy link
Member

@JuanitoFatas JuanitoFatas left a 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)
Copy link
Member

@JuanitoFatas JuanitoFatas Feb 24, 2018

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" 查看更多其他选项。
Copy link
Member

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`。
Copy link
Member

Choose a reason for hiding this comment

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

绑定 in 形式返回绑定的源代码路径 should be binding.

@dsh0416 dsh0416 force-pushed the dsh0416/translate-2-6-0-preview branch from b0bfb5b to abfdb5d Compare February 25, 2018 06:06
@dsh0416
Copy link
Contributor Author

dsh0416 commented Feb 25, 2018

Problems mentioned have fixed.

@JuanitoFatas
Copy link
Member

Thank you 👍 ! Merged as 6ee4eb8

@dsh0416 dsh0416 deleted the dsh0416/translate-2-6-0-preview branch February 25, 2018 07:30
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