willb has quit [Read error: 110 (Connection timed out)]
m3ga has joined #ocaml
oriba has left #ocaml []
slash_ has quit [Client Quit]
|jedai| has quit [Connection timed out]
|jedai| has joined #ocaml
|jedai| has quit [Client Quit]
jonasb has quit [Read error: 60 (Operation timed out)]
schmx has joined #ocaml
Axioplase_ is now known as Axioplase
<Axioplase>
thelema: Freebsd (but you weren't asking me…)
mjonsson has joined #ocaml
<Axioplase>
(a couple of days ago, in my logs)
* thelema
forgot why he asked
schme has quit [Read error: 110 (Connection timed out)]
Stefan_vK1 has quit [Read error: 104 (Connection reset by peer)]
Stefan_vK has joined #ocaml
schmx is now known as schme
Associat0r has quit []
caligula has joined #ocaml
jknick has joined #ocaml
ulfdoz has quit [Read error: 60 (Operation timed out)]
ulfdoz has joined #ocaml
|jedai| has joined #ocaml
seafood has quit []
seafood has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood_ has quit []
seafood has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
willb has joined #ocaml
seafood has quit [Client Quit]
Stefan_vK1 has joined #ocaml
Stefan_vK has quit [Read error: 110 (Connection timed out)]
purple_ has joined #ocaml
purple__ has quit [Read error: 110 (Connection timed out)]
Camarade_Tux has joined #ocaml
seafood has joined #ocaml
seafood has quit []
ikaros has joined #ocaml
Camarade_Tux has quit ["Leaving"]
ygrek has joined #ocaml
vixey has joined #ocaml
seafood has joined #ocaml
ygrek has quit [Remote closed the connection]
s4tan has joined #ocaml
ikaros has quit [".quit"]
rwmjones_ has joined #ocaml
_jedai_ has joined #ocaml
|jedai| has quit [Read error: 110 (Connection timed out)]
_zack has joined #ocaml
_jedai_ has quit [Read error: 145 (Connection timed out)]
|jedai| has joined #ocaml
s4tan has quit [Read error: 110 (Connection timed out)]
rwmjones_ has quit ["Closed connection"]
fschwidom has joined #ocaml
|jedai| has quit [Connection timed out]
|jedai| has joined #ocaml
chrisliaw has joined #ocaml
Yoric[DT] has joined #ocaml
seafood has quit []
Associat0r has joined #ocaml
vixey has quit [Remote closed the connection]
ztwiir has joined #ocaml
Axioplase is now known as Axioplase_
ztwiir has quit [Read error: 110 (Connection timed out)]
jknick has quit ["leaving"]
_zack has quit ["Leaving."]
_zack has joined #ocaml
OChameau has joined #ocaml
hkBst has joined #ocaml
hkBst has quit [Read error: 104 (Connection reset by peer)]
hkBst has joined #ocaml
hkBst has quit [Remote closed the connection]
hkBst has joined #ocaml
s4tan has joined #ocaml
<Yoric[DT]>
Question of vocabulary: what's the opposite of "virtual" for a method?
Camarade_Tux has joined #ocaml
<Camarade_Tux>
mibbit doesn't look that bad actually...
<Camarade_Tux>
anyway, flux, I finally managed to get the whole bindings ready ;-)
<Camarade_Tux>
(well, one or two things missing but it'll be ok for now :) )
<Camarade_Tux>
so you can now buy that "interfacing gtk with ocaml" book ;p
<Yoric[DT]>
:)
|jedai| has quit [Read error: 145 (Connection timed out)]
|jedai| has joined #ocaml
<Camarade_Tux>
yeah, this time I'll pay champagn for the whole channel ;p
chrisliaw has quit ["Ex-Chat"]
johnnowak has joined #ocaml
<johnnowak>
hello all. i'd like to generate the documentation for jane street's core lib, but issuing 'ocamldoc -html *.mli' in the lib directory produces a lot of errors. obviously i need to include sexplib and others, but i'm not sure how. any pointers?
<flux>
johnnowak, you may find ocamlfind's support for ocamldoc useful. ocamlfind ocamldoc -package sexplib -html *.mli might get a step further.
Camarade_Tux has quit ["mibbit.com: "late, again""]
<johnnowak>
flux: a bit yes; 35 warnings instead of 40
<flux>
johnnowak, have you looked that the Makefile (or similar) doesn't have explicit support for ocamldoc already?
Associat0r has quit []
<johnnowak>
flux: Makefile doesn't mention it, no
<flux>
johnnowak, does the Makefile use ocamlfind? if so, it should be possible to find the -packages and other siwtches it uses while compiling
<johnnowak>
flux: OCamlMakefile seems to mention something about it
|jedai| has quit [Operation timed out]
<flux>
ah, it uses that
<flux>
in that case it might just be able to build the docs
<flux>
make html perhaps?
|jedai| has joined #ocaml
<flux>
you will find the rule
gim has quit []
<johnnowak>
flux: OCamlMakefile seems to have rules for documentation generation, but i've no idea how to invoke them
s4tan has quit [Read error: 110 (Connection timed out)]
<flux>
try make htdoc
<flux>
or make doc to build all (will possibly require more tools)
<johnnowak>
ah, i have to do it in the lib directory.. arr. well, that gives me 7 warnings instead of 35.
<johnnowak>
oh well. thanks flux.
ched has joined #ocaml
|jedai| has quit [Read error: 60 (Operation timed out)]
|jedai| has joined #ocaml
irc has joined #ocaml
irc is now known as Guest69699
gim has joined #ocaml
<johnnowak>
can't seem to build batteries from scratch either as camlzip doesn't seem to work with ocamlfind...
<johnnowak>
ah, making a META file worked. geez.
s4tan has joined #ocaml
<johnnowak>
urgh
<johnnowak>
nothing works.
Guest69699 has quit [Read error: 110 (Connection timed out)]
johnnowak has quit []
gim has quit []
Associat0r has joined #ocaml
_zack has quit ["Leaving."]
_zack has joined #ocaml
acatout has quit [Read error: 60 (Operation timed out)]
acatout has joined #ocaml
Stefan_vK1 has quit [Read error: 104 (Connection reset by peer)]
Stefan_vK has joined #ocaml
sporkmonger has joined #ocaml
gim has joined #ocaml
marmotine has joined #ocaml
ido has quit [Client Quit]
thelema has quit [Read error: 60 (Operation timed out)]
vixey has joined #ocaml
ikaros has joined #ocaml
willb has quit [Read error: 60 (Operation timed out)]
pango has quit [Remote closed the connection]
tvynr has joined #ocaml
pango has joined #ocaml
<tvynr>
I'm assuming that this is the appropriate place to ask questions about problems with my OCaml environment; is that correct? I'm getting some peculiar behavior and I'm having trouble finding information to explain it.
mishok13 has quit ["Stopping IRC chat... [OK]"]
ikaros has quit [".quit"]
fschwidom has quit [Remote closed the connection]
ikaros has joined #ocaml
ikaros has quit [Client Quit]
ikaros has joined #ocaml
<rwmjones>
tvynr, sure
<tvynr>
rwmjones: thanks :)
marmotine has quit ["mv marmotine Laurie"]
marmotine has joined #ocaml
<tvynr>
So am I to understand that running "ocaml" from the command line should allow me to access the modules contained in the standard library directory? (On my system, I think that directory is /usr/lib/ocaml/3.10.2/)
<tvynr>
I've discovered that running "ocaml" or even "ocaml -I /usr/lib/ocaml/3.10.2/" allows me to run "open Graphics;;" without error. However, anything else (such as "module M = Graphics;;") results in "Reference to undefined global `Graphics'"
<tvynr>
Interestingly enough, this problem goes away if I run it as "ocaml /usr/lib/ocaml/3.10.2/graphics.cma"
<tvynr>
But that seems a little hacky.
<rwmjones>
tvynr, no ... the graphics module requires the extra library (as do a few others such as nums, unix, threads, ...)
<rwmjones>
tvynr, if you have ocamlfind installed, then the easiest thing is to type:
<rwmjones>
#use "topfind" ;;
<rwmjones>
as the first thing in the toplevel, then you can do things like:
<rwmjones>
#require "unix" ;;
<tvynr>
rwmjones: Then what's the purpose of the include directory? I was under the impression than the purpose was to avoid me having to feed it the individual libraries by hand.
<rwmjones>
and it pulls in the right libraries, directories and dependencies automatically
<tvynr>
that's kinda cool
<rwmjones>
tvynr, it works exactly the same way as C ... there's an include directory where it gets the headers from (equivalent in OCaml are the *.cmi files), and there's also a linking stage required
<tvynr>
oh
<rwmjones>
as in C, you have to do both steps
<rwmjones>
but ocamlfind does it all for you, so use that
<rwmjones>
back in 10 mins
<tvynr>
rwmjones: Gotcha. hehe... the majority of my experience is in Java development, so while I've dealt with these things before they don't spring to mind. I'll use ocamlfind to do the heavy lifting. Thanks for the pointer and the explanation!
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
<_zack>
I'm in the magic world of binding C to OCaml (as in, invoking OCaml stuff from C, not the more common other way around)
<_zack>
in general, between two invocations of C functions, of course the GC can get rid of ocaml objects
<_zack>
I don't get how I can inhibit that from happening on the C side, I hope register_global_root is not the only solution ....
<_zack>
basically, I want to hide an ocaml value under a void * and reuse it several times
<rwmjones>
_zack, what's wrong with caml_register_global_root?
<_zack>
I had the impression it was the last resort
<_zack>
(in the past)
<_zack>
so, is that the way to go?
<rwmjones>
_zack, it's dead slow. In OCaml 3.11, there is a faster version, I forget the name. In any case caml_register_global_root works just fine.
<rwmjones>
I use it all the time ...
<_zack>
rwmjones: is your use case as mine above?
<rwmjones>
yup
<_zack>
cool, maybe you have some code to showcase?
<_zack>
this binding direction is not that popular ...
<rwmjones>
_zack, use caml_register_generational_global_root in preference if it is available and applicable
<rwmjones>
it's much faster
<_zack>
ok, but I'm still developing on a 3.10 machine
<rwmjones>
_zack, will you ever change the value after registering it?
<rwmjones>
if not, then do something like:
<rwmjones>
scrub that, use a configure macro to choose caml_register_generational_global_root instead of caml_register_global_root
<rwmjones>
if available
<rwmjones>
that way the 3.11 users get the benefit
<_zack>
rwmjones: no, the value does not change
<rwmjones>
so you should use caml_register_generational_global_root if configure detects it
<rwmjones>
if you just use register_global_root, then your program will slow to a crawl once you have registered more than 10,000 or so roots
<rwmjones>
because the garbage collector tries to check each one at every minor collection.
<rwmjones>
but if they never change, using caml_register_generational_global_root allows the GC to check them much less often (once every major collection, I think)
<_zack>
well, rule 4 is a bit misleading then, my variables are not meant to be "global"
<_zack>
but I understand they are global for the ocaml GC
|jedai| has quit [Connection timed out]
|jedai| has joined #ocaml
Camarade_Tux has joined #ocaml
_zack has quit ["Leaving."]
tvynr has quit ["Leaving"]
s4tan has quit [Read error: 110 (Connection timed out)]
ikaros has quit [Remote closed the connection]
cygnus__ has joined #ocaml
ikaros has joined #ocaml
cygnus_ has quit [Read error: 110 (Connection timed out)]
Camarade_Tux has quit ["Leaving"]
Camarade_Tux has joined #ocaml
jeremiah has joined #ocaml
Snark has joined #ocaml
thelema has joined #ocaml
psnively has joined #ocaml
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
jonasb has joined #ocaml
willb has joined #ocaml
OChameau has quit ["Leaving"]
jonasb has quit [Read error: 113 (No route to host)]
|jedai| has quit [Read error: 110 (Connection timed out)]