joewilliams has quit [Remote host closed the connection]
upgrayeddd has quit [Write error: Broken pipe]
joewilliams has joined #ocaml
ocp has quit [Read error: Operation timed out]
ftrvxmtrx has joined #ocaml
lopex has joined #ocaml
upgrayeddd has joined #ocaml
everyonemines has quit [Quit: Leaving.]
rby has joined #ocaml
edwin has joined #ocaml
probst has joined #ocaml
raphscallion has joined #ocaml
milosn has joined #ocaml
alej has joined #ocaml
alej has left #ocaml []
sebz has quit [Quit: Computer has gone to sleep.]
rspeyer has joined #ocaml
raphscallion has quit [Read error: No route to host]
raphscallion has joined #ocaml
rspeyer has quit [Ping timeout: 272 seconds]
ikaros has joined #ocaml
munga has joined #ocaml
rspeyer has joined #ocaml
raphscallion has quit [Read error: Connection reset by peer]
raphscallion has joined #ocaml
raphscallion has quit [Client Quit]
rspeyer has quit [Ping timeout: 260 seconds]
_andre has joined #ocaml
sebz has joined #ocaml
munga has quit [Ping timeout: 255 seconds]
sebz has quit [Client Quit]
ikaros has quit [Quit: Ex-Chat]
thelema has quit [Remote host closed the connection]
thelema has joined #ocaml
munga has joined #ocaml
sebz has joined #ocaml
sebz has quit [Client Quit]
raichoo has joined #ocaml
oriba has joined #ocaml
ttamttam has joined #ocaml
buriedhead has joined #ocaml
thelema has quit [Read error: Connection reset by peer]
thelema_ has joined #ocaml
oriba has quit [Ping timeout: 248 seconds]
Obfuscate has quit [Ping timeout: 248 seconds]
dsheets has quit [Ping timeout: 248 seconds]
tlockney has quit [Ping timeout: 248 seconds]
tlockney has joined #ocaml
oriba has joined #ocaml
dsheets has joined #ocaml
Obfuscate has joined #ocaml
buriedhead has quit [Ping timeout: 244 seconds]
buriedhead has joined #ocaml
avsm has joined #ocaml
buriedhead has quit [Ping timeout: 240 seconds]
ikaros has joined #ocaml
letrec has joined #ocaml
buriedhead has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
xorAxAx has joined #ocaml
<xorAxAx>
hi, i have a program that does a printf and then calls a function which also does I/O on the console. now i have the problem that the output of the latter function call appears before my printf. is this possible?
emmanuelux has joined #ocaml
emmanuelux has quit [Quit: Ex-Chat]
munga has quit [Ping timeout: 240 seconds]
ttamttam has left #ocaml []
<edwin>
yes, try flushing stdout
<edwin>
flush stdout;
<edwin>
or use %! in the printf format
<edwin>
to flush it
<edwin>
I guess your 2nd function writes directly to the file descriptor and doesn't go through the buffer
<edwin>
or it may write to stderr instead of stdout?
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
raichoo has quit [Read error: Connection reset by peer]
raichoo has joined #ocaml
buriedhead has quit [Ping timeout: 245 seconds]
<xorAxAx>
edwin: the latter is not the case. i tried flushing stdout
<xorAxAx>
does ocaml reorder function calls in sequences?
<edwin>
it shouldn't, do both functions use printf / output_string?
<oriba>
I'm using ocaml-ncurses, and there mvwin. It copies the window, the old one stays on screen, so it is not a move. Is it a bug? (using ocaml-curses-1.0.3) Or did I do something wrong?
<xorAxAx>
edwin: the second function does some weird magic with combining formatters and buffering somewhere etc.
<xorAxAx>
edwin: how does ocaml determine whether it may reorder expressions in statements?
<xorAxAx>
s/statements/sequences/
<edwin>
xorAxAx: do you build a second formatter that outputs to stdout in the 2nd function? that might be the reason
<edwin>
xorAxAx: I think that ocaml doesn't touch anything that may have side-effects
<xorAxAx>
edwin: thats probably the case (i didnt write the code). why is that problematic?
<edwin>
not sure if the formatter does its own buffering or not
<edwin>
let me check the docs
<edwin>
also are you sure both output to stdout? and not one to stdout and other to stderr for example?
<xorAxAx>
yes, i am sure
<xorAxAx>
2>/dev/null doesnt let something disappear
<edwin>
xorAxAx: does any of those functions use the Format module?
<edwin>
(or do you have open Format)?
<edwin>
"Warning: the material output by the following functions is delayed in the pretty-printer queue in order to compute the proper line breaking. Hence, you should not mix calls to the printing functions of the basic I/O system with calls to the functions of this module: this could result in some strange output seemingly unrelated with the evaluation order of printing commands."
<xorAxAx>
yes, the second function uses the pretty printer definitely. let me check the first function
oriba has quit [Quit: oriba]
<edwin>
xorAxAx: then try flushing the pretty printer by calling Format.print_flush ()
<xorAxAx>
open Format is in the module of the first function, i.e. printf refers to Format.printf?
<letrec>
is there any reason why BatAvlTree doesn't have a map function?
avsm has quit [Read error: Connection reset by peer]
buriedhead has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
raichoo has joined #ocaml
raichoo_ has joined #ocaml
raichoo has quit [Ping timeout: 248 seconds]
Kakadu has joined #ocaml
raichoo_ is now known as raichoo
sebz_ has joined #ocaml
<thelema_>
letrec: because it isn't implemented yet - implement one, please (with tests)
<thelema_>
letrec: actually, it's probably because avltree is used for IMap and ISet, and they each implement specialized map functions
mfp has quit [Read error: Connection reset by peer]
<thelema_>
letrec: one might argue that BatAvlTree isn't meant to be used by users, but rather to build full-featured data structures on top of. And thus it doesn't need a map function
<letrec>
thelema_: I see, but it might make sense to have it while implementing full-featured data structures
<thelema_>
implementations welcome.
<letrec>
thelema_: ok, is there a dedicated the batteries list or this one is appropriate?
<thelema_>
letrec: irc channel? this one is the only one I listen in
<thelema_>
there is a batteries mailing list, you should definitely make opinions public there, as it's more permanent than IRC
<letrec>
thelema_: yes, I meant an irc channel
letrec has quit [Ping timeout: 252 seconds]
mfp has joined #ocaml
buriedhead has quit [Ping timeout: 248 seconds]
<flux>
so, I have a module that doesn't use Batteries, but it gives me values of type out_channel. how do I deal with those values?
<flux>
I guess I would like to convert it into a batteries output type
xorAxAx has left #ocaml []
<flux>
ah, IO.output_channel. thanks, proceed as usual :)
buriedhead has joined #ocaml
sebz_ has quit [Quit: Computer has gone to sleep.]
wmeyer has quit [Ping timeout: 240 seconds]
wmeyer has joined #ocaml
wmeyer has quit [Ping timeout: 240 seconds]
buriedhead has quit [Quit: Leaving.]
ikaros has joined #ocaml
Drup has joined #ocaml
ftrvxmtrx has joined #ocaml
<flux>
here's a simple function Xmlm should have from the get-go: let string_of_xml xml = let buffer = Buffer.create 1024 in let dest = Xmlm.make_output (`Buffer buffer) in Xmlm.output_doc_tree identity dest (None, xml); Buffer.contents buffer
avsm1 has quit [Quit: Leaving.]
mfp has quit [Read error: Connection reset by peer]
mfp has joined #ocaml
oriba has joined #ocaml
dsheets has quit [Ping timeout: 244 seconds]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
pangoafk is now known as pango
_andre has quit [Quit: leaving]
<Drakken>
How do you pass ocamlfind options to ocamlbuild?
<_habnabit>
which options specifically?
wmeyer has joined #ocaml
<wmeyer>
hi
<Drakken>
_habnabit any and all. I'm using -threads currently, but what if I want some other option?
<adrien>
Drakken: using oasis?
<Drakken>
adrien not yet
<thelema_>
Drakken: afaik, the existing solution isn't general - tag `package(foo)` will pass `-package foo` to ocamlfind
<thelema_>
and syntax(foo) will pass -syntax foo to ocamlfind
<Drakken>
adrien all I have so far is a _tags file
<wmeyer>
I didn't find any useful option for doing in a different way with oasis
<wmeyer>
you could do it in myocamlbuild.ml
<wmeyer>
by adding an option
ttamttam has joined #ocaml
<adrien>
all BuildDepends in oasis go through oasis' myocamlbuild.ml and don't use -use-ocamlfind at all
<thelema_>
adrien: maybe only if the buildtype of something is ocamlbuild will oasis generate a myocamlbuild.ml
<adrien>
haven't tried but it's true it shouldn't do one otherwise
<adrien>
but there is soe kind of hack to get oasis to create one anyway I think: create a target with everything but set to Build: false
<adrien>
also
<adrien>
acutally, the simplest is to copy-paste the command that oasis says it's going to run when you run setup.ml -build
<adrien>
it says "I: Running /usr/bin/ocamlbuild $options"; copy, insert your own arguments and you're done
<wmeyer>
I mean bare _oasis is more less enough for 80% of the projects, the rest of 20% needs some tweaking, fortunately Oasis opens some backdoors to do it
<adrien>
same here I think; oasis does not lock down the build system and that's great =)
<thelema_>
yes, it's important that oasis allows custom tags and custom myocamlbuild.ml contents even when it generates those files
thelema_ is now known as thelema
<thelema>
what was the ocamlbuild tag to error on all warnings?
avsm has joined #ocaml
avsm has quit [Client Quit]
avsm has joined #ocaml
sepp2k has joined #ocaml
<wmeyer>
true: warning
<wmeyer>
hmm, in fact not sure
<thelema>
I just found it - warn_error_A
<thelema>
(I think A is all)
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
<wmeyer>
yes, that would be correct, sorry to misled
milosn has quit [Read error: Connection reset by peer]
ftrvxmtrx has quit [Ping timeout: 240 seconds]
milosn has joined #ocaml
ftrvxmtrx has joined #ocaml
sepp2k has quit [Read error: Connection reset by peer]
Snark has quit [Quit: Quitte]
<adrien>
according to its bzr log, Archimedes hasn't changed _that_ much since last summer when I had troubles understanding how it really worked (it was doing conversions from various units: pixels, indices, floats between 0 and 1 for the relative position); or has it changed? or am I the only one who had these issues?
<adrien>
I've used archimedes to plot in a lablgtk2 application; and had a crosshair; so it was more than simply plotting a file (and actually the plot could be moved around)
<thelema>
dunno. I've been able to make it do some plotting I needed.
<thelema>
just simple write to png file
Kakadu has quit [Quit: Konversation terminated!]
<thelema>
my benchmarking program now has some cool results visualization
<adrien>
I have an interface to add zooming, panning and a few other things to a drawing area; it should make it much easier for archimedes to handle dynamic plotting and replotting
<adrien>
hmm, I think I only need a couple hours to hack on cairo and archimedes to add the last bits to not go through a file on disk when displaying...
<thelema>
the input is labeled functions (string * ('a -> 'b)) list, an input generator (int -> 'a), and a range to plot over
<thelema>
everything else to do the benchmark is automatic.
<thelema>
(generating the graph still requires pushing the benchmark results to a file and then using a different program on that file to produce the png.
<adrien>
yup, I've enjoyed that
<thelema>
? you're using bench?
<adrien>
I had a lot of issues but at least, it had the right base for me
<adrien>
thelema: ah, non, I thought you meant archimedes =)
<thelema>
:)
<thelema>
the graph generation is not too bad. I'd like it to have better support for log scaled axes, and still need to improve the tic labeling
<adrien>
I don't have much time to spend on data structures currently unfortunately ='(
<adrien>
I don't write code that could be benchmarked
ttamttam has left #ocaml []
<adrien>
(I still want to iimplement VAM-split Hilbert R*-trees in ocaml) (this internet connection is horribly laggy and packetlossy)
<thelema>
sounds like fun.
<adrien>
spatial indexing; I needed 2D 3 years ago and I never got it =)
<zorun>
oh, fun
<zorun>
I wanted to do that, but I ended up using quadtrees instead :)
<adrien>
I got the hilbert tree stuff and it's pretty fast (a few cycles, I'll have to check the ASM, it's hard to believe) and I tried to use it for preprocessing images before compressing them; iddn't work terribly well but I should try again
jrslepak_ is now known as jrslepak_away
dsheets has joined #ocaml
jamii has joined #ocaml
<adrien>
still too much text on the new lablgtk homepage I made
munga has joined #ocaml
raichoo has quit [Quit: leaving]
munga has quit [Ping timeout: 244 seconds]
munga has joined #ocaml
edwin has quit [Remote host closed the connection]
Xizor has joined #ocaml
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 260 seconds]
munga has quit [Ping timeout: 252 seconds]
munga has joined #ocaml
Tobu has joined #ocaml
munga has quit [Ping timeout: 272 seconds]
jrslepak_away is now known as jrslepak_
thelema has quit [Quit: leaving]
Tobu has quit [Ping timeout: 252 seconds]
ikaros has quit [Quit: Ex-Chat]
jamii has quit [Read error: Operation timed out]
munga has joined #ocaml
Tobu has joined #ocaml
Morphous_ has quit [Ping timeout: 244 seconds]
<dsheets>
<role> I'm a clueless noob who wants to get into OCaml development. I've just installed Debian. What packages should I install? I don't see GODI in the default apt repos. Should I use the debian packages? I want to easily access as much of the community's work as possible.</role>
iago has joined #ocaml
lopex has quit [Remote host closed the connection]
bobry has quit [Remote host closed the connection]
lopex has joined #ocaml
bobry has joined #ocaml
Cyanure has joined #ocaml
Morphous_ has joined #ocaml
letrec has joined #ocaml
Xizor has quit []
mdelaney_ has joined #ocaml
Cyanure has quit [Remote host closed the connection]
thelema has joined #ocaml
twittard has joined #ocaml
lopex has quit [Read error: Connection reset by peer]
upgrayeddd has quit [Read error: Connection reset by peer]
joewilliams has quit [Remote host closed the connection]
lopex has joined #ocaml
ousado has quit [Read error: Connection reset by peer]
joewilliams has joined #ocaml
upgrayeddd has joined #ocaml
lopex has quit [Remote host closed the connection]
bobry has quit [Remote host closed the connection]
upgrayeddd has quit [Remote host closed the connection]
lopex has joined #ocaml
joewilliams has quit [Remote host closed the connection]