Better HN
topnewbestaskshowjobs
Log inSign up

kylecarbs

288 karma · joined Nov 8, 2018 (8y ago) · 56 submissions

https://x.com/kylecarbs
Submissions

1.

Our $106k Kalshi "Bailout," Explained(greed.bot ↗)

4 points · by kylecarbs · 2mo ago · discuss

comment 4mo ago · link · parent

(joining very late to the thread, but for future readers)

Coder requires zero internet-access, many of our customers run entirely airgapped. We _currently_ create an HTTP tunnel for first-time users to their Coder instance for a smooth setup. This removes the need to expose their deployment for workspace infra (e.g. EC2 VMs) just to try it out.

We could communicate this more clearly in our UX, which I'll fix up!

comment 5mo ago · link · parent

This is the exact use-case Boo is made for!

comment 5mo ago · link · parent

Apologies, half of this indeed was. As I was iterating on the README this seemed apt, but I will refrain!

comment 5mo ago · link · parent

Cmux is a standalone terminal. Boo is a command-line similar to screen, backed by libghostty for terminal emulation.

comment 5mo ago · link · parent

Just published v0.5.13 which should fix this! It seems to be a path issue. Now boo falls back to tmpdir for storing sockets.

comment 5mo ago · link · parent

I want boo to be a screen replacement, not a tmux replacement. tmux gives you a whole workspace: layout, scrollback, copy mode, a status bar. screen's appeal was that it did almost none of that: sessions, a prefix key, done. boo keeps that model and swaps the emulation for libghostty so reattach actually redraws correctly.

They also compose: a boo session is just a PTY running a program, so you can run tmux inside one if you want.

comment 5mo ago · link · parent

I'll take a look at this now. Thanks for reporting!

comment 5mo ago · link · parent

Fair. Adding a section for this now.

screen actually works the same way architecturally: it parses all output through its own built-in terminal emulator and redraws from that state on reattach. But that emulator is decades old and lags far behind what modern programs emit. Whatever it doesn't understand gets dropped or mangled on redraw. boo swaps that layer for libghostty-vt, Ghostty's VT core, so the saved state matches what your terminal would actually display, and terminal queries get answered while detached so TUIs don't hang unattended.

tmux is great, it was just never the model I wanted. I really liked screen's simplicity, sessions and a prefix key and nothing else to learn, and boo keeps exactly that.

10.

Show HN: Boo – Screen-style terminal multiplexer built on libghostty(github.com ↗)

95 points · by kylecarbs · 5mo ago · 28 comments

comment 11mo ago · link · parent

Bun has completely changed my outlook on the JS ecosystem. Prior to Bun, there was little focus on performance. Now the entire space rallies around it.

Congrats to Jarred and the team!

comment 11mo ago · link · parent

Taking a look now - thanks!

comment 11mo ago · link · parent

I'll take a look - not sure what's going on. I'll remove it from the README for now since it's not working in the demos.

Thank you for letting me know!

comment 11mo ago · link · parent

Thanks for being a user :)

comment 11mo ago · link · parent

They are approximations but Ghostty has intentional effort towards correctness, more than I've seen from other terminal emulators.

comment 11mo ago · link · parent

Agreed. I removed "not a JavaScript approximation of one" from the README.

comment 11mo ago · link · parent

This is awesome, thank you!

comment 11mo ago · link · parent

It should work! Our demo may not (as I haven't tested it, so don't want to advertise it).

comment 11mo ago · link · parent

Added it to the README! Thanks again :)

comment 11mo ago · link · parent

See the comparison: https://github.com/coder/ghostty-web?tab=readme-ov-file#comp...

Ghostty has much better VT100 compatibility. It should have much better performance as well once we optimize.

comment 11mo ago · link · parent

Let me know if you encounter any issues! I'm working on performance benchmarks now.

comment 11mo ago · link · parent

Will do this!

comment 11mo ago · link · parent

That would be great!

`npx @ghostty-web/demo@next` starts an HTTP server on `localhost:8080`, so you could just wrap a basic Dockerfile with NPM installed (and maybe a variety of fun Linux tooling, ala vim).

Feel free to shoot me an email: kyle@coder.com. I'll happily add it to the README.

comment 11mo ago · link · parent

It's tricky to do without a compute environment.

We can easily make a browser shell that let's people run basic commands, but presumably most want to try `vim` and other commands they'd typically invoke.

comment 11mo ago · link · parent

I'd have to let Mitchell answer this accurately.

Considering the native Ghostty does, I _think_ the answer would be yes? I might tinker around with this and let you know.

comment 11mo ago · link · parent

Awesome. If you happen to integrate it and find any bugs, please give us a shout!

comment 11mo ago · link · parent

They could certainly compile Ghostty and link into it from Rust. I couldn't imagine it'd be that large of an undertaking.

comment 11mo ago · link · parent

Yup, that's the idea!

comment 11mo ago · link · parent

Neat. I'll take a look. Thanks Syrus!

comment 11mo ago · link · parent

We spent little time on performance so far, this is more of a POC that will hopefully become a drop-in replacement for xterm.js over time.

I'll swap it over to the new RenderState API and post some benchmarks!

Many kudos to y'all, we were shocked how simple it was to hack this together.

12