Skip to content

4.35. Raw Pointers #68

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 5 commits into from
Feb 14, 2016
Merged

4.35. Raw Pointers #68

merged 5 commits into from
Feb 14, 2016

Conversation

Nnwww
Copy link
Contributor

@Nnwww Nnwww commented Feb 5, 2016

移転開始

相談内容

Rust言語機能外の注釈が必要か否か

レイヤが低い話になると増えてくる印象があります

  • スマートポインタ
  • plain-old-data
  • use-after-free
  • エイリアシング
  • ダングリングポインタ

用語は調べれば分かるので、注釈は原文読んでも分かりにくい言い回しの補完のみにしたいのですが宜しいでしょうか?

Line 37 "lack any form of lifetimes"の意訳

「ライフタイムの形式が欠如」では日本語的ではないと判断し「ライフタイムの機能が無効化される」と翻訳

進捗状況

  • 暫定翻訳完了
  • 相談内容洗い出し
  • 時間を置いて再確認
  • Ownerレビュー反映

@Nnwww Nnwww changed the title [WIP] 4.35. Raw Pointers 4.35. Raw Pointers Feb 7, 2016
@Nnwww
Copy link
Contributor Author

Nnwww commented Feb 7, 2016

@KeenS 暫定訳完了しました、宜しくお願いします。

there are two types that are extra-special. Much of Rust’s safety comes from
compile-time checks, but raw pointers don’t have such guarantees, and are
[unsafe][unsafe] to use.
[unsafe][unsafe] to use. -->
Rustは標準ライブラリに異なるスマートポインタの型を幾つか用意していますが、更に特殊な型が2つあります。Rustの安全性の多くはコンパイル時のチェックに起因するものですが、生ポインタや [unsafe][unsafe] を使用するとそういった保証が得られません。
Copy link
Member

Choose a reason for hiding this comment

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

起因

「原因」というよりは「おかげで」の意味だと思うので「〜に依るもの」「〜のおかげ」くらいかと思います。
一言で言い表わす日本語がありそうで出てこない…

Copy link
Member

Choose a reason for hiding this comment

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

Rustの安全性の多くはコンパイル時のチェックに起因するものですが、生ポインタや [unsafe][unsafe] を使用するとそういった保証が得られません。

「生ポインタはコンパイルチェックされないので使うとunsafeです」ということを言っていると思います。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

「Rustの安全性の多くはコンパイル時のチェックに依るものですが、生ポインタを用いるとそういった保証が得られないため [unsafe][unsafe] です。」でどうでしょうか。

Copy link
Member

Choose a reason for hiding this comment

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

素晴しい訳ですね。良いと思います。

@KeenS
Copy link
Member

KeenS commented Feb 7, 2016

@Nnwww 何点かコメントしました。確認宜しくお願いします。

@Nnwww
Copy link
Contributor Author

Nnwww commented Feb 13, 2016

@KeenS 反映しました、ご確認お願いします。

@KeenS
Copy link
Member

KeenS commented Feb 13, 2016

相談見落してました。

Rust言語機能外の注釈が必要か否か

元のドキュメントの著者が不要と判断して載ってないと思うので最低限で良いと思います。

Line 37 "lack any form of lifetimes"の意訳

そのまま訳すとすれば「ライフタイムがどのような形でも出てこない」などでしょうが意訳の形でも十分意図は伝わるので問題ないと思います。

@Nnwww
Copy link
Contributor Author

Nnwww commented Feb 13, 2016

@KeenS ありがとうございます、このままでお願いします。

not being allowed directly through a `*const T`. -->
- `&` と異なり、ライフタイムの機能が無効化されるため、コンパイラはダングリングポインタを推論できない
- また、 `*const T` を直接介した変更は拒むが、それ以外のエイリアシングやミュータビリティに関する保証はない

Copy link
Member

Choose a reason for hiding this comment

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

[markdown]
ごめんなさい、レビュー漏れてました。リストアイテムの間にコメントを挟むと正しくレンダリングされないのでこちら、リスト全体をコメントアウトしてその下に訳を置くようお願いします。

@KeenS
Copy link
Member

KeenS commented Feb 14, 2016

@Nnwww
Markdown記法の問題がありました。レビューの時に確認し忘れてました、ごめんなさい。
お手数ですがもう一度修正お願いします。

@Nnwww
Copy link
Contributor Author

Nnwww commented Feb 14, 2016

@KeenS 修正しました、宜しくお願いします。

@KeenS
Copy link
Member

KeenS commented Feb 14, 2016

ありがとうございます、お手数お掛けしました。確認しましたのでマージします。

KeenS added a commit that referenced this pull request Feb 14, 2016
@KeenS KeenS merged commit 90ea4ff into rust-lang-ja:master Feb 14, 2016
@tatsuya6502 tatsuya6502 modified the milestone: 1.6 Apr 28, 2016
@Nnwww Nnwww deleted the 4_35_Raw_Pointers branch August 9, 2016 06:07
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.

3 participants