smimou changed the topic of #ocaml to: OCaml 3.08.3 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | 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/
<SLi> Urgh. What can cause (gethostbyname "localhost") to throw Not_found, but only every now and then?
ulfdoz_ has quit [Read error: 60 (Operation timed out)]
<SLi> Hmm. Apparently some sockets never get closed for some obscure reason.
smimou has quit ["?"]
vezenchio has quit ["Ayn Rand encapsulates the rage that every teenager feels on finding that his first paycheque has had taxes taken out of it"]
vincenz has quit [Read error: 110 (Connection timed out)]
monochrom has quit ["me!"]
vincenz has joined #ocaml
Herrchen has joined #ocaml
Tachyon76 has joined #ocaml
Tachyon76 has quit ["Leaving"]
Nutssh has joined #ocaml
Snark has joined #ocaml
<Snark> slt
pango has quit [Remote closed the connection]
pango has joined #ocaml
Nutssh has quit [Read error: 110 (Connection timed out)]
ulfdoz has joined #ocaml
mlh_ has quit [Client Quit]
Submarine has joined #ocaml
smimou has joined #ocaml
slashvar[lri] has joined #ocaml
<slashvar[lri]> Hi there
Hadaka has quit [Read error: 145 (Connection timed out)]
Naked has joined #ocaml
Naked is now known as Hadaka
haelix has joined #ocaml
haelix has left #ocaml []
<maml-tv> Texitoi ?
maml-tv is now known as maml
<maml> I don't understand why you advice me to look at the lazy module.
<maml> ( It was yesterday evening: TeXitoi maml-tv: try the lazy module: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Lazy.html )
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
Hadaka has quit [Read error: 145 (Connection timed out)]
<vincenz> ?
<maml> i am going to re-explain.
<maml> I want to code matrices' primitive using the following data structure:
<maml> type 'a t =
<maml> Empty
<maml> | Node of 'a * 'a t * 'a t
<maml> Where Empty represent the "empty matrix" and Node (x, e, s) represent the element x on the left of "e" and above "s".
<maml> This representation looks like a binary tree, but it isn't a tree.
<maml> For exemple for matrix:
<maml> 1 2
<maml> 3 4
<maml> Is given by:
<maml> let four = Node (4, Empty, Empty) in
<maml> let two = Node (2, Empty, four) in
<maml> let three = Node (3, four, Empty) in
<maml> Node (1, two, three)
<maml> (there is the graph a 3x3 matrix here: http://nom.homelinux.net/partage/dia.png )
<maml> I'm looking for an efficient method to transpose a such matrix.
Herrchen has quit ["bye"]
Naked has joined #ocaml
Naked is now known as Hadaka
<TeXitoi> maml: suis la
<TeXitoi> maml: the problem whith you're algo is that it calcutate more than 1 time some things
<TeXitoi> whith the lazy module, you can use a 'cache' system
<TeXitoi> I'm not sure it's true because I've never used it, but I think it's possible
Hadaka has quit [Read error: 145 (Connection timed out)]
<maml> Something the "option remember" of maple ? (In this following function: fibonacci := proc (n) option remember; if n < 2 then 1 else f(n-1) + f(n-2) fi; end: the "option remember" causes the function to run in a linear time instead of exponential).
<maml> (You have to replace "f(n-1)" by fibonacci(n-1) of course).
<maml> And "Something *like* the ...", i'm not really awake.
<TeXitoi> a thing like that, that's my idea
<TeXitoi> not sure you can do it like that, but it must work well if you can code that
<maml> I don't really understand how can i make this with lazy evaluation.
CosmicRay has joined #ocaml
Boojum has joined #ocaml
__DL__ has joined #ocaml
Snark has quit [Read error: 60 (Operation timed out)]
<pango> maml: I can imagine using lazy if you often don't need whole matrices
<pango> maml: on the other hand, transposing may not be that cpu intensive that added complexity is a win...
mflux_ has quit [brown.freenode.net irc.freenode.net]
TeXitoi has quit [brown.freenode.net irc.freenode.net]
_fab has quit [brown.freenode.net irc.freenode.net]
dm has quit [brown.freenode.net irc.freenode.net]
cp has quit [brown.freenode.net irc.freenode.net]
Amorphous has quit [brown.freenode.net irc.freenode.net]
calvin_ has quit [brown.freenode.net irc.freenode.net]
noj has quit [brown.freenode.net irc.freenode.net]
vincenz has quit [brown.freenode.net irc.freenode.net]
ulfdoz has quit [brown.freenode.net irc.freenode.net]
Demitar has quit [brown.freenode.net irc.freenode.net]
Hipo has quit [brown.freenode.net irc.freenode.net]
shrimpx has quit [brown.freenode.net irc.freenode.net]
hfhf has quit [brown.freenode.net irc.freenode.net]
cognominal has quit [brown.freenode.net irc.freenode.net]
mattam has quit [brown.freenode.net irc.freenode.net]
johs has quit [brown.freenode.net irc.freenode.net]
dan2 has quit [brown.freenode.net irc.freenode.net]
det has quit [brown.freenode.net irc.freenode.net]
rossberg has quit [brown.freenode.net irc.freenode.net]
Boojum has quit [brown.freenode.net irc.freenode.net]
maml has quit [brown.freenode.net irc.freenode.net]
vodka-goo has quit [brown.freenode.net irc.freenode.net]
SLi has quit [brown.freenode.net irc.freenode.net]
slashvar[lri] has quit [brown.freenode.net irc.freenode.net]
CosmicRay has quit [brown.freenode.net irc.freenode.net]
pango has quit [brown.freenode.net irc.freenode.net]
joo_ has quit [brown.freenode.net irc.freenode.net]
noj has joined #ocaml
CosmicRay has joined #ocaml
slashvar[lri] has joined #ocaml
pango has joined #ocaml
joo_ has joined #ocaml
hfhf_ has joined #ocaml
Boojum has joined #ocaml
ulfdoz has joined #ocaml
vincenz has joined #ocaml
TeXitoi has joined #ocaml
_fab has joined #ocaml
maml has joined #ocaml
vodka-goo has joined #ocaml
Demitar has joined #ocaml
Hipo has joined #ocaml
mflux_ has joined #ocaml
shrimpx has joined #ocaml
dm has joined #ocaml
det has joined #ocaml
dan2 has joined #ocaml
rossberg has joined #ocaml
johs has joined #ocaml
mattam has joined #ocaml
cognominal has joined #ocaml
Amorphous has joined #ocaml
calvin_ has joined #ocaml
cp has joined #ocaml
SLi has joined #ocaml
hfhf has joined #ocaml
ulfdoz has quit [brown.freenode.net irc.freenode.net]
rossberg has quit [brown.freenode.net irc.freenode.net]
hfhf has quit [brown.freenode.net irc.freenode.net]
det has quit [brown.freenode.net irc.freenode.net]
Demitar has quit [brown.freenode.net irc.freenode.net]
shrimpx has quit [brown.freenode.net irc.freenode.net]
cognominal has quit [brown.freenode.net irc.freenode.net]
dan2 has quit [brown.freenode.net irc.freenode.net]
johs has quit [brown.freenode.net irc.freenode.net]
mattam has quit [brown.freenode.net irc.freenode.net]
Hipo has quit [brown.freenode.net irc.freenode.net]
rossberg has joined #ocaml
Gueben has joined #ocaml
Hipo has joined #ocaml
johs has joined #ocaml
dan2 has joined #ocaml
cognominal has joined #ocaml
shrimpx has joined #ocaml
ulfdoz has joined #ocaml
Demitar has joined #ocaml
mattam has joined #ocaml
mattam has quit [brown.freenode.net irc.freenode.net]
Demitar has quit [brown.freenode.net irc.freenode.net]
ulfdoz has quit [brown.freenode.net irc.freenode.net]
shrimpx has quit [brown.freenode.net irc.freenode.net]
cognominal has quit [brown.freenode.net irc.freenode.net]
johs has quit [brown.freenode.net irc.freenode.net]
dan2 has quit [brown.freenode.net irc.freenode.net]
Hipo has quit [brown.freenode.net irc.freenode.net]
Gueben has quit [brown.freenode.net irc.freenode.net]
vincenz has quit [brown.freenode.net irc.freenode.net]
Hipo has joined #ocaml
Gueben has joined #ocaml
vincenz has joined #ocaml
ulfdoz has joined #ocaml
johs has joined #ocaml
dan2 has joined #ocaml
cognominal has joined #ocaml
mattam has joined #ocaml
Demitar has joined #ocaml
shrimpx has joined #ocaml
hangman4 has joined #ocaml
hangman4 has quit [Client Quit]
CosmicRay has quit [Remote closed the connection]
Submarine has quit ["Leaving"]
Boojum is now known as Snark
<TeXitoi> arf
<TeXitoi> there is an example for fibonnacci
<pango> I know that technique
<TeXitoi> pango: sorry, I wanted to say maml and not pango ;-)
<TeXitoi> but such a technique is usable for maml's problem, no?
<pango> don't know... isn't the index the whole matrix 'below' current cell ?
<TeXitoi> I don't understand what you've sayed
<TeXitoi> well, the idea is to use dynamic programming ;-)
vezenchio has joined #ocaml
pango has quit ["Leaving"]
Msandin has joined #ocaml
pango has joined #ocaml
Yorick has joined #ocaml
mikeX has joined #ocaml
vezenchio has quit [Read error: 110 (Connection timed out)]
Msandin has quit [Read error: 60 (Operation timed out)]
vezenchio has joined #ocaml
vodka-goo has quit []
Snark has quit ["Leaving"]
<ulfdoz> bye
<Gueben> bye
cognominal has quit [Client Quit]
cognominal has joined #ocaml
mikeX has quit ["Leaving"]
Gueben has quit ["plouf"]
_fab has quit [Read error: 113 (No route to host)]
Yorick has left #ocaml []
smimou has quit ["↓"]
__DL__ has quit [Remote closed the connection]
mlh_ has joined #ocaml