From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rixed@happyleptic.org Newsgroups: gmane.lisp.guile.user Subject: Re: http request? Date: Tue, 26 Apr 2011 14:01:31 +0200 Message-ID: <20110426120131.GA14337@ccellier.rd.happyleptic.org> References: <20110426104905.GA23075@ccellier.rd.happyleptic.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1303819310 12600 80.91.229.12 (26 Apr 2011 12:01:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2011 12:01:50 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 26 14:01:46 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QEgxe-0000mJ-Fi for guile-user@m.gmane.org; Tue, 26 Apr 2011 14:01:46 +0200 Original-Received: from localhost ([::1]:45323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEgxd-0007O9-Sd for guile-user@m.gmane.org; Tue, 26 Apr 2011 08:01:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEgxX-0007Nk-Up for guile-user@gnu.org; Tue, 26 Apr 2011 08:01:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEgxW-0007gj-TZ for guile-user@gnu.org; Tue, 26 Apr 2011 08:01:39 -0400 Original-Received: from dangi.happyleptic.org ([92.243.13.193]:34929 helo=dangi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEgxW-0007gb-NB for guile-user@gnu.org; Tue, 26 Apr 2011 08:01:38 -0400 Original-Received: from extranet.securactive.org ([82.234.213.170] helo=ccellier.rd.securactive.lan) by dangi with esmtp (Exim 4.72) (envelope-from ) id 1QEgyu-00017g-GQ for guile-user@gnu.org; Tue, 26 Apr 2011 14:03:04 +0200 Original-Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.72) (envelope-from ) id 1QEgxP-0005K1-RO for guile-user@gnu.org; Tue, 26 Apr 2011 14:01:31 +0200 Mail-Followup-To: rixed@happyleptic.org, guile-user@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 92.243.13.193 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8598 Archived-At: > > Something similar to python's twisted would be extra cool IMO. > > I don't know much about it, but serveez might be going in that > direction. Unfortunately, from a quick fly-by of serveez manual I wouldn't say so. While, from some high level viewpoint, twisted can be seen as a mere server build helper, it's also much more than than: it's actually an event driven(*) framework for building elaborated protocols. For instance, you inherit the HTTP protocol implementation and override its 'message received' hook and voilą, you are implementing your own protocol over HTTP. Have used it a couple of times and I must say I've never encountered another lib in any other language that make it so easy to write both servers and clients (when high perfs are not required). I'm far from being a python fan but twisted and scapy are two pieces of python code any hacker should have a look at, and which I'd love to see equivalents in other languages, IMHO. (*) but using python 'yield' builtin it becomes lightweight threaded; although python's thread are ashamedly inefficient it's still easier to read/write code written this way.