Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate front-end and back-end #18028

Closed
tristone13th opened this issue Apr 7, 2022 · 3 comments
Closed

Separate front-end and back-end #18028

tristone13th opened this issue Apr 7, 2022 · 3 comments
Labels
enhancement feature request

Comments

@tristone13th
Copy link

Feature already in Vim?

No

Feature description

Consider following scenario:

You work in Asia and you have a server in America, the delay between you and your server is high. If you use ssh then launch a new nvim instance in the remote ssh, your will have a laggy experience. The main reason is that for each key stroke, you must wait until the server send the response back, but really you don't need the server to do in this style because instance processing is not needed. For an example, you can edit the file locally then write in one time rather than send the char to the remote file for each keystroke. I think one solution is to separate the front-end and back-end and design a clear interface.between them like VSCode-remote, what would you say about this?

@tristone13th tristone13th added the enhancement feature request label Apr 7, 2022
@clason
Copy link
Member

clason commented Apr 7, 2022

I say check out https://github.com/chipsenkbeil/distant and #10071

@clason
Copy link
Member

clason commented Apr 7, 2022

(Closing this as this much too vague to use as a tracking issue.)

@clason clason closed this as completed Apr 7, 2022
@justinmk
Copy link
Member

justinmk commented Apr 11, 2022

I think one solution is to separate the front-end and back-end and design a clear interface.between them like VSCode-remote

Do you have a reference / documentation exposition for the vscode architecture?

Many editors have tried CRDT as a solution to this, but I think vscode's architecture hinges on its filesystem abstraction. So the editor is running on the "frontend", and the backend mostly handles file I/O.

For TUI software like Nvim, distant as @clason mentioned is worth considering, or something like Mosh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request
Projects
None yet
Development

No branches or pull requests

3 participants