Ingo Karkat wrote:
> I agree; most performance issues I encounter are in syntax
> highlighting with large, often deeply nested structures (like big XML
> or JSON files). Poor Vimscript performance hardly is an issue for the
> kind of plugins that I write; and it's always been possible to use a
> language binding and reimplement the core parts, or call out to an
> external program (now even easier with the jobs feature). If WASM is
> the future (and you present enticing arguments here), deprecating the
> many existing language bindings in favor of WASM as the single
> go-forward integration would indeed contribute to a simplified code
> base, avoid fragmented plugin requirements, and therefore reduce
> compatibility issues in the diverse user base.
I don't think WASM helps at all with syntax highlighting. The good old
Vim syntax highlighting depends on regexp patterns. I have already
optimized the speed of that, I don't think it can be improved much more.
The main alternative now is to use an external parser or language server
and communicate with it. Such as the govim plugin does. You an now use
text properties to highlight the text.
Perhaps tree sitter can be used. It's still new, makes some promises,
but we would need to see how it can integrate with Vim.
> Still, if Bram has ideas about eliminating some inefficiencies of
> Vimscript, so that Vimscript writers can easily opt-in (ideally, in a
> backwards-compatible way and without rewriting entire functions or
> plugins), why not? Vim, with its great backwards compatibility and
> platform support, has been a pleasure to use and extend for many many
> years; I'll happily let Bram indulge in such pet projects (and the
> accompanying bike shedding about syntax details :-) if that's what
> keeps him happy and committed to the project!
--
[Another hideous roar.]
BEDEVERE: That's it!
ARTHUR: What?
BEDEVERE: It's The Legendary Black Beast of Aaaaarrrrrrggghhh!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202001051308.005D8hR2011347%40masaka.moolenaar.net.