[metapost] Running mpost as a unix daemon?

Dave Crossland dave at lab6.com
Thu Feb 20 00:00:46 CET 2014


https://github.com/metapolator/metapolator/ is a font family editor
application, which calls mpost

This means the application is slow, because in
we use the Python standard library's subprocess.Popen and incur a long
startup time each time it is run.

Non-Solution: Jonathan Fine's
looked like it might speed things up, but it seems it won't because it
isn't really a metapostd, but a wrapper that makes metapost appear
like a daemon, but still starts up metapost each time with
subprocess.Popen on

I see 3 options for making this work as a daemon:

Option: Write a new C/C++ unix daemon 'metapostd' in C, to run MPLib
as so there is no start up time

Option: Write a python binding for MPLib, to access metapost
calculations directly from Python

Option: Write a nodejs binding for MPLib, to access metapost
calculations directly from node

I wonder what the metapost community thinks about these options -
which would be most widely useful?

I'd love it if we could make a metapostd in python, but not sure its possible.


More information about the metapost mailing list