Re: [Caml-list] caml trading

2009-03-17 Thread Philip
On Mon, 2009-03-16 at 12:01 -0500, aditya siram wrote: Thanks for this awesome video! I was unaware that the Caml compiler did not optimize source code before generating native code. Now I am a little less afraid to study the actual compiler! Your point about a lack of GUI libraries is

[Caml-list] XML output

2009-03-17 Thread Rémi Dewitte
Hello, I have used pxp to parse xml and I am happy with it. I'd like now to produce xml and wonder what are the options to do so (possibly the simpliest). I think I am going to start with the Printf module. I wonder how well it handles utf8 for example. And I'll have to write a kind of

Re: [Caml-list] XML output

2009-03-17 Thread Gerd Stolpmann
Am Dienstag, den 17.03.2009, 12:01 +0100 schrieb Rémi Dewitte: Hello, I have used pxp to parse xml and I am happy with it. I'd like now to produce xml and wonder what are the options to do so (possibly the simpliest). Maybe not the simplest: Use the PXP preprocessor to create the output

[Caml-list] Int64 comparison

2009-03-17 Thread Elnatan Reisner
Do the polymorphic ordering functions -- (), (), etc. -- correspond to the numerical ordering for Int64s and Int32s? I assume so, but I didn't see this specified anywhere. If the answer is 'yes', is there a reason I should prefer Int64.compare n1 n2 0 to n1 n2 ? If there's no specific

Re : [Caml-list] Re: XML output

2009-03-17 Thread Matthieu Wipliez
Yet another solution is Xmlm by Daniel Bünzli. http://erratique.ch/software/xmlm This is probably the easiest and lightweight solution: Xmlm comes as a single module and its interface, and it's BSD so you can just copy/paste it into your project. Cheers, Matthieu - Message d'origine

Re: [Caml-list] Int64 comparison

2009-03-17 Thread Till Varoquaux
Taken from Int64.ml: let compare (x: t) (y: t) = Pervasives.compare x y compare seems to be there for functor applications (e.g. Set.Make needs it). I would use standard comparison; it should be exactly the same except it will be more legible and might be a tad faster. Till On Tue, Mar 17,

Re: [Caml-list] Int64 comparison

2009-03-17 Thread Jérémie Dimino
Le mardi 17 mars 2009 à 08:51 -0400, Elnatan Reisner a écrit : Do the polymorphic ordering functions -- (), (), etc. -- correspond to the numerical ordering for Int64s and Int32s? I assume so, but I didn't see this specified anywhere. Yes, int64s and int32s are represented in memory by

Re: [Caml-list] caml trading

2009-03-17 Thread Mike Lin
On Tue, Mar 17, 2009 at 9:56 AM, Markus Mottl markus.mo...@gmail.comwrote: 2009/3/16 Yaron Minsky ymin...@gmail.com: I would humbly propose that this thread has now gotten deeply off-topic, and perhaps discussion on the list should turn back to programming languages, rather than to deep

Re: [Caml-list] caml trading

2009-03-17 Thread Lawrence Austen
Hi Markus, I agree that, empirically, market-based mechanisms tend to be the socially optimal solution to most real-world resource allocation problems. However, this isn't really what is demonstrated in most introductory microeconomics textbooks, which focus on the analysis of systems in

[Caml-list] native compilation: no implementation provided for dynlink?

2009-03-17 Thread Joel Reymont
How do I fix this? Thanks, Joel --- + ocamlfind ocamlopt -package 'extlib, dynlink, camlp4.lib' -linkpkg - g src/easy_ast.cmx src/easy_lexer.cmx src/token.cmx src/static1.cmx src/easy_parser.cmx src/easy_symtab.cmx src/easy_typer.cmx src/ ninja_ast.cmx src/ninja_morpher.cmx

Re: [Caml-list] native compilation: no implementation provided for dynlink?

2009-03-17 Thread Jon Harrop
On Tuesday 17 March 2009 18:10:49 Joel Reymont wrote: How do I fix this? Are you on OCaml 3.11? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e ___ Caml-list mailing list. Subscription management:

[Caml-list] ocamlfind ocamlopt.opt?

2009-03-17 Thread Alexy Khrabrov
[This is supposed to be the shortest question to the list so far; parts in brackets don't count! :)] ocamlfind ocamlopt.opt # how? [move away non.opt and ln -s x.opt x ? prettier? :)] Cheers, Alexy ___ Caml-list mailing list. Subscription

Re: [Caml-list] native compilation: no implementation provided for dynlink?

2009-03-17 Thread Martin Jambon
Joel Reymont wrote: ocaml -version The Objective Caml toplevel, version 3.12.0+dev2 (2009-01-25) Do you mean to recompile them with 3.11? I think the problem is in a META file, which lacks a dependency. Dynlink must be loaded by the camlp4 lib since 3.11. I think Gerd fixed it in the latest

[Caml-list] Re: ocamlfind ocamlopt.opt?

2009-03-17 Thread Sylvain Le Gall
On 17-03-2009, Alexy Khrabrov delivera...@gmail.com wrote: [This is supposed to be the shortest question to the list so far; parts in brackets don't count! :)] ocamlfind ocamlopt.opt # how? [move away non.opt and ln -s x.opt x ? prettier? :)] Of course, there is prettier solution. Use a

Re: [Caml-list] Re: ocamlfind ocamlopt.opt?

2009-03-17 Thread Alexy Khrabrov
On Mar 17, 2009, at 6:13 PM, Sylvain Le Gall wrote: I think you can also directly fix it through /etc/ocamlfind.conf or any other configuration file installed by ocamlfind. Duh -- my GODI has etc/findlib.conf doing it, and it shows destdir=/opt/ocaml/lib/ocaml/site-lib