News for hackers. Stuff that matters.
Re:Realtime Hacker News by vic_nyc on Tuesday November 09, 2010 @02:36PM (#1887629)
Would be interesting if you could post the tech details about how you implemented it. I've been experimenting with websockets in Clojure, Ruby and Node and so far I have found that in practice it's harder to do than the simple tutorials would have make it seem. For example, I realized that due to the same origin policy, the client and server involved have to run on the same ports (not just same machine) which makes it seem that the same server has to serve them.
Re:Realtime Hacker News by lgeek on Tuesday November 09, 2010 @06:48PM (#1888477)
> For example, I realized that due to the same origin policy, the client and server involved have to run on the same ports (not just same machine) which makes it seem that the same server has to serve them.

Mongrel2 (http://mongrel2.org/home) might help with that.

Re:Realtime Hacker News by michaelhart on Tuesday November 09, 2010 @02:41PM (#1887645)
It's all written in php/codeigniter and mysql. It's very fast thanks to codeigniter being very lightweight and due to caching provided by mysql.

I'll try to write a blog post tomorrow... www.michaelhart.me