News for hackers. Stuff that matters.
Re:Whoosh – Fast, full-text indexing and searching library i... by randlet on Tuesday November 19, 2013 @08:29AM (#6760992)
Pure Python is definitely a selling point for those of us who regularly deploy to multiple platforms. Knowing you can 'pip install pure-python-lib' on any platform and have it work every single time without regards to what c compilers and c libraries you have available is a major boon.
Re:Whoosh – Fast, full-text indexing and searching library i... by davb on Tuesday November 19, 2013 @10:43AM (#6761873)
Or, more importantly (in my case), very easily bundle pure Python code with your application. I understand the arguments against it, but in any project that might produce deliverables that will be in play for more than a few weeks the first thing I do is create a "lib" folder where any third party dependencies live and get imported from.

With Python this is usually very easy.

I've maintained my fair share of legacy code and more often than not one of the biggest issues is tracking down ancient libraries which work with my code. There are very few packages I trust to maintain fairly stable interfaces and be available years into the future (things like Apache HTTPd, PostgreSQL and memcached); everything else lives in the project lib folder. I can "hg clone" my app at any time and get the exact version of the third party packages I need.

Every so often I update the packages and test the integration.

Re:Whoosh – Fast, full-text indexing and searching library i... by lotyrin on Tuesday November 19, 2013 @06:02PM (#6765126)
This is why good dependency management systems support both specifying compatible semver ranges but also pinning/locking specific releases. You get nice one-step install/update/add/remove for your deps with the tool, but a fresh checkout can get the last known working versions and deploys can be guaranteed to use the same versions as were run in CI, etc.

Looking now, it seems that pip can finally do this with pip-compile.

Re:Whoosh – Fast, full-text indexing and searching library i... by zzzeek on Tuesday November 19, 2013 @02:46PM (#6763867)
Solr and its backend Lucene are written in Java. so it runs on any platform arguably even more easily than Python.
Re:Whoosh – Fast, full-text indexing and searching library i... by danudey on Tuesday November 19, 2013 @07:58PM (#6765703)
If you're assuming a known-good Python stack, then a pure-python solution will just work. Using Solr/Lucene means having a known-good Python stack and a known-good JVM. Python is installed with most (all?) Linux distributions by default, but Java is almost never part of the base install.

Also, a pure-python solution allows for an in-process index/search, rather than adding another external process dependency which needs to be monitored and maintained.

Re:Whoosh – Fast, full-text indexing and searching library i... by ris on Tuesday November 19, 2013 @04:25PM (#6764605)
> so it runs on any platform arguably even more easily than Python

I think that would be a very difficult argument to make.

Re:Whoosh – Fast, full-text indexing and searching library i... by randlet on Tuesday November 19, 2013 @02:55PM (#6763958)
Understood but I was addressing whether 'pure Python' is a selling feature which it undeniably is.

edit: I don't mean to say that it is a selling feature for everyone (i.e. people who aren't already using Python) but for those who are already using Python it definitely is.