<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/d8c8c595c2902312abd0343084706165"
  from="Anil Madhavapeddy &lt;anil@r...&gt;"
  author="Anil Madhavapeddy"
  date="2006-02-24T19:05:06"
  subject="Re: [Caml-list] Question on performance/style issue"
  prev="2006/02/a8d5306ea95335fa3871ce04b6289eda"
  next="2006/02/0ebec75c27d234c948b81970db4a6835"
  prev-in-thread="2006/03/ed0ce40f2a87f7ff5716e84b2e74eb12"
  next-in-thread="2006/02/0ebec75c27d234c948b81970db4a6835"
  prev-thread="2006/02/9f0ca6903d5847a3857caae30a564264"
  next-thread="2006/02/58b79c51b309263043849d99234fa5cb"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Question on performance/style issue">
<msg 
  url="2006/02/1640d4314b4423c9ca49c8e5bba9d00a"
  from="Alessandro Baretta &lt;a.baretta@s...&gt;"
  author="Alessandro Baretta"
  date="2006-02-24T15:52:47"
  subject="Question on performance/style issue">
<msg 
  url="2006/03/22ae87840138ecf727b5a3e73ef0eb51"
  from="Nathaniel Gray &lt;n8gray@g...&gt;"
  author="Nathaniel Gray"
  date="2006-03-01T05:45:54"
  subject="Re: [Caml-list] Question on performance/style issue">
<msg 
  url="2006/03/ed0ce40f2a87f7ff5716e84b2e74eb12"
  from="Alessandro Baretta &lt;a.baretta@s...&gt;"
  author="Alessandro Baretta"
  date="2006-03-01T08:35:05"
  subject="Re: [Caml-list] Question on performance/style issue">
</msg>
</msg>
<msg 
  url="2006/02/d8c8c595c2902312abd0343084706165"
  from="Anil Madhavapeddy &lt;anil@r...&gt;"
  author="Anil Madhavapeddy"
  date="2006-02-24T19:05:06"
  subject="Re: [Caml-list] Question on performance/style issue">
<msg 
  url="2006/02/0ebec75c27d234c948b81970db4a6835"
  from="Alessandro Baretta &lt;a.baretta@s...&gt;"
  author="Alessandro Baretta"
  date="2006-02-24T19:25:29"
  subject="Re: [Caml-list] Question on performance/style issue">
<msg 
  url="2006/02/a79bf343e1e5f2454ac8e10feb96fd3c"
  from="Andrej Bauer &lt;Andrej.Bauer@a...&gt;"
  author="Andrej Bauer"
  date="2006-02-25T11:12:34"
  subject="Re: [Caml-list] Question on performance/style issue">
<msg 
  url="2006/02/8fbbefacc74504467b5d5fc4adb7449a"
  from="cookedm+news@p..."
  author="cookedm+news@p..."
  date="2006-02-27T22:40:29"
  subject="Re: Question on performance/style issue">
<msg 
  url="2006/02/d35c41940d245f05e99c25d110bb4645"
  from="David Brown &lt;caml-list2@d...&gt;"
  author="David Brown"
  date="2006-02-27T23:49:36"
  subject="Re: [Caml-list] Re: Question on performance/style issue">
<msg 
  url="2006/02/d086c78b00ef53ff342eb6b3938c6b37"
  from="Alessandro Baretta &lt;a.baretta@s...&gt;"
  author="Alessandro Baretta"
  date="2006-02-28T12:03:00"
  subject="Re: [Caml-list] Re: Question on performance/style issue">
</msg>
</msg>
</msg>
<msg 
  url="2006/02/18676f7626cd58f05d6863d1ca2a0db8"
  from="Alessandro Baretta &lt;a.baretta@s...&gt;"
  author="Alessandro Baretta"
  date="2006-02-28T12:04:26"
  subject="Re: [Caml-list] Question on performance/style issue">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Fri, Feb 24, 2006 at 04:52:41PM +0100, Alessandro Baretta wrote:
&gt; I am very fond of the following "duality" operator.
&gt; 
&gt; let (++) x f = f x
&gt; 
&gt; I use to write complex computations legibly: instead of
&gt; &gt; h(g(f(x)))
&gt; I write
&gt; &gt; x ++ f ++ g ++ h
&gt; 
&gt; What is the impact of the this programming style on execution performance?

&gt;From a GC point of view, this is better than the alternative of
splitting up the calls into separate let bindings.  It's used in
the OCaml sources to make some long call-chains look nicer.


To reference the original post...
http://caml.inria.fr/pub/ml-archives/caml-list/2003/09/825011113899cde2b1b96cf7fc7a0f7b.en.html

-- 
Anil Madhavapeddy                                 http://anil.recoil.org
University of Cambridge                          http://www.cl.cam.ac.uk

</contents>

</message>

