News for hackers. Stuff that matters.
Re:Upterm – A terminal emulator and interactive shell based ... by kccqzy on Thursday September 21, 2017 @06:32AM (#15302051)
How's the performance? GNU yes can produce output at more than 10GB/s. Does it cope well with that? How about lots of output that contains lots of escape sequences?
Re:Upterm – A terminal emulator and interactive shell based ... by rwmj on Thursday September 21, 2017 @06:45AM (#15302111)
Latency is more important than performance.

https://danluu.com/term-latency/ (Previous discussion: https://news.ycombinator.com/item?id=14798211)

Re:Upterm – A terminal emulator and interactive shell based ... by shockone on Thursday September 21, 2017 @06:46AM (#15302118)
Performance is definitely worse than in iTerm or gnome-terminal, but it's improved a lot in recent Upterm versions, and we plan to improve it further. I'd say it's good enough, but you can try yourself.

Recently there was this terminal performance test https://danluu.com/term-latency/

The author says that the most important things are typing delay and how quickly you can Ctrl+C a command, not how much text it prints per second. Upterm is good at both.

Re:Upterm – A terminal emulator and interactive shell based ... by etatoby on Thursday September 21, 2017 @10:09AM (#15303541)
> Performance is definitely worse than in iTerm or gnome-terminal

Considering I dropped those because I consider them slow and bloated, good luck with this Electron monstrosity.

You can have my RXVT when you pry it from my cold, dead hands.

Re:Upterm – A terminal emulator and interactive shell based ... by creshal on Thursday September 21, 2017 @08:59AM (#15302855)
> Performance is definitely worse than in iTerm or gnome-terminal

I dropped those because they're magnitudes slower than urxvt. You managed to make a terminal emulator that's even worse?

Re:Upterm – A terminal emulator and interactive shell based ... by phren0logy on Thursday September 21, 2017 @09:04AM (#15302898)
Hey, I bet nobody will force you to use it or help develop it.

Not every tool fits everyone’s needs. Some tools might only be useful to a few people.

No need to be rude about it.

Re:Upterm – A terminal emulator and interactive shell based ... by Diti on Thursday September 21, 2017 @09:04AM (#15302901)
I don’t mean to spark a controversy, but that’s what happens when you use Electron.
Re:Upterm – A terminal emulator and interactive shell based ... by trapperkeeper74 on Thursday September 21, 2017 @09:41AM (#15303244)
LOL. I dropped Atom back to Vim the same reason.. electron apps are just too slow and memory-hogging compared to native apps.
Re:Upterm – A terminal emulator and interactive shell based ... by zbentley on Thursday September 21, 2017 @09:24AM (#15303057)
Not to dismiss concerns about terminal performance, but if you need a terminal to keep up at ten gigabytes per second of data, I question your goals* . How can you seek in that much data? Will you page-up or scroll for hours to find what you need? Past 1GB in the buffer, even iTerm2s search functionality lags out painfully, but . . . so does grep, on a file that big.

There are other aspects of terminal performance that are very important, and you may have meant to point towards those, but as it is this comment just reads as bikeshedding. "Performance is (a|the most important) feature" refers to performance in areas that matter.

* And yes, I know that yes(1) can be used for performance/stress testing of systems by outputting endlessly. Doing that to a human-consumed TTY seems like an example of spacebar heating: https://xkcd.com/1172/

Re:Upterm – A terminal emulator and interactive shell based ... by creshal on Thursday September 21, 2017 @11:13AM (#15304234)
> Not to dismiss concerns about terminal performance, but if you need a terminal to keep up at ten gigabytes per second of data, I question your goals* .

I don't want OOM killer to murder everything just because I accidentally catted a 1 GB file to stdout rather than another file. Or accidentally catted the .iso rather than the .iso.asc. Nor do I want to wait 5 minutes for the terminal to render it all.

Sure, accidents don't happen every day, but it's a massive inconvenience if it does. It was enough to make me abandon all feature-rich VTE based terminals in favour of rvxt.

Re:Upterm – A terminal emulator and interactive shell based ... by zbentley on Thursday September 21, 2017 @11:25AM (#15304375)
Those are good points about stability and memory usage, but I'm not sure what they have to do with performance. I'd be surprised (well, not that surprised, but a little surprised and disappointed) if terminal programs were actively storing all of data they read out of pipes into memory before displaying it, rather than a read-some/print-some informally buffered approach. Similarly, I don't think holding the data in the "displayed output" state is going to OOM your terminal out of the box: I get the impression that most terminal programs have a fairly conservative history-line-buffer size in order to avoid this family of problem.

This isn't the same as crashing/hanging your terminal's command-output parser (depressingly easy in Upterm) due to volume; when that happens, the process writing tons of data (cat my_huge_file.dat) will fill up its STDOUT pipe and usually block until the situation is resolved. I think that stability-in-the-face-of-large-output behavior is what you're referring to, rather than OOM killing, in which case I agree wholeheartedly that the behavior of terminal systems (and remote shell systems, etc.) is distressingly bad in the face of large-data influx situations.

Re:Upterm – A terminal emulator and interactive shell based ... by 013a on Thursday September 21, 2017 @10:13AM (#15303592)
Usually performance in GNU yes is a canary for other bad performance. Its more like saying "if you can handle yes, you can handle anything." I've legitimately crashed hyper term (another electron-base term) when dumping other large amounts of data, like in large log files.