- tzyoga - will look at it. I just really liked the minimal super easy API of Flask (which in turn is probably inspired by Sinatra) and that&#39;s what I wanted to bring to Twisted.<div>- spawnProcess - got it. Will look into that<br>
<br></div><div>thank you for your feedback</div><div><br></div><div>Jacek</div><div><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 3:40 PM, Glyph Lefkowitz <span dir="ltr">&lt;<a href="mailto:glyph@twistedmatrix.com">glyph@twistedmatrix.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><br><div><div class="im"><div>On Aug 25, 2011, at 2:55 PM, Jacek Furmankiewicz wrote:</div>
<br><blockquote type="cite">Hi,<div><br></div><div>I&#39;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><a href="http://pypi.python.org/pypi/CorePost/0.0.1" target="_blank">http://pypi.python.org/pypi/CorePost/0.0.1</a></div>

<div><br></div><div>it&#39;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&#39;s my first attempt at any serious Twisted programming, so be gentle with your comments :-)</div>
</blockquote><div><br></div></div><div>Cool!  I don&#39;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&#39;ve heard of is &lt;<a href="https://github.com/lvh/txyoga" target="_blank">https://github.com/lvh/txyoga</a>&gt; - any idea about comparing / contrasting?</div>
<div><br></div><div>Also, as I&#39;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 &#39;tx&#39; group so that it appears in the list we frequently refer new Twisted users to, &lt;<a href="https://launchpad.net/tx" target="_blank">https://launchpad.net/tx</a>&gt;.</div>
<div class="im"><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><a href="http://pypi.python.org/pypi/twisted.internet.processes" target="_blank">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><div>I would suggest using something based on spawnProcess instead.  There are a number of issues with multiprocessing itself, and this package says right there on the PyPI page that it has no tests.  Not to mention that it calls multiprocessing in a thread.  If you&#39;re using synchronous / blocking I/O in Python, you have no choice but to do some of the awful stuff multiprocessing does, but Twisted&#39;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" target="_blank">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><font color="#888888"><div>-glyph</div><div><br></div><div><br></div></font></div><br>_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
<br></blockquote></div><br></div>