<hcarty>
adrien: I ran into the same refcount problem. I don't know if it is a Cairo 1.10.2 problem or a ocaml-cairo2 problem as I moved to those version from Cairo 1.2.x and ocaml-cairo-original at the same time.
<hcarty>
NaCl: ^^
<NaCl>
kk
* NaCl
doesn't know enough to test it
<hcarty>
NaCl: BTW - I think that Cairo's x.y.z versions are development versions when y is odd
* NaCl
was just trying to get simple drawing working
<NaCl>
yeah
<NaCl>
sure looks it
<hcarty>
I'm not really sure how to test it either. I don't seem to get the problem from expose events, but I do when a redraw is triggered from a callback. That may be luck of the draw though.
<NaCl>
how do I trigger a redraw anyway?
<hcarty>
NaCl: GtkBase.Widget.queue_draw I think
<hcarty>
I was using Gtk-light for this project, so I used a wrapper function.
<NaCl>
ah, cool
<hcarty>
The callback would call queue_draw and that would trigger the assert - immediately if Gc.full_major was called first.
<hcarty>
NaCl: Are you using cairo or cairo2 on the OCaml side?
<hcarty>
Nevermind... look like cairo2
<hcarty>
s/look/looks/
<hcarty>
NaCl: Please leave a note if you find out what the problem was! I'll do the same if I can find it.
<hcarty>
It may be worth sending an email/submitting a bug report to the forge
<hcarty>
Christophe Troestler may be able to provide some insight
everyonemines has joined #ocaml
<NaCl>
will do thanks
<hcarty>
NaCl: Do you get the same assert with the gtk_demo that comes with cairo2?
sebz has joined #ocaml
<hcarty>
Unless that what the code you pastebin'd is...
<NaCl>
it is
<NaCl>
and yes
<hcarty>
NaCl: I'm off for now, but good luck!
<everyonemines>
Is the C generating ocaml code of FFTw available somewhere?
<everyonemines>
nm, apparently genfft is what you want
everyonemines has quit [Quit: everyonemines]
mdelaney_ has quit [Read error: Connection reset by peer]
mdelaney has joined #ocaml
<thelema>
Is anyone able to connect to caml.inria.fr?
<NaCl>
it was down earlier. xD
<thelema>
blah.
<thelema>
now I can't look up how to do conditional module aliasing
<thelema>
I want to do module Int63 = if Sys.word_size = 64 then BatInt else BatInt64
* NaCl
reboots to fiddle
sebz has quit [Quit: Computer has gone to sleep.]
<NaCl>
thelema: it may not be possible
<thelema>
3.12 can do it via 1st class modules, but of course I'd like 3.11 compat.
<thelema>
I can force my way to it by creating a module that does the test at startup to define all of its var's
<thelema>
and maybe I just will do that, using [open module in] to save typing...
sebz has joined #ocaml
<thelema>
hmm, how to do the conditional type, though...
<NaCl>
thelema: could a preprocessor directive do it?
<NaCl>
have it do a substitution for some string?
<thelema>
I spent a good amount of time pulling preprocessor directives out of batteries... I'm not looking to put them back in... Maybe I can do it wih ocamlbuild...
<NaCl>
this is something easy to do with C. :P
oriba has quit [Quit: oriba]
Modius has joined #ocaml
<thelema>
NaCl: not without cpp
<NaCl>
which is pretty much mandatory for C
tomprince has left #ocaml []
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
surikator has quit [Quit: Computer is sleeping. I'm probably not.]
joewilliams is now known as joewilliams_away
mister_m has joined #ocaml
<mister_m>
how different is ocaml from haskell?
everyonemines has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
davdar has joined #ocaml
sebz has joined #ocaml
sebz has quit [Client Quit]
mister_m has left #ocaml []
ulfdoz has quit [Read error: Operation timed out]
junsuijin has quit [Quit: Leaving.]
ankit9 has joined #ocaml
sebz has joined #ocaml
Cyanure has joined #ocaml
Cyanure has quit [Read error: Connection reset by peer]
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
ftrvxmtrx has joined #ocaml
ankit9 has quit [Quit: Leaving]
ttamttam has joined #ocaml
Yoric has joined #ocaml
sebz has quit []
bobry has joined #ocaml
jimmyrcom has quit [Ping timeout: 240 seconds]
bobry has quit [Quit: Leaving.]
bobry has joined #ocaml
<flux>
ooh, I've missed this: " I am glad to announce that fresh release of Ragel (state machine compiler) includes ocaml codegen. Ragel is convenient to generate lexers or sometimes even parsers for simple formats. "
<flux>
SMC ocaml backend is still missing in action, though..
Anarchos has joined #ocaml
bobry has quit [Remote host closed the connection]
sebz has joined #ocaml
Yoric has quit [Quit: Leaving.]
bobry has joined #ocaml
sebz has quit []
<adrien>
what's the name of the new compression library that favors speed over compression?
<adrien>
hosted on google code, and compares to lzo
<flux>
I was going to say lzop :)
<adrien>
I love having IRC logs
<adrien>
snappy
ikaros has joined #ocaml
<Anarchos>
adrien lzma or xz ?
<adrien>
too slow
<adrien>
the goal is to save on disk read and writes
<adrien>
\o/
<adrien>
_oasis file in snappy \o/
larhat has joined #ocaml
<everyonemines>
Using ragel with ocaml sounds nice. Maybe porting Mongrel or something would be a good project...?
Yoric has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
jaar has joined #ocaml
everyonemines has quit [Quit: everyonemines]
surikator has joined #ocaml
Modius has quit [Quit: "Object-oriented design" is an oxymoron]
avsm has joined #ocaml
<adrien>
snappy's compression is probably too low for me in the end
<adrien>
snappy: 130MB/s on "slow" CPU (faster than I/O), compression ratio of 36%
<adrien>
xz: 10MB/s on "slow" CPU (slower than I/O), compressin ratio of 6%
<adrien>
compression ratio being 100*compressed/uncompressed
lopex has joined #ocaml
rwmjones has quit [Ping timeout: 264 seconds]
rwmjones has joined #ocaml
ankit9 has joined #ocaml
_andre has joined #ocaml
<adrien>
gildor: I'm most probably going to use libarchive, and wondering a bit about the "with_file" function: "[with_file t fn open read close] Read the content of a file, use the callbacks function [open], [read] and [close] to push the data."
<adrien>
gildor: so [open] is actually to "initialize" a data structure that you fill from [read]?
<adrien>
and I saw that on the caml hump yesterday: "Saffire is a static analysis program that detects bugs in programs that use the OCaml/C foreign function interface."
<adrien>
the website is unreachable however, does someone have an archive?
Cyanure has joined #ocaml
bobry has quit [Read error: Connection reset by peer]
<gildor>
adrien: yes, have a look at test/ for examples
bobry2 has joined #ocaml
<f[x]>
archive.org has
<adrien>
gildor: ok, thanks, there is no reference to "with_file" in test.ml but I see how it can be used =)
<adrien>
f[x]: very good idea, I always forget about that even though I had to use it a few days ago for the same purpose
Anarchos has joined #ocaml
bobry2 has quit [Read error: Connection reset by peer]
bobry has joined #ocaml
lopex_ has joined #ocaml
lopex has quit [Ping timeout: 252 seconds]
lopex_ is now known as lopex
jimmyrcom has joined #ocaml
rwmjones has quit [Read error: Operation timed out]
<adrien>
C and blocking sections make it possible have more than 100% cpu usage, right?
<adrien>
actually I'm not sure my program could eat 400MB of data per second (from 4 xz processes)
<adrien>
s/processes/streams/
<Anarchos>
adrien more 100% will never be possible :)
<olasd>
well with more than one core
<adrien>
of course, I won't be able to max everything
<adrien>
here an issue would have been context switches too
<Anarchos>
adrien the eternal problem of ocaml and multithread...
<adrien>
oh, not even that
<adrien>
I think I can speed up the datastructure but it's going to take _some_ time
<NaCl>
adrien: FASTER!
<adrien>
I/O-bound mostly currently ;-)
Reaganomicon has joined #ocaml
ankit9 has quit [Quit: Leaving]
Cyanure has quit [Ping timeout: 240 seconds]
lopex has quit []
junsuijin has joined #ocaml
surikator has quit [Quit: Computer is sleeping. I'm probably not.]
davdar has quit [Quit: davdar]
<adrien>
hcarty: ok, bug confirmed
<adrien>
found and confirmed
<adrien>
heading home now =)
ttamttam has quit [Remote host closed the connection]