Live data from Hacker News

SSH Remoting

zed.dev

201–210 of 227 posts

Re: SSH Remoting

#201

Those who do not understand Emacs are doomed to repeat it. Poorly, in worse languages. —C.S. Santayana Emacs TRAMP mode has been doing this for 26 years, since November 1998. Fashions come, and fashions go, and Emacs remains. Anyone remember Atom? Anyone remember TextMate? Just use vi or Emacs.

Don't many editors have the feature of allowing remote editing through ssh?

There was discussion here a few days ago for example of an Acme clone named Anvil, which has the feature, as does Acme.

VSCode has it.

Also, TRAMP is a poor (unreliable, fragile) implementation of the feature. Or at least it was the last time I used it regularly about 10 years ago.

Finally, if you have to resort to quoting a slogan then it is probably better not to comment at all.

Re: SSH Remoting

#202
post #10

I switched to Zed for C, C++, Rust, Angular, and am extremely happy with it. I use it with it's vim mode, which is very good. For the record, I've tried the JetBrains suite for at least a year, vscode, vim, neovim, visual studio (windows), qtcreator, and at least one more I dont remember. Zed is superior for everyday coding, for me. The only thing it lacks is debugging, so I can't use it for C#, but I also can't use…

Wait? How do you debug C, C++ and Rust then?

Re: SSH Remoting

#203
post #140

Earlier quoted context omitted.

That’s the thing. Whatever editor I finally migrate from neovim to I’ll likely donate to. I get so much insane value from open source and companies building for the platforms that I use that I’m happy to pay for them especially for small shops of really passionate hackers like the folks behind Zed.

You can donate to neovim too ;) I don't have much hope in anything replacing it for me. Zed does a lot right but feels very very far away and with a weird focus (from my perspective).

Haha I already do!

Re: SSH Remoting

#204
post #68

I can find no mention of Emacs (or Tramp) in any of the documentation or a sampling of blog posts. It’s as if the authors don’t even know it exists. This is concerning. (As is their apparent 100% all-in on the AI hype train.)

Yep. Emacs had this 25 years ago. I find editing over SSH a last resort, though, as it introduces a lot of undesirable latency.

>I find editing over SSH a last resort, though, as it introduces a lot of undesirable latency.

I suggest you give Zed a try then or even VS Code remote, just to compare. They're much better engineered than Emacs tramp.

Re: SSH Remoting

#205

Those who do not understand Emacs are doomed to repeat it. Poorly, in worse languages. —C.S. Santayana Emacs TRAMP mode has been doing this for 26 years, since November 1998. Fashions come, and fashions go, and Emacs remains. Anyone remember Atom? Anyone remember TextMate? Just use vi or Emacs.

Addendum: in retrospect, I do regret my dismissive tone. It wasn’t terribly nice. I’m sure that the developers of the feature are very proud of it, and justifiably so. All the best to them.

I still maintain that it’s a pity they don’t invest their efforts in Emacs, but … it’s a free world!

Re: SSH Remoting

#206
post #10

I switched to Zed for C, C++, Rust, Angular, and am extremely happy with it. I use it with it's vim mode, which is very good. For the record, I've tried the JetBrains suite for at least a year, vscode, vim, neovim, visual studio (windows), qtcreator, and at least one more I dont remember. Zed is superior for everyday coding, for me. The only thing it lacks is debugging, so I can't use it for C#, but I also can't use…

Wait? How do you debug C, C++ and Rust then?

gdb! I got used to it and now it's more than enough :)

Re: SSH Remoting

#207
post #30
post #10

I switched to Zed for C, C++, Rust, Angular, and am extremely happy with it. I use it with it's vim mode, which is very good. For the record, I've tried the JetBrains suite for at least a year, vscode, vim, neovim, visual studio (windows), qtcreator, and at least one more I dont remember. Zed is superior for everyday coding, for me. The only thing it lacks is debugging, so I can't use it for C#, but I also can't use…

I use vscode (with omnisharp not c# devkit) for c# every day. Did you try it out?

I did not! Rider is extremely satisfying to use.

Re: SSH Remoting

#208
Running an unknown app on a trusted remote server under your local user account - not a good idea! Just keep it local on your own machine.

Your editor can handle everything way faster locally, plus it can grab files with SSH’s built-in (and mature to the point of being ancient!) capabilities: caching, compression, and instant text file downloads over an open connection. You can even check for remote file changes using stat.

Even better, use sshfs or another FUSE option.

There’s a ton you can do with plain SSH alone. This whole running-a-remote-server idea is, frankly, puzzling.

Re: SSH Remoting

#209
post #183
post #17

Earlier quoted context omitted.

I use VSCode + SSH remote for this and works great. The only nitpick I have is needing to manually reconnect when I suspend my laptop and ssh connection breaks. It's a separate session though, which doesn't matter to me but may be a deal breaker for you. I use Tailscale for a personal VPN so the beefy workstation is always securely available from my laptop, even when across the pond).

10 years ago I was using https://mosh.org/ to sutomatically reconnect ssh sessions.

AutoSSH has been doing that since forever too (in most distros, ie apt-get install autossh)

https://github.com/Autossh/autossh

Re: SSH Remoting

#210

with a little bit of work, vi/emacs works great as an IDE for most setups... The learning curve is steep but once you get the gist, you never go back to those bloated IDEs. (Disclaimer: I haven't tried zed, but have been working throughout my career with Eclipse, Visual C/C++/Basic (!), Atom)

Unless you need a graphical debugger, then vi/vim/nvim/emacs all start to get creaky. That single requirement keeps me on vscode. I'd love a terminal based alternative.

just don't write buggy code ;) (or have to work on anyone else's)
Post reply on HN