On 1/27/2023 12:03 PM, Henri Menke via ntg-context wrote:

How much do you think would break if protected luacall were treated
like protected macros after \the in the engine?

That kind of incompatibility is no option (I'm not going to analyze it for mkiv let along other macro package usage which is out of my scope).

That would probably need an extra branch in the switch(cur_cmd) in
scan_something_internal. Currently protected luacall just goes to the
default branch (You can't use ...).
For various reasons luatex got frozen around version 1 and demand for stability (which also excluded experiments) is one of them. So, one has to work with what one gets (not much different from the rest of tex functionality). With careful coding the performance hit is not that large and machines still get a bit get faster so that compensates it anyway. Although some low level approaches can bring benefits it's never homogenious and largely depends on use cases.

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
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to