Live data from Hacker News

Show HN: Gat – cat alternative written in Go

github.com

31–40 of 46 posts

Re: Show HN: Gat – cat alternative written in Go

#32
post #30

Earlier 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.

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

#35

Earlier 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.

Here is where the file is read in its entirety. https://github.com/koki-develop/gat/blob/c16dbf999b89b46ed17...

Re: Show HN: Gat – cat alternative written in Go

#36
post #30

Earlier 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.

I assure you, gat is a common slang, most Americans on the street would be able to tell you that it's a gun.

Re: Show HN: Gat – cat alternative written in Go

#37
post #30

Earlier 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.

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.

Re: Show HN: Gat – cat alternative written in Go

#39
post #30

Earlier 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.

What would you expect "wall ~/documents" to do?

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

Re: Show HN: Gat – cat alternative written in Go

#40

Earlier quoted context omitted.

That's wild given that Go makes it harder to read a whole file than read a block at a time.

Oh, absolutely not! ioutil.ReadFile and you're done!

At least we know the problem and the solution to it
Post reply on HN