<Proteus>
'evening all. Is anyone around I could pester with newbie ocaml questions?
* pango_
is alive
<Proteus>
first: Is ocamlp3l still in active development?
<pango_>
no idea
<Smerdyakov>
Proteus, IRC etiquette says to ask your questions without asking to ask. People will let you know if you're bothering them.
<Proteus>
Smerdyakov, thanks for the tip.
<bluestorm>
and you get bonuses for waiting hours :-'
<bluestorm>
ocamlp3l seems kind of dead, but you never know with those academic projects
<bluestorm>
on the other hand, JoCaml get revived recently (seems so, at least)
seafood_ has joined #ocaml
jlouis has quit [Read error: 104 (Connection reset by peer)]
seafood_ has quit []
seafood_ has joined #ocaml
Oatskool has quit [Read error: 110 (Connection timed out)]
brooksbp has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
jlouis has joined #ocaml
mbishop_ is now known as mbishop
mordaunt has joined #ocaml
seafood_ has quit []
<orbitz>
jocaml sems interesting
seafood_ has joined #ocaml
seafood_ has quit [Client Quit]
|Jedai| has joined #ocaml
darinm has joined #ocaml
<Proteus>
It really does
<Proteus>
I'm wondering how well it performs/scales
jedai has quit [Read error: 110 (Connection timed out)]
<hcarty>
Proteus: I tested one of the example programs they have on their site on a 8 processor system, and it was ~5-6x faster (if I remember correctly) when using all 8 processors than when using just one
<hcarty>
For what that's worth
jedai has joined #ocaml
|Jedai| has quit [Read error: 113 (No route to host)]
jedai has quit [Read error: 113 (No route to host)]
Demitar has joined #ocaml
wy has joined #ocaml
mordaunt has quit [Read error: 110 (Connection timed out)]
mordaunt has joined #ocaml
Demitar has quit [Read error: 60 (Operation timed out)]
mbishop_ has joined #ocaml
darinm has quit [Read error: 110 (Connection timed out)]
mbishop has quit [Read error: 110 (Connection timed out)]
buluca has joined #ocaml
jlouis_ has joined #ocaml
Demitar has joined #ocaml
mordaunt has quit [Remote closed the connection]
jlouis has quit [Read error: 110 (Connection timed out)]
Associat0r has quit []
ttamttam has joined #ocaml
ttamtta1 has joined #ocaml
ttamttam has quit [Client Quit]
ttamtta1 has left #ocaml []
ttamttam has joined #ocaml
seafood_ has joined #ocaml
brooksbp has quit []
jnkm has quit [Read error: 110 (Connection timed out)]
ygrek has joined #ocaml
seafood_ has quit []
jlouis has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
wy has quit [Remote closed the connection]
asmanur has joined #ocaml
ygrek has quit [Remote closed the connection]
ertai has joined #ocaml
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
seafood_ has joined #ocaml
smimou has joined #ocaml
<Proteus>
hcarty, did you try jocaml's network capabilities?
bluestorm has joined #ocaml
ertai has quit ["leaving"]
ertai has joined #ocaml
zmdkrbou_ has joined #ocaml
zmdkrbou has quit [Read error: 113 (No route to host)]
buluca has quit [Read error: 113 (No route to host)]
Morphous has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
Morphous has quit ["shutdown"]
Amorphous has joined #ocaml
ertai has quit ["leaving"]
ygrek has joined #ocaml
ertai has joined #ocaml
zmdkrbou_ has quit [Read error: 110 (Connection timed out)]
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
marmottine has joined #ocaml
Associat0r has joined #ocaml
gene9 has joined #ocaml
zmdkrbou has joined #ocaml
jnkm has joined #ocaml
gene9 has quit ["Leaving"]
l_a_m has joined #ocaml
marmottine has quit [Remote closed the connection]
Proteus has quit ["Leaving"]
pango_ has quit [Remote closed the connection]
buluca has joined #ocaml
pango_ has joined #ocaml
kelaouch1 has joined #ocaml
DerDracle has quit [Nick collision from services.]
DerDracle_ has joined #ocaml
kelaouchi has quit [Success]
asmanur is now known as asma
jnkm has quit [Read error: 110 (Connection timed out)]
asma has quit [Remote closed the connection]
asmanur has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
mbishop_ is now known as mbishop
jonafan has joined #ocaml
jedai has joined #ocaml
mrsolo has left #ocaml []
asmanur has quit [Remote closed the connection]
asmanur has joined #ocaml
mrsolo_ has joined #ocaml
jedai has quit [Connection timed out]
seafood_ has quit []
jnkm has joined #ocaml
wy has joined #ocaml
asmanur has quit [Read error: 110 (Connection timed out)]
buluca has joined #ocaml
asmanur has joined #ocaml
jdavis__ has joined #ocaml
<jdavis__>
I am having trouble using modules correctly. I am trying to use the postgresql module, and I keep getting an "Reference to undefined global `Postgresql`". I am passing "-I /usr/lib/ocaml/3.09.2/postgresql" already.
<bluestorm>
hm
<bluestorm>
is that polymorphic variant not in a module ?
<bluestorm>
did you opened it ?
<jdavis__>
bluestorm: yes, I opened the module with "open Postgresql;;"
<bluestorm>
hm
<bluestorm>
doesn't "open Postgresql" have him complaining about an unbound module ?
<pango_>
did you use both -I +postgresql _and_ postgresql.cma (or .cmxa) ?
<bluestorm>
(try to compile a file with only that)
<jdavis__>
bluestorm: it gave me a "unbound module Postgresql" before I put the "-I"
<bluestorm>
hm
<jdavis__>
pango_: that sounds like the problem
<pango_>
-I justs tells the compiler where to look for modules, you still have to name them
<bluestorm>
so pango_ may be right, try adding postgresql.cma
<jdavis__>
pango_: that worked, thanks!
<pango_>
and open is a namespace trick, it doesn't influence linking one bit
<jdavis__>
but why did it not work to pass the full path to postgresql.cma without the -I?
<jdavis__>
In other words, if I do a full path, why does it need the -I?
<bluestorm>
giving the -I allows it to find where the modules are
<bluestorm>
if you don't actually link them it's still useless
<pango_>
I guess some other objects in the same directory need linking (libpostgresql_stubs.a ?), but I'm not sure how the whole thing works
<jdavis__>
Oh, so I need the -I for the "open Postgresql" and the .cma to include the code.
<jdavis__>
Ok
<jdavis__>
I remember at one time I saw a nice way to do this involving ocamlfind. Is there a simple formula to use?
<pango_>
all what 'open' does is add 'Postgresql.' to the list of namespace paths the compiler can look for identifiers
<jdavis__>
ocamlfind ocamlc -package postgresql -linkpkg normalize.ml -- did not return anything. What's it supposed to do?
buluca has joined #ocaml
<pango_>
compile normalize.cmo, I suppose
<bluestorm>
jdavis__ if you want it to produce an executable
<bluestorm>
add -o something
<jdavis__>
I think I'll have to do some man page reading and experimentation. I see that a .cmo was produced, but I still get the "Reference to undefined global `Postgresql`" if I don't supply the .cma
<bluestorm>
that's a linking story, pango_ knows that better
ygrek has quit [Remote closed the connection]
<pango_>
I think it should work... you can add -verbose (as in ocamlfind ocamlc -verbose ...) to see what ocamlfind expands your request to, maybe that'll help understand what's going on
<pango_>
with ocaml 3.10, ocamlbuild is supposed to make things a bit less tedious, but I haven't tried it yet
<jdavis__>
Thanks for the help. I'll experiment for a while, that gives me a good start.
<pango_>
another common trap is that linking order matters... modules can only use modules already linked in (left to right)
<pango_>
that's because, semantically, linking a module is the same as evaluating the code and declarations it contains
jedai has joined #ocaml
ertai has quit [Read error: 110 (Connection timed out)]
asmanur is now known as asma
<jonafan>
meso sleepy
kelaouchi has joined #ocaml
ttamttam has left #ocaml []
kelaouch1 has quit [Read error: 110 (Connection timed out)]