<adrien>
since it's '=' and not '+=', the last one will take over
eni has quit [Ping timeout: 240 seconds]
<adrien>
well, no: if I change the order, it still "works" in the toplevel: it loads gtkThInit
<adrien>
otoh, I think "mt" is special here
<adrien>
but should not change that
<adrien>
man META:
<adrien>
· If there is more than one applicable assignment, the definition
<adrien>
with the biggest number of formal predicates is selected.
<adrien>
(and then, in case of a tie, it choses the most-recently defined one)
ankit9_ has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
eni has joined #ocaml
Cyanure has joined #ocaml
Cyanure has quit [Ping timeout: 245 seconds]
<adrien>
big question: who knew about "GtkThInit"?
<adrien>
who knows how to properly initialize thread support with lablgtk2?
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
<adrien>
(you get a beer if you say you know how to [ and you actually do ]; I'm simply estimating potential breakage for the next release of lablgtk2)
ocp has joined #ocaml
thomasga has joined #ocaml
* f[x]
was always using gtkInit.cmo, but never had multithreaded gui so that probably doesn't matter
thomasga has quit [Client Quit]
thomasga has joined #ocaml
<adrien>
well, that counts
<adrien>
I think noone knows how to do it
<adrien>
and can someone pastebin the META file for lablgtk2 in debian?
<adrien>
oh, joy: it doesn't auto-init threads :-)
<adrien>
I feared people relied on that
Tobu has quit [Read error: Connection reset by peer]
eni has quit [Ping timeout: 252 seconds]
silver has joined #ocaml
avsm has joined #ocaml
madroach has joined #ocaml
Submarine has quit [Ping timeout: 248 seconds]
avsm has quit [Ping timeout: 245 seconds]
<rejabber>
is there a function: string -> ('a, 'b, 'c, 'd, 'e, 'f) format6 ?
<yezariaely>
rejabber: what do you need it for?
<yezariaely>
scanf?
<rejabber>
I want to append a string to a format string
<sgnb>
rejabber: Scanf.format_from_string, to be more precise
<sgnb>
ah, for that there is a function
<sgnb>
(^^)
<sgnb>
rejabber: e.g. "toto %s " ^^ "tata"
<rejabber>
it seems to only work with string literals though
<madroach>
I tried that too a few days ago. Seems like the format string is compiled at compile time?
<sgnb>
Printf.printf ("toto %s " ^^ "tata") "foo" works for me
<sgnb>
madroach: yes it is
<madroach>
oh, a double carret?
<sgnb>
es
<sgnb>
yes
<madroach>
concatenates format strings?
<sgnb>
yes
<madroach>
nice.
<sgnb>
but in general, to "convert" a string to a format6 safely, you have to give another format6 with the same type (hence the extra argument to Scanf.format_from_string)
<rejabber>
I see
<madroach>
What is the best way to write multi-line printf format strings? Concatenate lines with (^^) ?
<madroach>
ah, whitespace after a quoted newline is ignored?
BiDOrD has joined #ocaml
<sgnb>
indeed... but you can add a backslash to resume whitespace processing
<madroach>
that's very nice. Thanks alot!
beckerb has joined #ocaml
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
thomasga1 has joined #ocaml
thomasga has quit [Read error: Connection reset by peer]
<adrien>
hah, and I was wrong: lablgtk thread init stuff from a .cmo is only for the toplevel
thomasga1 has quit [Read error: Connection reset by peer]
thomasga has joined #ocaml
Submarine has joined #ocaml
avsm has joined #ocaml
ocp has quit [Quit: Leaving.]
chambart has quit [Ping timeout: 252 seconds]
thomasga has quit [Ping timeout: 245 seconds]
mika1 has joined #ocaml
avsm has quit [Quit: Leaving.]
<Drakken>
Somebody told me it's too late to make minor changes to ocaml 4.00.
thomasga has joined #ocaml
<Drakken>
Does that mean they have to wait until 4.00.1 is in development?
<Drakken>
or 4.01 or whatever?
<sgnb>
Drakken: I dourn say 4.00.1 if it is really minor
<sgnb>
s/dourn/would/ (kbd sync)
<Drakken>
sgnb can we do that now, or do we have to wait until a development branch is started for the next version?
<sgnb>
Drakken: who is "we"?
<Drakken>
any devs who want to contribute
<sgnb>
it's up to "OCaml developpers" (whatever that means) to decide
<sgnb>
I don't understand why you care
<Drakken>
I submitted a change for 3.12.1, but the dev said it's too late to put it in 4.00.
<sgnb>
yeah, they tend to that
<sgnb>
just remind them at the next beta (if it is still not applied)
munga has joined #ocaml
<sgnb>
I mean, the beta (or whatever prerelease) of 4.00.1
<Drakken>
okay.
<sgnb>
or, if the change is too intrusive, wait for 4.01 (I have no idea what you're talking about, so I'm speculating... out of curiosity, what is it?)
<Drakken>
It's a minor tweak to locate type errors more precisely.
<thelema>
it's still a rat's nest, but it's orders of magnitude better
<f[x]>
after tred it is quite digestible
<adrien>
true
<f[x]>
mehdid, seen? there is tred in graphviz. useful tool as it appears
<thelema>
if I can get the nodes to not overlap so much, neato might produce a better layout
<mehdid>
f[x]: yeah :) thanks to thelema :)
<f[x]>
-Goverlap=false
<f[x]>
dot looks better for me
<adrien>
yeah, it's often a good one
<thelema>
ok, I give up trying to beat dot with default params
<adrien>
:P
<thelema>
props to f[x] for the transitive reduction suggestion
<adrien>
yeah, definitely a good one I didn't know about
<adrien>
still, I think something better can be obtained, especially with something that doesn't try to get cute edges
Submarine has joined #ocaml
<f[x]>
I doubt so
<f[x]>
also have a look at -Gsplines
<adrien>
-Gsplines=false helps a bit but well
<thelema>
adrien: try gephi - maybe it'll help you manually adjust things to your liking
<adrien>
there's "igraph" but I have no package for it so I'll try at home
<adrien>
not like I've actively been working for work (not really my fault though)
<adrien>
thelema: I'll try it too
mika1 has quit [Quit: Leaving.]
wmeyer` has joined #ocaml
wmeyer has quit [Ping timeout: 260 seconds]
pheredhel has quit [Ping timeout: 252 seconds]
bacam has quit [Ping timeout: 252 seconds]
pheredhel has joined #ocaml
bacam has joined #ocaml
braibant has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
braibant has quit [Read error: Connection reset by peer]
<Drakken>
Anybody have a project for me to work on? I'm looking for something to do.
<Drakken>
I could work on Mantis issues, but I'm not sure how to sort them by interestingness :)
<Drakken>
and doable-by-me-ness, of course.
<thelema>
Drakken: if you're interested, you could hack odb.ml to build a proper dep graph, and produce an ordered list of packages to install
<Drakken>
okay, I'll check it out.
<thelema>
this has been on my todo list for a while, and would be a nice addition
ftrvxmtrx has quit [Quit: Leaving]
<thelema>
at the moment, odb just checks all deps right before installing a package, so --force-all can result in packages being re-installed multiple times
avsm has quit [Quit: Leaving.]
<Drakken>
Let me browse odb.ml for a while. I haven't looked at it recently.
<thelema>
let me know if you need any help, or are confused about how something works
<Drakken>
alright
osa1 has joined #ocaml
silver has quit [Remote host closed the connection]
avsm has joined #ocaml
Submarine has quit [Ping timeout: 240 seconds]
Cyanure has joined #ocaml
ontologiae has quit [Read error: Connection reset by peer]
ontologiae has joined #ocaml
beckerb has quit [Quit: Konversation terminated!]
Tobu has joined #ocaml
djcoin has quit [Quit: WeeChat 0.3.2]
madroach has quit [Quit: leaving]
madroach has joined #ocaml
ocp has joined #ocaml
avsm has quit [Quit: Leaving.]
Tobu has quit [Remote host closed the connection]
thomasga has quit [Remote host closed the connection]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
milosn has quit [Read error: No route to host]
xcombelle has joined #ocaml
Tobu has joined #ocaml
milosn has joined #ocaml
ftrvxmtrx has joined #ocaml
osa1 has quit [*.net *.split]
beginner has quit [*.net *.split]
smondet has quit [*.net *.split]
cdidd has quit [*.net *.split]
wagle has quit [*.net *.split]
sivoais has quit [*.net *.split]
smondet has joined #ocaml
beginner has joined #ocaml
cdidd has joined #ocaml
wagle has joined #ocaml
sivoais has joined #ocaml
osa1 has joined #ocaml
beginner has quit [Excess Flood]
<ousado>
is there a way for a module to pass itself as first-class module to a function?
<ousado>
or do I always need a helper module for that?
ontologiae has quit [Ping timeout: 248 seconds]
<bobry>
anyone tried odb with OCaml 4.00? I'm having some weird Toploop error
<thelema>
bobry: it works for hcarty with his ocamlbrew script downloading and building 4.00
<thelema>
unbound module toploop looks like you need to upgrade your findlib
<thelema>
I think 1.3.3 has the necessary changes to support 4.00 correctly
<bobry>
I think I already have the latest findlib
<bobry>
$ ocamlfind list | grep findlib
<bobry>
findlib (version: 1.3.3)
<thelema>
that should be the latest...
<thelema>
is there another topfind script on your system? (i.e. is it possible you're using an old topfind?)
<bobry>
hm, probably I've forgotten to re-compile findlib after updating to 4.00
<bobry>
yup, that was the case, sorry :)
munga has quit [Ping timeout: 248 seconds]
<Drakken>
Holy Mother of Tcl! Why is there so much string processing in odb?
nicoo has joined #ocaml
Yoric has joined #ocaml
mcclurmc is now known as mcclurmc_away
bzzbzz has joined #ocaml
pangoafk is now known as pango
munga has joined #ocaml
Yoric has quit [Ping timeout: 245 seconds]
braibant1 has joined #ocaml
<thelema>
Drakken: because it interacts with the command line a lot.
<thelema>
Drakken: also, because I'm not interested in building many extra layers into odb to protect the code that actually does work from the string processing.
munga has quit [Ping timeout: 248 seconds]
<adrien>
am I the only one who received a caml-list mail asking to validate a message?
<hcarty>
adrien: I got the same thing
<bacam>
adrien: I got it too. Just delete it.
xcombelle has quit [Quit: I am a manual virus, please copy me to your quit message.]
<adrien>
bacam: yeah, did, but makes me wonder how sympa behaves
bzzbzz has quit [Ping timeout: 248 seconds]
Anarchos has joined #ocaml
Anarchos has quit [Quit: must go back to family....]
sepp2k1 has quit [Remote host closed the connection]
Anarchos has joined #ocaml
sivoais_ has joined #ocaml
Cyanure has quit [Remote host closed the connection]
sivoais has quit [Remote host closed the connection]
seanmcl_ has joined #ocaml
sivoais_ has quit [Client Quit]
sivoais has joined #ocaml
seanmcl_ has quit [Client Quit]
mcclurmc_away is now known as mcclurmc
sivoais has quit [Quit: leaving]
sivoais has joined #ocaml
_andre has quit [Quit: leaving]
<hcarty>
thelema: I never followed up yesterday, but I've done a fair amount with odb since then and haven't had any trouble yet.
<hcarty>
thelema: Thanks again for getting those fixes in so quickly.
<thelema>
hcarty: thank you for helping me test
iago has joined #ocaml
ocp has quit [Quit: Leaving.]
Anarchos has quit [Quit: watching Tarkovsky'Solaris movie]
<ousado>
is there a way for a module to pass itself as first-class module to a function or do I always need a helper module for that?
<ousado>
it seems that another module is required, but the documentation is a little scarce
<adrien>
why are you trying to do that?
osa1 has quit [Ping timeout: 264 seconds]
<ousado>
adrien: I'm loading it as plugin using dynload