koki-develop / gat

🐱 cat alternative written in Go.
MIT License
215 stars 9 forks source link

Fails to be a `cat` alternative #22

Open nekr0z opened 1 year ago

nekr0z commented 1 year ago

tail -f some_log_file | cat works, tail -f some_log_file | gat doesn't.

yes | cat works, yes | gat doesn't.

cat a_file_70_GB_in_size works, gat a_file_70_GB_in_size isn't even worth trying (as you're reading the whole file into memory before processing).

Call it what it is: a console pretty-printer. It is in no way a cat alternative, not the same ballpark, not the same league, hardly even the same sport!

koki-develop commented 1 year ago

@nekr0z As you say, gat is not a perfect replacement for cat, and there are many things that need to be improved. Indeed, the specification of reading the whole file before processing is bad... 🤔

I will consider and verify if there is a way to improve it! Thank you for opening the issue!