Most active commenters
  • wredcoll(4)

←back to thread

298 points miguelraz | 15 comments | | HN request time: 1.101s | source | bottom
1. wredcoll ◴[] No.45893122[source]
The terminal of the future is called a web browser.
replies(6): >>45893256 #>>45893400 #>>45893437 #>>45894219 #>>45899282 #>>45900742 #
2. add-sub-mul-div ◴[] No.45893256[source]
That would be quite an own goal, to invite an extra middleman into the mix. Especially when so many people will go the path of least resistance and use a tech giant product as that middleman.
replies(1): >>45893334 #
3. wredcoll ◴[] No.45893334[source]
I mean, what is a terminal emulator? It's a program that displays the output of other programs "inside" it.

Terminal emulators display grids of characters using all sorts of horrifying protocols.

Web browsers display html generated by other programs.

replies(1): >>45894102 #
4. shirro ◴[] No.45893400[source]
It could have been. The platform got taken over by a very different culture and has tended to serve different purposes.

The web solves problems that are almost impossible to properly solve with a terminal, particularly with rendering of more complicated languages and display and interaction with sophisticated visualisations.

Pushing the terminal further while maintaining compatibility, performance and avoiding a terminal war with incompatible protocols is going to be a struggle.

replies(1): >>45895298 #
5. hastamelo ◴[] No.45893437[source]
opened on the chatgpt page
6. unixplumber ◴[] No.45894102{3}[source]
> Terminal emulators display grids of characters using all sorts of horrifying protocols.

What sort of "horrifying protocols"? The entire VT220 state machine diagram can be printed on a single letter- or A4-sized sheet of paper. That's the complete "protocol" of that particular terminal (and of any emulator of it). Implementing the VT220 with a few small extensions (e.g., 256 colors or 24-bit colors) wouldn't be too onerous. I implemented such a parser myself in probably a few hundred lines of code, plus a bit more to do all of the rendering (drawing glyphs directly to a bitmapped display, with no libraries) and handling user input from a keyboard. You'd have a difficult time properly parsing and rendering a significant subset of HTML in less than a few _thousand_ lines of code.

Edit to add: terminal emulators often implement other terminals like VT420, but the VT220 is enough for the vast majority of terminal needs.

replies(2): >>45896181 #>>45900764 #
7. mrandish ◴[] No.45894219[source]
Yes, this was my first thought too. I haven't used a hardware text terminal since the 80s so maybe I don't get where the TFA is coming from? It starts out by stating "This post is part 6 of a multi-part series called 'the computer of the next 200 years'". Given that context, why is the focus on the evolution of 1980s VT100-type protocols? I'm at home and there are over a half dozen different devices within 25 ft which come standard with an HTML browser. Sure, modern browsers have some incompatibilities at the edges but if you're in need of a multi-decade, platform agnostic, lingua franca then W3C minimal baseline HTML/CSS + ECMAscript seems like the obvious winner (with no viable second place really).

Don't get me wrong, I'd be quite interested in a vintage computing discussion on the evolution of VT-100/220 etc terminal protocols. There were some interesting things done into the 90s. That's actually what I clicked in expecting. Of course, those were all supplanted by either XWindows (which I never got to use much) or eventually HTML/CSS. And if we're talking more broadly about structured page description languages, there's no shortage of alternatives from NAPLPS to Display Postscript.

replies(1): >>45895752 #
8. alwillis ◴[] No.45895298[source]
pushing the terminal further while maintaining compatibility, performance and avoiding a terminal war with incompatible protocols is going to be a struggle.

Unless someone creates a cross-platform, open source, modern and standards compliant terminal engine [1].

[1]: https://mitchellh.com/writing/libghostty-is-coming

9. anon7725 ◴[] No.45895752[source]
I don’t know how you work, but I spend a good portion of my day in a terminal while working on AI-type projects.

The terminal never left.

replies(1): >>45896166 #
10. wredcoll ◴[] No.45896166{3}[source]
I'd like to make the distinction between text, indeed, word/command based interfaces and "terminal".

It so happens that right now one is synonymous with the other but there's no instrinsic requirement.

There's probably something to be said for the inherent constraints imposed by the terminal protocol, but, again, we can build the same things without that.

11. wredcoll ◴[] No.45896181{4}[source]
I haven't personally implemented one but I'll quote someone who has spent a lot more time on it:

> Many of these implementations are ad-hoc, one-off solutions. They aren't using any shared library or codebase.2 Terminal emulation is a classic problem that appears simple on the surface but is riddled with unexpected complexities and edge cases.3 As a result, most of these implementations are incomplete, buggy, and slow.4 [1]

(I mean, it's possible html/css deserves to be called horrible also but they produce an undeniably superior result)

[1] https://mitchellh.com/writing/libghostty-is-coming

12. veltas ◴[] No.45899282[source]
Everything they're asking for my head was just screaming the whole time "this is a web browser".
13. rbanffy ◴[] No.45900742[source]
Before that there were screen oriented terminals, of which the 3270 is still in use.
14. rbanffy ◴[] No.45900764{4}[source]
> VT220 state machine diagram can be printed on a single letter- or A4-sized sheet of paper.

Does it cover Tek and ReGIS? Where can I find it?

replies(1): >>45903596 #
15. wpm ◴[] No.45903596{5}[source]
https://vt100.net/emu/dec_ansi_parser

VT500 should include ReGIS