ES version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
33% Positive
Analyzed from 684 words in the discussion.
Trending Topics
#https#web#wterm#ghostty#wasm#terminal#support#seems#big#same

Discussion (18 Comments)Read Original on HackerNews
With AI it's so easy to work on something for a couple days and make it seem production-ready before losing any interest and moving on to something else. I may be wrong but it seems like that's what is happening at Vercel Labs. Pumping out new radically different things, and seeing what sticks.
I wish such kinds of experiments clearly labeled what it was instead of trying to look production-ready. It coming from a big player like Vercel can especially inspire a false sense of trust, when it was just messing around with AI around some idea and then moving on.
1. WASM FFI has a big overhead when interacting with the javascript DOM.
2. Any DOM UI has a big overhead compared to a canvas.
I would be curious to see an actual performance evaluation. This looks like it was built for the wrong tradeoff otherwise...
I have a similar project I haven't touched in a few months.. that said, mine is geared more towards rendering for ANSI-BBS output matching DOS EGA characteristics and correcting for proportion/scale. Mine's in Rust, targeting Canvas and comes in around 50kb (including EGA pixel font embedding), which is a bit larger than this project, which relies on DOM for rendering.
FWIW, I've been meaning to get started on the next part which is a door host that takes WSS connections then running a BBS door for the connection... I'll be taking some inspiration from GHost3 (majorbbs rebooted door host). For now, test renders of .ans files seem to be working very well allong with mouse driven scrollback support.
I'll probably followup with a similar wasm that will support RIPScrip/RIPTerm 1.54 .. not sure if I'll be able to reasonable support v2+, but that would be nice too.
https://github.com/tsl0922/ttyd
I was going to have Cluade do this, but I'm not sure if this is worth the tokens.
https://github.com/coder/ghostty-web/
In fact, it looks like wterm's 12KB plugin doesnt offer full term emulation and uses ghostty to support everything else:
https://wterm.dev/ghostty
[1] https://github.com/xtermjs/xterm.js/issues/3727
I'm curious to see if this weird stack gets ported to the Googlebooks or if they just make a mouse-friendly Android app instead.
There's even some decent options to bridge further the other way, from a terminal to wss back to a terminal based, server hosted, application.