vim-hug-neovim-rpc icon indicating copy to clipboard operation
vim-hug-neovim-rpc copied to clipboard

use stdio for communication?

Open lilydjwg opened this issue 6 years ago • 2 comments

Hi, I'm considering using stdio to communicate with the Python process, to avoid security issues I've talked about in #1. What do you think about this idea?

PS: Firefox uses stdio for extensions to communicate with its native application too.

lilydjwg avatar Dec 23 '17 08:12 lilydjwg

  • stdio has bad performance on Windows
  • It would be impossible for a plugin to create threads which hold its own RPC connection. NCM uses multithreading.

I think it's better to use unix socket on linux system.

roxma avatar Dec 23 '17 09:12 roxma

By the way, there're two servers in this plugin. Read https://github.com/roxma/vim-hug-neovim-rpc#overall-implementation

The VIM server, which talks to vim8 using vim8's RPC. It's running in the same process as vim, so it's impossible to use stdio without changing current implementation

The NVIM server, which talks to the RPC clients. Both servers is using tcp for communication.

roxma avatar Dec 23 '17 09:12 roxma