Re:Memory Management in Python
by cozzyd on Monday August 05, 2019 @11:14AM
(#20614815)
Hilariously, my pentadactyl shortcut for the oxidation plan was HG. I took that as a sign to read the article. Has hg ever considered a long-running "daemon-like" process instead? It could be instantiated automatically by the first call to hg and then it can die after it hasn't been used for a while. It would probably be racy and hard to support on multiple OS's though...
[ Parent
| on HN ]
Re:Memory Management in Python
by mikepurvis on Tuesday August 06, 2019 @10:09AM
(#20625285)
They do kind of have this: https://www.mercurial-scm.org/wiki/CommandServer
Though it looks like it's more about supplying a way to embed hq in a proprietary (or non-Python) application via subprocess communication rather than directly importing the GPL modules or having to string-parse responses. There doesn't seem to be provision for interacting with the server directly from the command line, which is odd, since this pattern is well established from Java land (bazel, for example).