News for hackers. Stuff that matters.
Re:Live Streaming in Rails 4.0 by mtkd on Monday July 30, 2012 @02:49PM (#4313983)
I really respect the hard work going in to the evolution of Rails, but it does feel like some new features should be considered as Gems.

The hardest part of managing mature software is keeping it lean.

Re:Live Streaming in Rails 4.0 by thibaut_barrere on Monday July 30, 2012 @03:08PM (#4314094)
Streaming looks like a natural evolution to me, to gradually send JSON data back to the client etc for instance.

I don't think this is something that could be done easily as a gem (at least not without a serious dose of unstable monkey-patching).

Re:Live Streaming in Rails 4.0 by jeltz on Monday July 30, 2012 @04:37PM (#4314547)
The lightweight framework Sinatra has had streaming for a some time now, and if it is not too heavy for Sinatra it should not be too heavy for rails. Rails is way larger than Sinatra.
Re:Live Streaming in Rails 4.0 by masklinn on Monday July 30, 2012 @04:55PM (#4314635)
> The lightweight framework Sinatra has had streaming for a some time now

Rack itself has response streaming support[0]. As a result, even before Sinatra 1.3 and the `stream` helper method you could stream responses in Sinatra.

[0] since pretty much forever ago: https://github.com/rack/rack/commit/53e299724b9173efe50e9afc...

Re:Live Streaming in Rails 4.0 by jeltz on Monday July 30, 2012 @05:21PM (#4314749)
Yeah, I have implemented streaming myself once for a rack app. It was rather simple to implement and has worked stably in production for over two years now.