Earlier quoted context omitted.
Right, does it do things faster? Or somehow more efficiently? It seems that this is probably slower and consumes far more resources than cat. It also does pretty printing and syntax highlighting. From a Unix standpoint, I would say this is not a cat replacement but a pretty replacement.
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).
Show HN: Gat – cat alternative written in Go
41–46 of 46 posts
Re: Show HN: Gat – cat alternative written in Go
#42but this is fun, well done!
Re: Show HN: Gat – cat alternative written in Go
#43Earlier 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.
Obviously converts spaces to tabs.
Re: Show HN: Gat – cat alternative written in Go
#44Earlier quoted context omitted.
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.
Perhaps it's not fully mainstreamed, but looking at the current conversation it looks to me like the idea is widespread. Really though, I also see no other other usages of the term online, it surprises me you would not simply type in "gat" to a search engine and easily understand my point.
Anyway, to end the discussion, I guess the downvotes have other causes, and it'll remain a mystery to both of us.
Re: Show HN: Gat – cat alternative written in Go
#45Earlier quoted context omitted.
A missed opportunity to name it `rat`.
Flying rat > Earthbound rat Besides, this way I can type 'man bat' and scowl.
Re: Show HN: Gat – cat alternative written in Go
#46Earlier quoted context omitted.
Perhaps it's not fully mainstreamed, but looking at the current conversation it looks to me like the idea is widespread. Really though, I also see no other other usages of the term online, it surprises me you would not simply type in "gat" to a search engine and easily understand my point.
There's dictionary definition and there's well known usages. In the dictionary "retard" means to slow down or hinder, but if I said "Stop retarding my progress", a "mainstream person" would probably be offended. Anyway, to end the discussion, I guess the downvotes have other causes, and it'll remain a mystery to both of us.
Wish you had ended it a comment earlier.