News for hackers. Stuff that matters.
Re:Ghostty 1.0 by tessierashpool9 on Friday December 27, 2024 @04:01AM (#42520854)
why don't you just pipe it into a file and then less it? if your redis stuff prints so much stuff you might want to reevaluate the respective program logic.
[dead]
Re:Ghostty 1.0 by antirez on Friday December 27, 2024 @04:36AM (#42521003)
Haha, the question makes sense per se but there are definitely times where you want to see the output in real time. I'm a big fan of printf-debugging :D
Re:Ghostty 1.0 by noisy_boy on Friday December 27, 2024 @10:43AM (#42523067)
It feels good to hear support for printf-debugging coming from such esteemed corner. I have been doing that for a significant majority of my career instead of dropping into debugger. The side effect is you become pretty good at crafting meaningful logs.
Re:Ghostty 1.0 by antirez on Friday December 27, 2024 @04:35AM (#42520991)
Sure, I redirect when there is to redirect, but sometimes during debugging you want to spam yourself to see what is happening during some stress testing when some code path is full of printfs. Also sometimes I'm just on the redis-cli and to test the system at scale I directly ask (like yesterday) for half million of similar vectors. It is very convenient I can type this on the CLI and see the result immediately, instead of flooding myself for seconds or minutes.
Re:Ghostty 1.0 by tessierashpool9 on Friday December 27, 2024 @05:15AM (#42521151)
so, it's convenience. fair enough. i'm just trying to make sense of why it is so popular on hn. i often see stuff rated to mount everest here and i just don't get it. and then i'm wondering is it me? or is it them? am i one of those weak engineers who just don't know what's going on? that's all.
Re:Ghostty 1.0 by robenkleene on Friday December 27, 2024 @07:05AM (#42521517)
Since you asked, your point above effectively says "why don't you just work around your terminal emulator being slow by making more work for yourself?" That's not a compelling argument.
Re:Ghostty 1.0 by tessierashpool9 on Friday December 27, 2024 @09:00AM (#42522090)
not really - the use case mentioned where you suffer from a slow terminal is a code smell as far as i am concerned
Re:Ghostty 1.0 by dcre on Friday December 27, 2024 @09:59AM (#42522558)
No it isn’t.
Re:Ghostty 1.0 by klohto on Friday December 27, 2024 @07:56AM (#42521739)
“why would you want your work to be easier” — yea, it’s you
Re:Ghostty 1.0 by dang on Friday December 27, 2024 @04:33PM (#42526243)
Please don't be snarky or cross into personal attack. We're trying for the opposite here.

https://news.ycombinator.com/newsguidelines.html