[metapost] Running mpost as a unix daemon?

Dave Crossland dave at lab6.com
Thu Feb 20 18:12:27 CET 2014


On 20 February 2014 08:35, Hans Hagen <pragma at wxs.nl> wrote:
> unless you have a limited well known application you still have to restart
> the mp session from scratch as macros can rewrite themselves, variables can
> be set, and one run can influence an upcoming one.

We're just using it to calculate glyph outlines with very simple
variables, not hand written metafont code, so metaprogramming and
inter-run changes won't happen.

So we can use LuaTeX's sockets to send in a simple mf description of a
glyph, with a preamble setting some variables, and see returned a new
glyph with different point co-ordinates, and no start up time cost?



More information about the metapost mailing list