sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
Smerdyakov has joined #ocaml
malc_ has quit ["leaving"]
bluestorm_ has quit ["Konversation terminated!"]
pstickne has quit [Read error: 104 (Connection reset by peer)]
pstickne has joined #ocaml
benny has quit [Read error: 60 (Operation timed out)]
shawn has quit [Read error: 110 (Connection timed out)]
david_koontz has joined #ocaml
mnemonic has quit ["leaving"]
jlouis_ has joined #ocaml
benny has joined #ocaml
bohanlon` has joined #ocaml
dark_light has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
david_koontz has quit ["This computer has gone to sleep"]
diffbavis has quit [Read error: 54 (Connection reset by peer)]
Smerdyakov has quit ["Leaving"]
slipstream-- has joined #ocaml
slipstream has quit [Read error: 60 (Operation timed out)]
shawn has joined #ocaml
diffbavis has joined #ocaml
pstickne_ has joined #ocaml
pstickne_ has quit [Client Quit]
bluestorm_ has joined #ocaml
bluestorm_ has quit [Remote closed the connection]
pstickne has quit ["Leaving"]
rillig_ has joined #ocaml
david_koontz has joined #ocaml
rillig has quit [Read error: 110 (Connection timed out)]
jlouis_ has quit [Remote closed the connection]
diffbavis has quit [Read error: 104 (Connection reset by peer)]
jlouis has joined #ocaml
david_koontz has quit ["This computer has gone to sleep"]
love-pingoo has joined #ocaml
diffbavis has joined #ocaml
b00t has joined #ocaml
b00t has quit [Remote closed the connection]
ramkrsna has quit [Read error: 145 (Connection timed out)]
Hadaka has quit [Read error: 110 (Connection timed out)]
diffbavis has quit [Read error: 104 (Connection reset by peer)]
zygomatik has joined #ocaml
Smerdyakov has joined #ocaml
ramkrsna has joined #ocaml
diffbavis has joined #ocaml
pango has quit [Remote closed the connection]
love-pingoo has quit ["Connection reset by pear"]
CosmicRay has joined #ocaml
slipstream has joined #ocaml
CosmicRay has quit [Remote closed the connection]
slipstream-- has quit [Read error: 110 (Connection timed out)]
CosmicRay has joined #ocaml
pango has joined #ocaml
<flux-> ocamlsdl apparently isn't quite up to date.. 0.7.2, the latest in the web site, is released january 2005
<flux-> which is about the last time the mailing lists had activity to speak of too
<flux-> plus the source forge cvs is now. hmph.
rillig_ is now known as rillig
postalchris has joined #ocaml
<mbishop> Did you guys see that Pragmatic Programmer would be interested in publishing an OCaml book?
bluestorm_ has joined #ocaml
<jacobian> somebody should write one :)
<Smerdyakov> It won't be me. The future is in even cooler languages. :P
<jacobian> Which horses are you betting on Smerdyakov
<Smerdyakov> I'm planning to build my own horses.
<jacobian> good plan
<jacobian> that way at least they'll be the right colour
<jacobian> What ingredients do you want?
<Smerdyakov> Coqs
<jacobian> How will it differ from Coq?
CosmicRay has quit ["Client exiting"]
<Smerdyakov> Sorry, I don't want to have this conversation now.
<jacobian> I'll have to ring it out of you latter I suppose
<jacobian> s/ring/wring/
postalchris has quit [Read error: 113 (No route to host)]
postalchris has joined #ocaml
jlouis has quit [Dead socket]
jlouis has joined #ocaml
love-pingoo has joined #ocaml
shawn has quit ["This computer has gone to sleep"]
pstickne has joined #ocaml
<zygomatik> Does anyone know a way of displaying a Bigarray.Array2 as an image ?
<tsuyoshi> uhh.. with gtk or what?
<zygomatik> tsuyoshi, I'd prefer without gtk but if it is the only way ...
<zygomatik> tsuyoshi, I'd prefer to use graphics, but it seems to use an image type of its own and i dont know how to convert it
zygomatik has quit ["Leaving"]
Naked has joined #ocaml
Naked is now known as Hadaka
esdee has joined #ocaml
<esdee> when using optional arguments, do you always have to supply a name with the default value?
smimou has joined #ocaml
<flux-> you mean when defining it or when calling it, I don't quite understand the question?
<flux-> but if you mean when defining it, then: yes
<esdee> defining it
<flux-> oh, actually
<flux-> you can have fully optional values
<flux-> without default value
<flux-> was that what you were asking?
<esdee> like I have ?foo:(foo=[])
<flux-> you can have: let func ?(foo=42) () = foo + 42
<esdee> ah, ok
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
postalchris has quit [Read error: 110 (Connection timed out)]
bluestorm_ has quit ["Konversation terminated!"]
Submarine has joined #ocaml
pattern has quit ["Reconnecting to server - dircproxy 1.1.0"]
pattern has joined #ocaml
shawn has joined #ocaml
paciek has joined #ocaml
trisiak has joined #ocaml
<paciek> is anybody who can help me with ocamlsdl ? i got a quite newbie problem...
<paciek> is anybody here*
david_koontz has joined #ocaml
<tsuyoshi> what's the problem
<trisiak> my friend went out for a moment but i can explain his problem
<trisiak> here is the code that is supposed to read mouse position 10 times in a second
<trisiak> but the problem is that it reads the position once and then is coping result for the next 9 cycles
<trisiak> maybe its not sdl specific problem but some kind of misunderstanding ocaml from our side
<tsuyoshi> I don't see anything wrong with it
<tsuyoshi> but I've never used sdl
<tsuyoshi> it looks like if there's something wrong it would be either in get_state or delay
<trisiak> thx for help
<trisiak> has anyone made a succesfull attempt with ocamlsdl and can give any working snippets?
<flux-> I have
<flux-> maybe, but it's really simple
<trisiak> great!
<trisiak> u can send them to trisiak at gmail.com
<flux-> do you have ocaml experience?
<flux-> I think I prefer irc
<trisiak> ok
<trisiak> i am average ocaml programmer :)
<paciek> newbie i think would be the better word:)
<flux-> let main () = Sdl.init [`EVERYTHING] in let display = Sdlvideo.set_video_mode ~w:640 ~h:480 [] in let rec wait_events () = match Sdlevent.wait_event () with Sdlevent.QUIT -> () | _ -> wait_events () in loop ()
<flux-> it might not work but should give an idea, right?-)
<flux-> and compiling with ocamlfind ocamlc -linkpkg -package sdl -o foo foo.ml
<flux-> oh, now I'm reading the buffer back
<flux-> so you want some more specific knowledge :)
<flux-> I think you want to run an event loop
<flux-> and replace the delay with a thread that makes Sdlevent.User -events
<flux-> so you can wait for the next sdl event
<trisiak> that is good idea, thx
<flux-> (however the approach has its problems, namely if you fail to perform in the timer interval there will be multiple timer messages in the queue; this can be avoided by counting how many outstanding events you have and by slowing down/stopping the thread when there is more than eg. 1)
<trisiak> i understand, that won't make big problem
<trisiak> we just need simple framework that will dispatch events triggered by user
<flux-> trisiak, the solution I'm referring is simply: let rec thread () = try Unix.sleep 100 (* accommodate profiling *) with _ -> () in Sdlevent.add [Sdlevent.USER 0]; thread ()
<flux-> and then the match Sdlevent.wait_event () .. can refer to the same event
<trisiak> thank you very much, this helps a lot :)
<flux-> too bad ocamlsdl development appears quite dead
<flux-> it is, of course, quite complete
<flux-> but there are some things missing
<flux-> and I haven't been able to check the cvs version due to sourceforges lousy service..
paciek has quit ["using sirc version 2.211+KSIRC/1.3.12"]
love-pingoo has quit [Read error: 104 (Connection reset by peer)]
david_koontz has quit ["Leaving"]
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
m3ga has joined #ocaml
<oscarh> I keep on getting /usr/lib/ocaml/unix.cmxa is not a compilation unit description... What i find on the web is that I should use findlib, which I do...
<oscarh> Any ideas?
<tsuyoshi> what's the command you're using
<oscarh> ocamlfind ocamlopt -I lib -I smergos -I xml -I xmpp -I xmpp/iq -thread -a -linkpkg -o smergos.cmxa -package "unix threads ssl netstring pcre expat str"
<oscarh> and a lot of files after that...