Re: [Caml-list] Lwt and OCamlMakefile

2010-12-20 Thread Markus Mottl
; > Thanks! > > ___ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners &g

Re: [Caml-list] Asynchronous IO programming in OCaml

2010-10-24 Thread Markus Mottl
en thousands of connections, you'll probably want to consider epoll. select does not scale well. Regards, Markus -- Markus Mottl        http://www.ocaml.info        markus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: http:

Re: [Caml-list] Escaped string in sexplib

2010-06-08 Thread Markus Mottl
s should still be very easy. S-expressions are either a Sexp.Atom or Sexp.List. It should only require a handful of lines to convert these to whatever other string representation you prefer. Writing a corresponding parser may be more effort. Regards, Markus -- Markus Mottl

Re: [Caml-list] Escaped string in sexplib

2010-06-08 Thread Markus Mottl
t; when data is read back in. > > How can I do this? Appreciate any pointers. The I/O and parsing routines in the S-expression library should take care of escaped strings just fine. Btw., the escaping conventions are absolutely identical to the ones used by OCaml. Regards, Marku

Re: [Caml-list] min function, why is it so slow?

2010-04-29 Thread Markus Mottl
alization, i.e. a generic (= slow) comparison function will be called. E.g. if your array contains integers or floats, this is likely to make a significant difference. Try constraining the type of your min function to the one of the array elements. This will probably make the problem go away. Re

Re: [Caml-list] Re: Random segfaults / out of memory

2010-03-30 Thread Markus Mottl
uot;noalloc", but later change the C-code in ways that breaks this property. The tiny extra performance may not be worth that risk. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing li

Re: [Caml-list] Encoding an extensible parse tree and subtyping within OCaml

2010-03-03 Thread Markus Mottl
; ext' You will need to constrain a pattern with a type again if you want to make sure that the pattern match fails in the right place (match case) if unsupported tags are added. You could also turn warnings into errors, which should also f

Re: [Caml-list] Re: OCaml is broken

2009-12-20 Thread Markus Mottl
On Sun, Dec 20, 2009 at 23:30, Jon Harrop wrote: > Traffic here: > > 2007: 5814 > 2008: 4051 > 2009: 3071 That's because I don't have much time to post here nowaydays. I'm sure if Jon followed my example, we would have a parallel GC for OCaml by the end of the year

[Caml-list] ANN: Gaussian processes in OCaml

2009-11-23 Thread Markus Mottl
. The library and manual can be downloaded from here: http://www.ocaml.info/home/ocaml_sources.html#gpr A Godi package (gpr) is already available, too. Enjoy! Best regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com

Re: [Caml-list] Core 0.6.0

2009-10-08 Thread Markus Mottl
irtually impossible to miss changes. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archiv

Re: [Caml-list] Core 0.6.0

2009-10-08 Thread Markus Mottl
The new Jane Street Core library is now also available through Godi and is tested to build on Linux. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: http

Re: [Caml-list] Compiling OCaml under OS X 10.6

2009-09-02 Thread Markus Mottl
On Tue, Sep 1, 2009 at 12:32, John Whitington wrote: > Has anyone managed this? Bytecode seems fine, native not so. I haven't compiled it under 10.6, but FWIW my 64bit Godi installation of OCaml kept working just fine after the upgrade. Regards, Markus -- Markus Mottl

Re: [Caml-list] problem building godi-bin-prot on OS X

2009-05-17 Thread Markus Mottl
t; (*pp gcc -E -xc $ARCH_FLAGS *) > > Unfortunately, I don't know how to "productize" such change. This problem is already fixed in my version and the one in Godi (1.2.14), but not the one distributed by Jane Street. Regards, Markus -- Markus Mottlhttp://www.o

Re: [Caml-list] problem building godi-bin-prot on OS X

2009-05-16 Thread Markus Mottl
ease. I cannot tell how long this will take since I'm not directly involved in the release process for this library itself, but I guess one might already start holding one's breath... Regards, Markus -- Markus Mottlhttp://www.ocaml.

Re: [Caml-list] float array/record unboxing

2009-05-11 Thread Markus Mottl
re this feature is documented? I don't think this is documented anywhere, since this is an implementation detail that (though unlikely) might even change in the future. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com

Re: [Caml-list] Custom blocks and finalization

2009-05-08 Thread Markus Mottl
uess the documentation could still be clarified in this respect, because the explicit prohibition of using the local root (de)registration functions suggests that these operations are not guaranteed to be sound and that this might also extend to global roots. Regards, Markus -- Markus M

Re: [Caml-list] Custom blocks and finalization

2009-05-06 Thread Markus Mottl
e runtime code in detail to learn more, but maybe the OCaml team can clarify this issue more quickly? Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: htt

Re: [Caml-list] Custom blocks and finalization

2009-05-01 Thread Markus Mottl
need to be called after a collection in a table. Maybe something similar can be done for C-finalizers? Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: http://yque

[Caml-list] Custom blocks and finalization

2009-04-30 Thread Markus Mottl
callbacks into OCaml). Registering the finalizer from within C during allocation rather than having to wrap up the value a second time with an OCaml-finalizer would seem much simpler. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.

Re: [Caml-list] Strange performance bug

2009-04-29 Thread Markus Mottl
-heap is large and you allocate regular expressions at very high rates. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman

Re: [Caml-list] Strange performance bug

2009-04-29 Thread Markus Mottl
y. A still reasonable higher setting would probably not solve performance bugs of the sort above anyway. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: htt

Re: [Caml-list] Strange performance bug

2009-04-29 Thread Markus Mottl
This setting works fine for just about any application I've seen, because virtually nobody has to create patterns dynamically at rates so high that this matters. Thus, try hoisting out the compilation of the regexp first... Markus -- Markus Mottlhttp://www.ocaml.

Re: [Caml-list] Strange performance bug

2009-04-28 Thread Markus Mottl
xp "...") and pass it in with label "~rex" to solve this problem. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: http://yqu

Re: [Caml-list] caml trading

2009-03-17 Thread Markus Mottl
s than they solve. Ideological quick fixes do not exist, just as the optimal type sytem doesn't so no more flames please... Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscri

Re: [Caml-list] caml trading

2009-03-16 Thread Markus Mottl
ackers, our company makes it cheaper for people to invest their hard-earned money by providing extra liquidity on financial markets. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list.

Re: [Caml-list] New bee question

2009-03-16 Thread Markus Mottl
his indicates that your type-conv library, on which bin-prot depends, is not up-to-date. It is also highly recommended to upgrade to the newest compiler release. Cheers, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___

Re: [Caml-list] typing problem with sexplib and mutually recursive polymorphic types

2009-03-11 Thread Markus Mottl
aid. Does this mean that eventually polymorphic recursion might be supported by OCaml? What's still missing for that feature? Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list

Re: [Caml-list] typing problem with sexplib and mutually recursive polymorphic types

2009-03-11 Thread Markus Mottl
sult with the user-provided type declaration, i.e. when it's too late. Of course, there are workarounds (recursive modules, polymorphic record fields), but, as you said, they are clunky indeed... Cheers, Markus -- Markus Mottlhttp://www.oca

Re: [Caml-list] typing problem with sexplib and mutually recursive polymorphic types

2009-03-11 Thread Markus Mottl
a truly recursive way, you'd essentially end up with polymorphic recursion, which is undecidable. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: htt

Re: [Caml-list] typing problem with sexplib and mutually recursive polymorphic types

2009-03-10 Thread Markus Mottl
" :: foo () and bla () = 42 :: foo () You can apply the same trick in your specific example by simply moving the type definition of x1 out of the cycle with x2 and x3. Cheers, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Markus Mottl
r matrices (probably > 10x10). I guess you should be fine rolling your own implementation for such small matrices. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscripti

Re: [Caml-list] true parallelism / threads

2009-02-20 Thread Markus Mottl
you need. Regards, Markus -- Markus Mottlhttp://www.ocaml.infomarkus.mo...@gmail.com ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginn

Re: [Caml-list] problem with LACAML and static linking

2009-01-28 Thread Markus Mottl
uld do is to copy one of the static libraries to your build directory, remove the offending symbol using the "ar" command line tool, and then link the resulting library and the other one statically into your executable. Dirty, but what you're gonna do... Regards, Markus --

Re: [Caml-list] Heap implementations: Fibonacci, Brodal and relaxed

2009-01-12 Thread Markus Mottl
rol repository, where you can also look at individual files without downloading the archive, is here: http://hg.ocaml.info/release/pure-fun Note that leftist heaps are in chapter 3: http://hg.ocaml.info/release/pure-fun/file/tip/chp3.ml Regards, Markus -- Markus Mottlhttp://

Re: [Caml-list] Issues with Sexplib (#2)

2008-12-02 Thread Markus Mottl
ppy cases. It is such a great tool > that I find myself using it everywhere, hence the inevitability of every > now and then running into problems... Thanks for the feedback! Regards, Markus -- Markus Mottlhttp://www.ocaml.info[EMAIL PROTECTED]

Re: [Caml-list] Issues with Sexplib (#1)

2008-12-02 Thread Markus Mottl
e may not even be such an extensional representation for theoretical reasons. E.g. think of encoding exactly all terminating programs extensionally, which would be very nice but is clearly impossible. Regards, Markus -- Markus Mottlhttp://www.ocaml.info[EMAIL PROTECTED] _

Re: [Caml-list] Re: Serialisation of PXP DTDs

2008-10-26 Thread Markus Mottl
g format like the one I'm working on. I'd go for the protocol translator. Especially if two protocols share a lot of structure, it should be trivial to define translations. Another very reasonable approach, which does not diminish performance, would be to exchange protocol version

Re: [Caml-list] Re: Serialisation of PXP DTDs

2008-10-24 Thread Markus Mottl
n nowadays so hardly anybody on this list should be affected). Regards, Markus -- Markus Mottlhttp://www.ocaml.info[EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo

Re: [Caml-list] Re: Serialisation of PXP DTDs

2008-10-23 Thread Markus Mottl
needs to be shared. Regards, Markus -- Markus Mottlhttp://www.ocaml.info[EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner&#x

Re: [Caml-list] Re: Serialisation of PXP DTDs

2008-10-23 Thread Markus Mottl
fined datatypes in OCaml, and there are no plans to change their representation. I think it is fair to say that both of them are reasonably future-safe. Regards, Markus -- Markus Mottlhttp://www.ocaml.info[EMAIL PROTECTED] __

Re: [Caml-list] Re: Serialisation of PXP DTDs

2008-10-23 Thread Markus Mottl
g only marginally slower. It also requires a little less storage space. Main problem here is actually that it doesn't support shared / cyclic datastructures. I don't think anybody would blame it for not being human-readable, because that's the nature of binary protocols ;-) Regards, Mark

Re: [Caml-list] problem installing janestreet core through godi

2008-10-22 Thread Markus Mottl
uot; library is badly out of date, and needs to be updated to work with newer releases of bin-prot. We will make a release within (probably) the next few weeks. In the meanwhile you might want to downgrade bin-prot to make it work with "core". I'll add a patch to bin-prot to make

Re: [Caml-list] problem installing janestreet core through godi

2008-10-21 Thread Markus Mottl
ew version will be released within the next few weeks. You might want to downgrade the bin-prot package installed in your Godi tree to an older version. Regards, Markus -- Markus Mottlhttp://www.ocaml.info[EMAIL PROTECTED] ___ C

Re: [Caml-list] Top-level with compiled libraries, Was: ANN OCaml Batteries Included

2008-10-12 Thread Markus Mottl
alty, since almost all of the computation time is spent in external libraries written in Fortran or C. Regards, Markus -- Markus Mottlhttp://www.ocaml.info[EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://y

Re: [Caml-list] ocamlnet and kernel poll

2008-09-24 Thread Markus Mottl
2008/9/24 Rich Neswold <[EMAIL PROTECTED]>: > On Thu, Sep 11, 2008 at 11:31 AM, Markus Mottl <[EMAIL PROTECTED]> > wrote: >> >> Look at our Core-library. It contains a module "Bigstring", which >> provides many efficient I/O-functions for those. Lo

Re: [Caml-list] XML library for validating MathML

2008-09-18 Thread Markus Mottl
cessary" rather than the adverb "unnecessarily"... ;-) Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-

Re: [Caml-list] ocamlnet and kernel poll

2008-09-11 Thread Markus Mottl
ions: there the lock would be released, too, to exploit parallelism, improve throughput, and avoid latency spikes. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yque

Re: [Caml-list] ocamlnet and kernel poll

2008-09-11 Thread Markus Mottl
/O-size) is more efficient. That way you can have many threads performing I/O-system calls simultaneously. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.f

Re: [Caml-list] ocamlnet and kernel poll

2008-09-11 Thread Markus Mottl
espectively. "Epoll.wait" allows you to wait for received events (similar to "select"). Note, however, that "select" is usually more efficient for small (= tens) numbers of descriptors! Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED

Re: [Caml-list] Sexplib and types defined via constraint

2008-07-25 Thread Markus Mottl
and you can reasonably expect releases to happen in somewhat infrequent time intervals. Best regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailm

Re: [Caml-list] Sexplib and types defined via constraint

2008-07-25 Thread Markus Mottl
never used them in structures, only in signatures. That's why this bug went unspotted until now. An updated version is online already, including the Godi-package. Best regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list

Re: [Caml-list] How to compile using sexplib?

2008-06-12 Thread Markus Mottl
d of "sexplib" as package, add "-syntax camlp4o", and drop "-I +camlp4 -pp camlp4orf". This should fix the problem. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscrip

Re: [Caml-list] How to compile using sexplib?

2008-06-12 Thread Markus Mottl
glad to update the sexplib distribution quickly. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inr

[Caml-list] Problem specializing types in signatures

2008-05-16 Thread Markus Mottl
f a dummy type is the following: module type B = sig type x = X include A with type t = x end Regards, Markus P.S.: A commentator on one of our blog articles also ran into a similar issue: http://ocaml.janestcapital.com/?q=node/26 -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED

Re: [Caml-list] Core has landed

2008-05-16 Thread Markus Mottl
es write out data in little endian format (only the C-stubs need to be adapted), then I'll gladly add that patch... Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http:

Re: [Caml-list] Core has landed

2008-05-15 Thread Markus Mottl
On Thu, May 15, 2008 at 11:59 AM, Markus Mottl <[EMAIL PROTECTED]> wrote: > It seems that this is related to the PPC architecture defaulting to > unsigned as opposed to signed chars. I don't know what the best fix > for this is. Maybe gcc 4.3.0 changes this default behavi

Re: [Caml-list] Core has landed

2008-05-15 Thread Markus Mottl
3.0 changes this default behavior. I guess that using the compilation flag "-no-unsigned-char" might fix this in the general case. Could anybody with access to a PPC platform please verify, whether this flag solved this compilation problem for the binary p

Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails

2008-05-08 Thread Markus Mottl
tion there, which should solve this problem once and for all. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: h

Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails

2008-05-07 Thread Markus Mottl
m on our Fedora 5 boxes (32 and 64bit) using any (including older) OCaml-compiler. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/l

Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails

2008-05-07 Thread Markus Mottl
highly kernel-dependent. Note, too, that the upcoming OCaml-release will (probably) feature improved page table handling using sparse representations, thus solving this problem generally. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___

Re: [Caml-list] Core has landed

2008-05-06 Thread Markus Mottl
ext release. In the meanwhile you may want to execute "#thread" before "requiring" the core library. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http:/

Re: [Caml-list] Core has landed

2008-05-05 Thread Markus Mottl
o see a patch to fully support all architectures... Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://

Re: [Caml-list] Core has landed

2008-05-04 Thread Markus Mottl
version should work fine now. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria

Re: [Caml-list] Core has landed

2008-05-04 Thread Markus Mottl
the same byte layout, should work, too, with the current binary protocol. At least if you do not mix 32/64bit machines there... Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription ma

Re: [Caml-list] Core has landed

2008-05-04 Thread Markus Mottl
ux extension library, i.e. this allows you to scale your applications to thousands of descriptors. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/m

Re: [Caml-list] Core has landed

2008-05-04 Thread Markus Mottl
-prot to GODI, the other two packages are already available. Regards, Markus -- Markus Mottl http://www.ocaml.info [EMAIL PROTECTED] ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archiv