9 ms·
So, Knuth wrote it in 10 pages from the ground up? But, the other guy just used unix commands. I wonder how many lines of code all those utilities add up to.
by TheRevoltingX 15y ago
So, Knuth wrote it in 10 pages from the ground up?
But, the other guy just used unix commands.
I wonder how many lines of code all those utilities add up to.
Probably more than 10 printed pages.
- p9idf 15y agoI checked the Plan 9 tools, which are similar to the Unix ones. Though without access to Knuth's program, I can't draw a sensible conclusion from the following data. term% wc /sys/src/cmd/^(tr.c sort.c uniq.c sed.c) 356 998 5993 /sys/src/cmd/tr.c 1752 4526 28371 /sys/src/cmd/sort.c 165 346 2185 /sys/src/cmd/uniq.c 1455 4267 26848 /sys/src/cmd/sed.c 3728 10137 63397 total term% wc <{man tr} <{man sort} <{man uniq} <{man sed} 54 269 2028 /fd/8 137 741 5542 /fd/7 41 149 1225 /fd/6 208 1078 8464 /fd/5 440 2237 17259 total