Skip to contentSkip to conversation

summary: Misc. fixes/tweaks

PATCH Applied Akira Yokosawa 2 participants 5 messages Mar 12, 2021 – Mar 13, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 summary: Misc. fixes/tweaks

o Consistently use past tense in the recap of chapters.
o Use 'nbsp' to avoid line break after "I" in 2c builds.
o Fix staccato of "next next".
o In 1c builds, use float option of "H" to avoid a final page with a lonely cartoon of frightened Tux.

---
 summary.tex | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
summary.tex +15 -6
index 16320e34..8ca5a635 100644
@@ -9,7 +9,7 @@
 	  {\emph{Konrad Adenauer}}
 
 You have arrived at the end of this book, well done!
-I hope that your journey was a pleasant but challenging and worthwhile
+I~hope that your journey was a pleasant but challenging and worthwhile
 one.
 
 For your editor and contributors, this is the end of the journey to the
@@ -81,13 +81,13 @@ Whichever side of the formal-verification/\-testing divide you might
 be on, if code has not been thoroughly validated, it does not work.
 And that goes at least double for concurrent code.
 
-\Cref{chp:Putting It All Together} presents a number of situations
+\Cref{chp:Putting It All Together} presented a number of situations
 where combining concurrency mechanisms with each other or with other
 design tricks can greatly ease parallel programmers' lives.
-\Cref{sec:advsync:Advanced Synchronization} looks at advanced
+\Cref{sec:advsync:Advanced Synchronization} looked at advanced
 synchronization methods, including lockless programming, non-blocking
 synchronization, and parallel real-time computing.
-\Cref{chp:Advanced Synchronization: Memory Ordering} digs into the
+\Cref{chp:Advanced Synchronization: Memory Ordering} dug into the
 critically important topic of memory ordering, presenting techniques
 and tools to help you not only solve memory-ordering problems, but
 also to avoid them completely.
@@ -146,7 +146,7 @@ parallel-programming experts.
 Paul began his question by noting that in the 15~years from 1991 to 2006,
 the price of a parallel system had dropped from that of a house to that
 of a mid-range bicycle, and it was clear that there was much more room
-for additional dramatic price decreases over the next next 15~years
+for additional dramatic price decreases over the next 15~years
 extending to the year 2021.
 He also noted that decreasing price should result in greater familiarity
 and faster progress in solving parallel-programming problems.
@@ -210,12 +210,21 @@ if in fact he ever knew it.
 
 This book is nevertheless for that man.
 
-\begin{figure}[tb]
+\IfTwoColumn{
+\begin{figure}
 \centering
 \resizebox{3in}{!}{\includegraphics{cartoons/UseTheRightToolsBubble}}
 \caption{The Most Important Lesson}
 \ContributedBy{Figure}{fig:summary:The Most Important Lesson}{Melissa Broussard}
 \end{figure}
+}{
+\begin{figure}[H]
+\centering
+\resizebox{3in}{!}{\includegraphics{cartoons/UseTheRightToolsBubble}}
+\caption{The Most Important Lesson}
+\ContributedBy{Figure}{fig:summary:The Most Important Lesson}{Melissa Broussard}
+\end{figure}
+}
 
 And this book is also for everyone else who would like to add low-level
 concurrency to their skillset.
Signature · 1 line
2.17.1
#1 lore raw
Quoted 60 lines · Akira Yokosawa

o Consistently use past tense in the recap of chapters.
o Use 'nbsp' to avoid line break after "I" in 2c builds.
o Fix staccato of "next next".
o In 1c builds, use float option of "H" to avoid a final page with a lonely cartoon of frightened Tux.

---
 summary.tex | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
summary.tex +7 -6
index 16320e34..8ca5a635 100644
@@ -9,7 +9,7 @@
 	  {\emph{Konrad Adenauer}}
 
 You have arrived at the end of this book, well done!
-I hope that your journey was a pleasant but challenging and worthwhile
+I~hope that your journey was a pleasant but challenging and worthwhile
 one.
 
 For your editor and contributors, this is the end of the journey to the
@@ -81,13 +81,13 @@ Whichever side of the formal-verification/\-testing divide you might
 be on, if code has not been thoroughly validated, it does not work.
 And that goes at least double for concurrent code.
 
-\Cref{chp:Putting It All Together} presents a number of situations
+\Cref{chp:Putting It All Together} presented a number of situations
 where combining concurrency mechanisms with each other or with other
 design tricks can greatly ease parallel programmers' lives.
-\Cref{sec:advsync:Advanced Synchronization} looks at advanced
+\Cref{sec:advsync:Advanced Synchronization} looked at advanced
 synchronization methods, including lockless programming, non-blocking
 synchronization, and parallel real-time computing.
-\Cref{chp:Advanced Synchronization: Memory Ordering} digs into the
+\Cref{chp:Advanced Synchronization: Memory Ordering} dug into the
 critically important topic of memory ordering, presenting techniques
 and tools to help you not only solve memory-ordering problems, but
 also to avoid them completely.
@@ -146,7 +146,7 @@ parallel-programming experts.
 Paul began his question by noting that in the 15~years from 1991 to 2006,
 the price of a parallel system had dropped from that of a house to that
 of a mid-range bicycle, and it was clear that there was much more room
-for additional dramatic price decreases over the next next 15~years
+for additional dramatic price decreases over the next 15~years
 extending to the year 2021.
 He also noted that decreasing price should result in greater familiarity
 and faster progress in solving parallel-programming problems.
@@ -210,12 +210,21 @@ if in fact he ever knew it.
 
 This book is nevertheless for that man.
 
-\begin{figure}[tb]
+\IfTwoColumn{
+\begin{figure}
 \centering
 \resizebox{3in}{!}{\includegraphics{cartoons/UseTheRightToolsBubble}}
 \caption{The Most Important Lesson}

summary.tex if in fact he ever knew it. · line 227

Quoted 10 lines
summary.tex +8 -0
 \ContributedBy{Figure}{fig:summary:The Most Important Lesson}{Melissa Broussard}
 \end{figure}
+}{
+\begin{figure}[H]
+\centering
+\resizebox{3in}{!}{\includegraphics{cartoons/UseTheRightToolsBubble}}
+\caption{The Most Important Lesson}
+\ContributedBy{Figure}{fig:summary:The Most Important Lesson}{Melissa Broussard}
+\end{figure}
+}

A much natural option would be to add a couple of paragraphs in front of the figure so that at least a few sentences make the following page in 1c builds.

Thanks, Akira

Quoted 4 lines
summary.tex +0 -0
 And this book is also for everyone else who would like to add low-level
 concurrency to their skillset.
 
#2 lore raw
Quoted 55 lines · Akira Yokosawa
Quoted 54 lines · Akira Yokosawa

o Consistently use past tense in the recap of chapters.
o Use 'nbsp' to avoid line break after "I" in 2c builds.
o Fix staccato of "next next".
o In 1c builds, use float option of "H" to avoid a final page with a lonely cartoon of frightened Tux.

---
 summary.tex | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
summary.tex +5 -5
index 16320e34..8ca5a635 100644
@@ -9,7 +9,7 @@
 	  {\emph{Konrad Adenauer}}
 
 You have arrived at the end of this book, well done!
-I hope that your journey was a pleasant but challenging and worthwhile
+I~hope that your journey was a pleasant but challenging and worthwhile
 one.
 
 For your editor and contributors, this is the end of the journey to the
@@ -81,13 +81,13 @@ Whichever side of the formal-verification/\-testing divide you might
 be on, if code has not been thoroughly validated, it does not work.
 And that goes at least double for concurrent code.
 
-\Cref{chp:Putting It All Together} presents a number of situations
+\Cref{chp:Putting It All Together} presented a number of situations
 where combining concurrency mechanisms with each other or with other
 design tricks can greatly ease parallel programmers' lives.
-\Cref{sec:advsync:Advanced Synchronization} looks at advanced
+\Cref{sec:advsync:Advanced Synchronization} looked at advanced
 synchronization methods, including lockless programming, non-blocking
 synchronization, and parallel real-time computing.
-\Cref{chp:Advanced Synchronization: Memory Ordering} digs into the
+\Cref{chp:Advanced Synchronization: Memory Ordering} dug into the
 critically important topic of memory ordering, presenting techniques
 and tools to help you not only solve memory-ordering problems, but
 also to avoid them completely.
@@ -146,7 +146,7 @@ parallel-programming experts.
 Paul began his question by noting that in the 15~years from 1991 to 2006,
 the price of a parallel system had dropped from that of a house to that
 of a mid-range bicycle, and it was clear that there was much more room
-for additional dramatic price decreases over the next next 15~years
+for additional dramatic price decreases over the next 15~years
 extending to the year 2021.
 He also noted that decreasing price should result in greater familiarity
 and faster progress in solving parallel-programming problems.
@@ -210,12 +210,21 @@ if in fact he ever knew it.
 
 This book is nevertheless for that man.
 
Quoted 16 lines
Quoted 6 lines
summary.tex +2 -1
-\begin{figure}[tb]
+\IfTwoColumn{
+\begin{figure}
 \centering
 \resizebox{3in}{!}{\includegraphics{cartoons/UseTheRightToolsBubble}}
 \caption{The Most Important Lesson}

summary.tex if in fact he ever knew it. · line 227

Quoted 10 lines
summary.tex +8 -0
 \ContributedBy{Figure}{fig:summary:The Most Important Lesson}{Melissa Broussard}
 \end{figure}
+}{
+\begin{figure}[H]
+\centering
+\resizebox{3in}{!}{\includegraphics{cartoons/UseTheRightToolsBubble}}
+\caption{The Most Important Lesson}
+\ContributedBy{Figure}{fig:summary:The Most Important Lesson}{Melissa Broussard}
+\end{figure}
+}

I queued and pushed your fixes above, thank you!

And I will be doing another rc this weekend in order to give us both some time for proofreading. I intend to revisit the changes that I made, and I of course welcome any and all additional bug reports and fixes.

Quoted 3 lines

A much natural option would be to add a couple of paragraphs in front of the figure so that at least a few sentences make the following page in 1c builds.

Your concern is the large quantities of vertical whitespace on page 569 of perfbook-1c.pdf? I could imagine expanding on the changes in tooling from 2003 to 2006 that Linus alluded to. I could also imagine filling in on my attempts to get the book going from late 2004 to 2006.

Or am I missing your point?

Thanx, Paul

Quoted 6 lines

Thanks, Akira

Quoted 4 lines
summary.tex +0 -0
 And this book is also for everyone else who would like to add low-level
 concurrency to their skillset.
 
#3 lore raw
Quoted 1 line · Paul E. McKenney

On Sat, Mar 13, 2021 at 12:35:50PM +0900, Akira Yokosawa wrote:

[...]

Quoted 7 lines

I queued and pushed your fixes above, thank you!

And I will be doing another rc this weekend in order to give us both some time for proofreading. I intend to revisit the changes that I made, and I of course welcome any and all additional bug reports and fixes.

There can be conflicts, but you are good at resolving them. Expect a couple of patches soon.

Quoted 7 lines
Quoted 4 lines

A much natural option would be to add a couple of paragraphs in front of the figure so that at least a few sentences make the following page in 1c builds.

Your concern is the large quantities of vertical whitespace on page 569 of perfbook-1c.pdf?

Well, they don't look that ugly. There are much wider gaps elsewhere near section epigraphs.

My main concern is the "H" option, which is considered as a last resort. It will likely bite you when you add/remove some text around it.

Quoted 4 lines

I could imagine expanding on the changes
in tooling from 2003 to 2006 that Linus alluded to. I could also imagine filling in on my attempts to get the book going from late 2004 to 2006.

That would eliminate the adhoc code for 1c layouts. Float objects near the end of a document/chapter are sometimes quite tricky.

Thanks, Akira

Quoted 11 lines

Or am I missing your point?

Thanx, Paul

Quoted 6 lines

Thanks, Akira

Quoted 4 lines

And this book is also for everyone else who would like to add low-level concurrency to their skillset.

#4 lore raw
Quoted 6 lines · Akira Yokosawa
Quoted 1 line · Paul E. McKenney

On Sat, Mar 13, 2021 at 12:35:50PM +0900, Akira Yokosawa wrote:

[...]

Quoted 3 lines

I queued and pushed your fixes above, thank you!

Quoted 7 lines
Quoted 4 lines

And I will be doing another rc this weekend in order to give us both some time for proofreading. I intend to revisit the changes that I made, and I of course welcome any and all additional bug reports and fixes.

There can be conflicts, but you are good at resolving them. Expect a couple of patches soon.

Very good, looking forward to them!

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

A much natural option would be to add a couple of paragraphs in front of the figure so that at least a few sentences make the following page in 1c builds.

Quoted 8 lines
Quoted 2 lines

Your concern is the large quantities of vertical whitespace on page 569 of perfbook-1c.pdf?

Well, they don't look that ugly. There are much wider gaps elsewhere near section epigraphs.

My main concern is the "H" option, which is considered as a last resort. It will likely bite you when you add/remove some text around it.

Ah, I see. Otherwise the figure ends up on a page by itself.

Quoted 8 lines
Quoted 4 lines

I could imagine expanding on the changes
in tooling from 2003 to 2006 that Linus alluded to. I could also imagine filling in on my attempts to get the book going from late 2004 to 2006.

That would eliminate the adhoc code for 1c layouts. Float objects near the end of a document/chapter are sometimes quite tricky.

For this edition, it will be safer for me to do "make -1c" after each change to summary.tex to check that figure than to work out how to expand that section while still having it read well. But I added comments to remind myself of this for the third edition.

Thanx, Paul

Quoted 12 lines

Thanks, Akira

Quoted 11 lines

Or am I missing your point?

Thanx, Paul

Quoted 6 lines

Thanks, Akira

Quoted 4 lines

And this book is also for everyone else who would like to add low-level concurrency to their skillset.