<mbishop>
but I can't figure out a functional version :\
<AxleLonghorn>
well, I guess that depends on how you want it to be functional?
<AxleLonghorn>
do you want to remove the for loop?
<AxleLonghorn>
whoops... a little late I see
Torment has quit [Read error: 104 (Connection reset by peer)]
<mbishop>
AxleLonghorn: late how?
<mbishop>
a functional version would use recursion rather than the for loop, and be non destructive
hsuh has joined #ocaml
hsuh has quit [Remote closed the connection]
<AxleLonghorn>
yeah
<AxleLonghorn>
I meant a little late in responding
<AxleLonghorn>
I am interested in seeing a non destructive version though
<AxleLonghorn>
the recursion part is easy (imo), but I don't know how you'd do the non-destructive part. Clone the array?
mbishop has quit ["bbiab"]
albacker has joined #ocaml
dobblego has quit ["Leaving"]
albacker has quit [Read error: 110 (Connection timed out)]
AxleLonghorn has left #ocaml []
jderque has joined #ocaml
Jedai has joined #ocaml
<flux-_>
hm, I don't think you're supposed to call Random.self_init () that often (more like: once in the whole program!), but mbishop is gone
ttamttam has joined #ocaml
thermoplyae has quit ["daddy's in space"]
<pango>
it's not unusual that a specific algorithm is better implemented in a specific paradigm (or even, that it impersonate a paradigm); So a better question is probably "how do you shuffle a set/list/... of elements in a functional way?"
Tetsuo has joined #ocaml
mrsolo_ has joined #ocaml
jderque has quit [Read error: 113 (No route to host)]
Tetsuo has quit [Read error: 104 (Connection reset by peer)]
Tetsuo has joined #ocaml
filp has joined #ocaml
middayc has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has joined #ocaml
gabriel has joined #ocaml
rwmjones has quit [Remote closed the connection]
rwmjones has joined #ocaml
ygrek has joined #ocaml
rwmjones has quit ["Closed connection"]
rwmjones has joined #ocaml
ppsmimou has quit ["Leaving"]
ppsmimou has joined #ocaml
Snrrrub has quit [Read error: 110 (Connection timed out)]
yangsx has quit [Read error: 110 (Connection timed out)]
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
mfp has joined #ocaml
hkBst has joined #ocaml
Yoric[DT] has quit [Read error: 110 (Connection timed out)]
rwmjones has quit ["Closed connection"]
<flux-_>
pango, with the same propability of making a good shuffle, I suppose
<flux-_>
so given the same random function, produce the same shuffle?
rwmjones has joined #ocaml
middayc has joined #ocaml
asmanur has joined #ocaml
alexp has joined #ocaml
StoneNote has quit []
middayc has quit []
RobertFischer has joined #ocaml
asmanur has quit [Remote closed the connection]
asmanur has joined #ocaml
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has joined #ocaml
gabriel has quit ["leaving"]
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
seafood_ has quit []
munga has joined #ocaml
albacker has joined #ocaml
Snrrrub has joined #ocaml
seafood_ has joined #ocaml
albacker has quit [Nick collision from services.]
flux-_ is now known as flux
pango has quit [Remote closed the connection]
pango has joined #ocaml
jonathanv has joined #ocaml
jonafan has quit [Read error: 110 (Connection timed out)]
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
jonathanv is now known as jonafan
jonathanv has joined #ocaml
jonafan has quit [Nick collision from services.]
jonathanv is now known as jonafan
<flux>
uhm.. with CamlGI, how is one supposed to get a Cgi.Request.t, which apparently is required for all action?
jonathanv has joined #ocaml
Morphous_ has joined #ocaml
jderque has joined #ocaml
jonafan has quit [Nick collision from services.]
jonathanv is now known as jonafan
munga has quit ["Leaving"]
ttamttam has left #ocaml []
Morphous has quit [Connection timed out]
jonathanv has joined #ocaml
jonafan has quit [No route to host]
dramsay has joined #ocaml
seafood_ has quit []
marmottine has joined #ocaml
alexp has quit ["Leaving"]
filp has quit ["Bye"]
<bla>
flux, thread-ring is marked with 'error' on shootout currently.
<bla>
No idea why. ;d
<bla>
Oh that is on the second server.
postalchris has joined #ocaml
bluestorm has joined #ocaml
hcarty has quit [Read error: 110 (Connection timed out)]
jlouis has joined #ocaml
huh__ is now known as huh
hcarty has joined #ocaml
Yoric[DT] has joined #ocaml
postalchris has quit [Connection timed out]
jlouis_ has quit [Read error: 110 (Connection timed out)]
ttamttam has joined #ocaml
ttamtta1 has joined #ocaml
<flux>
hmh, there's something integral to god build system that requires that /usr/lib/dc is a binary (which it isn't!)
<flux>
godI :-)
<flux>
and I can't find it..
ttamttam has left #ocaml []
ttamtta1 has left #ocaml []
ttamttam has joined #ocaml
<flux>
maybe find_prog_for_defs_mk is the culprit
<flux>
however /usr/lib isn't even in the path
<flux>
ah-ha, std_path contains /usr/lib for SunOS
<flux>
and even before /usr/bin!
Yoric[DT] has quit ["Ex-Chat"]
Yoric[DT] has joined #ocaml
asmanur has quit [Remote closed the connection]
jonathanv is now known as jonafan
ita has joined #ocaml
postalchris has joined #ocaml
jonathanv has joined #ocaml
thermoplyae has joined #ocaml
jonafan has quit [Read error: 110 (Connection timed out)]
postalchris has quit [Read error: 110 (Connection timed out)]
jonathanv is now known as jonafan
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
<bluestorm>
rwmjones: when using cocanwiki for the "OSR" stuff, i've been annoyed by a few things (most importantly, the difficulty of user-to-user discussion inside the wiki)
<bluestorm>
i was considering trying to add some features myself
<bluestorm>
so i'd like to know if you're open to external contributions, and ready to "upgrade" wiki.cocan.org if some of them got accepted
<bluestorm>
and i'm not sure of what your opinion concerning the "wiki syntax" : do really you want to get rid of it ? why ?
middayc has joined #ocaml
jderque has quit [Read error: 113 (No route to host)]
ttamttam has left #ocaml []
thermoplyae has quit ["daddy's in space"]
ygrek has quit [Remote closed the connection]
jonathanv has joined #ocaml
asdfasdf has joined #ocaml
jonafan has quit [Nick collision from services.]
asdfasdf is now known as jonafan
thermoplyae has joined #ocaml
jonathanv has quit [Read error: 110 (Connection timed out)]
postalchris has joined #ocaml
middayc has quit [Read error: 104 (Connection reset by peer)]
middayc has joined #ocaml
<bluestorm>
hm
<bluestorm>
the new Ocaml Summer Project is out
<bluestorm>
too bad we need "joint application from a faculty menter", ruling out some peoples (including, tragically, me)
<bluestorm>
but let's see what we've got this year
<bluestorm>
i hope projects will get more after-the-summer maintainance
<bluestorm>
(the "ref" in the type refers ( :p ) to the "ref" type, not the "ref" function)
<kbidd>
makes sense
<kbidd>
awesome... that worked
<bluestorm>
if you're new to OCaml
<bluestorm>
i suggest you try non-POO style first
<bluestorm>
POO in OCaml is rich but very different to what you usually know, and can raise some very subtle typing issues
<bluestorm>
i think a good overview of the non-POO language is helpful
<bluestorm>
hm
<bluestorm>
i mean, Object Oriented Programming
<bluestorm>
( :-' )
<kbidd>
lol... yeah, i guessed
<bluestorm>
anyway, most ocamlers only rarely use OOP
<bluestorm>
the "common" style is the functional one
<bluestorm>
even if of course you can see objects here and here
<Yoric[DT]>
well, mostly there, not much here :)
* Yoric[DT]
has enough difficulties explaining convincingly what records are all about without getting to OOP :)
<bluestorm>
hm
<bluestorm>
imho record is quite easy
<Yoric[DT]>
Well, records are ok.
<bluestorm>
"see, tuples can lead to a big mess when you've more than 3 things inside, so we need names"
<kbidd>
yeah, i havn't really ever done a whole lot of functional programming
<Yoric[DT]>
But explaining the philosophical difference between records, tuples and sum types with only one constructor and possibly several arguments ... that's already somewhat harder.