<br><br><div class="gmail_quote">On Thu, Feb 7, 2013 at 11:28 PM, Костя Лопухин <span dir="ltr"><<a href="mailto:konstantin.lopuhin@chtd.ru" target="_blank">konstantin.lopuhin@chtd.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
PyPy supports postgres with either psycopg2cffi or psycopg2-ctypes<br>
bindings. We use psycopg2cffi in production (and maintain them), and<br>
here <a href="http://chtd.ru/blog/bystraya-rabota-s-postgres-pod-pypy/?lang=en" target="_blank">http://chtd.ru/blog/bystraya-rabota-s-postgres-pod-pypy/?lang=en</a><br>
are some benchmarks.<br>
And yes, PyPy is cool :) Typically giving 3x speedups, and some memory<br>
savings sometimes.<br>
<br>
2013/2/7 Gelin Yan <<a href="mailto:dynamicgl@gmail.com">dynamicgl@gmail.com</a>>:<br>
<div><div class="h5">><br>
><br>
> On Thu, Feb 7, 2013 at 10:11 PM, Phyo Arkar <<a href="mailto:phyo.arkarlwin@gmail.com">phyo.arkarlwin@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Pypy should have a page for "Success Stories!"<br>
>><br>
>> Now with this and Quora proving Power of PyPy , i am beginning to start<br>
>> converting my projects into PyPy soon!<br>
>> I am only withholding right now because my projects uses a lot of C<br>
>> Libraries and Numpy/Matplotlib/scilit-learn.<br>
>><br>
>> Thanks<br>
>><br>
>> Phyo.<br>
>><br>
>> On Thursday, February 7, 2013, Maciej Fijalkowski wrote:<br>
>>><br>
>>> On Thu, Feb 7, 2013 at 1:55 PM, Marko Tasic <<a href="mailto:mtasic85@gmail.com">mtasic85@gmail.com</a>> wrote:<br>
>>> > Hi,<br>
>>> ><br>
>>> > I would like to share short story with you and share what we have<br>
>>> > accomplished with PyPy and its friends so far.<br>
>>> ><br>
>>> > Company that I have worked for last 7 months (intentionally unnamed)<br>
>>> > gave me absolute permission to pick up technologies on which we based<br>
>>> > our solution. What we do is: crawl for PDFs and newspapers articles,<br>
>>> > download, translate them if needed, OCR if needed, do extensive<br>
>>> > analysis of downloaded PDFs and articles, store them in more organized<br>
>>> > structures for faster querying, search for them and generate bunch of<br>
>>> > complex reports.<br>
>>> ><br>
>>> > From very beginning I decided to go with PyPy no matter what. What we<br>
>>> > picked is following:<br>
>>> > * Flask for web framework, and few of its extensions such as<br>
>>> > Flask-Login, Flask-Principal, Flask-WTF, Flask-Mail, etc.<br>
>>> > * Cassandra as database because of its features and great experience<br>
>>> > with it. PyCassa is used as client to talk to Cassandra server.<br>
>>> > * ElasticSearch as distributed search engine, and its client library<br>
>>> > pyes.<br>
>>> > * Whoosh as search engine, but with some modifications to support<br>
>>> > Cassandra as storage and distributed locking.<br>
>>> > * Redis, and its client library redis-py, for caching and to speed up<br>
>>> > common auto-completion patterns.<br>
>>> > * ZooKeeper, and its client library Kazoo, for distributed locking<br>
>>> > which plays essential role in system for transaction-like behavior<br>
>>> > over many services at once.<br>
>>> > * Celery in conjunction with RabbitMQ for task distribution.<br>
>>> > * Sentry for error logging.<br>
>>> ><br>
>>> > What we have developed on our own are wrappers and clients for:<br>
>>> > * Moses which is language translator<br>
>>> > * Tesseract which is OCR engine<br>
>>> > * Cassandra store for Whoosh<br>
>>> > * wkhtmltopdf and wkhtmltoimage which are used for conversion of HTML<br>
>>> > to PDF/Image<br>
>>> > * etc<br>
>>> ><br>
>>> > Now when product is finished and in final testing phase, I can say<br>
>>> > that we did not regret because we used PyPy and stack around it.<br>
>>> > Typical speed improvement is 2x-3x over CPython in our case, but<br>
>>> > anyway we are mostly IO and memory bound, expect for Celery workers<br>
>>> > where we do analysis which are again many small CPU intensive tasks<br>
>>> > that are exchanged via RabbitMQ. Another reason why we don't see<br>
>>> > speedup us is that we are dependent on external software (servers)<br>
>>> > written in Erlang and Java.<br>
>>> ><br>
>>> > I'm already planing to do Cassandra (distributed key/value only<br>
>>> > database without index features), ZooKeeper, Redis and ElasticSearch<br>
>>> > ports in Python for next projects, and hopefully opensource them.<br>
>>> ><br>
>>> > Regards,<br>
>>> > Marko Tasic<br>
>>> > _______________________________________________<br>
>>> > pypy-dev mailing list<br>
>>> > <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
>>> > <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
>>><br>
>>> Awesome!<br>
>>><br>
>>> I'm glad people can make pypy work for non-trivial tasks which require<br>
>>> a lot of dependencies. We're trying to lower the bar, however it takes<br>
>>> time.<br>
>>><br>
>>> Cheers,<br>
>>> fijal<br>
>>> _______________________________________________<br>
>>> pypy-dev mailing list<br>
>>> <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
>>> <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> pypy-dev mailing list<br>
>> <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
>> <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
>><br>
><br>
><br>
> Hi, It might be off topic. I want to know whether pypy support postgres. The<br>
> last time I noticed ctypes based psycopg2 was still beta. I mainly use<br>
> twisted & postgres. pypy supports twisted well but not good for psycopg2.<br>
><br>
> Regards<br>
><br>
> gelin yan<br>
><br>
> _______________________________________________<br>
> pypy-dev mailing list<br>
> <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
Константин Лопухин, разработчик<br>
Компания ЧТД -- <a href="http://chtd.ru" target="_blank">http://chtd.ru</a><br>
<a href="tel:%2B7%20%28495%29%20646-87-45" value="+74956468745">+7 (495) 646-87-45</a>, добавочный 333<br>
</blockquote></div><br><div>Hi</div><div>  </div><div>   Glad to hear that. I will give it a try. By the way, Can i use it on windows? It looks like cffi support windows.</div><div><br></div><div>Regards</div><div><br></div>
<div>gelin yan</div>