News for hackers. Stuff that matters.
Re:An experimental Vim fork with multi-threading capabilities by jessaustin on Tuesday January 14, 2014 @04:49PM (#7060003)
Thanks for the link to an interesting discussion. While I can't speak to the quality (or otherwise) of the vim code, I wouldn't characterize that conversation as "demanding" or "over the top". Even the most recent patch is reported to cause hangs when doing something as simple as pressing the leader key. You can't rationally expect a maintainer of mature software to sign up for that. I doubt Debian or other downstreams would be happy to hear that the vim maintainer had signed up for that.

If the fork is maintained for a year or so, fixing problems with the timer code and feeding patches for actual vim bugs back upstream, and adding tests for all of that, at the end of that time this patch will be quite different. It might even be in a form the vim maintainer can merge in good conscience. As an added benefit, by that time some compelling plugins that take advantage of these timers might be written. As it stands now, the use-case for this patch is rather hypothetical. Indeed, if after a year there aren't a few plugins around that make good use of this functionality, it calls this entire effort into question.

Re:An experimental Vim fork with multi-threading capabilities by fmoralesc on Tuesday January 14, 2014 @06:45PM (#7060630)
> As it stands now, the use-case for this patch is rather hypothetical.

I agreed with you up to this point. As it stands, many utility plugins (like CtrlP and Syntastic) and bundles/ftplugins (vim-python, my own vim-pantondoc) would be improved by this functionality. It is obviously wanted/needed by the Floobits plugin, which motivated the creation of the patches proposed last year. So, I don't think the effort can be reasonably put into question, as you say, even today. People do need async in vim, and also people would want upstream to handle this ASAP, by deciding on some strategy to provide it.

This said, this new message queue API seems cleaner than Floobits', but it seems to cater to python interop only, which is a mayor downside, since many vim plugin users opt out on python or simply lack python support.

Re:An experimental Vim fork with multi-threading capabilities by tarruda on Tuesday January 14, 2014 @07:07PM (#7060738)
Actually, python interop was only a for quickly testing multi-threaded plugins.

See the issue tracker for examples of vimscript functions that can be added on top of the message queue: https://github.com/tarruda/vim/issues/2

Re:An experimental Vim fork with multi-threading capabilities by fmoralesc on Tuesday January 14, 2014 @08:53PM (#7061179)
Thanks a lot, didn't see those. A bit more documentation would be really helpful ;) Otherwise, great work!
Re:An experimental Vim fork with multi-threading capabilities by jessaustin on Wednesday January 15, 2014 @09:28AM (#7063477)
...many utility plugins (like CtrlP and Syntastic) and bundles/ftplugins (vim-python, my own vim-pantondoc) would be improved by this functionality.

Thanks for the correction; clearly I mischaracterized the use-case.

Re:An experimental Vim fork with multi-threading capabilities by btipling on Tuesday January 14, 2014 @09:10PM (#7061241)
> If the fork is maintained for a year or so, fixing problems with the timer code and feeding patches for actual vim bugs back upstream, and adding tests for all of that, at the end of that time this patch will be quite different.

There are few problems with the timer code. Vim's code is a monster. As you yourself admit, you don't know the vim code, so how could you possibly judge how demanding the requests are or make any of these other claims.

> The use case is hypothetical

We're building a business on real time editor plugins that isn't hypothetical at all.