From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA12870; Mon, 5 Aug 2002 08:45:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA11960 for ; Mon, 5 Aug 2002 08:45:07 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g756j5D10632 for ; Mon, 5 Aug 2002 08:45:05 +0200 (MET DST) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3/3.7W) with ESMTP id PAA12464 for ; Mon, 5 Aug 2002 15:45:03 +0900 (JST) To: caml-list@inria.fr Subject: [Caml-list] ocaml-classes-3.05 X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020805154503M.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 05 Aug 2002 15:45:03 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk O'Caml classes 3.05 is now available at http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/classes/ ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/ocaml-classes-3.05.tar.gz ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/ocaml-classes-3.05.tar.gz This is a small library of wrappers around standard library classes, to allow a somehow object-oriented use. Since ocaml 3.05, collection classes have also polymorphic fold methods. --------------------------------------------------------------------------- Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp JG ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA31298; Mon, 5 Aug 2002 20:18:32 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA31125 for ; Mon, 5 Aug 2002 20:18:31 +0200 (MET DST) Received: from dewberry.cc.columbia.edu (dewberry.cc.columbia.edu [128.59.59.68]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g75IIUP16526 for ; Mon, 5 Aug 2002 20:18:30 +0200 (MET DST) Received: from there (tw304h3.cpmc.columbia.edu [156.111.84.180]) by dewberry.cc.columbia.edu (8.9.3/8.9.3) with SMTP id OAA17251 for ; Mon, 5 Aug 2002 14:18:29 -0400 (EDT) Message-Id: <200208051818.OAA17251@dewberry.cc.columbia.edu> Content-Type: text/plain; charset="iso-8859-1" From: Oleg To: caml-list@inria.fr Subject: Re: [Caml-list] ocaml-classes-3.05 Date: Mon, 5 Aug 2002 14:18:41 -0400 X-Mailer: KMail [version 1.3.2] References: <20020805154503M.garrigue@kurims.kyoto-u.ac.jp> In-Reply-To: <20020805154503M.garrigue@kurims.kyoto-u.ac.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Monday 05 August 2002 02:45 am, Jacques Garrigue wrote: > O'Caml classes 3.05 is now available at > > http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/classes/ > ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/ocaml-classes-3.05.tar.gz > ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/ocaml-classes-3.05.tar.gz > > This is a small library of wrappers around standard library classes, > to allow a somehow object-oriented use. Jacques, what are the advantages of using the OO wrappers over the corresponding modules from the standard distribution? Thanks Oleg ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA32549; Mon, 5 Aug 2002 21:27:07 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA32535 for ; Mon, 5 Aug 2002 21:27:06 +0200 (MET DST) Received: from laurelin.dementia.org ([208.167.88.73]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g75JR4D06768 for ; Mon, 5 Aug 2002 21:27:04 +0200 (MET DST) Received: by laurelin.dementia.org (Postfix, from userid 1001) id 5B94470CA; Mon, 5 Aug 2002 15:27:04 -0400 (EDT) To: Oleg Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocaml-classes-3.05 References: <20020805154503M.garrigue@kurims.kyoto-u.ac.jp> <200208051818.OAA17251@dewberry.cc.columbia.edu> From: John Prevost Date: 05 Aug 2002 15:27:04 -0400 (81.046 UMT) In-Reply-To: <200208051818.OAA17251@dewberry.cc.columbia.edu> Message-ID: <86ado19kdz.fsf@laurelin.dementia.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >>>>> "oi" == Oleg writes: oi> Jacques, what are the advantages of using the OO wrappers over oi> the corresponding modules from the standard distribution? An example that's occurred to me in the past: OO wrappers for the I/O routines would be very good if you want to be able to introduce your own varieties of streams, and use common code over all of them. John. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA03866; Tue, 6 Aug 2002 02:14:17 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA03809 for ; Tue, 6 Aug 2002 02:14:16 +0200 (MET DST) Received: from favie.faith.gr.jp (favie.faith.gr.jp [61.127.175.250]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g760EAP21249 for ; Tue, 6 Aug 2002 02:14:11 +0200 (MET DST) Received: from localhost (dhcp7.faith.gr.jp [192.168.1.17]) by favie.faith.gr.jp (8.9.3/8.9.3) with ESMTP id JAA09561; Tue, 6 Aug 2002 09:13:50 +0900 To: oleg_inconnu@myrealbox.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocaml-classes-3.05 In-Reply-To: <200208051818.OAA17251@dewberry.cc.columbia.edu> References: <20020805154503M.garrigue@kurims.kyoto-u.ac.jp> <200208051818.OAA17251@dewberry.cc.columbia.edu> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020806091344X.garrigue@kurims.kyoto-u.ac.jp> Date: Tue, 06 Aug 2002 09:13:44 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Oleg > > O'Caml classes 3.05 is now available at > > > > http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/classes/ > > ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/ocaml-classes-3.05.tar.gz > > ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/ocaml-classes-3.05.tar.gz > > > > This is a small library of wrappers around standard library classes, > > to allow a somehow object-oriented use. > > Jacques, what are the advantages of using the OO wrappers over the > corresponding modules from the standard distribution? None. You don't get more features. But it felt strange at the beginning to have an OO languages with no basic classes. So I quickly wrote those, and apparently some people are using them. They may like the oo syntax, or the customizability. Jacques Garrigue ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA04378; Tue, 6 Aug 2002 02:49:26 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA04389 for ; Tue, 6 Aug 2002 02:49:25 +0200 (MET DST) Received: from wetware.wetware.com (wetware.wetware.com [199.108.16.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g760nOP24042 for ; Tue, 6 Aug 2002 02:49:24 +0200 (MET DST) Received: from kallisti.local.(ra02.wetware.com[199.108.16.82]) (1863 bytes) by wetware.wetware.com via sendmail with P:esmtp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for ; Mon, 5 Aug 2002 17:49:22 -0700 (PDT) (Smail-3.2.0.114 2001-Aug-6 #1 built 2002-Aug-4) Date: Mon, 5 Aug 2002 17:49:21 -0700 Subject: Re: [Caml-list] ocaml-classes-3.05 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v543) Cc: oleg_inconnu@myrealbox.com, caml-list@inria.fr To: Jacques Garrigue From: james woodyatt In-Reply-To: <20020806091344X.garrigue@kurims.kyoto-u.ac.jp> Message-Id: <5858A222-A8D6-11D6-A84E-000502DB38F5@wetware.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.543) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Monday, Aug 5, 2002, at 17:13 US/Pacific, Jacques Garrigue wrote: > From: Oleg >> >> Jacques, what are the advantages of using the OO wrappers over the >> corresponding modules from the standard distribution? > > None. > You don't get more features. Actually... not true. You get the ability to override the methods by inheritance. In exchange for this feature, you pay a not insignificant cost in initialization time and program codespace. Whether this trade is a good one is open to interpretation. > But it felt strange at the beginning to have an OO languages with no > basic classes. So I quickly wrote those, and apparently some people > are using them. They may like the oo syntax, or the customizability. It felt strange to me at first too. The feeling eventually passed when I fully understood what is really easier to do with classes and class types than with modules, signatures and functors. My advice: Use the most basic syntax the language provides to do the basics. Use objects and methods only when functions (including higher-order functions) are insufficient. --james ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners