[dev] Re: I wrote a pager
hiro <23h...@gmail.com> writes: > Suckless is not about being so small that any task, even stupidly > useless like this one suddenly sucks less because of linecount. 1 loc! awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' -- Christian Neukirchenhttp://chneukirchen.org
Re: [dev] Re: I wrote a pager
On Sun, Sep 18, 2016 at 03:34:38PM +0200, Christian Neukirchen wrote: > > 1 loc! > > awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' > You do your paging with 1 loc and yet you send email with something as bloated as Emacs!
Re: [dev] Re: I wrote a pager
On 2016-09-18 16:41, Joseph Graham wrote: On Sun, Sep 18, 2016 at 03:34:38PM +0200, Christian Neukirchen wrote: 1 loc! awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' You do your paging with 1 loc and yet you send email with something as bloated as Emacs! Actually, it isn't 1 LOC, awk is more than that ^^ Raiz
Re: [dev] Re: I wrote a pager
On Sun, Sep 18, 2016, at 09:34 AM, Christian Neukirchen wrote: > 1 loc! > > awk 'NR%22==0 { getline _ <"/dev/tty" } {print}' Great! And stali has awk. It works pretty well, but doesn't take into account long lines.
Re: [dev] Re: I wrote a pager
> Actually, it isn't 1 LOC, awk is more than that ^^ It's a stupid joke, as you probably know awk is a good abstraction that is perfectly fine to use. You also don't understand the complexity on the lower levels (for example firmware, microcode), but you are happy nonetheless even though many lines of code to count have been hidden from you. There are also hardware complexities that are not directly expressed in code at all.