From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: James Tucker Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: deferrable bodies in Rainbows! Date: Sun, 27 Dec 2009 01:21:35 +0000 Message-ID: <9D8F97A8-F08E-437E-82EE-AD885824291A@gmail.com> References: <9363563c-cbd4-498f-b9ee-b3ee83fa15b8@r5g2000yqb.googlegroups.com> <20091224224956.GB4847@dcvr.yhbt.net> <1c5622660912241540v74329427nd1053b6e602e6506@mail.gmail.com> <20091225002451.GA1821@dcvr.yhbt.net> <20091226232732.GA26351@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1261876908 19729 80.91.229.12 (27 Dec 2009 01:21:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Dec 2009 01:21:48 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Sun Dec 27 02:21:40 2009 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=nkqFIltqhUa/ndT12FknWtH+zxh0D3DIIu24n54A+jc=; b=mUnEJNQljB4Bqu0RZEXzr1F+7KWf118wMnS2WKG/hbyltsYToy1IaR37BQ2Ir2Ny/W uJOzKBo8Vu7TXDRfpMR718ISI4pvF9jBT4lykLXZwolPZjD5JumWTGAoAZc1PKBHFZ+N j7akVTylo1Q4FWKqncyFwCtEoxshkngiaZPSc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=OoNPecU7UYp6WDlXk4aV4FjCeuw2Hzos+MgabF6CM/B8GB6ewdbBpDsoPv2Gqp7mHW y23TPZXqarFLS1DMXR0HM6k5M01PL9cGffY8ryqxFDewBobU+lx1260LRG1JvBjNs8at qjNHAvURsz12RkSW+0TLBMu1WqIROvkroIusY= In-Reply-To: <20091226232732.GA26351-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> X-Mailer: Apple Mail (2.1077) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:60 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.50) id 1NOhpE-0001gG-He for gclrrg-rainbows-talk@m.gmane.org; Sun, 27 Dec 2009 02:21:40 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 87F451858289; Sat, 26 Dec 2009 20:21:40 -0500 (EST) Received: from mail-qy0-f192.google.com (mail-qy0-f192.google.com [209.85.221.192]) by rubyforge.org (Postfix) with ESMTP id F0EC41858289 for ; Sat, 26 Dec 2009 20:21:38 -0500 (EST) Received: by qyk30 with SMTP id 30so4419377qyk.33 for ; Sat, 26 Dec 2009 17:21:38 -0800 (PST) Received: by 10.224.28.30 with SMTP id k30mr6888480qac.349.1261876898708; Sat, 26 Dec 2009 17:21:38 -0800 (PST) Received: from ?192.168.1.54? ([199.172.234.251]) by mx.google.com with ESMTPS id 4sm28292258qwe.55.2009.12.26.17.21.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Dec 2009 17:21:38 -0800 (PST) On 26 Dec 2009, at 23:27, Eric Wong wrote: > Moving to rainbows list > > James Tucker wrote: >> Eric - I had a report from one of the async_sinatra users who tried >> out rainbows with EM, and found that the API didn't actually line up >> with what Thin was doing. I really want to devote some more time with >> this but I've been very busy. Sadly due to this I don't want to say >> stop, but, well, I want to say please check existing apps against it. >> I guess could you check async_*.ru from >> github.com/macournoyer/thin/master/tree/examples/async_*.ru, as from >> what was reported, they're not working with the rainbows >> implementation of the deferrablebody hacks. > > Hi James, thhanks for the heads up. > > Rainbows! doesn't handle deferrable bodies yet (I didn't look closely enough > the first time around), so it can't do everything Thin does with EM, yet. > It's already in the TODO, I'll make a mental note to work on it sooner. Making this stuff work correctly in sync and async is one of the things that kills a rack.io style api, particularly for an abstracted IO layer like eventmachine (where you can't extract and hand out the raw IO without causing signficant complication + problems (we're never gunna support read(3) and EM buffered reads in concurrently under EM for obvious reasons)). This means such APIs can be problematic to implement properly, forcing people to buffer and pack in StringIO and whatnot. There are some more hacks one can do ofc, but I'd rather come up with an API that's good for all, whilst still being performant (this is possible, I am certain). Sorry for yet another rushed reply (starting to feel real bad about that over here) :( P.S. This S/MIME rejection is really starting to grate me, I'm wishing Mail.app had the ability to forcibly stop doing that for specific addresses, but their S/MIME support is as embedded as most other clients (for mostly better, and occasionally worse). _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying