Skip to content

6. Nightly Rust #52

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

Merged
merged 6 commits into from
Feb 11, 2016
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 67 additions & 47 deletions 1.6/ja/book/nightly-rust.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
% Nightly Rust
<!-- % Nightly Rust -->

Rust provides three distribution channels for Rust: nightly, beta, and stable.
Unstable features are only available on nightly Rust. For more details on this
process, see ‘[Stability as a deliverable][stability]’.
<!-- Rust provides three distribution channels for Rust: nightly, beta, and stable. -->
<!-- Unstable features are only available on nightly Rust. For more details on this -->
<!-- process, see ‘[Stability as a deliverable][stability]’. -->
Rustにはnightly、beta、stableという3種類の配布用チャネルがあります。不安定なフィーチャはnightlyのRustでのみ使えます。詳細は「 [配布物の安定性][stability] 」をご覧ください。

[stability]: http://blog.rust-lang.org/2014/10/30/Stability.html

To install nightly Rust, you can use `rustup.sh`:
<!-- To install nightly Rust, you can use `rustup.sh`: -->
nightlyのRustをインストールするには `rustup.sh` を使って以下のようにします。

```bash
$ curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
```

If you're concerned about the [potential insecurity][insecurity] of using `curl
| sh`, please keep reading and see our disclaimer below. And feel free to
use a two-step version of the installation and examine our installation script:
<!-- If you're concerned about the [potential insecurity][insecurity] of using `curl -->
<!-- | sh`, please keep reading and see our disclaimer below. And feel free to -->
<!-- use a two-step version of the installation and examine our installation script: -->
もし `curl | sh` の使用による [潜在的な危険性][insecurity] が気になる場合は、この後の注意書きまで読み進めてください。また、以下のように2段階のインストール方法を用い、インストールスクリプトを精査しても構いません。

```bash
$ curl -f -L https://static.rust-lang.org/rustup.sh -O
Expand All @@ -23,75 +27,91 @@ $ sh rustup.sh --channel=nightly

[insecurity]: http://curlpipesh.tumblr.com

If you're on Windows, please download either the [32-bit installer][win32] or
the [64-bit installer][win64] and run it.
<!-- If you're on Windows, please download either the [32-bit installer][win32] or -->
<!-- the [64-bit installer][win64] and run it. -->
Windowsの場合は [32bit版インストーラ][win32] あるいは [64bit版インストーラ][win64] をダウンロードして実行してください。

[win32]: https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.msi
[win64]: https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.msi

## Uninstalling
<!-- ## Uninstalling -->
## アンインストール

If you decide you don't want Rust anymore, we'll be a bit sad, but that's okay.
Not every programming language is great for everyone. Just run the uninstall
script:
<!-- If you decide you don't want Rust anymore, we'll be a bit sad, but that's okay. -->
<!-- Not every programming language is great for everyone. Just run the uninstall -->
<!-- script: -->
もしRustが不要だと判断した場合、残念ですが仕方がありません。万人に気に入られるプログラミング言語ばかりとは限らないのです。アンインストールするには以下を実行します。

```bash
$ sudo /usr/local/lib/rustlib/uninstall.sh
```

If you used the Windows installer, just re-run the `.msi` and it will give you
an uninstall option.
<!-- If you used the Windows installer, just re-run the `.msi` and it will give you -->
<!-- an uninstall option. -->
Windows用のインストーラを使用した場合は、 `.msi` を再実行しアンインストールオプションを選択してください。

Some people, and somewhat rightfully so, get very upset when we tell you to
`curl | sh`. Basically, when you do this, you are trusting that the good
people who maintain Rust aren't going to hack your computer and do bad things.
That's a good instinct! If you're one of those people, please check out the
documentation on [building Rust from Source][from-source], or [the official
binary downloads][install-page].
<!-- Some people, and somewhat rightfully so, get very upset when we tell you to -->
<!-- `curl | sh`. Basically, when you do this, you are trusting that the good -->
<!-- people who maintain Rust aren't going to hack your computer and do bad things. -->
<!-- That's a good instinct! If you're one of those people, please check out the -->
<!-- documentation on [building Rust from Source][from-source], or [the official -->
<!-- binary downloads][install-page]. -->
`curl | sh` を行うように書いたことについて、(当然のことですが)戸惑った方がいるかもしれません。基本的に `curl | sh` を行うということは、Rustをメンテナンスしている善良な人々がコンピュータのハッキングなど何か悪いことをしたりしないと信用する、ということです。ですので戸惑った方はよい直感を持っているといえます。そのような方は [ソースコードからのRustビルド][from-source] あるいは [公式バイナリのダウンロード][install-page] を確認してください。

[from-source]: https://github.com/rust-lang/rust#building-from-source
[install-page]: https://www.rust-lang.org/install.html

Oh, we should also mention the officially supported platforms:
<!-- Oh, we should also mention the officially supported platforms: -->
ここで公式にサポートするプラットフォームについても述べておきます。

* Windows (7, 8, Server 2008 R2)
* Linux (2.6.18 or later, various distributions), x86 and x86-64
* OSX 10.7 (Lion) or greater, x86 and x86-64
<!-- * Windows (7, 8, Server 2008 R2) -->
<!-- * Linux (2.6.18 or later, various distributions), x86 and x86-64 -->
<!-- * OSX 10.7 (Lion) or greater, x86 and x86-64 -->
* Windows (7、8、Server 2008 R2)
* Linux (2.6.18以上の各ディストリビューション)、x86 及び x86-64
* OSX 10.7 (Lion)以上、x86 及び x86-64

We extensively test Rust on these platforms, and a few others, too, like
Android. But these are the ones most likely to work, as they have the most
testing.
<!-- We extensively test Rust on these platforms, and a few others, too, like -->
<!-- Android. But these are the ones most likely to work, as they have the most -->
<!-- testing. -->
Rustではこれらのプラットフォームの他、Androidなどいくつかのプラットフォームについても幅広いテストが行われています。しかし、テストが行われているということは、ほとんどの場合動くだろう、ということに過ぎません。

Copy link
Member

Choose a reason for hiding this comment

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

原文の句読点の位置が紛らわしいのですが、こんな意味ではないでしょうか?

  1. Windows などの(tier 1)プラットフォームに対してはextensively test(徹底的なテスト)を実施
  2. Android などのその他(tier 2、3)は、have the most testing(大まかにテストされている) → ほとんどの場合動くだろう

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tatsuya6502
ありがとうございます。
確かにtier1,2,3の定義からするとご指摘の通りのような気もするのですが、1文目単独で読むとやはりAndroidに対してもextensively testが行われているように読めてしまいます。
http://buildbot.rust-lang.org/tgrid(公式のCI環境ってここでよかったでしょうか?)を見ると、AndroidやBSD向けビルドもtier1と同様に行われているようですので、a few othersはこれらのことを指しているのではないかとも思いますが、いかがでしょうか?

Copy link
Member

Choose a reason for hiding this comment

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

@dalance

そうなんですよね。1文目を単独で読むとそうなんですが。そうすると2文目の mostly work と矛盾しているような。ちょっと真意がわからないので、本家の方に質問 issue を上げてみました。

Copy link
Member

Choose a reason for hiding this comment

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

上記 issue ですが、早速返事をもらいました。返事について、私の解釈は以下の通りです。が、間違ってるかもしれないので、ぜひ @dalance さんにも読んでもらいたいです。

  • we extensively test → tier 1 + Android などの一部のプラットフォームを対象に実施している。具体的には CI でテストスイートが通るかを確認している。そういう意味では、Android はほとんど tier 1 と言ってもいい。
  • these are the ones most likely to work → Android などの一部のプラットフォームは、tier 1 のものほど使われていないので、実戦で十分テストされてきたとはいえない。なにか問題があるかもしれない。(Tier 1 は実戦で使われているので問題ないだろう)
  • Android が tier 1 でない理由のひとつは、インストーラが用意されていないこと。

原文の方は、1.8に向けて、私が修正案の PR を上げることにしました。なので、将来のバージョンでは、少し説明が変わるかもしれません。

私としては、tier 1(officially supported platform)に対して「ほとんどの場合動くだろう」と言ってしまうと、やはり違和感があるので、"But these are the ones most likely to work" の these が "a few others, too, like Android" に掛かってるというニュアンスを含められないでしょうか?

例えば、「Rustではこれらのプラットフォームの他、Androidなどいくつかのプラットフォームについても幅広いテストが行われています。しかし、後者についてはテストし尽くされているわけではないので、ほとんどの場合動くだろう、という状態です。」

ちょっと私の日本語、イマイチですが...。ご検討ください。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tatsuya6502
issue読ませていただきました。私の解釈も同様です。
折角詳細なご回答を頂きましたので、訳注として追記してみました。
ご確認いただけますでしょうか?

Finally, a comment about Windows. Rust considers Windows to be a first-class
platform upon release, but if we're honest, the Windows experience isn't as
integrated as the Linux/OS X experience is. We're working on it! If anything
does not work, it is a bug. Please let us know if that happens. Each and every
commit is tested against Windows just like any other platform.
<!-- Finally, a comment about Windows. Rust considers Windows to be a first-class -->
<!-- platform upon release, but if we're honest, the Windows experience isn't as -->
<!-- integrated as the Linux/OS X experience is. We're working on it! If anything -->
<!-- does not work, it is a bug. Please let us know if that happens. Each and every -->
<!-- commit is tested against Windows just like any other platform. -->
最後にWindowsについてです。RustはWindowsをリリースする上での1級プラットフォームだと考えています。しかし、正直なところ、Windowsでの使い勝手はLinux/OS Xのそれと同等というわけではありません。(そうなるように努力しています!) もしうまく動かないことがあれば、それはバグですのでお知らせください。全てのコミットは他のプラットフォームと同様にWindowsに対してもテストされています。

If you've got Rust installed, you can open up a shell, and type this:
<!-- If you've got Rust installed, you can open up a shell, and type this: -->
Rustのインストールが終われば、シェルを開いて以下のように入力してください。

```bash
$ rustc --version
```

You should see the version number, commit hash, commit date and build date:
<!-- You should see the version number, commit hash, commit date and build date: -->
バージョン番号、コミットハッシュ、コミット日時、ビルド日時が表示されるはずです。

```bash
rustc 1.0.0-nightly (f11f3e7ba 2015-01-04) (built 2015-01-06)
```

If you did, Rust has been installed successfully! Congrats!

This installer also installs a copy of the documentation locally, so you can
read it offline. On UNIX systems, `/usr/local/share/doc/rust` is the location.
On Windows, it's in a `share/doc` directory, inside wherever you installed Rust
to.

If not, there are a number of places where you can get help. The easiest is
[the #rust IRC channel on irc.mozilla.org][irc], which you can access through
[Mibbit][mibbit]. Click that link, and you'll be chatting with other Rustaceans
(a silly nickname we call ourselves), and we can help you out. Other great
resources include [the user’s forum][users], and [Stack Overflow][stackoverflow].
<!-- If you did, Rust has been installed successfully! Congrats! -->
これでRustのインストールはうまくいきました!おめでとう!

<!-- This installer also installs a copy of the documentation locally, so you can -->
<!-- read it offline. On UNIX systems, `/usr/local/share/doc/rust` is the location. -->
<!-- On Windows, it's in a `share/doc` directory, inside wherever you installed Rust -->
<!-- to. -->
インストーラはドキュメントのローカルコピーもインストールするので、オフラインでも読むことが出来ます。UNIXシステムでは `/usr/local/share/doc/rust` に、WindowsではRustをインストールしたディレクトリの `share\doc` ディレクトリに配置されます。

<!-- If not, there are a number of places where you can get help. The easiest is -->
<!-- [the #rust IRC channel on irc.mozilla.org][irc], which you can access through -->
<!-- [Mibbit][mibbit]. Click that link, and you'll be chatting with other Rustaceans -->
<!-- (a silly nickname we call ourselves), and we can help you out. Other great -->
<!-- resources include [the user’s forum][users], and [Stack Overflow][stackoverflow]. -->
もし上手くいかないなら様々な場所で助けを得られます。最も簡単なのは [Mibbit][mibbit] からアクセス出来る [irc.mozilla.orgにある#rustチャネル][irc] です。リンクをクリックしたら他のRustacean達(我々のことをふざけてこう呼ぶのです)にチャットで助けを求めることができます。他には [ユーザフォーラム][users] や [Stack Overflow][stackoverflow] などがあります。

[irc]: irc://irc.mozilla.org/#rust
[mibbit]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
Expand Down
10 changes: 10 additions & 0 deletions TranslationTable.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
| block | ブロック
| borrowing | 借用
| bounds | 境界
| channel | チャネル
| capture | キャプチャ
| closure | クロージャ
| coercion | 型強制
Expand All @@ -35,6 +36,7 @@
| declaration statement | 宣言文
| dereferencing | 参照外し
| destructuring | 分配
| directory | ディレクトリ
| directive | ディレクティブ
| distribution | 配布物
| diverge | ダイバージ
Expand All @@ -48,10 +50,13 @@
| generic parameter | ジェネリックパラメータ
| generics | ジェネリクス
| growable | 伸張可能
| hash | ハッシュ
| identifier | 識別子
| immutable | イミュータブル
| initialize | 初期化する
| input lifetime | 入力ライフタイム
| install | インストール
| installer | インストーラ
| interpolate | インターポーレートする
| interpolation | インターポーレーション
| keyword | キーワード
Expand All @@ -71,18 +76,22 @@
| mutable | ミュータブル
| mutability | ミュータビリティ
| mutable binding | ミュータブルな束縛
| offline | オフライン
| option | オプション
| output lifetime | 出力ライフタイム
| owner | 所有者
| ownership | 所有権
| panic | パニック
| parametric polymorphism | パラメトリック多相
| pattern | パターン
| performance | パフォーマンス
| platform | プラットフォーム
| pointer | ポインタ
| re-assignment | 再代入
| rebind | 再束縛
| return | 返す
| scope | スコープ
| script | スクリプト
| shadow | 覆い隠す
| shadowing | シャドーイング
| signature | シグネチャ
Expand All @@ -100,6 +109,7 @@
| trait | トレイト
| type inference | 型推論
| type family | 型族
| uninstall | アンインストール
| Universal Function Call Syntax | 共通の関数呼び出し構文
| unsigned | 符号無し
| unsized type | サイズ不定型
Expand Down