gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
<Drakken> okay
lamawithonel has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 276 seconds]
ulfdoz_ is now known as ulfdoz
<thelema> then make
pilki has joined #ocaml
<Drakken> okay, that worked.
<thelema> ./benchplot.byte
<thelema> NaCl: really? blit is useful.
<Drakken> dan[bench]$ ./benchplot.byte
<Drakken> Fatal error: exception Backend.Error(_, "The library /home/dan/.odb/lib/cairo2/cairo2.cma (occurring as a plugin dependency) cannot be loaded because:
<Drakken> error loading shared library: dllcairo2.so: dllcairo2.so: cannot open shared object file: No such file or directory")
<NaCl> thelema: haven't been doing lots of list chopping
dsheets has joined #ocaml
<thelema> Drakken: what's the contents of your ocaml ld.conf file?
<thelema> in `ocamlc -where`
<Drakken> dan[godi]$ ocamlc -where
<Drakken> /home/dan/ocaml/godi/lib/ocaml/std-lib
<Drakken> dan[godi]$ cat lib/ocaml/std-lib/ld.conf
<Drakken> /home/dan/ocaml/godi/lib/ocaml/std-lib/stublibs
<Drakken> /home/dan/ocaml/godi/lib/ocaml/std-lib
<Drakken> /home/dan/ocaml/godi/lib/ocaml/pkg-lib/stublibs
<Drakken> /home/dan/ocaml/godi/lib/ocaml/site-lib/stublibs
<Drakken> thelema it doesn't seem to be in there.
<Drakken> dan[ocaml]$ find . -name dllcairo2.so -print
<Drakken> dan[ocaml]$
<Drakken> I tried to install cairo with godi_console, but it failed because it couldn't find tcl/tk.
<Drakken> ... where I think "it" may be /home/dan/ocaml/godi/build/conf/conf-tcltk/./../../mk/bsd.pkg.mk
<Drakken> Why was there a problem? Am I supposed to have tcl installed?
lamawithonel has joined #ocaml
lamawithonel has quit [Ping timeout: 240 seconds]
iago has quit [Quit: Leaving]
<hcarty> Drakken: You need a different set of Cairo bindings than the one in GODI in order to use Archimedes
buriedhead has joined #ocaml
<hcarty> Drakken: If you installed Archimedes with odb then it should have pulled in the proper Cairo bindings (cairo2) as a dependency.
buriedhead has quit [Quit: Leaving.]
<thelema> Drakken: there's cairo and cairo2; archimedes needs cairo2
lamawithonel has joined #ocaml
oriba has quit [Quit: oriba]
srcerer has quit [Ping timeout: 252 seconds]
<Drakken> thelema or hcarty so what do I do? Should I edit the ld.conf in godi? There's a dllcairo2.so in .odb/lib/stublibs
<Drakken> blow up .odb and reinstall archimedes?
<thelema> I'm trying to figure out how you installed archimedes w/o cairo2
pilki has quit [Quit: This computer has gone to sleep]
<thelema> when you did the configure step, I'm guessing it printed that it didn't find cairo2, so you're stuck w/o cairo2 support.
<thelema> for now, try putting /home/.../.odb/lib/stublibs in your ld.conf
<Drakken> O. M. G.
<Drakken> thelema it worked.
<Drakken> Now how do I compile benchplot?
lamawithonel has quit [Ping timeout: 240 seconds]
avsm has quit [Quit: Leaving.]
smondet has left #ocaml []
pilki has joined #ocaml
pilki has quit [Client Quit]
<Drakken> oh, benchplot is the main executable. I guess I can just run make again.
srcerer has joined #ocaml
emmanuelux has quit [Read error: Connection reset by peer]
<Drakken> thelema did you not want those style options in the bench plot?
ulfdoz has quit [Ping timeout: 252 seconds]
<Drakken> maybe you just didn't see them. anyway, that's enough for tonight.
philtor has quit [Ping timeout: 276 seconds]
philtor has joined #ocaml
philtor has quit [Ping timeout: 276 seconds]
everyonemines has joined #ocaml
everyonemines has quit [Remote host closed the connection]
everyonemines has joined #ocaml
Axioplas1_ has joined #ocaml
ankit9_ has joined #ocaml
everyonemines has quit [*.net *.split]
Morphous_ has quit [*.net *.split]
ankit9 has quit [*.net *.split]
lopex has quit [*.net *.split]
mfp has quit [*.net *.split]
ecc has quit [*.net *.split]
kmc has quit [*.net *.split]
mal`` has quit [*.net *.split]
ztfw has quit [*.net *.split]
foocraft has quit [*.net *.split]
alxbl has quit [*.net *.split]
Axioplase_ has quit [*.net *.split]
mejalx has quit [*.net *.split]
mejalx has joined #ocaml
everyonemines has joined #ocaml
Morphous_ has joined #ocaml
lopex has joined #ocaml
mfp has joined #ocaml
ecc has joined #ocaml
kmc has joined #ocaml
mal`` has joined #ocaml
ztfw has joined #ocaml
foocraft has joined #ocaml
alxbl has joined #ocaml
Xizor has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
Submarine has quit [Ping timeout: 244 seconds]
mfp has joined #ocaml
Xizor has quit []
ftrvxmtrx has joined #ocaml
ftrvxmtrx has quit [Client Quit]
raichoo has joined #ocaml
thomasga has joined #ocaml
ocp has joined #ocaml
avsm has joined #ocaml
vivanov has joined #ocaml
cago has joined #ocaml
testcocoon has quit [Quit: Coyote finally caught me]
zorun has quit [Read error: Connection reset by peer]
zorun has joined #ocaml
testcocoon has joined #ocaml
milosn has joined #ocaml
edwin has joined #ocaml
everyonemines has quit [Quit: Leaving.]
avsm has quit [Quit: Leaving.]
ftrvxmtrx has joined #ocaml
probst has joined #ocaml
probst has quit [Client Quit]
probst has joined #ocaml
TaXules has quit [Read error: Connection reset by peer]
_andre has joined #ocaml
Drup has joined #ocaml
Cyanure has joined #ocaml
sgnb has quit [Read error: Operation timed out]
sgnb has joined #ocaml
julm has joined #ocaml
Kakadu has joined #ocaml
testcocoon has quit [Quit: Coyote finally caught me]
testcocoon has joined #ocaml
oriba has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
emmanuelux has joined #ocaml
ikaros has joined #ocaml
lamawithonel has joined #ocaml
mcclurmc has quit [Excess Flood]
iago has joined #ocaml
<adrien> hahah, I found references to lablgtk 2.4.0 in the comments of labgtk.f.o.o/index.html (with f.o.o = forge.ocamlcore.org)
arpd has joined #ocaml
ocp has left #ocaml []
ocp has joined #ocaml
lusory has quit [Ping timeout: 240 seconds]
lusory has joined #ocaml
<adrien> first changes: http://notk.org/~adrien/ocaml/labgltk_website/ ; I'm going to move together all the mentions of support for other libs (glade, gl, panel, rsvg, gnomecanvas) but after that, I don't have a ton of other ideas
<thelema> adrien: all downloads twice?
<thelema> there's a small diff, but it' not necessary
<thelema> maybe move 2nd to lablgtk1
<thelema> tutorial w/ other docs? or important to keep contrib separate?
<thelema> "developped" -> developed
<thelema> in downloads, latest release first, then win32, the git, sf
<adrien> "developpe..." is a favorite mistake among french people I think :-)
<thelema> err, not sf, forge
<adrien> I changed the "All downloads" description to "Downloads for all available files and releases: source, binaries and lablgtk1."; I'll separate the lablgtk1 stuff a bit later
<adrien> hmmm, I hadn't noticed the "Download area" link :-)
<Drakken> What's the standard way of exiting from a command-line program on an error?
<thelema> 1) download, 2) docs 3) contrib, 4) develop - git, mailing list, etc
<thelema> Drakken: exit 1
<thelema> Drakken: although I usually just `failwith "error message"`
<adrien> right, the forge has all the downloads but they don't have an easily-accessible description (a few words: "required for bytecode" for instance)
<Drakken> thelema I added command-line args to the plot.
<Drakken> for input & output filenames
<Drakken> (optional)
<Drakken> times.* are still in as defaults
<thelema>
<thelema> Drakken: sounds good. The big option that'll have to go in bench (unless I give in and do csv parsing) is which test result to plot
<thelema> at the moment, the first test in the last benchmark ends up being on disk after running the benchmark
<thelema> maybe multiple can be output (filename suffix isn't impossible, although it'll take some rewriting)
<thelema> maybe the .flat file can be extended with run names, and the benchplot tool get some interface to choose which name to plot
<thelema> hmm, how to plot multiple...
<thelema> even better, plotting multiple bench_throughput results (so that each result is a line, probably with error bars, or a shaded uncertainty)
<thelema> along the lines of these: http://had.co.nz/ggplot2/stat_smooth.html
<thelema> (maybe way in the future)
<Drakken> thelema is there some significance to the x axis? I thought it was just a large number of trials for statistical purposes.
<adrien> what's the jenkins address for ocaml?
<adrien> address of the jenkins for ocaml*
<thelema> Drakken: at the moment, not
<adrien> thanks =)
<adrien> ocaml svn trunk is broken?
<julm> adrien: well, ocaml is broken, right?
<thelema> adrien: maybe only on my msvc
<adrien> seems to be broken for julm; I'll try a bit later today on my laptop
zorun has quit [Read error: Connection reset by peer]
zorun has joined #ocaml
letrec has joined #ocaml
<julm> nevermind, i once had to create camlp4/camlp4_import.ml due to PR#5359 but now it conflicted with HEAD that still uses it if it is here
<julm> removing it solved the make world
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 240 seconds]
<Drakken> The compiler isn't keeping track of an integer that was tested for certain values. So when the integer is matched against the remaining values, the compiler thinks the matching is incomplete.
<adrien> yup, and it can't be easily changed
<Drakken> but it can be easily complained about :)
<adrien> agreed but just think that next you'll ask the compiler to check your code when you recurse over integers from n to 0 (like in factorial)
ocp has quit [Ping timeout: 244 seconds]
raichoo has quit [Ping timeout: 244 seconds]
mcclurmc has joined #ocaml
ulfdoz has joined #ocaml
<Drakken> thelema just figure out what format you want to print your multiline data to. I'll try to read whatever you write.
<Drakken> Data lines could be x y1 y2 y3 ... as long as there are no spaces inside any value.
<Drakken> and as long as each function is applies to the same x values.
<Drakken> applieD
ocp has joined #ocaml
<Drakken> the first line could be xlabel "the label for the x axis"
<Drakken> second line could be begin ylabels or whatever, then one y label per line, then end
<Drakken> then the data
<Drakken> oh, the title should be on the first line.
<adrien> and http://notk.org/~adrien/ocaml/labgltk_website/ updated again; I think I'll add links to the various sections at the top and... hmmm, don't know
<hcarty> adrien: The documentation is certainly easier to find :-)
<adrien> :-)
Snark has joined #ocaml
<adrien> I'll be back a bit later and I think I'll change the lablgtk.f.o.o page a bit later in the week
<thelema> Drakken: I'm thinking I'll have to do more like gnuplot style
<thelema> Drakken: first line is \tfunction1\tfunction2\tfunction3\t...
ankit9_ has quit [Quit: Leaving]
ftrvxmtrx has quit [Quit: Leaving]
<thelema> remaining lines are x1 y11 y12 y13\nx2 y21 y22 y23\n...
ocp has left #ocaml []
ulfdoz has quit [Ping timeout: 240 seconds]
cago has left #ocaml []
ulfdoz has joined #ocaml
letrec has quit [Ping timeout: 248 seconds]
nixfreak has joined #ocaml
<nixfreak> I am looking for some docs for creating win32 apps in ocaml
<nixfreak> using the native API call
<nixfreak> also I have been looking for way to code inline asm into ocaml
<thelema> put it in a c function and call that
<hcarty> nixfreak, thelema: Or use ciml which is supposed to automate the process a bit - http://chadok.info/ciml/
buriedhead has joined #ocaml
<thelema> hcarty: interesting../.
<hcarty> I haven't used it beyond compiling and running the included examples, and that was a year or more ago. But it looks cool.
<nixfreak> thx for the info
<hcarty> thelema: One of the more interesting uses of camlp4 I've seen.
oriba has quit [Quit: oriba]
<thelema> nixfreak: yes, ocaml compiles to assembly, you're more than welcome to edit that assembly yourself
<thelema> ocamlopt -S
<nixfreak> thelema - just curious what I could do with it , I like diving into low level code
<thelema> nixfreak: you'll find that ocaml's primitives compile to quite efficient assembly already.
joewilliams has joined #ocaml
<nixfreak> yeah I have been reading about the ml compiler
buriedhead has quit [Quit: Leaving.]
ttamttam has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
probst has quit [Quit: probst]
yroeht has quit [Ping timeout: 240 seconds]
yroeht has joined #ocaml
ttamttam has quit [Quit: ttamttam]
thomasga has quit [Quit: Leaving.]
alkoma has joined #ocaml
alkoma has left #ocaml []
_andre has quit [Quit: leaving]
roconnor has joined #ocaml
<roconnor> is there a convinent way to get ocamlbuild to invoke ocamlmktop?
<_habnabit> `ocamlbuild x.top` doesn't do that?
<roconnor> I'll try
<roconnor> doesn't seem to
pr has joined #ocaml
<adrien> I don't have time to properly look at it but I have: ocamlbuild -documentation | grep top
<adrien> rule "ocaml: mltop -> top" ~deps:[ %.mltop ] ~prods:[ %.top ] <fun>
<adrien> flag {. link, native, ocaml, use_toplevel .} "toplevellib.cmxa"
<adrien> flag {. byte, link, ocaml, use_toplevel .} "toplevellib.cma"
emmanuelux has quit [Remote host closed the connection]
<adrien> if you find, please tell us because I'm also interested in that
<adrien> oh, and there is no support in oasis to make a toplevel, right?
<_habnabit> http://paste.pound-python.org/show/g3eq0VHJltXt9pS2KNhM/ <- this is what I have in our makefile for .top
EmmanuelOga has joined #ocaml
emmanuelux has joined #ocaml
<adrien> ah, .mltop file, thanks =)
<nimred> i ran `apt-cache search unison` but it outputed nothing. What did I miss ?
<_habnabit> #ubuntu ?
<nimred> thelema: debian
<thelema> the first link, then
<nimred> thelema: i know it is available as package
<nimred> My question is why apt-cache returned nothing
<_habnabit> nimred, are you sure you're in the right channel
<thelema> I don't think that's an ocaml question, but a debian question.
<thelema> I guess it could be an ocaml packagers question
<thelema> sgnb: ping
<nimred> thelema, _habnabit: ok. Thanks anyway and sorry for noising
<adrien> stupid question: is the cache up-to-date?
<nimred> adrien: http://sprunge.us/icRj
<sgnb> thelema: pong
<thelema> sgnb: any possibility nimred's problem is an issue with unison's packaging?
<sgnb> nimred: I cannot reproduce
<thelema> (sorry if this is a dumb question; I'm not so familiar with apt-cache)
<sgnb> nimred: does apt-cache search return anything for e.g. dpkg?
<sgnb> nimred: the messages about not available public key are suspicious
<sgnb> nimred: you shouldn't mix lenny and squeeze in your sources.list, btw
<nimred> sgnb: sure it is system related and has nothing to do with unison
vivanov has quit [Quit: Lost terminal]
ski has quit [Ping timeout: 255 seconds]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
Snark has quit [Quit: Quitte]
<roconnor> Does someone know what I'm doing wrong here: http://hpaste.org/56298
<roconnor> I create a file called foo.mltop containing 1 line with an ocaml module name
<roconnor> then I do ocamlbuild foo.top
<roconnor> which appears to work, creating a foo.top executable
<thelema> -use-ocamlfind
<roconnor> but when I run it I cannot open my module
<_habnabit> roconnor, Keywords is your own module?
<roconnor> ya
<_habnabit> roconnor, and do you have a keywords.byte?
<roconnor> thelema: oh ya ignore that package warning
<thelema> roconnor: ok... -link-all? -link-pkg?
arpd has quit [Quit: ZNC - http://znc.sourceforge.net]
<roconnor> thelema: Keywords doesn't actually use camomile; it is a suprious warning from my _tags file since the larger project uses it.
<roconnor> er
<roconnor> let me fix my _tags file for this example to remove the distracting warning
<thelema> ok, but maybe ocamlfind needs a -link-??? argument to link the mltop correctly
nixfreak has quit [Ping timeout: 258 seconds]
<thelema> although I think that may give a different error... hmm..
<_habnabit> roconnor, well ?
arpd has joined #ocaml
<roconnor> adding -link-all and -link-pkg are unrecongized options to ocamlbuild
<roconnor> http://hpaste.org/raw/56299 -- without the camomile stuff
<_habnabit> 20:58:05 < _habnabit> roconnor, and do you have a keywords.byte?
<thelema> roconnor: yes, they're arguments to ocamlfind, which I assume ocamlbuild is creating
<thelema> err, using
<roconnor> _habnabit: ah sorry, no I have no such file in my directory nor _build
<_habnabit> roconnor, `ocamlbuild keywords.byte`
<_habnabit> roconnor, then try again
<roconnor> I just get keywords.cmi and keywords.cmo and keywords.ml.depends
<roconnor> in my _build directory
<roconnor> plus the foo. stuff
<roconnor> _habnabit: ocamlbuild -clean ocamlbuild foo.top results in the same thing
<roconnor> # Keywords.to_string Keywords.Op;;
<roconnor> Error: Unbound module Keywords
<_habnabit> also it's 'keywords' (lowercase) in the .mltop file
arpd has quit [Quit: ZNC - http://znc.sourceforge.net]
<roconnor> lowercase?!
<_habnabit> and you need to have built the .cmo file
<_habnabit> which is why I told you to do `ocamlbuild keywords.byte`
<roconnor> doing ocamlbuild keywords.byte first doesn't help
<_habnabit> well, it works4me
<roconnor> hmm
<_habnabit> let's see if I can reproduce it without myocamlbuild.ml
ski has joined #ocaml
arpd has joined #ocaml
<_habnabit> hmm, must be something in my myocamlbuild.ml
<roconnor> Actually, I can't get it to work in regular ocaml top level :/
<roconnor> I've screwed something up
<roconnor> I wish I could get more debugging information from ocaml
<roconnor> okay it does work from ocaml when I'm in the _build directory
<roconnor> that is a good start
<roconnor> but not when I'm outside the _build directory
<roconnor> unless i do ocaml -I _build
<_habnabit> do you have a myocamlbuild.ml
<roconnor> where would it be?
<_habnabit> in the same directory as _build
<roconnor> $ ls _build/
<roconnor> _digests foo.mltop foo.top keywords.byte keywords.cmi keywords.cmo keywords.ml keywords.ml.depends _log
<_habnabit> no, not *in* _build
<roconnor> ah sorry
<roconnor> no nothing like that
zorun is now known as yorun
<hcarty> thelema: I'll make a more formal reply on-list, but for the record - I like all of those proposed standards, with the possible exception of "t goes first."
<hcarty> thelema: But I would rather have all of them than none :-)
<thelema> hcarty: There are times we may want to provide both t first and x first
ulfdoz has quit [Ping timeout: 240 seconds]
Xizor has joined #ocaml
<hcarty> thelema: I'm torn on 'a option vs ('a, 'b) result. Both have benefits.
<thelema> yes, when 'a option makes sense, use it, when there's any real detail to the failure to report, use result
yorun is now known as Kekah
<hcarty> That seems reasonable
<roconnor> ah ha
<roconnor> ./foo.top works from inside the _build directory, but not outside
<thelema> meaning its include path is not set?
Kekah is now known as nyanyan
<roconnor> well actually just running plain ocaml in the _build directory also lets me open Keywords;;
<roconnor> so it just means that I was running ocaml in some directory with Keywords.* :(
nyanyan is now known as zorun
<thelema> yup.
Kakadu has quit [Quit: Konversation terminated!]
<roconnor> $ cat ~/.ocamlinit
<roconnor> #directory "_build";;
<roconnor> putting this in my ~/.ocamlinit file seems to have worked
<roconnor> But it seems wrong to have to do this
roconnor has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
emmanuelux has joined #ocaml
willb has quit [Read error: Connection reset by peer]
edwin has quit [Remote host closed the connection]
Cyanure has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
saberman_2 has joined #ocaml
saberman_2 has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
emmanuelux has joined #ocaml
Anarchos has joined #ocaml
milosn has quit [Ping timeout: 276 seconds]
mdelaney_ has joined #ocaml
Xizor has quit []
mdelaney_ is now known as mdelaney
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
Morphous_ has quit [Ping timeout: 240 seconds]
letrec has joined #ocaml
Morphous_ has joined #ocaml
pango is now known as pangoafk
yroeht has quit [Ping timeout: 240 seconds]
Drakken has left #ocaml []
iago has quit [Quit: Leaving]
yroeht has joined #ocaml
mdelaney has quit [Quit: mdelaney]
letrec has quit [Ping timeout: 240 seconds]
yiwusal has joined #ocaml
yiwusal has quit [Client Quit]
mdelaney has joined #ocaml
mdelaney has quit [Remote host closed the connection]
mdelaney has joined #ocaml
mdelaney has quit [Client Quit]
mdelaney has joined #ocaml