<youknow365>
needs updating .......but like i said once i get this tcp stuff sorted........i am familiar with SimpleXML a very small xml parser .........so my tcp stuff + simplexml will be fine
<youknow365>
and LablGTK of course
<pango_>
I did not check whether that lib only taken care of parsing, or also of network...
<youknow365>
how can you play songs with ocaml any bindings to any libs for that kind of stuff ?
smimou has joined #ocaml
<pango_>
no idea... what kind of song anyway, wav, mp3, mid,... ?
<youknow365>
sound effects
<youknow365>
any
<youknow365>
an incoming im sound
<youknow365>
thats it
<pango_>
find place to look is ocaml humps...
<youknow365>
i did
<youknow365>
i saw a few things lib vorbis
<youknow365>
and SDL sound
<pango_>
yeah, sdl
<youknow365>
which will work buut it adds like 500 kb
<youknow365>
which i guess is fine
<youknow365>
i got an application on here that uses sdl sound
<youknow365>
and no the other sdl stuff
<youknow365>
so yea i guess i can just use the sound part
<youknow365>
i could prlly cut stuff out of it
<youknow365>
just have a wav file i could cut out all the crap for wav and all those other 500 formats
<youknow365>
pango_: man o man i still cant even figure out how to do this recive messages on the port i am connected to
<youknow365>
its not like i cant do it ......i jus dont know what you have to do
<youknow365>
i dont want 2 threads and everyone is telling me i only need 1
Demitar has quit ["Ex-Chat"]
clog has joined #ocaml
<youknow365>
dark_light: your the first person that has gave me that kind of info
<youknow365>
what will be the fastest ?
<youknow365>
and most simple to code and maintain
<dark_light>
youknow365, in terms of code? i have no idea :( most conservatives unix apps would use select because it is a very old technique.. but on muti-processor machines, forks would be very faster..
<youknow365>
lol
<youknow365>
its an im client
<youknow365>
;)
<youknow365>
also will it work on windows ?
<dark_light>
youknow365, the simpler is select.. because with fork you have to make a way to do communication between your forked servers.. and with threads, you will have big problems with shared data
<youknow365>
and what do other most im client's use ?
<dark_light>
youknow365, will work at least with cygwin :) but i think that threads will work with native windows code
<youknow365>
any objections to using cygwin ?
<dark_light>
and, i don't know.. :( look at gaim's code or email the guys :)
<dark_light>
youknow365, no, cygwin is nice (at least for me)
<youknow365>
i mean it doesnt slow anything down does it .........or add massive size ?
<dark_light>
youknow365, i think you can ask people at #gaim .. and maybe #kopete
<youknow365>
well with all 3 ways ....... i wouldnt be able to tell no difference would I ? this is just simple im' ing
<dark_light>
youknow365, i think that actually gaim is ported to windows with cygwin (i am not sure). and i don't think it adds a great slow down to the app.. but it will make it bigger
<youknow365>
how much bigger?
<youknow365>
kb's or mb 's
<dark_light>
don't know, maybe mb
<youknow365>
hmmm
<dark_light>
youknow365, there are no fork at windows
<youknow365>
i already got to include a static version of gtk 2 mb
<dark_light>
so cygwin will not use fork when porting your app, if you code it using fork
<youknow365>
there is one way to do forking in windows
<dark_light>
well, sorry then :)
<dark_light>
youknow365, how?
<youknow365>
googles fopr link
<dark_light>
youknow365, there are a page at inria that says the level of compatibility of ocaml for windows
<youknow365>
i habe no problem using a little cygin for the select
<dark_light>
select works with ocaml for windows
<youknow365>
select or threads
<youknow365>
oooo
<dark_light>
youknow365, i recommend select.. it's simpler
<youknow365>
so i should use select
<youknow365>
welllll could you show me a small example how select works i have never saw it .......
<dark_light>
youknow365, i will begin my server (many tries after..) with select, but it's a poor design just for begin. then i will try to port it for threads.....
<dark_light>
youknow365, well..
<youknow365>
this is just a small im clinet someone might have 5 ims open at once max
<youknow365>
this is not a server app that will have thousands of connections at once
mnemonic has quit ["leaving"]
<dark_light>
youknow365, a infinite loop with a select in the begin, and the select receives three params.. the sockets that are about to be read, the sockets that are about to be writed, and the sockets that are about to be checked for exceptional conditions.. and when it returns, it returns all sockets that have something to read, all sockets that you can do write now.. and you do the operations..
<dark_light>
youknow365, but i have no code here:)
<youknow365>
holy crap you jus kinda confused me :(
<dark_light>
youknow365, well, you can search for C examples
<youknow365>
so there wil be a loop running at all times?
<dark_light>
yes
<youknow365>
do alot of apps do this
<youknow365>
will this kill my cpu ?
<dark_light>
after (or before) doing all things related to sockets, you might want to read what the user typed, and do all related stuffs, and then execute select again..
<dark_light>
youknow365, no
<youknow365>
i mean like overload it
<pango_>
you'll have to handle GUI events too... I wonder if equeue wouldn't help, instead of plain Unix.select...
<dark_light>
(s/has/had/, maybe.. the english grammar is actually very complex for me)
<youknow365>
so whats better this or select
<youknow365>
dark_light: native language
<pango_>
youknow365: equeue uses select
<pango_>
youknow365: just providing a more abstract framework for event driven programming
<dark_light>
youknow365, my native language? portuguese:)
<youknow365>
i seee.......so whats the point of it
<youknow365>
dark_light: where do you live
<dark_light>
natal, brazil
<dark_light>
and you?
<youknow365>
lmao
<pango_>
youknow365: I think the introduction is well written ;)
<youknow365>
i lived there also
<youknow365>
then moved to Rio
<youknow365>
then back to the US
<dark_light>
here in natal?!? lol :P
<youknow365>
natal is safest in brasil :P
<youknow365>
and i remember the beaches to be nice also
<dark_light>
youknow365, natal is very hot, and i love the cold :P and i have beaches :)
<youknow365>
you like cold lol
<youknow365>
wtf
<dark_light>
hate*
<youknow365>
ooooooo
<youknow365>
lol
<youknow365>
natal is good i liked Rio as well
<dark_light>
yes, natal isn't that bad..
<youknow365>
i might get a place in brasil .......
<youknow365>
when i am rich :P
<youknow365>
i live in Miami now
<youknow365>
(which is also considered latin america ;) )
<dark_light>
do you speak portuguese?
<youknow365>
i did
<youknow365>
just spanish and english
<youknow365>
soo Nao :P
<youknow365>
tu hablas espanol ?
<dark_light>
yo no hablo, pero.. .. usually i understand it :P
<youknow365>
english/spanish/porturgese .....all the same thing :P
<youknow365>
english is the only language to relate to spanish ......except porturgese ..........englis hhas more in common with spanish then italian does
<dark_light>
they have some differences :P the rules are generally a bad thing for me:(
<youknow365>
rules?
<dark_light>
yes, like the.. had/have/has.. and that kind of stuff..
<dark_light>
i never know if i am writing the "right" english
<dark_light>
and too i never know if i am writing the "right" spanish
<youknow365>
spanish has the same thing
<youknow365>
tengo/tiene etc
<youknow365>
porturgese i htink has some asian in fluence
<dark_light>
asian? lol.. portuguese has certainly some tupi influence.. and from another tribes.. and the native people of here migrated from asia.. well, it may be ..
<dark_light>
(at least the brazillian portuguese)
<youknow365>
yes brazlillian porturgese
<youknow365>
Nao
<youknow365>
etc
<youknow365>
slangs likea taiwanese
<youknow365>
like a *
<youknow365>
lao
<youknow365>
hi in cantonese
<dark_light>
lao = hi, in the language of taiwan?
<youknow365>
no
<youknow365>
cantonese
<dark_light>
don't know cantonese:)
<youknow365>
me either
<youknow365>
hada few friends from there
<youknow365>
had a *
<youknow365>
atleast when brazillians learn english itdoenst sound foreign
<youknow365>
cause theirs lower tons and stuff
<youknow365>
tones
<youknow365>
Spanish from Mexico sound like they just jusmped the border
<dark_light>
i meant, i don't know where cantonese is speaked
jcreigh has joined #ocaml
<youknow365>
hong kong
<dark_light>
ah
<youknow365>
you ever been to US
<dark_light>
no
<youknow365>
ah
<youknow365>
us is more like brasil
<youknow365>
we eat feijoada and stuff
<dark_light>
sure?:)
<youknow365>
yes
<youknow365>
down south'
<youknow365>
not north
<dark_light>
hmm, yes
<youknow365>
peoplein north is more italian stuff
<youknow365>
pastas
<youknow365>
all that stuff
<youknow365>
down south is more like rice beans that kind of stuff
<youknow365>
JAMBYLYAAA
<shining>
/j #chat
<dark_light>
shining, low traffic on #ocaml is actually a good thing?
<shining>
it isn't, but total offtopic is even worse
<dark_light>
hmmm.. yes
<youknow365>
lol
<youknow365>
shining: if the channel had 500 people and you were the number 1 moderator ......you *might* be in the position to say something is off topic