All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -perfbook] summary: Misc. fixes/tweaks
@ 2021-03-12 15:44 Akira Yokosawa
  2021-03-13  3:35 ` Akira Yokosawa
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2021-03-12 15:44 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, 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.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 summary.tex | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/summary.tex b/summary.tex
index 16320e34..8ca5a635 100644
--- a/summary.tex
+++ b/summary.tex
@@ -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.
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] summary: Misc. fixes/tweaks
  2021-03-12 15:44 [PATCH -perfbook] summary: Misc. fixes/tweaks Akira Yokosawa
@ 2021-03-13  3:35 ` Akira Yokosawa
  2021-03-13  5:38   ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2021-03-13  3:35 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

On Sat, 13 Mar 2021 00:44:58 +0900, Akira Yokosawa wrote:
> 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.
> 
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> ---
>  summary.tex | 21 +++++++++++++++------
>  1 file changed, 15 insertions(+), 6 deletions(-)
> 
> diff --git a/summary.tex b/summary.tex
> index 16320e34..8ca5a635 100644
> --- a/summary.tex
> +++ b/summary.tex
> @@ -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}
> +}

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] summary: Misc. fixes/tweaks
  2021-03-13  3:35 ` Akira Yokosawa
@ 2021-03-13  5:38   ` Paul E. McKenney
  2021-03-13 15:32     ` Akira Yokosawa
  0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2021-03-13  5:38 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: perfbook

On Sat, Mar 13, 2021 at 12:35:50PM +0900, Akira Yokosawa wrote:
> On Sat, 13 Mar 2021 00:44:58 +0900, Akira Yokosawa wrote:
> > 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.
> > 
> > Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> > ---
> >  summary.tex | 21 +++++++++++++++------
> >  1 file changed, 15 insertions(+), 6 deletions(-)
> > 
> > diff --git a/summary.tex b/summary.tex
> > index 16320e34..8ca5a635 100644
> > --- a/summary.tex
> > +++ b/summary.tex
> > @@ -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}
> > +}

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.

> 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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] summary: Misc. fixes/tweaks
  2021-03-13  5:38   ` Paul E. McKenney
@ 2021-03-13 15:32     ` Akira Yokosawa
  2021-03-13 16:48       ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2021-03-13 15:32 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa

On Fri, 12 Mar 2021 21:38:26 -0800, Paul E. McKenney wrote:
> On Sat, Mar 13, 2021 at 12:35:50PM +0900, Akira Yokosawa wrote:
[...]
> 
> 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.

> 
>> 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.

>                          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
> 
> Or am I missing your point?
> 
> 							Thanx, Paul
> 
>>         Thanks, Akira
>>
>>>  
>>>  And this book is also for everyone else who would like to add low-level
>>>  concurrency to their skillset.
>>>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH -perfbook] summary: Misc. fixes/tweaks
  2021-03-13 15:32     ` Akira Yokosawa
@ 2021-03-13 16:48       ` Paul E. McKenney
  0 siblings, 0 replies; 5+ messages in thread
From: Paul E. McKenney @ 2021-03-13 16:48 UTC (permalink / raw)
  To: Akira Yokosawa; +Cc: perfbook

On Sun, Mar 14, 2021 at 12:32:14AM +0900, Akira Yokosawa wrote:
> On Fri, 12 Mar 2021 21:38:26 -0800, Paul E. McKenney wrote:
> > On Sat, Mar 13, 2021 at 12:35:50PM +0900, Akira Yokosawa wrote:
> [...]
> > 
> > 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.

Very good, looking forward to them!

> >> 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.

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

> >                          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

>         Thanks, Akira
> > 
> > Or am I missing your point?
> > 
> > 							Thanx, Paul
> > 
> >>         Thanks, Akira
> >>
> >>>  
> >>>  And this book is also for everyone else who would like to add low-level
> >>>  concurrency to their skillset.
> >>>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-13 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 15:44 [PATCH -perfbook] summary: Misc. fixes/tweaks Akira Yokosawa
2021-03-13  3:35 ` Akira Yokosawa
2021-03-13  5:38   ` Paul E. McKenney
2021-03-13 15:32     ` Akira Yokosawa
2021-03-13 16:48       ` Paul E. McKenney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.