mfurr changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
lus|wats has quit [Read error: 60 (Operation timed out)]
yangsx has joined #ocaml
yangsx has quit [Client Quit]
wam has joined #ocaml
Excedrin_ has joined #ocaml
Excedrin has quit [Read error: 104 (Connection reset by peer)]
Excedrin_ is now known as Excedrin
zzorn has quit ["zzz"]
<Riastradh> dan2, instead of saying 'my code doesn't work,' why don't you ask coherent, complete questions with the code given?
vezenchio has joined #ocaml
shawn_ has joined #ocaml
shawn_ is now known as shawn
_shawn has quit [Read error: 110 (Connection timed out)]
Submarine has quit ["Leaving"]
<dan2> Demitar: I was wrong, the issue is that the threads aren't starting
<dan2> Riastradh: ok, not helping right now, I know the issue, solving is the problem
<dan2> Riastradh: Demitar: karryall said that I need to get something to either start a block in the thread or make use of the allocator
<Riastradh> In order for others to help you solve the issue, they need to know the issue.
<Riastradh> I don't think that has anything to do with this issue.
<dan2> Riastradh: yes it does
<dan2> Riastradh: because to lift the global lock, it needs to block or allocate
<Riastradh> Well, why don't you show the code & explain what's going wrong so you can demonstrate that?
<dan2> Riastradh: I got the code working, but then I have a Thread.kill issue
<dan2> Riastradh: it says its not implemented
<dan2> Riastradh: and the thing I'm using to lift the lock is shitty
<Riastradh> Obviously, your code isn't working if threads just sit in suspension.
<dan2> Riastradh: I'm using sleep 1, because sleep 0 and select [] [] [] 0 aren't doing anything
<dan2> Riastradh: sleep 1 gets the threads to go
<dan2> Riastradh: is gettimeofday a blocking function?
<Riastradh> dan2, I can't help you unless you show me the code.
<dan2> Riastradh: done
<Riastradh> OK, I'm afraid supper just arrived, so you'll have to wait a few minutes.
<dan2> karryall: ping
<dan2> karryall: will a printf be blocking?
<dan2> karryall: or put stuff on the stack?
<karryall> no :)
<dan2> karryall: damn it
<dan2> karryall: but why not if it has a variable like %d
<karryall> only buggy C stubs and weird code like busy loops
<dan2> karryall: this whole thing about putting memory in is weird
<dan2> I guess I'd be using malloc and be allocating stuff for the threads in C
<karryall> he
<dan2> karryall: what about using references
<dan2> karryall: putting stuff on the heap
<dan2> karryall: you think that would work?
<karryall> how do you know your threads are not starting ?
<dan2> karryall: I put a printf at the beginning
<dan2> karryall: so I know its going
<karryall> you do not flush it
<dan2> karryall: huh?
<karryall> you do not flush stdout
<dan2> karryall: if I flush stdout, will that make it go?
<dan2> karryall: I'm using "\n"
<karryall> \n is just a newline char, it does not flush the channel
<karryall> add a %! just after the \n
<dan2> karryall: ok
<dan2> karryall: worked
<karryall> heh
<dan2> karryall: ok the logic is fucked now
<dan2> karryall: the threads are starting, handle_events has already been run
<karryall> some deadlock huh ?
<dan2> so it shouldn't be possible that I'm getting Queue.empty
<dan2> karryall: ok, so now we have something, want to come to flood?
<karryall> ??
<dan2> #flood
<dan2> karryall: coming?
<karryall> oh
<karryall> yeah
gim has quit [Read error: 110 (Connection timed out)]
Godeke has quit [tolkien.freenode.net irc.freenode.net]
Godeke has joined #ocaml
<dan2> vincenz: making the accept in the main thread fixed it
<dan2> vincenz: thanks
<dan2> vincenz: but I still have the problem of Thread.kill not implemented
<vincenz> what platform?
<dan2> vincenz: linux x86
<vincenz> odd
<dan2> vincenz: yeah, it says thread.kill not implemented
<dan2> vincenz: I know that's not my program ;)
<dan2> vincenz: I'll try it on another box that has a cvs build of ocaml
monochrom has joined #ocaml
<dan2> ooo
<dan2> ocamlconf is nice
<dan2> success at last!
<vincenz> ?
<dan2> vincenz: new build system (ocamlconf), and a working test of the thread model
<dan2> vincenz: now I can start implementing away
<vincenz> guess what I did
<vincenz> :)
<vincenz> dan2:
<dan2> what?
<vincenz> I curried functors :)
<dan2> ewwwwwwwww
<vincenz> wanna see?
CosmicRay has joined #ocaml
monochrom has quit [Read error: 110 (Connection timed out)]
cryptilox has joined #ocaml
<dan2> vincenz: sure
mrvn_ has joined #ocaml
<dan2> vincenz: ok, that just plain disgusts me
<dan2> does ocaml have some sort of associative array
mrvn has quit [Read error: 110 (Connection timed out)]
<vincenz> disgusts?1?
<vincenz> why?
<vincenz> dan2: you mean hashmap?
<vincenz> or or map?
<dan2> same thing to me
<dan2> vincenz: yes
<dan2> vincenz: I need it to store some values
<dan2> vincenz: ok, so how do I use a hashmap
<dan2> vincenz: or making one would be enough :)
<dan2> nvm
async has joined #ocaml
<async> I'm using ocamllex to parse a file, and i'm trying to parse string literal
<async> things like "hello
<async> "hello\n"
<async> during parsing, is there a neat way to turn things like "\n" into the special characters ('\n')?
CosmicRay has quit ["Client exiting"]
Smerdyakov has joined #ocaml
vezenchio has quit ["haibane · renmei"]
async has quit ["leaving"]
det_ is now known as det
zzorn has joined #ocaml
zzorn is now known as zzorn_away
pango has quit ["Client exiting"]
pango has joined #ocaml
cryptilox has left #ocaml []
srv has quit [Read error: 104 (Connection reset by peer)]
srv has joined #ocaml
Submarine has joined #ocaml
smimou has joined #ocaml
mrsolo has quit ["Leaving"]
gpciceri has joined #ocaml
gpciceri has quit [Client Quit]
Tristram has quit [Remote closed the connection]
gim has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
bisby has joined #ocaml
srv has quit [Read error: 104 (Connection reset by peer)]
<bisby> not a lot of action here...
srv has joined #ocaml
mrvn_ is now known as mrvn
ejt has joined #ocaml
bisby has quit [Remote closed the connection]
CosmicRay has joined #ocaml
ejt has quit [Read error: 110 (Connection timed out)]
ejt has joined #ocaml
vezenchio has joined #ocaml
pango has quit [Nick collision from services.]
pango_ has joined #ocaml
Smerdyakov has quit ["Client exiting"]
<dan2> mrvn: the model works and is complete
<dan2> mrvn: my own worker thread model
cryptilox has joined #ocaml
cryptilox has quit [Client Quit]
cryptilox has joined #ocaml
mrsolo has joined #ocaml
monochrom has joined #ocaml
tewk has left #ocaml []
karryall has quit ["..."]
Riastradh has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has joined #ocaml
smimou has quit ["?"]
Submarine has quit ["Leaving"]
ejt has quit [Read error: 110 (Connection timed out)]
zzorn_away is now known as zzorn