<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 25, 2011, at 2:55 PM, Jacek Furmankiewicz wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div><br></div><div>I'd like to announce the very first alpha release of CorePost,</div><div>a tiny REST microframework on top of the core twisted.web APIs.</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://pypi.python.org/pypi/CorePost/0.0.1">http://pypi.python.org/pypi/CorePost/0.0.1</a></div>
<div><br></div><div>it's design is heavily inspired by Flask, for easy creation of REST services.</div><div><br></div><div>Looking forward to any comments and suggestions.</div><div>It's my first attempt at any serious Twisted programming, so be gentle with your comments :-)</div></blockquote><div><br></div><div>Cool! &nbsp;I don't have any comments just yet, but I wanted to quickly say thanks for doing this :-).</div><div><br></div><div>The only similar project I've heard of is &lt;<a href="https://github.com/lvh/txyoga">https://github.com/lvh/txyoga</a>&gt; - any idea about comparing / contrasting?</div><div><br></div><div>Also, as I've been suggesting to a few other people recently, you may find it useful to register your project on Launchpad and add it to the 'tx' group so that it appears in the list we frequently refer new Twisted users to, &lt;<a href="https://launchpad.net/tx">https://launchpad.net/tx</a>&gt;.</div><br><blockquote type="cite"><div>Cheers,</div><div>Jacek</div><div><br></div><div>P.S. I plan to look at integrating twisted.internet.processes</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://pypi.python.org/pypi/twisted.internet.processes">http://pypi.python.org/pypi/twisted.internet.processes</a></div></blockquote><div><blockquote type="cite"><br></blockquote></div><blockquote type="cite"><div>in the near future to enable scaling to all cores on a multi core machine. using its deferToProcess()</div><div>functionality. Any suggestions from seasoned Twisted developers on whether that is the correct approach</div>
<div>would be appreciated.</div></blockquote><br></div><div>I would suggest using something based on spawnProcess instead. &nbsp;There are a number of issues with multiprocessing itself, and this package says right there on the PyPI page that it has no tests. &nbsp;Not to mention that it calls multiprocessing in a thread. &nbsp;If you're using synchronous / blocking I/O in Python, you have no choice but to do some of the awful stuff multiprocessing does, but Twisted's spawnProcess is much cleaner and integrates efficiently with asynchronous I/O, especially on Linux and MacOS.</div><div><br></div><div>&lt;<a href="https://launchpad.net/ampoule">https://launchpad.net/ampoule</a>&gt; is one option you may want to consider.</div><div><br></div><div>(Not to mention the fact that it is confusingly named; it is not part of twisted.internet and in fact does not even use the process support in twisted.internet.)</div><div><br></div><div>-glyph</div><div><br></div><div><br></div></body></html>