gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
fraggle_ has quit [Ping timeout: 260 seconds]
chee has joined #ocaml
Edward has quit []
fraggle_ has joined #ocaml
mjonsson has joined #ocaml
fraggle_ has quit [Ping timeout: 246 seconds]
fraggle_ has joined #ocaml
chee has quit [Ping timeout: 265 seconds]
_unK has quit [Remote host closed the connection]
ulfdoz has joined #ocaml
mjonsson has quit [Quit: Leaving]
svenl has quit [Ping timeout: 272 seconds]
svenl has joined #ocaml
ASpiwack has quit [Ping timeout: 272 seconds]
ASpiwack has joined #ocaml
Submarine has joined #ocaml
jeddhaberstro has quit [Quit: jeddhaberstro]
ulfdoz has quit [Ping timeout: 265 seconds]
ASpiwack has quit [Ping timeout: 272 seconds]
ASpiwack has joined #ocaml
eldragon has quit [Ping timeout: 265 seconds]
ASpiwack has quit [Read error: Operation timed out]
ASpiwack has joined #ocaml
eldragon has joined #ocaml
pikachuyann has joined #ocaml
ikaros has joined #ocaml
ASpiwack has quit [Ping timeout: 276 seconds]
ASpiwack has joined #ocaml
ttamttam has joined #ocaml
oriba has joined #ocaml
oriba has left #ocaml []
ASpiwack has quit [Ping timeout: 272 seconds]
Amorphous has quit [Ping timeout: 260 seconds]
ASpiwack has joined #ocaml
Submarine has quit [Quit: Leaving]
Amorphous has joined #ocaml
ASpiwack has quit [Ping timeout: 252 seconds]
ASpiwack has joined #ocaml
ASpiwack has quit [Ping timeout: 272 seconds]
ASpiwack has joined #ocaml
ASpiwack has quit [Ping timeout: 260 seconds]
ASpiwack has joined #ocaml
fraggle_ has quit [Quit: -ENOBRAIN]
fraggle_ has joined #ocaml
ASpiwack has quit [Ping timeout: 276 seconds]
ASpiwack has joined #ocaml
ASpiwack has quit [Ping timeout: 252 seconds]
Yoric has joined #ocaml
ASpiwack has joined #ocaml
ASpiwack has quit [Ping timeout: 272 seconds]
ASpiwack has joined #ocaml
emias has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
thutchin has joined #ocaml
munga has joined #ocaml
thutchin has quit [Client Quit]
th5 has joined #ocaml
ttamttam has left #ocaml []
th5 has quit [Quit: th5]
iago has joined #ocaml
avsm has joined #ocaml
thomasga has joined #ocaml
ftrvxmtrx has joined #ocaml
_andre has joined #ocaml
cfp has joined #ocaml
cfp has left #ocaml []
createsoftware has joined #ocaml
createsoftware has quit [Client Quit]
ikaros has quit [Quit: Leave the magic to Houdini]
th5 has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
mal`` has quit [Quit: Coyote finally caught me]
mal`` has joined #ocaml
Yoric has quit [Quit: Yoric]
th5 has quit [Quit: th5]
itewsh has joined #ocaml
thelema has quit [Remote host closed the connection]
pikachuyann has quit [Quit: à la prochaiiine]
thelema has joined #ocaml
kaustuv_ has joined #ocaml
kaustuv has quit [Ping timeout: 265 seconds]
barismetin has joined #ocaml
munga has quit [Quit: Ex-Chat]
seafood has joined #ocaml
mjonsson has joined #ocaml
seafood has quit [Ping timeout: 240 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
mjonsson has quit [Remote host closed the connection]
itewsh has quit [Quit: o/]
thomasga has quit [Ping timeout: 265 seconds]
boscop_ has left #ocaml []
boscop has joined #ocaml
roconnor has joined #ocaml
_andre has quit [Quit: leaving]
_andre has joined #ocaml
_unK has joined #ocaml
Yoric has joined #ocaml
thomasga has joined #ocaml
ttamttam has joined #ocaml
ccasin has joined #ocaml
ttamttam has quit [Remote host closed the connection]
<roconnor> I'm trying to build lablgtkmathview and I'm getting a compilation error when building ocamlfind ocamlc -verbose -package "gdome2 lablgtk2" -predicates "" -c gtk_mathview.ml
<roconnor> I get the error Error: Unbound type constructor Gtk.widget
<roconnor> gtk_mathview.ml is effectively contains only one line:
<roconnor> type math_view = [Gtk.widget|`mathview_gmetadom]
<roconnor> similarly when building ocamlfind ocamlc -package "gdome2 lablgtk2" -predicates "" -c gtkMathViewProps.ml I get the error
<MarcWeber> xp
<roconnor> Error: Unbound module Gobject
<roconnor> on the first line of gtkMathViewProps.ml
<roconnor> open Gobject
<roconnor> so obviously I haven't configured my environment properly for gtk stuff?
<adrien> roconnor: is labgtk2(-dev) installed? if so, how did you install? library packages?
<adrien> ergh, "distro packages"? and if so, which distro
<roconnor> my lablgtk2 installation is accessible at ~/.nix-profile/lib/ocaml/lablgtk2/ which is a symlink to it's installed location
<roconnor> ocamlfind query lablgtk2 returns
<roconnor> /nix/store/wy5s1wklyh0w41pciws5nlmrgwlsy2al-ocaml-3.11.1/lib/ocaml/lablgtk2
<roconnor> wait
<roconnor> that isn't right
<roconnor> adrien: heh, let me investigate this a moment
<roconnor> :)
<adrien> hmmm, that path is made on purpose? :P
<roconnor> adrien: my distro is nix. The jumbo in the path is a hash of the build inputs to the package. In this case ocaml
<roconnor> however lablgtk2 isn't installed in that directory
<roconnor> ... which is probably part of my problem
<roconnor> ;)
<adrien> nix? the distro with a functional package manager?
<roconnor> yes
<adrien> that must be why it doesn't like lablgtk2: it uses side-effects :P
<roconnor> some things end up being installed in non-standard places, and this really stresses people's build scripts
<adrien> yeah, I was actually swearing at self-written build scripts a few minutes ago (in this case, x264)
<roconnor> so strange
<roconnor> why is ocamlfind returning that wrong location (granted it would be the usual location)
cthuluh has joined #ocaml
<roconnor> $ ocamlfind query gdome2
<roconnor> /home/roconnor/.nix-profile/lib/ocaml/3.11.1/site-lib/gdome2
<roconnor> this one is correct
<adrien> roconnor: 'grep -rI location-of-the-ocaml-prefix wy5s1wklyh0w41pciws5nlmrgwlsy2al'
<adrien> and throw an '--mmap' too :P
<roconnor> what does -I do?
jonafan has joined #ocaml
<adrien> only searches text files
<adrien> ergh, and I inverted the two other arguments ><
<roconnor> don't worry, I caught that
<roconnor> so I searched ~/.nix-profiles/lib/ocaml since that is what my OCAML_PATH is set to
<roconnor> I only found a few hits
<roconnor> /home/roconnor/.nix-profile/lib/ocaml/3.11.1/site-lib/camlp4/META:directory = "/nix/store/wy5s1wklyh0w41pciws5nlmrgwlsy2al-ocaml-3.11.1/lib/ocaml/camlp4"
<roconnor> /home/roconnor/.nix-profile/lib/ocaml/3.11.1/site-lib/findlib/Makefile.config:OCAML_CORE_STDLIB=/nix/store/wy5s1wklyh0w41pciws5nlmrgwlsy2al-ocaml-3.11.1/lib/ocaml
<roconnor> /
<roconnor> there are 2 more hits in Makefile.config
<roconnor> oh and also
<roconnor> Binary file /home/roconnor/.nix-profile/lib/ocaml/3.11.1/site-lib/findlib/findlib.cma matches
<roconnor> so ocamlfind knows about wy5s1wklyh0w41pciws5nlmrgwlsy2al, but that isn't too surprising. That is where ocaml is installed, and it probably wants to know that.
<roconnor> but no hits were found in /home/roconnor/.nix-profile/lib/ocaml/lablgtk2
<roconnor> well, techinically that isn't true, cause it found
<roconnor> Binary file /home/roconnor/.nix-profile/lib/ocaml/lablgtk2/propcc matches
<roconnor> I'm going to try moving around whre lablgtk is isntalled a little bit and see what happens
olauzon has quit [Quit: olauzon]
<adrien> oh damn! right, I think findlib hard-codes the prefix in the cma! =/
<adrien> propcc, you don't care about it
<roconnor> hmm
<roconnor> I moved the install of lablgtk2 to /home/roconnor/.nix-profile/lib/ocaml/3.11.1/site-lib/lablgtk2/
<roconnor> but ocamlfind still returns /nix/store/wy5s1wklyh0w41pciws5nlmrgwlsy2al-ocaml-3.11.1/lib/ocaml/lablgtk2
ftrvxmtrx has quit [Quit: Leaving]
* roconnor tries using strace
<adrien> a problem is that .cma files can have the paths hardcoded iirc
<roconnor> which .cma file?
<roconnor> /home/roconnor/.nix-profile/lib/ocaml/3.11.1/site-lib/lablgtk2/lablgtk.cma ?
<roconnor> adrien: okay I probably need to set OCAMLFIND_DESTDIR and such when when building lablgtk2 then
barismetin has quit [Remote host closed the connection]
caligula_ has joined #ocaml
caligula__ has quit [Ping timeout: 276 seconds]
<adrien> roconnor: that could do it
<adrien> I'm sorry I can't help more, it's been a long time I had to use that =/
<roconnor> adrien: that is how all my other packages have been built so far
<roconnor> lablgtk was an exception because I got the build commands from elsewhere
<adrien> ah, ok, I see
<roconnor> ah crap
<roconnor> still doesn't work
<roconnor> oh
<roconnor> hmm
<roconnor> apparently I might need to do an ocamlfind install
<MarcWeber> Which data structure should I use as set? add elements and test whether they have been added?
<MarcWeber> The sets are small. Less than 10 elements. Maybe I should use a list..
thomasga has quit [Excess Flood]
thomasga has joined #ocaml
coucou747 has quit [Ping timeout: 240 seconds]
_andre has quit [Quit: Lost terminal]
_andre has joined #ocaml
<flux> marcweber, how about Set?
<MarcWeber> :)
brendan has quit [Quit: leaving]
coucou747 has joined #ocaml
thomasga has quit [Ping timeout: 264 seconds]
brendan has joined #ocaml
thomasga has joined #ocaml
philtor has joined #ocaml
ikaros has joined #ocaml
_unK has quit [Remote host closed the connection]
Yoric has quit [Quit: Yoric]
ikaros has quit [Quit: Leave the magic to Houdini]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
ikaros has joined #ocaml
ftrvxmtrx has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
philtor has quit [Ping timeout: 276 seconds]
ikaros has joined #ocaml
ikaros has quit [Client Quit]
ikaros has joined #ocaml
ulfdoz has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Remote host closed the connection]
Anarchos has joined #ocaml
Yoric has joined #ocaml
oriba has joined #ocaml
ftrvxmtrx has quit [Read error: Connection reset by peer]
oriba has quit [Quit: Verlassend]
ygrek has joined #ocaml
ftrvxmtrx has joined #ocaml
iago has quit [Quit: Leaving]
Edward has joined #ocaml
olauzon has joined #ocaml
Anarchos has quit [Remote host closed the connection]
Anarchos has joined #ocaml
_andre has quit [Quit: Lost terminal]
Tianon has quit [Read error: Operation timed out]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
<roconnor> what is the recommended nice arg parsing library for ocaml?
<adrien> Arg module, not very nice ; Getopt, not very different ; I heard about some better one relying on actual parsing, don't know of any actual implementation however and I'm quite curious
<roconnor> adrien: is the arg module typically used with global variables?
<roconnor> heh val current : int ref
<adrien> yeah
<roconnor> this doesn't feel thread-safe
<hcarty> roconnor: They don't have to be global
<hcarty> Nevermind - I see what you're talking about
<hcarty> Sorry for the outburst :-)
<adrien> well, they don't have to
<roconnor> hcarty: oh, how do I localize references?
<roconnor> I'm new to this mutating functional programming style.
Edward has quit []
<roconnor> :)
<hcarty> The Arg.current value you pointed out is global
<adrien> but Arg is mostly about mutating references so you can't really declare the variables as you parse, but you can have they local to a function which runs the "parsing"
<hcarty> What adrien said
<roconnor> oh
<roconnor> that doesn't sound so bad
<adrien> but it's not a big deal anyway because you typically do it only once, when you don't even have several threads
<roconnor> ya, that is true.
<roconnor> so I do "let somebool = ref false in ..." in the body of some function and at the end of the function the reference will be garagle collected?
<adrien> I've actually started some kind of arg-parsing library but it's very very simple (everything is a string) and haven't had a lot of development but it was quite nice for my limited use, I might work more on it if I have the time
<adrien> there was also a blog post recently about a nicer arg parsing, with functional unparsing iirc, but I think there was no implementation along it ='(
ulfdoz has quit [Ping timeout: 258 seconds]
<hcarty> roconnor: Yes, that is correct. Unless you return the reference itself to the caller.
ccasin has quit [Quit: Leaving]
ygrek has quit [Ping timeout: 245 seconds]
roconnor has quit [Remote host closed the connection]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
Edward has joined #ocaml
Yoric has quit [Quit: Yoric]
cthuluh has quit [Ping timeout: 260 seconds]
cthuluh has joined #ocaml
avsm has quit [Quit: Leaving.]
Edward has quit []
Edward has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 245 seconds]
boscop_ has left #ocaml []
boscop has joined #ocaml
Edward has quit [Ping timeout: 264 seconds]
ftrvxmtrx has quit [Ping timeout: 240 seconds]
_unK has joined #ocaml
Edward has joined #ocaml
olauzon has quit [Quit: olauzon]
npouillard has quit [Read error: Operation timed out]
gildor has quit [Ping timeout: 264 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]