[tex-k] Output of TL's cweave is incompatible with Knuth's cweave
karl at freefriends.org
Thu May 19 00:56:05 CEST 2016
Thanks for the report, as always.
For example, 'bdd14.idx' from Knuth's example programs has swapped
index entries for 'verbose' and 'Verbose' with TL's cweave.
Now change hash_size from 8501 to 353 (both in common.w and cweave.w),
I haven't looked into the code, but it sure seems like a bug to me that
the size of the hash table should affect the index output. Not
necessarily a bug for Knuth, but a bug. Added to the list ...
I propose to leave hash_size 353 by default in TL's cweb -
I suppose that lookups in longer hash chains are surely irrelevant on
today's computers, so there's no real reason to change from Knuth's
value. On the other hand the results "should" be the same regardless of
Also, FYI, there is no principle that TL's cweb should be identical to
Knuth's. Indeed, I intend to look into using Andreas Scherer's cwebbin
(http://ctan.org/pkg/cwebbin) in TL, I just didn't manage to get to it
this year. (I miss you Peter!!)
Knuth told me explicitly that it was fine with him if TL's cweb was
enhanced with whatever "upward compatible" changes, such as Andreas has
worked on. Any changes are likely to cause discrepancies with his
original, and this will not be a bug in either his code or the new code ...
More information about the tex-k