Live data from Hacker News

Libghostty is coming

mitchellh.com

241–250 of 275 posts

Re: Libghostty is coming

#241

Earlier quoted context omitted.

It's nowhere near ready but I made a gist: https://gist.github.com/VinceGuidry/b44f02117d452bde7471dae2... I like crystal but without pure OO and the fact that the community is so far behind Go or even Scala it's hard for me to see a good use for it. You can create static binaries with ruby, just use mruby. I had a bunch of small scripts in crystal that I replaced with mruby and never noticed the difference. You don'…

If mruby can make static ruby then that is actually kinda great, I didn't knew that. I was thinking more of in terms of performance for some similar developer experience Pardon me but isn't crystal OOP? i feel like it was because I was introduced to crystal lang via some youtuber some long time ago and the comments said that they didn't use because it was OOP Also if mruby is so great (which it sounds here), then sur…

Crystal is object-oriented, but isn't a pure object system. In a pure object system, literally everything is, or can be turned into an object. Smalltalk is the only other example of a language family that offers a pure object system.

With a pure object system everything is accessible by the system at runtime. It's ruby's biggest strength, but also the superpowers it grants aren't always used for good, which is why a lot of coders hate working in it. I only code for myself, my coding career is behind me, so I don't have to worry about other people's code.

Mruby's big downside is precisely that it's compiled, so the library base available is very small, and there's not much point in building on it, though a few projects have, such as DragonRuby. It also doesn't have a pure object system. Ruby has thousands of gems, mruby dozens, and you can see them all on this page: https://mruby.org/libraries/

https://dragonruby.org/

Static typing is also available in ruby but I understand it's clunky.

Re: Libghostty is coming

#242
post #222

Earlier quoted context omitted.

>> Am I missing something? No, you're not but I did! So GPL then. Maybe I just wanted to make up a scenario. I'm not sure why MIT/BSD have become so popular, they have their place but I don't think they have any place in software infrastructure.

I truly don’t understand nor follow what you mean? What makes MIT/BAD bad for software infra?

>> I truly don’t understand nor follow what you mean? What makes MIT/BAD bad for software infra?

You should have access to the source for your infra as a user of it. MIT/BSD allow people to deploy without offering source, so they can do whatever they want with it and then you get to use it. TiVoisation is more than possible among many other user-hostile options. "But you can always get the source!" is not a valid response - you can't get the source for this thing that's running right now.

Freedom to deny other peoples freedom is no part of "Free Software" but it goes on all the time with "Open Source".

Re: Libghostty is coming

#243

I really want to like Ghostty but: - Still no ⌘F for find. - No way (that I know of) to select previous output or specific string and copy with only keyboard shortcuts. - No ⌘. sending CTRL-C (muscle memory and being advertised as native to the Mac is what one would expect). - Fonts still don't render as nicely as in Terminal.app. I've fiddled with `font-thicken-strength` and it's close, but not quite. Probably impos…

A few other ugly quirks in Linux: - It doesn’t respect the user’s configured fonts. - Clipboard support is inconsistent. - The GTK4 UI is quirky, and has silly slow animations in situations which don’t make sense. The first two sound like more serious issues, and I’m surprised that others haven’t found them dealbreakers.

Interesting, are there issues on the tracker pertinent to those problems?

Re: Libghostty is coming

#244

Earlier quoted context omitted.

Sometimes you just have a command write output.

I'm still not quite sure what you mean. You can still {|,>} output from a program, so less and grep still help. Or do you mean when you inevitably forget? Well then yeah you're at the mercy of your terminal but as others mentioned ghostty has a hack to help as well as some other terminals. But this should also help reinforce why you should pipe more often and write to files (or tee). It sucks but not making the same…

> "you can't analyze the data you didn't record"

It IS recorded. It's right there in scrollback (Literally the default buffer to record). It's easily accessible with most tooling, including nice scrolling, mouse support, find/search, etc...

Except in Ghostty, it's not so accessible. No find, no scrollbars.

I end up having to dump it into another tool, which at least they make pretty easy (ex: https://ghostty.org/docs/config/keybind/reference#write_scro...).

Although deciding when to do that would be easier if I had a better indicator for just how much scrollback content exists. Ex - if it's 3 pages... I'll just scroll through it. If it's 3000 pages... time to dump to file.

So no - by default I use a pager... just about never. Why would I when I have absolutely everything in scrollback by default 99.9% of the time?

---

Don't confuse your preferences with "correct" :P

I'm doing just fine with code and best practices, I'm simply stating that this is a rough edge on an otherwise lovely tool.

Re: Libghostty is coming

#245
post #192

Earlier quoted context omitted.

I love ghostty. The only thing that is missing is a find feature which is such an odd omissions for an incredible piece of software.

In the latest version Shift + ctrl + alt + j copies the entire screen and opens it in what I assume is $EDITOR (maybe this can be configured). Or just shift + ctrl + j to copy the screen to temp file and pate the path. Either way, it then just becomes configuring it to use a pager by default, or `shift+ctrl+j` and then | less. This is similar to how kitty does search, by essentially outsourcing it to an external page…

Kitty at least let's you control the program used, and even set up different bindings for different programs.

Re: Libghostty is coming

#246

Earlier quoted context omitted.

Mitchell and bellard and to somewhat degree fwsgonzo (you might not know him but I absolutely like his work on libriscv, the game he's working and the kvm sandbox which he's working on too) are my definitions of literal coding chads. People should really measure coding proficiency as being 10% of these guys or some fraction instead of whatever metric they are using now (slightly kidding ofc) They are the 10x develope…

Ive worked with 10x people before. All these people you mention and Torvalds too seem to be 100x developers.

How could I've forgotten the legendary torvalds!

Sqlite team also seems to be one of the 100x people imo. Maybe I just cherish sqlite's simplicity and its hyperfocus and it delievers exactly what it says (somewhat), a lot!

Definitely feel like we need a forum where we can all compile a list of 100x developers and vote who is the best 100x developer

I feel like although Mitchell is up in the top three. To me bellard/torvalds tops it all of if you consider it from a pure software perspective and not that Mitchell went back from a billion $ empire to hacking again

Bellard has created qemu and ffmpeg and tcc/jslinux/ I think even xterm js kind of came somehow due to bellard so a lot of terminal emulators and their recent work is just as fascinating.

Torvalds with linux and git are two back to back things which we know and love and use today.

Bellard is just a little less known because unlike linus torvalds who named the os as linux ie. after himself. Ffmpeg and qemu don't really tell them that they are created by the same guy.

Re: Libghostty is coming

#247

The passion and attention to detail Mitchell has for developer experience is beyond me. I remember the first time I used Vagrant (2011, Santa Monica California) like it was yesterday it was that impactful. I never thought in a million years I would even think of ditching iTerm2 but when Ghostty dropped I installed it and fell in love.

What exactly does it do better than iTerm2? I gave it a try a few weeks ago and wasn't at all impressed, but maybe I just don't know what I'm missing.

Great question. For me it feels faster (anecdotally) and certain TUI components don’t break. It also is probably my bias of loving his work as well as everyone at work using it. Hive mentality I suppose.

Re: Libghostty is coming

#248
post #164
post #110

Earlier quoted context omitted.

What good is grep if you want to search the build log on your screen that took an hour in the making? Should have thought of tee-ing it, well duh.

You just rawdog that to stdout without a log file?

If I don't anticipate problems, or things are slower than I thought? Sure

Re: Libghostty is coming

#249
> All of this is packaged up into a single zero-dependency C API (it doesn't even rely on libc), allowing it to be easily embedded into any popular language ecosystem.

@mitchellh That's super exciting. I'm wondering how easy it would be to integrate in the debugger frontend I'm working on. Do you already know what the C API will look like?

Re: Libghostty is coming

#250
post #178

Earlier quoted context omitted.

I use terminology today, which is also "fast." The major issue I run into with ghostty vs terminology is that ssh in ghostty is broken due to the terminfo thing. I don't fully understand why ghostty can't pretend to be a different terminal that remotes know about (for now), but I assume there's some reason.

Have you tried the suggestions in https://ghostty.org/docs/help/terminfo#ssh ? I don't know what issue you may be experiencing but this solved my issue with using htop in an ssh session.

For another approach, personally I found just doing `TERM=xterm-256color ssh ` more practical than the solutions at https://ghostty.org/docs/help/terminfo#ssh
Post reply on HN