"This book describes pbrt, a physically based rendering system based on the ray-tracing algorithm." ( https://www.pbr-book.org/3ed-2018/Introduction )
and:
"This book (including the chapter you’re reading now) is a long literate program." ( https://www.pbr-book.org/3ed-2018/Introduction/Literate_Prog... )
>A method known as literate programming combines human-readable documentation and source code into a single reference that is specifically designed to aid comprehension.
Where are these C++ files which are not included in the text?
https://github.com/mmp/pbrt-v2
https://github.com/mmp/pbrt-v3
https://github.com/mmp/pbrt-v4
Have you read these books and modified the source to pbrt? The books contain small fragments of source code and aren't close to a full program.
I guess that including those lines would have been problematic in terms of book length/page count?
Btw. there is a newer - 2023 - edition available now: https://www.pbr-book.org/4ed/contents
I guess realising that literate programming is literally [sorry] writing a programming book should be enough of an argument to know that it isn't suitable for most people. And no, a white-paper is not a "programming book" suitable for most people to read ;)
I guess that the books at:
https://www.goodreads.com/review/list/21394355-william-adams...
which include a typesetting system, a font design language, a 3D renderer, and an MP3 implementation qualify as "small scripts"? What is the threshold for such? TeX.web outputs some 20,619 lines of Pascal code for conversion to C and compiling.