ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Automatic userdata storage between runs
@ 2020-06-24  6:54 Lukas/ConTeXt
  2020-06-24 11:38 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas/ConTeXt @ 2020-06-24  6:54 UTC (permalink / raw)
  To: ntg-context

Hello,

first - thanks for the perfectly synoptical
  https://wiki.contextgarden.net/Programming_in_LuaTeX#Namespaces !

My question (and the answer sould appear on wiki, too):

Is any of the namespaces (userdata, thirddata, moduledata, documentdata, parametersets) automatically serialized between Ctx first(-second(-third)) runs?

I'm asking because user may call some (longer) code and put the result into a namespace (be it e.g. "userdata"). And if that namespace was automatically serialized for next run(s), that code could be called conditionally - typically just in first run (= mode "*first" enabled) - as in next runs results of the additional code would be available in a namespace (instead of repetitive call of that (longer) code).

Of course, user can perform such evaluation, storage and conditional extra-code-call individually, but maybe there is some support for similar situations in Ctx.

Best regards,

Lukas

___________________________________________________________________________________
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
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Automatic userdata storage between runs
  2020-06-24  6:54 Automatic userdata storage between runs Lukas/ConTeXt
@ 2020-06-24 11:38 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2020-06-24 11:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Lukas/ConTeXt

On 6/24/2020 8:54 AM, Lukas/ConTeXt wrote:
> Hello,
> 
> first - thanks for the perfectly synoptical
>    https://wiki.contextgarden.net/Programming_in_LuaTeX#Namespaces !
> 
> My question (and the answer sould appear on wiki, too):
> 
> Is any of the namespaces (userdata, thirddata, moduledata, documentdata, parametersets) automatically serialized between Ctx first(-second(-third)) runs?

no, if only because they are not meant to store runtime data

> I'm asking because user may call some (longer) code and put the result into a namespace (be it e.g. "userdata"). And if that namespace was automatically serialized for next run(s), that code could be called conditionally - typically just in first run (= mode "*first" enabled) - as in next runs results of the additional code would be available in a namespace (instead of repetitive call of that (longer) code).
> 
> Of course, user can perform such evaluation, storage and conditional extra-code-call individually, but maybe there is some support for similar situations in Ctx.
there is a twopassdata mechanism for storing stuff but other than that 
you can just write to a file and then check that (depending on what run 
you have)

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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-24 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24  6:54 Automatic userdata storage between runs Lukas/ConTeXt
2020-06-24 11:38 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).