On 8/28/2024 12:01 PM, Shiv Shankar Dayal wrote:
You have been following this mailing list for a very very long time already, so you should be to some extent familiar with ConTeXt and what you would like to achieve. Be more specific.
Mojca
I have two specific interests. I want to make asymptote work with ConTeXt but I can live with including generated images and use PDFs.
There is zero change that that will be integrated as it introduces a (long term) dependency. It's pretty much geared at latex anyway and we would need some backend that fits in. We already have metapost (and will extend that over time). It is however possible to load libraries at runtime as we can do with some optional libraries (these linbraries themselves are not included either but loaded on demand). One can add extra ones locally in which case we don't have to worry about the style of their interface. Of course that also means maintaining them as one needs to keep an eye on (changing) api's. Keep in mind that if you do that you need to maintain it for decades to come. We also have a foreign interface (no ffi but kind of) but afaik no one ever showed interest in that. With respect to external pdf files ... there are several ways to optimize that and only process files when they change as we do with other inclusions.
The second interest is in Aditya Mahajan's syntax highlighting module. It is very nice but it invokes VI making the entire thing slow. I understand the advantage of using VI is that we do not have to implement anything when a new language comes. VI will have syntax highlighting and it will be automatically done for us.
Again, when one caches these snippets there is little overhead involved. One could look into some socket communication but language servers tend to be huge and evolving. But of course one can play with that in a local variant, after all the engine code is included in the context distribution. Syntax highlighting is kind of personal anyway, we have soem 'reference'highlighting (which reflects how contetx is codes) but that is also personal. No solution suits all. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------