Re: [Caml-list] camlp4

2010-02-07 Thread Joseph Young
On Sat, 6 Feb 2010, Andy Ray wrote: Hi, My project would really benefit from some simple camlp4 syntax extensions, however, I am put off by the lack of a reference manual for it. At the moment I am tempted to go for camlp5 instead - not least because I was able to work through it's manual and

Re: [Caml-list] camlp4

2010-02-07 Thread Martin DeMello
On Sat, Feb 6, 2010 at 5:44 PM, Tiphaine Turpin tiphaine.tur...@irisa.fr wrote: - the source folder tree is deep, and thus harder to grep tangentially, i've found that a great way to deal with that is to import the whole thing into a local git repository and then use git grep. works like a

Re: [Caml-list] camlp4

2010-02-07 Thread Ashish Agarwal
- the source folder tree is deep, and thus harder to grep I use find. $ find ./ -exec grep foo {} \; On Sun, Feb 7, 2010 at 12:19 PM, Martin DeMello martindeme...@gmail.comwrote: On Sat, Feb 6, 2010 at 5:44 PM, Tiphaine Turpin tiphaine.tur...@irisa.fr wrote: - the source folder tree is

Re: [Caml-list] camlp4

2010-02-07 Thread Yoann Padioleau
On Feb 7, 2010, at 5:14 PM, Ashish Agarwal wrote: - the source folder tree is deep, and thus harder to grep I use find. $ find ./ -exec grep foo {} \; You can also use a shell like zsh or eshell and do grep foo **/*.ml* When you use eshell the grep result is even clickable.

[Caml-list] Power serious

2010-02-07 Thread Jon Harrop
I stumbled upon the following article that describes a remarkably simple implementation of arithmetic over power series in Haskell: http://www.cs.dartmouth.edu/~doug/powser.html This is the only compelling example of Haskell I have ever seen and I'd like to see this rewritten in other

[Caml-list] How to wrap around C++?

2010-02-07 Thread Luca de Alfaro
I need to be able to call some C++ functions from my Ocaml code. Can someone point me to some examples on how this is done? Is it an issue if what I need to wrap is C++, rather than the more standard C? I also would like to know if I can do something more complex... namely, I would like to

[Caml-list] Re: How to wrap around C++?

2010-02-07 Thread Michael Ekstrand
On 02/07/2010 08:13 PM, Luca de Alfaro wrote: Essentially, the C++ object implements access to a file via some compression, etc, mechanism. In C++, one creates the object, calls write and read methods, calls the method for closing the file, and deletes the object. How can I wrap around

[Caml-list] Re: How to wrap around C++?

2010-02-07 Thread Michael Ekstrand
On 02/07/2010 10:06 PM, Michael Ekstrand wrote: * Compiling is tricky, since the OCaml compiler driver doesn't know what to do with C++. The Swig documentation[1] has a workaround for this, useful even if you don't use Swig. I forgot the footnote with a link: 1.