vim-hug-neovim-rpc
vim-hug-neovim-rpc copied to clipboard
use stdio for communication?
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.
- 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.
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.