-
Notifications
You must be signed in to change notification settings - Fork 160
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
GLOBAL_DEFINED_WORDS: 同期に関する操作の2項関係たちを追加 #1360
Open
akinomyoga
wants to merge
4
commits into
cpprefjp:master
Choose a base branch
from
akinomyoga:dfn-happens-before
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
69ceaac
GLOBAL_DEFINED_WORDS: よりも前に発生する (happens before) / と同期する (synchronize…
akinomyoga c59d6b5
thread/this_thread: 「と同期しない」を定義語に一致するように書換
akinomyoga faaaf8b
GLOBAL_DEFINED_WORDS: 表現を変更 "{と => に対して}同期する"
akinomyoga 163ac01
working_style: 同期・評価順序に関連する訳語を追加
akinomyoga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ namespace this_thread { | |
|
||
|
||
## 同期操作 | ||
特に他操作と同期しない。 | ||
特に他操作に対して同期する規定はない。 | ||
|
||
|
||
## 例外 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ namespace this_thread { | |
|
||
|
||
## 同期操作 | ||
特に他操作と同期しない。 | ||
特に他操作に対して同期する規定はない。 | ||
|
||
|
||
## 例外 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ namespace this_thread { | |
|
||
|
||
## 同期操作 | ||
特に他操作と同期しない。 | ||
特に他操作に対して同期する規定はない。 | ||
|
||
|
||
## 例外 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
これだと
と同期しない
という活用のときにマークアップが適用されませんね…やはり新しく単語を作るか "synchronize with 関係" みたいに英語を保持するか。
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.
当該関数の仕様は "Synchronization: None" となっており、これを意訳したようです。
上記については書き換えてしまえば「同期しない」という否定系は避けられるとは思います。
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.
最終的に synchronizes with =「と同期する」で行くのか分かりませんが、取り敢えず f2ae0d6
「処理系(標準ライブラリ)に対する『他の操作と同期しなければならない』という要求はないが、処理系がやりたければ勝手に同期的に動作しても良い」という理解はあっていますか。元の表現だと「処理系は同期してはいけない」というのが規格の要件のようにも読めるので、こういう修正にしました。
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.
"A は B と同期する" という表現だと対称律が成立していそうでよくないなという気がして来ました (「『A は B と同期する』⇔『B は A と同期する』」と勘違いしそう)。例えば "に対して同期する" みたいな方向性のある表現の方が良いのでは。
Edit:
関連する懸念として "synchronizes with 関係" などの語を導入する場合にも、方向性を表現しにくいという問題がある気がします。"A と B は synchronizes with 関係にある" や "A は B と synchronizes with 関係にある" だとよくない。これも "A は B に対して synchronizes with 関係にある" などのようにすれば良いでしょうか。
あと "A は B に対して happens before 関係" や "A は B に対して synchronizes with 関係" などの表現は、"より前に発生する" や "に対して同期する" と比べると余り直感的でなく意味を捉えにくいかも、と思いました。
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.
ここで出てきている語の前提知識ほぼない状態で印象論でコメントしておくと、やはり「同期する」とか「関係にある」だと、交換法則が成り立つイメージがどうしてもある気がしています。Golangの訳はそれと比べてわかりやすい気がします。
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.
@akinomyoga
うーん... 自信をもった回答ではありませんが、下記ニュアンスなのかなと思います。cpprefjpとしては B の意図が誤解なく伝われば十分ですから、修正後の文面 「特に他操作と同期する規定はない」 には賛同です。
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.
お二人ともご指摘されるように、「A は B と同期する」では対称性あり/交換可能と誤解されるリスクはあると思います。ただこれは原語 A synchronizes with B 時点でも同じニュアンスを持つ気がしており、形式的定義の難解さによるものかなと半ばあきらめています...
挙げられている「A は B に対して同期する」は「~と同期する」よりも方向を持つニュアンスがある感じがするので、よい訳語かもしれませんね。