sjmulder / trickle

600 baud pipe and terminal.
BSD 2-Clause "Simplified" License
106 stars 5 forks source link

Why not use pv -L ? #4

Closed q2dg closed 7 years ago

q2dg commented 7 years ago

I can't see the usefulness of trickle existing this other well-known alternative I'd glad to be lighted. Thanks!

sjmulder commented 7 years ago

I wasn't aware of this pv feature, thanks for mentioning it. Now I feel twofold. First, this little project is borne out of curiosity and intended to be interesting more than useful. But it's useful to me because I enjoy playing with it. In hindsight, that curiosity might have been satisfied by pv.

Secondly, I refer to Pike and Kerninghan's 1984 paper Program design in the Unix environment.

It makes a case for keeping responsibilities between Unix programs separate: one program for concatenating things, another for numbering lines, and so on. In line of that thinking I feel that pipe throughput limiting is not the responsibility of a pipe visualiser and should be a different program.

Probably not trickle though, because that's expressly intended to only simulate very low bitrates. It doesn't account for nanosleep() inaccuracy or overhead either.

q2dg commented 7 years ago

Ok, thanks a lot for your explanation! If you don't mind, I'll close the issue, then

sjmulder commented 7 years ago

Cheers!