Exploring pre-1990 versions of wc(1) (2023)
sigwait.org
Exploring pre-1990 versions of wc(1) (2023)
1–10 of 27 posts
Re: Exploring pre-1990 versions of wc(1) (2023)
#2Re: Exploring pre-1990 versions of wc(1) (2023)
#3And then the actual code explicitly filters out and ignores every character larger than 0x7F. Just why.
Re: Exploring pre-1990 versions of wc(1) (2023)
#4> A word is a maximal string of characters delimited by spaces, tabs or newlines. And then the actual code explicitly filters out and ignores every character larger than 0x7F. Just why.
Re: Exploring pre-1990 versions of wc(1) (2023)
#5> A word is a maximal string of characters delimited by spaces, tabs or newlines. And then the actual code explicitly filters out and ignores every character larger than 0x7F. Just why.
Because they thought that a word is something said in a human language that they can understand.
Re: Exploring pre-1990 versions of wc(1) (2023)
#6https://www.jagregory.com/abrash-black-book/#lessons-learned...
You can gloss over the asm if you wish, the tricks that are explained around it are worth it imho.
Re: Exploring pre-1990 versions of wc(1) (2023)
#7A fun read on word count optimization can be found in Abrash's Black Book: https://www.jagregory.com/abrash-black-book/#lessons-learned... You can gloss over the asm if you wish, the tricks that are explained around it are worth it imho.
Re: Exploring pre-1990 versions of wc(1) (2023)
#8> A word is a maximal string of characters delimited by spaces, tabs or newlines. And then the actual code explicitly filters out and ignores every character larger than 0x7F. Just why.
Re: Exploring pre-1990 versions of wc(1) (2023)
#9> A word is a maximal string of characters delimited by spaces, tabs or newlines. And then the actual code explicitly filters out and ignores every character larger than 0x7F. Just why.
Re: Exploring pre-1990 versions of wc(1) (2023)
#10Those `goto`s between two different for loops is crazy.