If I read the command `gat myfile` I would definitely assume you were trying to delete it with prejudice. I would be surprised to see it print to my terminal. Edit: why downvotes? You can’t use words as commands that invoke a completely different set of connotations than the commands execution does
Show HN: Gat – cat alternative written in Go
21–30 of 46 posts
Re: Show HN: Gat – cat alternative written in Go
#22Similar to https://github.com/sharkdp/bat but Go instead of Rust
Re: Show HN: Gat – cat alternative written in Go
#23Re: Show HN: Gat – cat alternative written in Go
#24Similar to https://github.com/sharkdp/bat but Go instead of Rust
What is the terminal or share they use in screenshots at that readme?
Re: Show HN: Gat – cat alternative written in Go
#25If I read the command `gat myfile` I would definitely assume you were trying to delete it with prejudice. I would be surprised to see it print to my terminal. Edit: why downvotes? You can’t use words as commands that invoke a completely different set of connotations than the commands execution does
Re: Show HN: Gat – cat alternative written in Go
#26Earlier 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).
Re: Show HN: Gat – cat alternative written in Go
#27If I read the command `gat myfile` I would definitely assume you were trying to delete it with prejudice. I would be surprised to see it print to my terminal. Edit: why downvotes? You can’t use words as commands that invoke a completely different set of connotations than the commands execution does
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"?
Re: Show HN: Gat – cat alternative written in Go
#28Earlier 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
#29If I read the command `gat myfile` I would definitely assume you were trying to delete it with prejudice. I would be surprised to see it print to my terminal. Edit: why downvotes? You can’t use words as commands that invoke a completely different set of connotations than the commands execution does
Why delete?
Re: Show HN: Gat – cat alternative written in Go
#30If I read the command `gat myfile` I would definitely assume you were trying to delete it with prejudice. I would be surprised to see it print to my terminal. Edit: why downvotes? You can’t use words as commands that invoke a completely different set of connotations than the commands execution does
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"?
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.