The way they do it is fundamentally different. Head just reads until number of newlines is the target number. Tail has to first read the entire file and keep a buffer of the file and/or offsets for each line ending to determine what the last 10 (or so) lines are.
This idiot (Gabriel) probably thinks exclusively in the real world paper line analog.
I also just looked at each program’s command line options and they’re identical. Less things only Tail can do (because they’re fundamentally different operations)
This idiot (Gabriel) probably thinks exclusively in the real world paper line analog.
Typical of Internet discourse to just immediately brand someone you disagree with an idiot… That “idiot” is one of the designers of common lisp, among other things. You’re allowed to disagree with a smart person too you know
Really completely different? Do they not print first / last lines of text from a file into the terminal?
The way they do it is fundamentally different. Head just reads until number of newlines is the target number. Tail has to first read the entire file and keep a buffer of the file and/or offsets for each line ending to determine what the last 10 (or so) lines are.
This idiot (Gabriel) probably thinks exclusively in the real world paper line analog.
I also just looked at each program’s command line options and they’re identical. Less things only Tail can do (because they’re fundamentally different operations)
Typical of Internet discourse to just immediately brand someone you disagree with an idiot… That “idiot” is one of the designers of common lisp, among other things. You’re allowed to disagree with a smart person too you know
OK. Designers of programming languages can be idiots.
Lisp is a bad language IMO. Way too mathy. Nobody programs like that anymore for a reason.
Programming language is a tool. Do you think there’re no more tasks left where “mathy” programming language would be preferable?