<pango>
you can even write List.iter (Buffer.add_char buf) list, since you like partial application :)
dibblego has joined #ocaml
<pango>
the only drawback I see with this method is that data (characters) are copied twice; once from the list to the Buffer, and once from the Buffer to the returned string
<pango>
but I haven't checked whether it's faster or slower than looking at the List length (O(n)) to get the string size right from the beginning
<dark_light>
Hmm. building a string from scratch and filling it is very ugly anyway
* pango
nods
<pango>
I like this solution with Buffers too
rillig has quit ["exit(EXIT_SUCCESS)"]
delamarc1e has joined #ocaml
delamarche has quit [Read error: 104 (Connection reset by peer)]
<dark_light>
(for someone reading the code.. the Lib.mkstring function is that string_of_char_list.. and the rawl method justs sends a list to the server, concatening with String.concat " ")
ikaros_ has quit ["Verlassend"]
postalchris has quit ["Leaving."]
lmbdwr_ has quit [Read error: 110 (Connection timed out)]
falconair has joined #ocaml
_fab has quit []
delamarc1e has quit []
duncanm has joined #ocaml
lmbdwr_ has joined #ocaml
<Payo543>
dark_light, you up ?
<dark_light>
yes
<Payo543>
dark_light, are police friendly in brazil
<Payo543>
?
<Payo543>
dark_light, i dont plan on getting in trouble ....i am a good person :P
<dark_light>
i don't know o.o o.o with a foreing, i think yes, but there are police and police.. u.u the militar police sometimes beats people at student's manifestation, and this kind of thing :P
delamarche has joined #ocaml
<dark_light>
the militar police are a relique from the militar dictatorship, but well :P
<Payo543>
wellllllll
zmdkrbou_ has joined #ocaml
<Payo543>
dark_light, :\
<Payo543>
lol
zmdkrbou has quit [Read error: 104 (Connection reset by peer)]
<Payo543>
dark_light, students manifestation ?
<dark_light>
Payo543, well, yes, there are some, for things like minor bus passage
<Payo543>
what is student manifestaion ??????/
<dark_light>
ah
<Payo543>
so are the police good or bad in rio de janerio ?
<dark_light>
well, students going to streets protesting
<Payo543>
ooooooooo
<Payo543>
i dont protest ;)
<dark_light>
Payo543, i don't know, but i think the police you will handle is almost good
<dark_light>
Payo543, ah, just a tip: watching soccer can be dangerous if you don't know where to stay, there are sometime fights (and the police sometimes beats the watchers :P)
<Payo543>
wtf why ?
<dark_light>
it's like england i think
<Payo543>
why is watching a sport dangerous ?
<dark_light>
Payo543, i am not finding the word.. there are like, well, gangs that go to watching soccer just to fight..
<Payo543>
on tv or in real life ?
<dark_light>
"gang" isn't really the word to describe, but i don't live in rio and it's only for some main games (here in natal there aren't so much of this)
<Payo543>
a riot ?
<dark_light>
Payo543, real life, but i see only in tv, i may be exaggerating :)
<Payo543>
peopel go crazy
<Payo543>
and start destrying buildings
<Payo543>
and cars
<dark_light>
well no
<dark_light>
just fight with the other "gang" and with the police
<Payo543>
yes
<Payo543>
happens here too
<Payo543>
usually police dont go to far
<Payo543>
spray tear gas
<Payo543>
and if they start hitting police
<Payo543>
the police will pull out thier stick and knock them to the ground
<dark_light>
Payo543, here the police starts knocking :(
<Payo543>
knocking ?
<dark_light>
"the police will pull out thier stick and knock them to the ground" -> it's what happens here
<Payo543>
that happens here too
<Payo543>
but usually only thugs
<Payo543>
and gangsters
<Payo543>
not normal people
<dark_light>
well i can't say if it's normal people, :o
<Payo543>
dark_light, so what are you saying ?
<Payo543>
dark_light, i will be beat by the police for walking down the street
<dark_light>
no
<Payo543>
lol
<Payo543>
dark_light, i was reading the police just kill people in rio de janerio
<Payo543>
torutre and just kill them
<dark_light>
Payo543, poor people, yes
<Payo543>
crinimals ?
<Payo543>
drug people ?
<dark_light>
Payo543, some are, some aren't
<Payo543>
why would they just kill a poor person
<Payo543>
?
<dark_light>
at 'favelas', they may enter shooting.. it's what i see on tv :P
<Payo543>
no im talking about the police capturing someone and just killing them
<dark_light>
Payo543, that places are commanded by criminals, so they treats all people as criminals too
<dark_light>
well capturing? maybe not very common
<Payo543>
dark_light, if i lived in favela i would make it my first goal to get out of there
<dark_light>
Payo543, but there are no place to go..
<Payo543>
dark_light, i would find a place :)
<dark_light>
you would be lucky if could study at least 11 years :(
<Payo543>
dark_light, huh ?
<Payo543>
dark_light, well we have MANY ghetto's here and something called "projects" they are dangerous and very poor but alot of people get the hell of out of there
<dark_light>
Payo543, working hard since child, is what those people gets.. and there always the crime path..
<Payo543>
crime path willl get you killed
<dark_light>
Payo543, and very fast
<dark_light>
at least at rio :(
<Payo543>
yea wellll i dont know
* Payo543
reminds himself to stay out of favela
<dark_light>
Payo543, you surely will learn what places is safe:)
Mr_Awesome has joined #ocaml
<Payo543>
dark_light, :P i think i will live in Rocinha
<dark_light>
Hmmm sure? I think it's dangerous (but i am not sure). (Or are you kidding?)
<dark_light>
Payo543, and maybe we should talk in PVT.. :P
<Payo543>
dark_light, yea i was just kidding ;)
<Payo543>
Rocinha i think is the most dangerous of them alllll
<dark_light>
ahaha ok :P
<Payo543>
====DP
<dark_light>
Payo543, i am really unsure. it's the most famous
<Payo543>
yea, i am going to move there with a ferari , and wearing 3 diferent diamond necklaces