<Inspico>
i didn't find how to differency when someone is clicking on
<Inspico>
and when he release the click
<Inspico>
:s
<Inspico>
i see the event button_down and button_up but i don't found how to use it
<Inspico>
:s
<Inspico>
someone could help me ;_;
smimou has quit ["?"]
skylan has joined #ocaml
monochrom has quit ["Few people understand "understanding"."]
mlh has quit [Client Quit]
smkl has joined #ocaml
zzorn has quit ["zzz"]
CosmicRay has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
mrvn has joined #ocaml
mrvn_ has quit [Read error: 60 (Operation timed out)]
smkl has joined #ocaml
mlh has joined #ocaml
mrsolo has quit [Read error: 104 (Connection reset by peer)]
mlh has quit [Client Quit]
CosmicRay has quit ["Leaving"]
smkl has quit [Read error: 110 (Connection timed out)]
mbh has quit [Read error: 110 (Connection timed out)]
Herrchen_ has joined #ocaml
Herrchen has quit [Read error: 60 (Operation timed out)]
lmbdwr has joined #ocaml
smkl has joined #ocaml
xqw has quit [Read error: 110 (Connection timed out)]
smkl has quit [Read error: 110 (Connection timed out)]
xqw has joined #ocaml
vezenchio has joined #ocaml
zzorn has joined #ocaml
zzorn is now known as zzorn_away
smkl has joined #ocaml
shawn has joined #ocaml
shawn_ has joined #ocaml
shawn__ has joined #ocaml
_shawn has quit [Read error: 110 (Connection timed out)]
mlh has joined #ocaml
shawn has quit [Read error: 110 (Connection timed out)]
pango has quit [Remote closed the connection]
shawn_ has quit [Connection timed out]
pango has joined #ocaml
shawn has joined #ocaml
smimou has joined #ocaml
shawn__ has quit [Read error: 110 (Connection timed out)]
smimram has joined #ocaml
shawn_ has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
smimram has quit ["?"]
mrvn_ has joined #ocaml
yella_ has quit [Read error: 60 (Operation timed out)]
shawn has quit [Read error: 60 (Operation timed out)]
cmeme has quit [Read error: 60 (Operation timed out)]
CLxyz has quit [Read error: 60 (Operation timed out)]
mrvn has quit [Read error: 60 (Operation timed out)]
smimou has quit [Read error: 113 (No route to host)]
cmeme has joined #ocaml
CLxyz has joined #ocaml
yella_ has joined #ocaml
smkl has joined #ocaml
Excedrin has quit [Remote closed the connection]
stef_ has quit [Read error: 60 (Operation timed out)]
smkl has quit [Read error: 110 (Connection timed out)]
dan2 has quit []
dan2 has joined #ocaml
Excedrin has joined #ocaml
mlh has quit [Client Quit]
smkl has joined #ocaml
stef has joined #ocaml
CosmicRay has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
drewr has joined #ocaml
tintin has quit [Remote closed the connection]
tintin has joined #ocaml
stef has quit [Read error: 54 (Connection reset by peer)]
stef has joined #ocaml
apfel has joined #ocaml
<apfel>
I hope this question isn't off-topic in this channel. What's the complexity of the following function? O(n) or (n^2)? fun concat nil = nil | concat (x::xr) = x @ concat xr
<Submarine>
n^2
smkl has joined #ocaml
CosmicRay has quit [Read error: 60 (Operation timed out)]
<apfel>
That was also my first guess but then I thought that @ isn't O(n) in this context but O(1) because you can find a k in |N which is the maximum of all list lengths.
<apfel>
The number of "instructions" doesn't exceed this k for all (sub)lists within the main list then
<apfel>
number of "instructions" for @, that is
CosmicRay has joined #ocaml
<Submarine>
incorrect
<apfel>
That's what a fellow student and I came up with but I'm not sure if this is nonsense or not
<Submarine>
take n lists of equal length k, computation times are proportional to n^2.k
<apfel>
Hmm, yeah, sounds logical to me
<Submarine>
if you are to do this, I strongly recommend you use the Buffer type
<Submarine>
as you probably know, the proper way to do extensible strings like that is
<Submarine>
either 1) you compute the final length before, allocate it, and copy the parts
<Submarine>
or 2) you double the size of the buffer at each concatenation that does not fit
<apfel>
It's more a theoretical thing. Anyway, thanks for your tips
vezenchio has quit ["Greenspun's Tenth Rule of Programming: any sufficiently complicated C or Fortran program contains an ad hoc informally-specifi"]
vezenchio has joined #ocaml
Submarine has quit ["Leaving"]
eternite has joined #ocaml
Submarine has joined #ocaml
eternite has left #ocaml []
mrvn has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
mrvn_ has quit [Read error: 110 (Connection timed out)]
stef has quit [Read error: 54 (Connection reset by peer)]
stef has joined #ocaml
smkl has joined #ocaml
stef has quit [Nick collision from services.]
stef_ has joined #ocaml
tintin has quit [Read error: 113 (No route to host)]
smimou has joined #ocaml
monochrom has joined #ocaml
_JusSx_ has joined #ocaml
zzorn_away is now known as zzorn_afk
zzorn has joined #ocaml
pango has quit ["Leaving"]
zzorn is now known as zzorn_afk2
zzorn_afk has quit [Connection timed out]
pango has joined #ocaml
<haakonn>
how do you verbify "recursion"? would i say "the function recurs", or "the function recurses"?
<Submarine>
recurses
<Riastradh>
Recurs.
<Riastradh>
There's no reason to add the superfluous 'se.
<Riastradh>
'
<haakonn>
i agree, but my friend doesn't :)
<Riastradh>
Tell your friend that he's wrong and that Riastradh said so.
<haakonn>
good, i'm going with recurs
<Riastradh>
It's not even merely that 'recurse' is not a widely recognized word. It has two completely superfluous letters that add no value whatsoever to the word. (You're not repeatedly cursing, for instance.)
Banana_ has joined #ocaml
Banana has quit [Read error: 54 (Connection reset by peer)]
mfurr has joined #ocaml
vezenchio has quit ["Greenspun's Tenth Rule of Programming: any sufficiently complicated C or Fortran program contains an ad hoc informally-specif]
mattam has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
Herrchen_ has quit ["bye"]
_JusSx_ has quit ["leaving"]
drewr has quit ["home"]
mfurr has quit ["Client exiting"]
kuribas has joined #ocaml
<pango>
unison-gtk is nice
smkl has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
mlh has joined #ocaml
mrvn_ has joined #ocaml
zzorn has joined #ocaml
CosmicRay has quit ["Client exiting"]
zzorn has quit [Client Quit]
mrvn has quit [Read error: 60 (Operation timed out)]
Demitar has quit ["Terminated with extreme prejudice - dircproxy 1.0.5"]