From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id D1192BC6B for ; Tue, 9 Oct 2007 12:20:08 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAOvyCkfAXQImh2dsb2JhbACORwEBAQgKKQ X-IronPort-AV: E=Sophos;i="4.21,248,1188770400"; d="scan'208";a="2638066" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 09 Oct 2007 12:20:10 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l99AK8HU006715 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 9 Oct 2007 12:20:08 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKjxCkfBvsFJn2dsb2JhbACORwEBAQEHBAYJCBg X-IronPort-AV: E=Sophos;i="4.21,248,1188770400"; d="scan'208";a="17732236" Received: from hedwig2.umh.ac.be (HELO hedwig1.umh.ac.be) ([193.190.193.73]) by mail4-smtp-sop.national.inria.fr with ESMTP; 09 Oct 2007 12:20:07 +0200 Received: from poincare.swapping.umh.ac.be ([10.102.100.12]) by hedwig1.umh.ac.be (8.13.6/8.13.6) with ESMTP id l99AKDG2778374; Tue, 9 Oct 2007 12:20:13 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.67) (envelope-from ) id 1IfCC4-0003rT-L7; Tue, 09 Oct 2007 12:20:04 +0200 Date: Tue, 09 Oct 2007 12:20:04 +0200 (CEST) Message-Id: <20071009.122004.251675959.Christophe.Troestler+ocaml@umh.ac.be> To: "O'Caml Mailing List" Subject: Re: [Caml-list] Correct way of programming a CGI script From: Christophe TROESTLER In-Reply-To: <1191886669.26491.29.camel@rosella.wigram> References: <1191879429.28011.27.camel@rosella.wigram> <20071009082147.657017dc.mle+ocaml@mega-nerd.com> <1191886669.26491.29.camel@rosella.wigram> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons-Hainaut X-Mailer: Mew version 5.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at discorde with ID 470B55D8.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 buffer:01 ocaml:01 buffer:01 cheers:01 wrote:01 caml-list:01 immutable:01 umh:01 strings:01 strings:01 On Tue, 09 Oct 2007 09:37:49 +1000, skaller wrote: > > If you use Buffer for concatenation you'll get faster times than > Ocaml (^) operator on strings, but what this misses is that other > operations on strings (such as searching, substring etc etc) > aren't available for Buffer. The other operations are implemented for ropes (except regular expressions which will happen when I have some time or some help!) > Note that Python strings are immutable, So are ropes. Cheers, ChriS