Similar to https://github.com/sharkdp/bat but Go instead of Rust
A missed opportunity to name it `rat`.
Show HN: Gat – cat alternative written in Go
31–40 of 46 posts
Re: Show HN: Gat – cat alternative written in Go
#32Earlier quoted context omitted.
Looks like the connotation in your head is really obscure, because the downvoters (I'm guessing), a sibling commenter, and I are wondering why "gat" could mean "delete"?
The dictionary definition of "gat" is "revolver", does that really qualify as "obscure"? Anyways, in terms of usage I've heard, it is almost exclusively implying you'll brandish and/or apply your gun, maybe this part is more obscure, but if I wrote "stab myfile" I don't think you'd expect me to put the contents in a buffer.
"stab" would be obvious, but maybe someone needs to go out and ask 100 or a 1000 people on the street what they think of when they hear the word "gat", and maybe then you can congratulate yourself for being in an exclusive minority.
Re: Show HN: Gat – cat alternative written in Go
#33Re: Show HN: Gat – cat alternative written in Go
#34Re: Show HN: Gat – cat alternative written in Go
#35Earlier quoted context omitted.
I just tried both gat and bat to see if they could really replace cat (spoiler: they cannot — unlike cat they soak up all input before outputting anything, and crash with out of memory very quickly). A cat alternative would have to handle this correctly: $ /dev/null or it's not really a cat alternative. (Yes, variations on this theme are very useful in scripts and daily shell hacking).
That's wild given that Go makes it harder to read a whole file than read a block at a time.
Re: Show HN: Gat – cat alternative written in Go
#36Earlier quoted context omitted.
The dictionary definition of "gat" is "revolver", does that really qualify as "obscure"? Anyways, in terms of usage I've heard, it is almost exclusively implying you'll brandish and/or apply your gun, maybe this part is more obscure, but if I wrote "stab myfile" I don't think you'd expect me to put the contents in a buffer.
Well I had to check the dictionary to see what you mean. "stab" would be obvious, but maybe someone needs to go out and ask 100 or a 1000 people on the street what they think of when they hear the word "gat", and maybe then you can congratulate yourself for being in an exclusive minority.
Re: Show HN: Gat – cat alternative written in Go
#37Earlier quoted context omitted.
The dictionary definition of "gat" is "revolver", does that really qualify as "obscure"? Anyways, in terms of usage I've heard, it is almost exclusively implying you'll brandish and/or apply your gun, maybe this part is more obscure, but if I wrote "stab myfile" I don't think you'd expect me to put the contents in a buffer.
Well I had to check the dictionary to see what you mean. "stab" would be obvious, but maybe someone needs to go out and ask 100 or a 1000 people on the street what they think of when they hear the word "gat", and maybe then you can congratulate yourself for being in an exclusive minority.
Re: Show HN: Gat – cat alternative written in Go
#38Re: Show HN: Gat – cat alternative written in Go
#39Earlier quoted context omitted.
Looks like the connotation in your head is really obscure, because the downvoters (I'm guessing), a sibling commenter, and I are wondering why "gat" could mean "delete"?
The dictionary definition of "gat" is "revolver", does that really qualify as "obscure"? Anyways, in terms of usage I've heard, it is almost exclusively implying you'll brandish and/or apply your gun, maybe this part is more obscure, but if I wrote "stab myfile" I don't think you'd expect me to put the contents in a buffer.
I don't really find that command names reliably relate to words. Offhand none of these would do what I expect: curl, top, git, gawk. less is a more featureful more, and who knows what an xxd is. Certainly not a dead four eyed monster with its tongue hanging out.
stab is probably Send To A Buffer, just like grep is Global Regular Expression Print