[slim-vim] design discussion: network callbacks & recursion

Brad Beveridge brad.beveridge at gmail.com
Fri Jul 28 13:11:45 CDT 2006


On 28/07/06, Larry Clapp <larry at theclapp.org> wrote:
> Hi, everyone,
>
> While adding Win32 socket support to Vim, I've seen that Windows can
> call the network IO handler callback before the previous callback has
> finished, i.e. indirectly recursively.  The Netbeans interface, on
> which Jim based the network_io interface, shows that this can happen
> on X11/Athena, Motif, and gtk platforms, too.  This causes problems if
> you don't account for it.
So the GUI based interfaces are actually asynchronous, rather than the
psuedo-async that we do for the console?

>
<SNIP>
>
> Discussion:
<SNIP>
>
> Thoughts / answers / comments / criticism?
>
> -- Larry
I all sounds pretty good and sensible to me.  I'm a tad concerned
about how well Slim-vim would handle partial messages - I suspect that
it wouldn't.  We may need a tad more handling to ensure that only
whole messages are pulled from the Gray stream.  Of course, we've
survived so far, which means either:
1) We only ever get whole messages to work with from Swank
2) Partial message handling already "just works"

I'm happy with what you proposed.  I've had almost no time to geek out
lately, so I've done pretty much no Slim-vim work.  Perhaps this
weekend.

Brad


More information about the slim-vim mailing list