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
everyonemines has left #ocaml []
sebz has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
<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]
rwmjones has joined #ocaml
joewilliams_away is now known as joewilliams
larhat has quit [Quit: Leaving.]
larhat has joined #ocaml
bobry has quit [Ping timeout: 245 seconds]
larhat has quit [Quit: Leaving.]
Snark has joined #ocaml
ulfdoz has joined #ocaml
avsm has quit [Quit: Leaving.]
jaar has quit [Quit: Quitte]
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
ulfdoz_ is now known as ulfdoz
surikator has joined #ocaml
<flux> maybe this version is slightly less similar to opengl helloworld programs ;) : http://www.modeemi.fi/~flux/colors2.png
<adrien> it still looks like you've been painting while on a trip :P
<adrien> how are the colours chosen?
<flux> there are three coordinates with colors red, green, blue
<flux> for each pixel, the shortest path to those three pixels is calculated
<flux> each point then is then given weight (1/distance)**4.0 and boom, color comes out
<flux> oops, 'three pixels' -> 'three points'
<flux> wish I could just have a programming language or library that would make that program just three lines long :)
<flux> (it's actually ~500)
<adrien> flux: ah, ok, I thought you had changed something with the green but it's actually because the shape has changed
<flux> yeah, I thought the original shape didn't really give out the idea that the black things are obstacles
<NaCl> flux: yes. :P
arubin has quit [Quit: arubin]
<bobry1> anyone tried building the latest Core? i'm stuck with the following error: http://paste.in.ua/2983 -- any hints?
bobry1 is now known as bobry
<NaCl> bobry: install and/or update type-conv
<bobry> NaCl: I've already installed the latest version available, which is 3.0.0 i guess
<NaCl> bobry: I would use everything from Jane Street. The versioning is a little whack
jaar has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
<bobry> oh, ok -- thanks
<NaCl> sounds like stuff wasn't compiled in the right order or something like that. but I could be wrong, I haven't tried to compile it myself yet
Associat0r has quit [Client Quit]
Yoric has quit [Quit: Leaving.]
Yoric has joined #ocaml
lopex has joined #ocaml
bobry has quit [Quit: Leaving.]
bobry has joined #ocaml
ygrek has joined #ocaml
spearalot has joined #ocaml
ztfw has joined #ocaml
lpereira has joined #ocaml
surikator has quit [Read error: Connection reset by peer]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
khia0 has joined #ocaml
khia0 has left #ocaml []
ygrek has quit [Ping timeout: 245 seconds]
ttamttam has joined #ocaml
ygrek has joined #ocaml
ygrek has quit [Client Quit]
avsm has joined #ocaml
ttamttam has quit [Quit: ttamttam]
arubin has joined #ocaml
arubin has quit [Client Quit]
arubin has joined #ocaml
ulfdoz has quit [Ping timeout: 276 seconds]
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 250 seconds]
junsuijin has quit [Quit: Leaving.]
avsm has quit [Quit: Leaving.]
ikaros has quit [Remote host closed the connection]
ztfw has quit [Remote host closed the connection]
Snark has quit [Quit: Quitte]
_andre has quit [Quit: leaving]
spearalot has quit [Quit: Computer has gone to sleep]
dnolen has joined #ocaml
<hcarty> adrien: Bug confirmed in ocaml-cairo2 (OCaml), Cairo (C), or through some other path?
surikator has joined #ocaml
avsm has joined #ocaml
wtetzner has quit [Remote host closed the connection]
jaar has quit [Quit: Quitte]
Amorphous has quit [Ping timeout: 260 seconds]
lpereira has quit [Quit: Leaving.]
Amorphous has joined #ocaml
avsm has quit [Quit: Leaving.]
wtetzner has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
Yoric has quit [Quit: Leaving.]
sebz has joined #ocaml
struktured has quit [Ping timeout: 240 seconds]
sebz has quit [Client Quit]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
mdelaney has quit [Quit: mdelaney]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
joewilliams is now known as joewilliams_away
sebz has quit [Quit: Computer has gone to sleep.]
ftrvxmtrx has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml