News for hackers. Stuff that matters.
Re:Zed: SSH Remoting Is Here by iveqy on Thursday October 31, 2024 @03:37AM (#42004304)
I also switch between a lot of computers (work computer at home/work computer at work) but have to develop on "big powerful machine at work". My current solution is tmux + nvim and it works really good. I can just pickup a session from whatever computer I'm in front of at the moment.

Am I correct in that neither Zed nor VS Code support this usecase yet?

Re:Zed: SSH Remoting Is Here by senko on Thursday October 31, 2024 @03:43AM (#42004335)
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).

Re:Zed: SSH Remoting Is Here by hu3 on Thursday October 31, 2024 @07:54AM (#42005896)
Thank you both for sharing the experience.

I'm tempted to go lightweight laptop + beef server.

Do you get used to the the input delay? I guess coding is not a FPS game so it's fine. Just a flow of words being edited.

Re:Zed: SSH Remoting Is Here by dagw on Thursday October 31, 2024 @08:26AM (#42006177)
Do you get used to the input delay?

The input delays are very dependent on where the server is and what it is doing. If the server is idle and close by (ping wise) delay is virtually indistinguishable from local VSCode. If I'm connecting to the server via a VPN in a different country while stressing all the cores with some background compiling or number crunching work, input delay gets quite noticeable.

Re:Zed: SSH Remoting Is Here by hu3 on Thursday October 31, 2024 @11:30AM (#42007895)
I guess editing files in the same continent must feel good enough.

Thank you! I should try a project in this way.

Perhaps rent some hetzner VPS.

Re:Zed: SSH Remoting Is Here by senko on Thursday October 31, 2024 @08:58AM (#42006458)
There's no input delay in VSCode (editor, ui) because the UI is local. Delay in saving/reading/sesrching in files is not noticable for me.

(edit to explain: VSCode is still running locally, but it also installs the server-side (headless) component on the remote machine. That way editing files is local/fast, but stuff like running the code, search/replace/etc also works fadt because it's handled by the serverside).

Terminal (incl vscode terminal) feels slightly sluggish, and it's noticable if the server is in another country and uncomfortable if across the pond.

Re:Zed: SSH Remoting Is Here by hu3 on Thursday October 31, 2024 @11:29AM (#42007883)
Thank you. Sounds like best of both worlds.
Re:Zed: SSH Remoting Is Here by nrvn on Thursday October 31, 2024 @09:52AM (#42006924)
10 years ago I was using https://mosh.org/ to sutomatically reconnect ssh sessions.
Re:Zed: SSH Remoting Is Here by senko on Thursday October 31, 2024 @10:29AM (#42007279)
VSCode uses ordinary ssh tho.

I multiplex my ssh connections so the workflow is just ssh sgain, then reload VSCode window. If Mosh could multiplex these (and paper over the connection problems) that'd be great but after a cursory look, it doesn't look like it's possible.

It's a minor thing tho.

In general, I quite like Mosh! If I routinely had to work on faraway servers I'd use mosh just for its smart local echo.

Re:Zed: SSH Remoting Is Here by DavideNL on Thursday October 31, 2024 @09:57AM (#42006967)
Re:Zed: SSH Remoting Is Here by _hyn3 on Thursday October 31, 2024 @07:02PM (#42012422)
AutoSSH has been doing that since forever too (in most distros, ie apt-get install autossh)

https://github.com/Autossh/autossh

Re:Zed: SSH Remoting Is Here by teruakohatu on Thursday October 31, 2024 @03:39AM (#42004315)
Not persistent sessions, but VS Code can run the GUI locally and connect to a remote server. When you reconnect it opens all your tabs, workspace settings etc.