On 9/15/2011 11:21 AM, Marc Weber wrote:
If you want a solution which works on linux/osx only you may also want
to have a look at vim-addon-async [1] is used in the ensime client
implementation. Its documentation also reference a native patch (vim
only, no gui yet).
Thanks, will investigate. Being cross platform is really important for
me though.
The scheme interpreter for vim has a very comprehensive threading model
and should be strong enough to do the communication you're looking for
on every platform (I haven't tested it - from looking at code if
something gets the job done then the if_scheme implementation).
So that's another thing I'd try before writing too much C.
Anything to try and not write C at all if possible, yet straight C is
probably the fastest (low latency) solution, but the slowest (coding
time) implementation.
Looks like my gvim on win32, the standard distro doesn't have if_scheme
compiled in. Looking at ":he if_py", which I suppose the if_scheme
support is similar to, it looks like you can get vim to exec language X
(python code with respect to if_py) from inside vim scripts is that
right? Never done that before.
So would a solution not simply be to fire off async python code on vim
events, from inside vim script, which in turn (the python code) talk to
the java TCP socket server? Getting complicated...
I suppose then your suggestion of firing off async scheme code through
the vim scheme interpreter is better since there is better threading
support, meaning non blocking behavior?
You may also want to have a look at the Conque_Shell [2] which has more
latency - but also "just works without too much patching".
Thanks, will do so.
[1] github.com/MarcWeber/vim-addon-async
[2] http://www.vim.org/scripts/script.php?script_id=2771
So eventually try joining the async patch effort started by Bart once.
Marc Weber
--
Kerneels Roos
Cell: +27 (0)79 696 6038
Skype: cornelis.roos
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php