Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Hans Hagen
On 12/22/2020 7:32 PM, Neven Sajko wrote: On Tue, 22 Dec 2020 at 18:15, Hans Hagen wrote: On 12/22/2020 6:57 PM, Neven Sajko wrote: Oops, I forgot to attach the scriptlet before. [...] I guess it could also be more performant, because Lua would conceivably spend less time managing huge

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
On Tue, 22 Dec 2020 at 18:15, Hans Hagen wrote: > > On 12/22/2020 6:57 PM, Neven Sajko wrote: > > Oops, I forgot to attach the scriptlet before. > > > > > >> [...] I guess it could also be more performant, because Lua would > >> conceivably spend less time managing huge tables. > > > > Now that I

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Hans Hagen
On 12/22/2020 7:13 PM, Neven Sajko wrote: Thank you very much for your answers! you can run: s-inf-01.mkiv s-inf-03.mkiv s-inf-05.mkiv i need to update them but they show the picture Hans -

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Hans Hagen
On 12/22/2020 6:57 PM, Neven Sajko wrote: Oops, I forgot to attach the scriptlet before. [...] I guess it could also be more performant, because Lua would conceivably spend less time managing huge tables. Now that I think about this some more, it doesn't actually make sense. However I'm

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
Thank you very much for your answers! Neven ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Hans Hagen
On 12/22/2020 6:36 PM, Neven Sajko wrote: Hello again, While learning about how to drive TeX through Lua, I decided to recursively list all Lua global variables (actually this is traversing the _G table) in the LMTX environment, half to learn more Lua, half for getting to know ConTeXt better.

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
Oops, I forgot to attach the scriptlet before. > [...] I guess it could also be more performant, because Lua would > conceivably spend less time managing huge tables. Now that I think about this some more, it doesn't actually make sense. However I'm still interested in whether it is really

[NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Neven Sajko
Hello again, While learning about how to drive TeX through Lua, I decided to recursively list all Lua global variables (actually this is traversing the _G table) in the LMTX environment, half to learn more Lua, half for getting to know ConTeXt better. I was quite surprised by the huge size of