From: Roger Pack Date: 2008-06-17T04:58:54+09:00 Subject: Re: Fiber variables Michael Fellinger wrote: > Hi list, > > I've been doing some playing with Fibers as a replacement of Thread > for usage in Ramaze, and as I'm not the most knowledgable about this > issue I'd like to request some code review from you guys. > > The code in question with some simple usage is at: > http://p.ramaze.net/1618 > > I'm not sure if i would run into any issues with this approach or why > it hasn't been done in the fiber library already, but would you see > this as a good use of fibers, to avoid having to pass state around for > every component in the application/framework? I ended up wrapping evented mongrel calls with a Fiber and it seemed to work like a charm for my limited requests. Couple this with an evented DB and I think it has a lot of potential :) [This is what I was trying to do with ramaze on the group the other day, but had to give up since it wasn't user friendly to beginners]. http://rubyforge.org/pipermail/eventmachine-talk/2008-June/001881.html lists a few code snippets. -- Posted via http://www.ruby-forum.com/.