News for hackers. Stuff that matters.
Re:Writing a full-text search engine using Bloom filters by StavrosK on Tuesday December 24, 2013 @06:21AM (#6959034)
Static site means never having to say "PHP"!
Re:Writing a full-text search engine using Bloom filters by deckiedan on Tuesday December 24, 2013 @07:06AM (#6959112)
True, but given how easy and prevenant PHP is on hosting sites, why not use a very small amount, just one or two php pages, each 200 lines or less, and everything else static?

Probably CGI would be better, mind you, keep everything static except what is obviously not.

Re:Writing a full-text search engine using Bloom filters by StavrosK on Tuesday December 24, 2013 @07:48AM (#6959193)
Because the line one draws is "no server-side code at all". If you use a bit of code for that, you might as well use a bit for this, and for the other thing, and soon it's a CMS.

Besides, the hosts I want to deploy on don't have PHP (S3, stock nginx, Github pages).

Re:Writing a full-text search engine using Bloom filters by deckiedan on Tuesday December 24, 2013 @08:07AM (#6959241)
Fair enough.

I switched our team's website to a completely static site a few years ago, they were using joomla (vomit) for essentially a broucher site that changed once a quarter.

I wonder if there would be a place for a 'json search as a service' thing - where you could upload your static content (as markdown, rst, txt, whatever) and then use their servers for full text queries which return a json list of matching page URLs and titles...

Re:Writing a full-text search engine using Bloom filters by rakoo on Tuesday December 24, 2013 @09:37AM (#6959481)
Because "no server-side code" means "I can host it completely on a CDN", which pretty much solves the scalability needs. If you need to scale those few lines of php or whatever language, this is gonna be much more difficult.

Plus, you can host it on different platforms such as freenet, gnunet, and have the simplest backup ever (`cp` is enough for having a functioning version on any OS of any kind).

Re:Writing a full-text search engine using Bloom filters by stormbrew on Tuesday December 24, 2013 @09:11AM (#6959375)
CGI is pretty much never better.