[massive snip]

>> Is being available as a dynamic library (or embeddable as a static
> >> library) sufficient to make it possible to write a Yi highlighting
> >> "adapter" in the new scheme of things? This would of course require FFI,
> >> and so would require the IO monad.
> >>
> >
> > There is a non-trivial amount of work to lift the API to Haskell, I would
> > imagine... And even more so if full access to the AST is desired.
>
> The way I imagine things is that you'd have a Yi<->C++/Clang adapter
> which has a bit of Yi code (which understands what's hecessary for
> providing highlighting on the Yi side) talks directly, via some internal
> protocol to a bit of C code (which talks directly the Clang API to
> derive *just* enough information from the ASTs, etc. to be able to
> supply highlighting information.
>
> Would such a thing be *prohibited* under the new scheme?
>

I certainly do not plan to prohibit anything! If all else fails, it is
always possible to have both highlighting schemes as completely separate
pieces of code, and switch between them at runtime.


> Another issue which hasn't been mentioned yet is code completion and
> other IDE-like features which can also benefit tremendously for libclang
> integration. (Not that it is necessarily relevant for this particular
> thread, but if someone *were* to invest effort into clang integration
> for these purposes -- under the reasonable assumption that it's much
> easier to use clang than doing it yourself -- it would be nice to know
> that such integration could also "replace" any highlighting built-in to
> Yi to be more consistent with clang.)
>

I've actually never used such completion systems so I won't comment.

>
> Anyway, as in all cases in FOSS: The one who writes the code wins ;).
>
> At the very least I'm glad to hear that it'll simplify things greatly :).
>

Indeed! To be sure, I am not going to argue against integration of a system
similar to what you propose, if it ever gets written. I am only trying to
argue for what I think would be a new approach to highlighting, which might
become a killer feature of Yi.

Cheers,
JP.

-- 
-- 
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups 
"yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to yi-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to