News for hackers. Stuff that matters.
Re:Tabby: A terminal for a more modern age by artdigital on Wednesday July 05, 2023 @07:00PM (#36608401)
I see some electron stuff in there, looks to be another electron one?

I’m genuinely curious if people just don’t care. I’m very battery aware and when I’m operating on battery power I make a conscious decision to not use electron or chromium stuff, so: sublimetext, kitty, safari, and so on. My battery on M1Max lasts me ages this way

On AC power I don’t care and have a bazillion electron things running, but I still notice a pretty big difference in battery drain when unpowered

Re:Tabby: A terminal for a more modern age by Pannoniae on Wednesday July 05, 2023 @07:07PM (#36608488)
I have a powerful desktop with good cooling. I still care. I sometimes get really annoyed when I see a non-productivity or non-game software using more than 500MB of RAM. It just doesn't have to, but it does it anyway.
Re:Tabby: A terminal for a more modern age by jgalt212 on Wednesday July 05, 2023 @07:32PM (#36608743)
I agree. It shows lack of care.
Re:Tabby: A terminal for a more modern age by nerdponx on Wednesday July 05, 2023 @07:52PM (#36608948)
For the modern age indeed.
Re:Tabby: A terminal for a more modern age by jkubicek on Wednesday July 05, 2023 @07:26PM (#36608691)
I'm not sensitive to minor performance issues, but I am very sensitive to apps that don't behave like a native macOS app. I want all my preference windows to look the same, I want to use native spellchecking everywhere, I want to use the Applescript/Automator/Shortcuts that I've been adding to the services menu over the years.
Re:Tabby: A terminal for a more modern age by imbnwa on Wednesday July 05, 2023 @07:07PM (#36608483)
> I’m genuinely curious if people just don’t care

Terminal emulator is just too competitive a market to even consider one implemented in Electron, particularly on macOS where iTerm2 exists.

Re:Tabby: A terminal for a more modern age by pxc on Wednesday July 05, 2023 @07:21PM (#36608626)
iTerm2 and Kitty both cover the specific kind of terminal Tabby seems to be going after in particular: 'batteries included', modernized, extended with new features, right integration with the shell, special SSH and tmux integrations, etc. If you're into bells and whistles and moving beyond xterm's capabilities, there are multiple strong contenders for Mac, and eschew web tech in favor of native code.
Re:Tabby: A terminal for a more modern age by imbnwa on Wednesday July 05, 2023 @07:56PM (#36608982)
Yeah I run WezTerm now but came from Kitty, which is indeed wild with the features.
Re:Tabby: A terminal for a more modern age by pxc on Wednesday July 05, 2023 @11:23PM (#36610726)
What made you go for Wezterm over kitty? That one's on my list of terminals to give a try in place of iTerm2 this year but I don't know much about it. (I just use DE defaults on Linux, but I'm back on macOS again at work and Wezterm is a lot more mature now than it was last time I was here.)
Re:Tabby: A terminal for a more modern age by imbnwa on Thursday July 06, 2023 @11:33AM (#36617604)
Lua config
Re:Tabby: A terminal for a more modern age by artdigital on Wednesday July 05, 2023 @08:40PM (#36609377)
Hyper is very popular, which is also in electron
Re:Tabby: A terminal for a more modern age by tiltowait on Wednesday July 05, 2023 @07:51PM (#36608933)
Writing a terminal emulator in Electron just seems like a bonkers idea to me. Heck, choosing to start a new project in Electron baffles me.

Any replacement terminal emulator has an uphill battle against iTerm2 and Warp. Making it Electron is needlessly hamstringing.

Re:Tabby: A terminal for a more modern age by mostlysimilar on Wednesday July 05, 2023 @07:59PM (#36609012)
iTerm2 I agree with, but Warp? Does it have any real adoption? The company has taken ~$70 million in venture capital funding and the product requires an account/sign-in. Even if the product itself has good features I would not touch it.
Re:Tabby: A terminal for a more modern age by ctvo on Wednesday July 05, 2023 @08:38PM (#36609360)
It’s pretty bad. I can’t imagine paying for it. “Impressed” by it, in what way?
Re:Tabby: A terminal for a more modern age by jauntywundrkind on Wednesday July 05, 2023 @08:18PM (#36609157)
I watched a coworker screen share using Warp & was heavily impressed.

Warp have set a big hurdle to get over by making the top-of-funnel so harsh a winnowing function. But every time I see criticism against Warp, it's one and only one point. I'm not so willing to completely rule out & discard technology because it has one particular gotcha that yes i too snobbishly would reject.

Letting oneself be too quickly polarized is a weakness. We have to be willing to consider that we're wrong, that factors we think are important might not matter as much as they do. Or to consider that our perspective/assessment is wrong (such as assuming Electron is always a enormous resource hog).

Re:Tabby: A terminal for a more modern age by el_memorioso on Wednesday July 05, 2023 @08:46PM (#36609429)
What in Warp heavily impressed you?
Re:Tabby: A terminal for a more modern age by jauntywundrkind on Wednesday July 05, 2023 @09:28PM (#36609743)
The popover historic-sensitive autocomplete was incredibly helpful & superbly semantically aware.

The separators between commands enhanced readability in ways I would never have guessed possible.

Re:Tabby: A terminal for a more modern age by aaravchen on Wednesday July 05, 2023 @11:10PM (#36610603)
See that's one of the things that _didn't_ impress me. It's basically just a fancier way of doing what's already available in stock Fish installs and slightly tuned zsh ones.
Re:Tabby: A terminal for a more modern age by jauntywundrkind on Thursday July 06, 2023 @12:27AM (#36611281)
Well apologies I guess for not making my case better, geeze. It's not easy to describe in words.

The visual indicators here were incredibly clear. The terminal's ability to go beyond textual representations & to clearly delineate - with nice slick graphics that far surpass the terminal - what's happening was deeply compelling, in a way I never would have guessed before seeing it.

I've tried some pretty nice/fancy neovim setups (mostly discarded, now on AstroVim 3) and while I appreciate what they can offer, I can't emphasize enough how great Warp was at presenting information in an effective fashion. The visual experience really understood what helpful information it could present in a powerful way.

Being skeptical that "just a fancier version" has nothing to offer you seems like a callous & shallow disregard. My experience was brief, maybe 30 minutes, and I want to do better justice & I'm sorry I haven't. But you also haven't left the door open to maybe consider that the fancier version is fancy for good reasons, that it has real & competent ergonomic & informational value. Let's meet in the middle & both try to do better.

Re:Tabby: A terminal for a more modern age by drcongo on Thursday July 06, 2023 @05:00AM (#36613170)
I've also been rejecting it out of hand, but downloading it now having read your comment. It would need to go a long way to supplant my iTerm2 / Fish set-up, but I'm intrigued.
Re:Tabby: A terminal for a more modern age by mcpackieh on Wednesday July 05, 2023 @08:31PM (#36609281)
"Warp is a modern, Rust-based terminal with AI built in"

Fucking... what? AI built into a terminal emulator? Huh??

Into a shell or a text editor I could understand, but into a terminal emulator?

Re:Tabby: A terminal for a more modern age by jauntywundrkind on Wednesday July 05, 2023 @08:16PM (#36609141)
The number of us that run vscode is very high. Vscode is exceedingly performant & efficient. I doubt I lose 20 minutes of my 8+ hour runtime on those days I switch from Neovim to Vscode fulltime. It's just not a factor, and hemming & hawing is a waste of emotion. Being a fidgety worry-wort here is a waste of my vital life energy, would make my life worse.

Like any application, enough bad code can ruin a good thing. If you install a couple dozen extensions in vscode, there's some odds one or two will have a real impact on resource usage. And I think all codebases are like this: performance is fragile. It has to be cared for, ongoingly. Projects tend to become slower over time. It doesn't matter your stack, your technology: vigilance is required. Caring is required.

When people think of Electron, they think of Slack. (Or maybe Discord, but honestly it's way down on my list of cpu used versus other things, and it's <200MB RSS across dozens of servers & hundreds of rooms is tiny.) These form very strong preconceptions. I wont tell you you're wrong, but you need to think very clearly about what could possibly change your mind. There's a lot of people not open to the possibility that they're wrong, that Electron has no problem and is fine, or even worse of a locking-yourself-in tragedy, could ever possibly become fine. And that's a problem.

(I do wish we had a shared-library alternative to Electron, which would lower effective memory use heavily. Alas, alternatives like the well known Tauri use a woefully inferior Webkit2 engine, which is a cure far worse than the disease.)

Re:Tabby: A terminal for a more modern age by jemmyw on Wednesday July 05, 2023 @08:47PM (#36609436)
Vscode does a ton of stuff though and it can perhaps justify it's electron with a broad set of features, the performance work they've put in to it and that being based on electron really helped their extension ecosystem. I don't quite see the same justifications for a terminal.
Re:Tabby: A terminal for a more modern age by jauntywundrkind on Wednesday July 05, 2023 @09:34PM (#36609802)
If vscode can do so much and have such a slim profile, it's hard for me to grapple with the idea that we need to justify using the same technologies for a terminal. The impact is negligible, for a massive incredibly capable & superbly complex app.

Many of us spend enormous times in our terminal. If we are going to likewise have a nearly negligible impact on battery life and memory usage, it feels like such an effete elite overconcern to fret about the technology. If Tabby can create a much more malleable flexible terminal that lets us explore possibilities quickly, at such a minimal cost, I think it would be foolish to spend time weighing & "justify" that price. We should explore what possibilities this opens.

Re:Tabby: A terminal for a more modern age by jemmyw on Wednesday July 05, 2023 @09:59PM (#36610028)
Vscode doesn't have a negligible impact on battery life though. Depending on the project I'm working on it can be the most battery draining program. That's the cost of the features. Can a terminal justify those kind of features for the same exchange? I've tried various and settled on kitty.
Re:Tabby: A terminal for a more modern age by jauntywundrkind on Wednesday July 05, 2023 @10:10PM (#36610134)
What's your impact? For me, vscode under 5% difference in battery life (as per the math on my original post, 20 minutes across an 8 hour work day). With an 8 hour battery, that just doesn't matter to me.

If we kept having to add up 20 minute penalties maybe we'd get somewhere, but I doubt we'd see that kind of direct add. The simple logic is: it's unlikely that multiple apps are both being heavily used.

I just can't see it making a real difference for even 1% of people even 10% of the time. It's just not a real problem. I'd say there's too much clutching at pearls, but people have a right to be sad about bad apps, and there are bad apps built in Electron. Just like there are bad native apps that suck battery & have to be left on for work too, but people never credit in that consideration.

Re:Tabby: A terminal for a more modern age by jemmyw on Thursday July 06, 2023 @02:41AM (#36612169)
If I look at the top 10 CPU used time items for me, with an uptime of 14 days, it's 6 vscode processes and 4 macos processes (I count 15 other vscode processes in the whole list which seems insane!)

Calculating battery usage is pretty hard, I can only go by the observation that I have 2 vscode projects. One is a rails app and vscode doesn't do a heap of stuff for ruby code, battery drops very slowly. The other is a typescript project and when I work on that my laptop steams through the battery, and I know its vscode because I see its usage go up as I edit files. It's not insignificant.

As I said, vscode gives me a lot in return for this. It has 2 windows open. I've got 10 terminal windows open and kitty has 1 process. That is a program with actually negligible impact on battery life, lag, memory usage etc. If every program is electron then the problem compounds.

Re:Tabby: A terminal for a more modern age by jauntywundrkind on Thursday July 06, 2023 @02:58AM (#36612275)
Top 10 on my MacBook is usually still gaspingly tiny utilization; it means almost nothing. I feel like we are back where I started: I doubt your vscode would be significantly different than my neovim. That's been my experience. I definitely lose some power keeping tsc watch running and having LSP update itself. And having projects reload. But these aren't fault of vscode - these all run when I'm using neovim too. Amid these processes vscode seems unimportant. If it is a drain, evaluate your plugins & find who is the problem.

I already explained why having multiple electron apps likely doesn't compound the problem: you're only one user. It's very infrequent that you'll be heavily using multiple apps. Even if you are, the likelihood is that the resource usage is being spent on real work, doing heavy transportation or type checking or whatever it is pumping data at your console. There's a significant chance that worrying about the cpu usage of the gui is pointless & irrelevant by comparison.

Re:Tabby: A terminal for a more modern age by jemmyw on Thursday July 06, 2023 @03:53AM (#36612652)
It is vscode's built in typescript lsp as far as I can tell.

I'm not sure what you're arguing at this point. I use vscode, its fine, it has a lot of gui and I'm happy with it. I don't mind its electron. It uses a lot more resources than my terminal. It has a non-negligible affect on the battery life. As do the 2 chromium based browsers I use and slack.

This is about features vs resources. Vscode, lots of gui, extensions, tons of features, I think the tradeoff is fine. Browsers, even more flexible interface, the tradeoff is OK. Slack - not ok, I do not feel it offers enough for the resources and sluggishness it uses. How many times have I had to kill a runaway slack or browser process? Too many. It's very irritating to realize your battery has been drained because of one of these things.

Now you seem to be blaming the authors of these programs because not every electron based program has this kind of issue (actually if I think back I think vscode is the only one that has never had a repeating runaway process problem that I've used on a regular basis). My argument is that it seems to happen often enough that its something inherent to electron apps. I don't want another common application in electron, one that really doesn't need the benefits that electron provides. The terminal is one. IMO text chat is another.

Edit: I had to go out before I could edit this unintelligible mess. Bottom line, I'm not anti electron. It has benefits. But there are real tangible downsides too and I've experienced those downsides. I think it's not the right tool for a terminal program or a chat program. It makes sense for a rich dynamic ui where the kind of layouts a browser engine is capable of is beyond the complexity of native widgets.

Re:Tabby: A terminal for a more modern age by jagged-chisel on Wednesday July 05, 2023 @08:32PM (#36609292)
> Neither is it lightweight - if RAM usage is of importance, consider Conemu or Alacritty

This speaks volumes

Re:Tabby: A terminal for a more modern age by rubicks on Wednesday July 05, 2023 @08:47PM (#36609435)
I am fundamentally and ideologically opposed to using a terminal emulator implemented in electron.

If you feel similarly, then you might enjoy https://st.suckless.org/

Re:Tabby: A terminal for a more modern age by kaba0 on Thursday July 06, 2023 @01:33AM (#36611690)
I believe the suckless project is going way into the other direction. There is a reasonable middle ground of having proper, 21st century features, yet not using much more resources than needed.

Konsole, alacritty, gnome-terminal all manage to struck that niche well.

Re:Tabby: A terminal for a more modern age by thefz on Thursday July 06, 2023 @03:03AM (#36612316)
> I’m genuinely curious if people just don’t care.

Won't touch that application with a stick, especially from my laptop.