<?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="2002/07/051fb722e8cf6e3d6ab4210e82f4c243"
  from="Chris Hecker &lt;checker@d...&gt;"
  author="Chris Hecker"
  date="2002-07-25T18:24:30"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)"
  prev="2002/07/dcc2af7fceff5460d2e471cd0472f44d"
  next="2002/07/3a3fcdeb0903a486a8e51b5dbe0882df"
  prev-in-thread="2002/07/51745bbdd0ecdc6a7a43fccfff18d61e"
  next-in-thread="2002/07/24ceafe927865c0a249fe1cee8b3c7c7"
  prev-thread="2002/07/1ba7258845ed8bd9491c0456e7a05b1e"
  next-thread="2002/07/baaa01d7b8a97fafc2d4150df5a3a6fd"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/ed6e258ddd3082e1de940b5ff3b369ea"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2002-07-20T14:20:27"
  subject="[Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/16814c22c2ab33015026d759c5d6f226"
  from="Daniel de Rauglaudre &lt;daniel.de_rauglaudre@i...&gt;"
  author="Daniel de Rauglaudre"
  date="2002-07-20T18:29:15"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
</msg>
<msg 
  url="2002/07/7f6e58388b6fcd30627883ac681ff89c"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-21T00:47:37"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/133a762c6b32cf03f761f4230b1561c8"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2002-07-23T20:22:07"
  subject="Re: [Caml-list] Bigarray map &amp; set/get">
</msg>
</msg>
<msg 
  url="2002/07/b7841084f82ad9e51765e3357d07ea48"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-07-22T09:31:44"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/2b08843c2f8529ab4a5eedce49929387"
  from="Fernando Alegre &lt;fernando@c...&gt;"
  author="Fernando Alegre"
  date="2002-07-22T15:43:31"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
</msg>
<msg 
  url="2002/07/a769b8a76ed8b30094378a9caa9ea02b"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2002-07-23T20:19:22"
  subject="Re: [Caml-list] Bigarray map &amp; set/get">
</msg>
<msg 
  url="2002/07/763129ca4fe6154a65c88d7da6b7959c"
  from="Chris Hecker &lt;checker@d...&gt;"
  author="Chris Hecker"
  date="2002-07-25T03:23:11"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/51745bbdd0ecdc6a7a43fccfff18d61e"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-07-25T09:31:22"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/051fb722e8cf6e3d6ab4210e82f4c243"
  from="Chris Hecker &lt;checker@d...&gt;"
  author="Chris Hecker"
  date="2002-07-25T18:24:30"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/24ceafe927865c0a249fe1cee8b3c7c7"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-26T21:51:12"
  subject="Re: [Caml-list] Bigarray map &amp; set/get (long)">
<msg 
  url="2002/07/579eb5dc14be1c802d8043f96c7e96d7"
  from="Chris Hecker &lt;checker@d...&gt;"
  author="Chris Hecker"
  date="2002-07-26T22:37:15"
  subject="wanted features (was: Re: [Caml-list] Bigarray map &amp; set/get (long))">
<msg 
  url="2002/07/87d4e5dfb5ea475448d2bc51ecccb90d"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-27T22:01:52"
  subject="Re: wanted features (was: Re: [Caml-list] Bigarray map &amp; set/get (long))">
<msg 
  url="2002/07/7b2c14348f27a8845ae2d4b2a9d58b49"
  from="Chris Hecker &lt;checker@d...&gt;"
  author="Chris Hecker"
  date="2002-07-26T22:48:37"
  subject="Re: wanted features (was: Re: [Caml-list] Bigarray map &amp; set/get (long))">
<msg 
  url="2002/07/5608bba0b3e126c6176446238a91af17"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-27T22:02:15"
  subject="Re: wanted features (was: Re: [Caml-list] Bigarray map &amp; set/get (long))">
<msg 
  url="2002/07/6fb5deefe427195778984eef0ee6d0ee"
  from="Chris Hecker &lt;checker@d...&gt;"
  author="Chris Hecker"
  date="2002-07-27T00:36:46"
  subject="Re: wanted features (was: Re: [Caml-list] Bigarray map &amp; set/get (long))">
<msg 
  url="2002/07/48145749fb05dbc641b08cc3c73dea0b"
  from="Dimitri Ara &lt;dimitri@n...&gt;"
  author="Dimitri Ara"
  date="2002-07-27T12:06:11"
  subject="Re: wanted features (was: Re: [Caml-list] Bigarray map &amp; set/get (long))">
</msg>
<msg 
  url="2002/07/ced8870b7d5cbdccff4a58acca97dcb0"
  from="Dimitri Ara &lt;dimitri@n...&gt;"
  author="Dimitri Ara"
  date="2002-07-27T21:59:32"
  subject="Re: wanted features (was: Re: [Caml-list] Bigarray map &amp; set/get (long))">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>

&gt;Agreed, but in this case (as I mentioned in my earlier post) you'd get
&gt;better performance by just using regular float arrays rather than 
&gt;bigarrays.(*)
&gt;Thus, I recommend using bigarrays only when interfacing with C or
&gt;Fortran numerical code.

Sure, but what a pain if you want to do both (say, do some math on an array 
of floats in caml and then pass them to a graphics api as vertices).  Or, 
you start with an algorithm in caml and then slowly need to move parts of 
it to C/asm.  It would clearly be better if there was a single uniform way 
to do things that was "optimal" (or close) for both situations.  It seems 
that the bigarray stuff is not far off from this, as I said.  There seems 
to be some nice low hanging fruit that could make a big difference in the 
native compiler with bigarrays.

Anyway, I'll look into it again and do some experiments at some point and 
see what I come up with.  I'd much rather have the caml team working on 
harder more higher level stuff that I'd have no prayer of being able to 
do[*], anyway.

Chris

[*] My current list of needed/wanted language features:

1. operator overloading/generics for making math less ugly and painful
2. module recursion
3. views for pattern matching abstract data types

I added views to my want-list relatively recently (6 months ago?) as I 
started trying to do more interesting stuff.  I can't believe the conflict 
between wanting to pattern match like you're supposed to in ml and wanting 
to abstract data types like you're supposed to in ml doesn't get more 
attention in the functional programming community.  It seems like a glaring 
problem, but maybe I'm missing something.


-------------------
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

</contents>

</message>

