[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#564816: libpostgresql-ocaml-dev: Monothreaded toplevel requires module Mutex.



Stéphane Glondu a écrit :

I think this is quite common for libraries depending on threads. I guess
this is because there are multiple implementation of them, so they are
always explicitly given (on command line, at least).

Indeed.

Sure, there is not much choice in the toplevel so I guess we could tweak
the META file so that #require "postgresql;;" works out of the box. For
example, we could just load an additional module that would do
"#thread;;" inside a toplevel. I'm not sure this is the idiomatic way,
though, nor do I know the guidelines for this.

From my humble point of view, if postgresql should not work without a threading library, then it should not be possible to #require "postgresql" without a #thread before. At least that's the way I understand the way findlib should interact with the toplevel.

I've put Gerd Stolpamnn (findlib upstream) and Markus Mottl
(postgreqsl-ocaml upstream) to get their opinion.

For the context, I've stumbled on this will testing the packaging I've made out of Mauricio Fernandez's typed relational algebra library.

http://yziquel.homelinux.org/gitweb?p=ocaml-relational.git;a=summary
http://eigenclass.org/hiki/typed-relational-algebra-in-OCaml
http://eigenclass.org/repos/gitweb?p=relational.git;a=summary

--
     Guillaume Yziquel
http://yziquel.homelinux.org/



Reply to: