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 D9609BC6C for ; Thu, 11 Oct 2007 15:54:29 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAE7IDUfLENaMn2dsb2JhbACOSgEBAQEHBAYJIA X-IronPort-AV: E=Sophos;i="4.21,260,1188770400"; d="scan'208";a="2773183" Received: from ipmail01.adl2.internode.on.net ([203.16.214.140]) by mail1-smtp-roc.national.inria.fr with ESMTP; 11 Oct 2007 15:54:28 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAIPFDUd5LCRs/2dsb2JhbAAM X-IronPort-AV: E=Sophos;i="4.21,260,1188743400"; d="scan'208";a="208452380" Received: from ppp121-44-36-108.lns10.syd7.internode.on.net (HELO [192.168.1.201]) ([121.44.36.108]) by ipmail01.adl2.internode.on.net with ESMTP; 11 Oct 2007 23:24:20 +0930 Subject: Re: [Caml-list] Re: Rope is the new string From: skaller To: Vincent Hanquez Cc: Chris King , caml-list@yquem.inria.fr In-Reply-To: <20071011130354.GA7016@snarc.org> References: <1191879429.28011.27.camel@rosella.wigram> <1191886669.26491.29.camel@rosella.wigram> <20071009.122004.251675959.Christophe.Troestler+ocaml@umh.ac.be> <200710091440.48381.jon@ffconsultancy.com> <20071009155702.GB26282@snarc.org> <6f9f8f4a0710090942u2afe6c5erc2d5b11ecfff2253@mail.gmail.com> <20071009165520.GA27507@snarc.org> <6f9f8f4a0710091032r3dace80bi4f9b584ae5056675@mail.gmail.com> <20071009195119.GA29263@snarc.org> <875c7e070710091504j203ff78y8703fc5c22086671@mail.gmail.com> <20071011130354.GA7016@snarc.org> Content-Type: text/plain Date: Thu, 11 Oct 2007 23:54:24 +1000 Message-Id: <1192110864.6045.12.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; 0200,:01 camomile:01 camomile:01 sourceforge:01 wrote:01 wrote:01 caml-list:01 functions:01 functions:01 strings:01 define:02 append:02 append:02 modules:02 string:02 On Thu, 2007-10-11 at 15:03 +0200, Vincent Hanquez wrote: > On Tue, Oct 09, 2007 at 06:04:57PM -0400, Chris King wrote: > > On 10/9/07, Vincent Hanquez wrote: > > > i want a UTF library to be able to do something like: > > > > > > type ustring = unicode_type * string > > > of_string: string -> ustring (* raise if not unicode compliant *) > > > to_string: ustring -> string > > > append: ustring -> ustring -> ustring > > > ...etc > > > > Have you checked out Camomile [1]? It handles such things quite nicely. > > The problem with camomile as it's actually so massive (27 modules) that > it's scary ;) > > What i have in mind, in what should be the standard library, is a very > simple module that define something like 20 functions at most, to > have valid unicode strings type (of all common unicode types) and do > common operations (append, find, ...) on it. You can't: Camomile is massive for a reason.. the problem it aims to solve is complex and hard to do efficiently without a large set of specialised functions. -- John Skaller Felix, successor to C++: http://felix.sf.net