As cool as streamline is, I don't think it will work for this case since it would have to transform backbone itself in order to use the transformed I/O calls. Backbone uses _ for something completely different, so I don't expect that to work out very well.
The root problem is you're trying to use a sync validation framework in an async world. Yes fibers can fix this mismatch, but you're adding new semantics to the language and a binary module dependency. Just be aware of the tradeoffs. If you're able to somehow pre-compute the validation queries so that they can be answered sync, that works. But this is very domain specific. A static file server, for example, can stat a whole directory and cache the file contents (for very hot files). When a request comes in, just serve it from ram. It can be kept up-to-date with a file watcher/poller instead of checking on each request. On Tue, Mar 20, 2012 at 11:51 AM, Axel Kittenberger <[email protected]>wrote: > > Actually, wrt your first option. I can not go with fibers as I plan to > use > > nodejitsu first, and you can't install compiled code. But even if I > could, I > > could not figure out how to do it with a fibers alternative that we use, > > async. > > How about streamline? Once you jump over your shadow to accept that > your javascript code is precompiled into another javascript code, it > is awesome for more complex I/O logistics which soon enough arrive > when you are working with databases a little deeper than trivial, like > you just described. > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
