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/
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"]
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: 110 (Connection timed out)]
<ulfdoz_> re
pessoa has joined #ocaml
mflux_ has quit ["leaving"]
mflux has joined #ocaml
mflux has quit [Client Quit]
pessoa has quit ["Started wasting time elsewhere"]
dm has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
<Snark> slt
vodka-goo has joined #ocaml
pango has quit [Remote closed the connection]
vodka-goo is now known as estellle
pango has joined #ocaml
mlh_ has quit [Client Quit]
det has joined #ocaml
smimou has joined #ocaml
<slashvar[lri]> Hi
<pango> TeXitoi: the idea is that if the result of a function only depends on its parameters, you can cache the results; cache index is the set of parameters
<pango> (unless you know a way to hash parameters uniquely)
<pango> which is probably not the case with matrices (?)
Banana has joined #ocaml
bk_ has joined #ocaml
Naked has joined #ocaml
Naked is now known as Hadaka
Amorphous has quit ["arg... must... shutdown... computer burnin..."]
hexreel_ has joined #ocaml
__DL__ has joined #ocaml
dm has joined #ocaml
_JusSx_ has joined #ocaml
araujo has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
Amorphous has joined #ocaml
<araujo> Hello O'caml'ers
bk_ has joined #ocaml
<vincenz> Hello
araujo has quit ["Programs must be written for people to read, and only incidentally for machines to execute"]
cp has quit ["Lost terminal"]
cp has joined #ocaml
Snark has quit ["Leaving"]
ionOS has quit ["Leaving"]
vezenchio has joined #ocaml
Gueben has joined #ocaml
araujo has joined #ocaml
<araujo> Hello o'caml'ers
hexreel_ has quit [Ping timeout: 14400 seconds]
<eydaimon> hello araujo
<araujo> Hi eydaimon , how you doing?
_fab has joined #ocaml
estellle is now known as vodka-goo
_fab has quit [Remote closed the connection]
_JusSx__ has joined #ocaml
_JusSx_ has quit [Read error: 110 (Connection timed out)]
<eydaimon> araujo: ok, busy at work. sorry. you?
Nutssh has joined #ocaml
Snark has joined #ocaml
<araujo> eydaimon, pretty fine thanks :-)
hangman4_ has joined #ocaml
hangman4_ has quit [Client Quit]
Herrchen has joined #ocaml
<Snark> smimou: any news from ocaml-gettext?
Nutssh has quit ["Client exiting"]
Gueben has quit [Remote closed the connection]
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
TeXitoi_ has joined #ocaml
<TeXitoi_> pango: I think that the fisical equality of a "node" is a good solution. But I don't know how to manage it.
TeXitoi has quit [Connection timed out]
TeXitoi_ is now known as TeXitoi
araujo has quit [brown.freenode.net irc.freenode.net]
cp has quit [brown.freenode.net irc.freenode.net]
__DL__ has quit [brown.freenode.net irc.freenode.net]
Demitar has quit [brown.freenode.net irc.freenode.net]
dan2 has quit [brown.freenode.net irc.freenode.net]
hfhf_ has quit [brown.freenode.net irc.freenode.net]
calvin_ has quit [brown.freenode.net irc.freenode.net]
araujo has joined #ocaml
cp has joined #ocaml
__DL__ has joined #ocaml
Demitar has joined #ocaml
dan2 has joined #ocaml
hfhf_ has joined #ocaml
calvin_ has joined #ocaml
_JusSx__ is now known as _JusSx_
_JusSx_ has quit ["leaving"]
_JusSx_ has joined #ocaml
Herrchen has quit ["good night"]
go_epsilon_go has joined #ocaml
<pango> TeXitoi: but then you only know the transposition of the same physical matrix
Submarine has joined #ocaml
pango has quit ["bbl"]
pango has joined #ocaml
<Snark> good night
Snark has left #ocaml []
<TaXules> piouet
mikeX has joined #ocaml
<mikeX> shouldn't the regexp patterns described in the reference be included in double quotes?
<mikeX> regexp ":\|." gives me a warning about illegal backslah char (and also fails to match)
smimou has quit [Remote closed the connection]
mike_X has joined #ocaml
mikeX has quit [Read error: 113 (No route to host)]
smimou has joined #ocaml
mike_X is now known as mikeX
<mikeX> sorry my connection failed, did anyone answer?
_JusSx_ has quit ["leaving"]
<eydaimon> mikeX: nope
<mikeX> eydaimon, ok thanks : )
<eydaimon> np :)
<eydaimon> I'm just happy there was a question I could answer
<mikeX> lol ...
<mauke> ":\\|."
<mauke> or rather "[:.]"
<mikeX> mauke, the second one fails
<mauke> how does it fail?
<mikeX> ok the warning is gone with the extra backslash in the first one, but still no match, I guess I have made some mistake
<mikeX> if (string_match (regexp ":\\|,") str 0) then
<mikeX> and I get the result of the 'else' expression I have set afterwards
<mauke> what does str contain?
<mikeX> e.g. 2:03:00
<mauke> "2:03:00".[0] is '2'
<mauke> '2' isn't ':' or ','
<mauke> the match fails
<mikeX> mauke, oops sorry, all this time I was using the wrong function
<mikeX> I actually wanted split...
<mikeX> I'm totally messed up :/
<mauke> split (regexp "[:,]") works fine here
<mikeX> mauke, thanks anyway, although I thought string_match starts at 0 and searchs the whole string
__DL__ has quit [Remote closed the connection]
<mikeX> I guess that's search_forward
<mauke> yeah
<mikeX> mauke, yes, thanks again
<pango> string_match will start at the offset you give it (3rd param)
<pango> # let r = regexp ":\\|." in
<pango> string_match r "2:03:00" 0 ;;
<pango> - : bool = true
<mauke> duh, . matches any character
<pango> # let r = regexp ":\\|\\." in
<pango> string_match r "2:03:00" 0 ;;
<pango> - : bool = false
<pango> # let r = regexp "^\\([0-9]+\\)[.:]\\([0-9]+\\)[.:]\\([0-9]+\\)$" in
<pango> let s = "2:03:00" in
<pango> if string_match r s 0 then
<pango> Printf.printf "%s %s %s\n" (matched_group 1 s) (matched_group 2 s) (matched_group 3 s) ;;
<pango> (not thread safe ? you bet)
<mikeX> pango, nice :D
vodka-goo has quit []
Submarine has quit ["Leaving"]
mikeX has quit ["Leaving"]
smimou has quit ["?"]
mlh_ has joined #ocaml