gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
ulfdoz has quit [Read error: Operation timed out]
vk0 has quit [Ping timeout: 245 seconds]
vk0 has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
Smerdyakov has joined #ocaml
<RLa> why would this not match list with two elements: [id; _]
<Smerdyakov> That is definitely a pattern that matches any two-element list.
<RLa> hm i have something else screwed up
joewilliams is now known as joewilliams_away
Smerdyakov has quit [Quit: Leaving]
fabjan has joined #ocaml
fabjan has quit [Ping timeout: 240 seconds]
joewilliams_away is now known as joewilliams
maskd has quit [Ping timeout: 264 seconds]
maskd has joined #ocaml
fabjan has joined #ocaml
maskd has quit [Ping timeout: 255 seconds]
maskd has joined #ocaml
maskd has quit [Changing host]
maskd has joined #ocaml
fabjan has quit [Ping timeout: 240 seconds]
RLa has quit [Ping timeout: 264 seconds]
fabjan has joined #ocaml
RLa has joined #ocaml
joewilliams is now known as joewilliams_away
RLa has quit [Ping timeout: 245 seconds]
Yoric has joined #ocaml
valross has quit [Quit: Ex-Chat]
ftrvxmtrx has quit [Quit: Leaving]
ikaros has joined #ocaml
Snark has joined #ocaml
Yoric has quit [Quit: Yoric]
<kaustuv> That thread about the shootout on caml-list has really degenerated. It almost makes me wish that the list was moderated.
ftrvxmtrx has joined #ocaml
<julm> lol
caligula has quit [Ping timeout: 240 seconds]
<adrien> would mention one or two things but I don't want to get caught into that :-)
<thelema> kaustuv: I'm glad I didn't provoke as bad of responses responding to the ocaml+snp thread
th5 has joined #ocaml
<f[x]> gildor, ping
<f[x]> > The result of setting a limit to RLIM_SAVED_MAX or RLIM_SAVED_CUR is unspecified unless a previous call to getrlimit() returned that value as the soft or hard limit for the corresponding resource limit.
<f[x]> but in your bingings it is treated as equivalent to No_change
Elench has quit [Remote host closed the connection]
Elench has joined #ocaml
<f[x]> so I think that more correct would be to handle it as None <=> RLIM_INFINITY and other values copied transparently
<f[x]> moreover on linux INFINITY=SAVED_MAX=SAVED_CUR and so setting limit to No_change will unexpectedly fail for unprivileged process
<f[x]> # setrlimit RLIMIT_NOFILE No_change No_change;;
<f[x]> Exception: Unix.Unix_error (Unix.EPERM, "POSIXResource.setrlimit", "").
Tianon has quit [Ping timeout: 260 seconds]
* npouillard live from the Caml consortium
ttamttam has joined #ocaml
<f[x]> npouillard, going to make a live transcript in irc? ;)
<npouillard> f[x]: sorry, but I think I can't for obvious reasons
<f[x]> just kidding :)
Yoric has joined #ocaml
Pierre_ has joined #ocaml
<Pierre_> hi
<Pierre_> i have a question about ocamllex
<Pierre_> if my first rule is : ' '* -> { ... }
<Pierre_> will lex using only this rule (with the empty word) or is lex more 'intelligent' ?
Pierre_ has quit [Client Quit]
<flux> I think it uses longest match
Pece_ has joined #ocaml
Pece_ has left #ocaml []
Pece_ has joined #ocaml
<Pece_> hi
<Pece_> anybody here ?
<flux> no
<flux> (I'm off to lunch ;-))
<flux> nevertheles, put in your question and hang around, someone likely answers
<Pece_> (cause nobody was ansering, i tought i wasn't correctly connect)
<Pece_> my question is about ocamllex
<Pece_> if my first rule of parsing is : ' '* { (* some code *) }
<ski> <Pierre_> will lex using only this rule (with the empty word) or is lex more 'intelligent' ?
<ski> * Pierre_ has quit (Client Quit)
<Pece_> that is that
<ski> <flux> I think it uses longest match
<Pece_> yes of course
<Pece_> thanks
* ski knows nothing about ocamllex .. just showing you what flux answered shortly after you had left
<Pece_> ok thx, i forgot that 'parse' will get the longest match
Pece_ has quit [Quit: Pece_]
ftrvxmtrx has quit [Read error: Connection reset by peer]
munga has joined #ocaml
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
ftrvxmtrx has joined #ocaml
hto has quit [Read error: Connection reset by peer]
hto has joined #ocaml
munga has quit [Ping timeout: 255 seconds]
init1 has joined #ocaml
little_owl has joined #ocaml
Amorphous has quit [Read error: Connection reset by peer]
jonafan_ has joined #ocaml
jonafan has quit [Ping timeout: 250 seconds]
Amorphous has joined #ocaml
seafood has joined #ocaml
rks` has quit [Quit: cours]
munga has joined #ocaml
Fullma has quit [Ping timeout: 245 seconds]
seafood has quit [Quit: seafood]
ftrvxmtrx has quit [*.net *.split]
th5 has quit [*.net *.split]
__marius__ has quit [*.net *.split]
hto has quit [*.net *.split]
theDroggl has quit [*.net *.split]
little_owl has quit [*.net *.split]
rwmjones has quit [*.net *.split]
munga has quit [*.net *.split]
mfp has quit [*.net *.split]
joewilliams_away has quit [*.net *.split]
rudi_s has quit [*.net *.split]
rixed has quit [*.net *.split]
Tianon has quit [*.net *.split]
kaustuv has quit [*.net *.split]
eelte has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
cthuluh has quit [*.net *.split]
npouillard has quit [*.net *.split]
jlouis has quit [*.net *.split]
avsm2 has quit [*.net *.split]
dug_ has quit [*.net *.split]
BiDOrD_ has quit [*.net *.split]
Tobu has quit [*.net *.split]
mehdid has quit [*.net *.split]
schmrkc has quit [*.net *.split]
gildor has quit [*.net *.split]
Axioplase_ has quit [*.net *.split]
Amorphous has quit [*.net *.split]
boscop has quit [*.net *.split]
CoryDambach has quit [*.net *.split]
asmanur has quit [*.net *.split]
ttamttam has quit [*.net *.split]
srcerer has quit [*.net *.split]
ninegrid has quit [*.net *.split]
jonafan_ has quit [*.net *.split]
kerneis has quit [*.net *.split]
brendan has quit [*.net *.split]
bitbckt has quit [*.net *.split]
explodus has quit [*.net *.split]
mattam has quit [*.net *.split]
thelema has quit [*.net *.split]
julm has quit [*.net *.split]
_2x2l has quit [*.net *.split]
Yoric has quit [*.net *.split]
gnuvince has quit [*.net *.split]
melwtech35 has quit [*.net *.split]
thomasga has quit [*.net *.split]
iratsu` has quit [*.net *.split]
svenl has quit [*.net *.split]
ikaros has quit [*.net *.split]
gnuvince_ has quit [*.net *.split]
nimred has quit [*.net *.split]
lamawithonel has quit [*.net *.split]
cods has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
maskd has quit [*.net *.split]
eldragon has quit [*.net *.split]
f[x] has quit [*.net *.split]
albacker has quit [*.net *.split]
Elench has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
bzzbzz has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
flux has quit [*.net *.split]
adrien has quit [*.net *.split]
pheredhel has quit [*.net *.split]
manveru has quit [*.net *.split]
xl0 has quit [*.net *.split]
hcarty has quit [*.net *.split]
strlen has quit [*.net *.split]
emias has quit [*.net *.split]
fabjan has quit [*.net *.split]
vk0 has quit [*.net *.split]
Leonidas has quit [*.net *.split]
bacam has quit [*.net *.split]
mikemc has quit [*.net *.split]
orbitz has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
noj has quit [*.net *.split]
mal`` has quit [*.net *.split]
nejimban has quit [*.net *.split]
Obfuscate has quit [*.net *.split]
shachaf has quit [*.net *.split]
rossberg has quit [*.net *.split]
jsk has quit [*.net *.split]
patronus has quit [*.net *.split]
diml has quit [*.net *.split]
krktz has quit [*.net *.split]
haelix has quit [*.net *.split]
fremo___ has quit [*.net *.split]
flux has joined #ocaml
munga has joined #ocaml
Amorphous has joined #ocaml
jonafan_ has joined #ocaml
little_owl has joined #ocaml
hto has joined #ocaml
ftrvxmtrx has joined #ocaml
Tianon has joined #ocaml
Yoric has joined #ocaml
ttamttam has joined #ocaml
Elench has joined #ocaml
th5 has joined #ocaml
ikaros has joined #ocaml
fabjan has joined #ocaml
maskd has joined #ocaml
vk0 has joined #ocaml
boscop has joined #ocaml
schmrkc has joined #ocaml
srcerer has joined #ocaml
mfp has joined #ocaml
mal`` has joined #ocaml
rwmjones has joined #ocaml
Leonidas has joined #ocaml
kaustuv has joined #ocaml
bacam has joined #ocaml
CoryDambach has joined #ocaml
bzzbzz has joined #ocaml
eelte has joined #ocaml
hyperboreean has joined #ocaml
eldragon has joined #ocaml
mcclurmc has joined #ocaml
mikemc has joined #ocaml
nejimban has joined #ocaml
explodus has joined #ocaml
gnuvince_ has joined #ocaml
gildor has joined #ocaml
BiDOrD_ has joined #ocaml
gnuvince has joined #ocaml
nimred has joined #ocaml
Tobu has joined #ocaml
asmanur has joined #ocaml
__marius__ has joined #ocaml
Obfuscate has joined #ocaml
f[x] has joined #ocaml
joewilliams_away has joined #ocaml
shachaf has joined #ocaml
rossberg has joined #ocaml
ninegrid has joined #ocaml
lamawithonel has joined #ocaml
jsk has joined #ocaml
mattam has joined #ocaml
rudi_s has joined #ocaml
patronus has joined #ocaml
cods has joined #ocaml
diml has joined #ocaml
theDroggl has joined #ocaml
cthuluh has joined #ocaml
npouillard has joined #ocaml
albacker has joined #ocaml
avsm2 has joined #ocaml
thelema has joined #ocaml
orbitz has joined #ocaml
kerneis has joined #ocaml
adrien has joined #ocaml
rixed has joined #ocaml
mehdid has joined #ocaml
pheredhel has joined #ocaml
manveru has joined #ocaml
xl0 has joined #ocaml
melwtech35 has joined #ocaml
dug_ has joined #ocaml
julm has joined #ocaml
hcarty has joined #ocaml
Asmadeus has joined #ocaml
krktz has joined #ocaml
Axioplase_ has joined #ocaml
jlouis has joined #ocaml
thomasga has joined #ocaml
noj has joined #ocaml
haelix has joined #ocaml
iratsu` has joined #ocaml
strlen has joined #ocaml
svenl has joined #ocaml
emias has joined #ocaml
brendan has joined #ocaml
fremo___ has joined #ocaml
bitbckt has joined #ocaml
_2x2l has joined #ocaml
Pepe_ has joined #ocaml
fraggle_ has joined #ocaml
rmitt has joined #ocaml
joewilliams_away is now known as joewilliams
<init1> hi
<init1> I learn about list now, I sse this function that return the begin of list or failure : http://pastebin.com/P9XdyeeA but I have question, do 'r' and 't' predefined function for OCaml ?
rmitt has quit [Ping timeout: 265 seconds]
<adrien> init1: no, they're only the name that the programmer wanted to give to the variables
<adrien> you can put anything
ftrvxmtrx has quit [Quit: Leaving]
init1 has quit [Quit: Lost terminal]
init1 has joined #ocaml
jonafan_ has quit [Quit: Leaving]
jonafan has joined #ocaml
emmanuelux has joined #ocaml
ftrvxmtrx has joined #ocaml
<init1> ok thx adrien
<init1> I have diffcult to understand how this code works,
<thelema> the value passed in to the function is "matched" against two patterns
<thelema> the first pattern tries to make it fit the pattern of a list with a head element (t) and a tail (r)
<thelema> the second pattern tries to make it fit the pattern "anything", without giving it a name (r)
<thelema> err, (_)
<thelema> init1: does this help?
<init1> I will try to understand this with your explication, thanks thelema
th5 has quit [Ping timeout: 240 seconds]
schmrkc has left #ocaml []
gameover__ has joined #ocaml
Yoric has quit [Quit: Yoric]
little_owl has quit [Quit: Leaving.]
rks has joined #ocaml
ttamttam has quit [Quit: ttamttam]
Modius has joined #ocaml
jonafan_ has joined #ocaml
jonafan has quit [Ping timeout: 255 seconds]
rmitt_ has joined #ocaml
rmitt_ has quit [Client Quit]
jonafan_ is now known as jonafan
<adrien> I can't resist it
<adrien> I'm subscribed to the language shootout forums/fora and the current thread is about tweaking the default heap size :P (note that it doesn't mean it has been "commited", it's just discussed)
<hcarty> Does Pcre support nested named subpatterns? I haven't found any documentation saying yes or no.
<hcarty> Ex. "(?P<long>foo_(?P<short>bar))"
<hcarty> OCaml's Pcre bindings that is
jonafan_ has joined #ocaml
jonafan__ has joined #ocaml
<flux> 9t looks like that it does: val get_named_substring : regexp -> string -> substrings -> string (and others)
jonafan has quit [Ping timeout: 240 seconds]
<hcarty> flux: Thanks! Looks like it works
jonafan_ has quit [Ping timeout: 276 seconds]
jonafan has joined #ocaml
jonafan__ has quit [Ping timeout: 276 seconds]
<hcarty> I had not seen the shootout box plot page before. That's pretty nifty.
Modius has quit [Quit: I'm big in Japan]
jonafan_ has joined #ocaml
jonafan has quit [Ping timeout: 245 seconds]
<bitbckt> I'm glad to see the caml-list so heavily trafficked, but I feel the need to express this:
<bitbckt> Isaac is *really* getting on my nerves.
<bitbckt> </minor-rant>
jonafan has joined #ocaml
jonafan_ has quit [Ping timeout: 250 seconds]
<flux> hmph, this is the first time I've used scoring features of my agent on caml-list ;)
jonafan_ has joined #ocaml
<flux> interesting that automated gc tweaker, has anyone given it a try?
jonafan has quit [Ping timeout: 264 seconds]
<flux> great. it reduced cpu-consumption of one toy of mine from 10% to 9%!
<flux> ..which I guess is easily within the margin of error, though :)
munga has quit [Ping timeout: 260 seconds]
jonafan has joined #ocaml
jonafan_ has quit [Ping timeout: 260 seconds]
ulfdoz has joined #ocaml
gameover__ has left #ocaml []
ulfdoz has quit [Ping timeout: 240 seconds]
Snark has quit [Quit: Ex-Chat]
boscop_ has joined #ocaml
Visitor has joined #ocaml
Visitor870 has joined #ocaml
boscop has quit [Ping timeout: 252 seconds]
Visitor870 has quit [Client Quit]
boscop_ is now known as boscop
Visitor has quit [Remote host closed the connection]
little_owl has joined #ocaml
eelte has quit [Read error: Connection reset by peer]
coucou747 has joined #ocaml
valross has joined #ocaml
ulfdoz has joined #ocaml
ulfdoz has quit [Ping timeout: 255 seconds]
Fullma has joined #ocaml
init1 has quit [Quit: Quitte]
<albacker> i get ( unmatched at this line
<albacker> while ((!i < (Array.length b)) and !continue ) do
<albacker> oh i see
<adrien> s/and/&&/ :-)
<albacker> what's the difference between && and &
<albacker> ?
<adrien> val (&) : bool -> bool -> bool
<adrien> Deprecated.
seafood has joined #ocaml
<albacker> adrien: can you give me a hint on this one too please : http://pastebin.com/ewWTmWGt
<albacker> b has vertexest inside and V.create -1 should return a vertex (normally). this is how b is createed in another function let arr_of_vertex = Array.make nb_of_vertex (V.create 0)
<albacker> when i say b i mean the same object.
<adrien> (V.create -1)
<adrien> why?
<albacker> in fact i couldnt find a Queue.remove element or something.
<albacker> in fact its poorly written, i'll have to re-write some code above that one.
<albacker> thanks,
<albacker> dont worry about the error above :)
<adrien> ok, good luck =)
<albacker> thank you
patronus has quit [Read error: Connection reset by peer]
seafood has quit [Quit: seafood]
<albacker> i dont get it. http://pastebin.com/fv4Jjp8h
<albacker> the "is empty" is not printed, and none of the elements is printed..