hcarty changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.1 out now! Get yours from http://caml.inria.fr/ocaml/release.html
espresso has quit ["Leaving"]
onigiri has quit []
<thelema> det: thanks - that should work better than alternatives
slash_ has quit [Client Quit]
jason has joined #ocaml
jason is now known as Guest45656
espresso has joined #ocaml
thrasibule has joined #ocaml
verte has joined #ocaml
verte is now known as verte-work
sOpen has joined #ocaml
ttamttam1 has joined #ocaml
Ringo47 has quit ["Leaving"]
Ringo48 has joined #ocaml
Guest45656 has quit []
Associat0r has joined #ocaml
Associat0r has quit [Remote closed the connection]
whale has quit [hubbard.freenode.net irc.freenode.net]
gildor_ has quit [hubbard.freenode.net irc.freenode.net]
mishok13 has quit [hubbard.freenode.net irc.freenode.net]
mishok13 has joined #ocaml
whale has joined #ocaml
gildor_ has joined #ocaml
BigJ has quit [Success]
tvn2009 has joined #ocaml
<tvn2009> how do I delete a non-empty directory ? the Unix.rmdir dir_name doesn't work if the dir is not empty
ttamttam1 has quit ["Leaving."]
Submarine has joined #ocaml
<flux> tvn2009, you need to recursively remove the contents first..
<flux> tvn2009, I think there are some shell-oriented ocaml libraries around which might have the capability
<tvn2009> I just tell it to Unix.system "rm -rf dir"
<tvn2009> :]
Yoric[DT] has joined #ocaml
julm_ has joined #ocaml
BigJ has joined #ocaml
<flux> if the directory is user-provided content, be more careful than that :) (for example use "--" and Filename.quote)
<tvn2009> yeh, it's just debugging dir created in /tmp
julm has quit [Read error: 110 (Connection timed out)]
f[x] has joined #ocaml
caligula__ has joined #ocaml
maskd- has joined #ocaml
maskd has quit [Read error: 60 (Operation timed out)]
caligula_ has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has quit ["Ex-Chat"]
deavid has quit ["Goodbye."]
Submarine has quit [Read error: 60 (Operation timed out)]
julm_ is now known as julm
ttamttam has quit ["Leaving."]
ttamttam has joined #ocaml
verte-work has quit ["~~~ Crash in JIT!"]
hkBst has joined #ocaml
caligula_ has joined #ocaml
caligula__ has quit [Read error: 110 (Connection timed out)]
_zack has joined #ocaml
sOpen has quit [Read error: 110 (Connection timed out)]
verte has joined #ocaml
Ched has joined #ocaml
sOpen has joined #ocaml
Ched has quit [Client Quit]
jonafan_ has joined #ocaml
verte has quit [hubbard.freenode.net irc.freenode.net]
espresso has quit [hubbard.freenode.net irc.freenode.net]
rwmjones has quit [hubbard.freenode.net irc.freenode.net]
aij has quit [hubbard.freenode.net irc.freenode.net]
Asmadeus has quit [hubbard.freenode.net irc.freenode.net]
schme has quit [hubbard.freenode.net irc.freenode.net]
fremo has quit [hubbard.freenode.net irc.freenode.net]
mbishop has quit [hubbard.freenode.net irc.freenode.net]
TaXules has quit [hubbard.freenode.net irc.freenode.net]
_zack has quit [hubbard.freenode.net irc.freenode.net]
hkBst has quit [hubbard.freenode.net irc.freenode.net]
f[x] has quit [hubbard.freenode.net irc.freenode.net]
thelema has quit [hubbard.freenode.net irc.freenode.net]
tomaw has quit [hubbard.freenode.net irc.freenode.net]
mlh has quit [hubbard.freenode.net irc.freenode.net]
petchema has quit [hubbard.freenode.net irc.freenode.net]
gim has quit [hubbard.freenode.net irc.freenode.net]
mehdid has quit [hubbard.freenode.net irc.freenode.net]
Camarade_Tux has quit [hubbard.freenode.net irc.freenode.net]
th1 has quit [hubbard.freenode.net irc.freenode.net]
hyperboreean has quit [hubbard.freenode.net irc.freenode.net]
rbancroft has quit [hubbard.freenode.net irc.freenode.net]
__marius__ has quit [hubbard.freenode.net irc.freenode.net]
caligula_ has quit [hubbard.freenode.net irc.freenode.net]
BigJ has quit [hubbard.freenode.net irc.freenode.net]
sgnb has quit [hubbard.freenode.net irc.freenode.net]
det has quit [hubbard.freenode.net irc.freenode.net]
haelix has quit [hubbard.freenode.net irc.freenode.net]
Ori_B has quit [hubbard.freenode.net irc.freenode.net]
tiz has quit [hubbard.freenode.net irc.freenode.net]
verte has joined #ocaml
espresso has joined #ocaml
rwmjones has joined #ocaml
aij has joined #ocaml
Asmadeus has joined #ocaml
schme has joined #ocaml
fremo has joined #ocaml
mbishop has joined #ocaml
TaXules has joined #ocaml
caligula_ has joined #ocaml
BigJ has joined #ocaml
sgnb has joined #ocaml
det has joined #ocaml
haelix has joined #ocaml
Ori_B has joined #ocaml
tiz has joined #ocaml
<flux> is there an ocamlbuild flag for -unsafe?
tomaw has joined #ocaml
jonafan has quit [Connection timed out]
_zack has joined #ocaml
hkBst has joined #ocaml
f[x] has joined #ocaml
thelema has joined #ocaml
mlh has joined #ocaml
hyperboreean has joined #ocaml
petchema has joined #ocaml
gim has joined #ocaml
mehdid has joined #ocaml
Camarade_Tux has joined #ocaml
th1 has joined #ocaml
rbancroft has joined #ocaml
__marius__ has joined #ocaml
julm_ has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
tmaeda0 is now known as tmaedaZ
julm_ is now known as julm
mfp has quit [Read error: 104 (Connection reset by peer)]
_zack has quit ["Leaving."]
_zack has joined #ocaml
thrasibule has quit [Read error: 110 (Connection timed out)]
nnyby_ has joined #ocaml
verte has quit ["~~~ Crash in JIT!"]
willb has joined #ocaml
Ched has joined #ocaml
<Camarade_Tux> I'm thinking about dropping the "gir" in ocaml-gir, the more I use gobject-introspection, the less I can stand it
<Camarade_Tux> it's a real piece of crap
<Camarade_Tux> a piece of crap which sometimes just skips some function parameters, for example if a function takes a GError**, it won't be mentionned :)
mfp has joined #ocaml
<flux> "gir"?
<Camarade_Tux> *g*object-*i*ntrospection (and the 'r', I can't remember where it comes from ;) )
nnyby has quit [Read error: 110 (Connection timed out)]
<Camarade_Tux> gobject-introspection creates three binaries and only one is useful for compile-time bindings, I'm more and more calling that one by hand, works definitely better
<tiz> Invader Zim fan by any chance? :)
* Camarade_Tux just discovered what Invader Zim was
<tiz> Ah... one of the characters is called Gir, I thought it might be homage.
<Camarade_Tux> well, maybe it is, I'm everything but part of the development
<tiz> oic
<Camarade_Tux> and that's the reason I might stop using that, it shouldn't be very hard: use frama-c to parse .c and .h files and when encountering a comment, check if it's not some kind of annotation (giving the meaning of arguments, if int* is an array or an out-parameter...)
f[x] has quit [Read error: 104 (Connection reset by peer)]
mlh_ has joined #ocaml
nnyby has joined #ocaml
mlh has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
tvn2009 has quit ["Leaving"]
nnyby_ has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
<flux> maybe you could write bug reports to the gir folks?
<flux> :)
jonafan_ has quit ["Leaving"]
maskd- is now known as maskd
_andre has joined #ocaml
espresso has quit [Read error: 104 (Connection reset by peer)]
<flux> tada, here it is, example-based file renamer: http://modeemi.fi/~flux/software/darcs/ganame/
<flux> I'm amazed how it actually works for some cases
jonafan_ has joined #ocaml
<flux> (example: ganame IMG_6352.JPG=img_6352.jpg -- *)
<orbitz> how complex patterns can you get?
<flux> well, type operation = | Nop | MapCopyChar of map | Until of (condition * operation) | Skip
<flux> so, not too complex :)
<flux> (map covers things like lowercase/uppercase, condition covers things like until separator, until case change)
<flux> maybe if I give it some actual use I can find better operations for it
<flux> but in practice it can already be useful. for example I'd expect ganame AAAAAA.JPG=aaaaaa.JPG -- * to work as expected
<flux> (and I don't recall offhand the perl syntax for doing that in an s-expression, so it's useful for me)
<orbitz> what about
<flux> btw, the IMG-program is: Until(ChangeCase,MapCopy(Lowercase)),Copy,Copy,Until(ChangeCase,Copy),Until(Separator,MapCopy(Lowercase))
<orbitz> AAA.JPG=AaA.jPg
<flux> and what would you like it to do to the rest of the files?
<orbitz> i want them al lto follow that pattern, like IMG.JPG would be ImG.jPg
<flux> Copy,MapCopy(Lowercase),Copy,Until(Separator,MapCopy(Uppercase)),Copy,MapCopy(Lowercase),Copy,MapCopy(Lowercase)
<flux> copy = copy character literally
<flux> that's what it generated (..this time..)
<flux> (in general it's better to give more than one example)
<orbitz> oh cool so you keep on giving exampels and it refines it?
<flux> yes
<orbitz> awesome
<flux> if can also determine if it cannot find the program
<orbitz> awesome
<flux> maybe I should write a web page for it :)
<orbitz> that'd be sweet
<orbitz> with sexy examples
<orbitz> really you can apply your algorithm to more than jsut files too
<flux> I doubt it's scalable for larger contents
<flux> if you can find example use cases, why not, but I think that's the most practical one I could figure
<flux> also, the algorithms aren't really that sophisticated
<flux> it uses genePool.ml{,i} (which is simple too) from http://www.rubinsteyn.com/genepool/ and levenstein distance (to determine the closeness of results) from http://lambda-diode.com/software/ocaml/
<flux> the main module (and the only one I wrote) is 254 lines long
<flux> btw, it was this book that inspired me to write the thing: http://cs.gmu.edu/~sean/book/metaheuristics/
<flux> (it's a free ebook)
<flux> (well, technically a pdf)
ztfw has joined #ocaml
komar__ has joined #ocaml
<orbitz> cool
<Camarade_Tux> flux: I should hammer the gir's bugzilla and their mailing-list (except I don't want to subscribe to it, hmmm, nabble maybe)
<Camarade_Tux> flux: I'll have to check out ganame too ;)
_zack has quit ["Leaving."]
_zack has joined #ocaml
f[x] has joined #ocaml
_zack has quit ["Leaving."]
jonafan_ is now known as jonafan
* thelema is going to try making myocamlbuild.ml have options for ocamlviz
<hcarty> thelema: That would be very cool
ttamttam has quit ["Leaving."]
<thelema> ocamlviz is *pretty*
<thelema> and it's not too hard to have myocamlbuild flags for it. (even the automatic instrumentation)
* thelema isn't getting any hashtable or tree instrumentation... hmm
<thelema> maybe I'm only instrumenting part of my code
julm_ has joined #ocaml
julm has quit [Nick collision from services.]
julm_ is now known as julm
Submarine has joined #ocaml
* thelema tries annotating by hand
julm_ has joined #ocaml
slash_ has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
Amorphous has quit [Read error: 145 (Connection timed out)]
_andre has quit ["leaving"]
Amorphous has joined #ocaml
Yoric[DT] has joined #ocaml
ttamttam has joined #ocaml
julm_ is now known as julm
_zack has joined #ocaml
albacker has joined #ocaml
appletizer has joined #ocaml
sramsay has joined #ocaml
julm has quit [Read error: 113 (No route to host)]
willb has quit [Read error: 145 (Connection timed out)]
ttamttam has quit ["Leaving."]
Snark has quit ["Ex-Chat"]
Submarine has quit [Client Quit]
_JusSx_ has joined #ocaml
tvn has joined #ocaml
<tvn> in haskell I can do something like this map (1+) list but in ocaml I can't seem to do the same List.map (1+) list ? I have to do List.map (fun x -> 1+x) list
<orbitz> ((+)1) works
<tvn> ah
<tvn> ic
tvn has quit [Client Quit]
<orbitz> welp, i've done my part
tvn has joined #ocaml
<orbitz> oh, you again.
albacker has quit [Read error: 110 (Connection timed out)]
sOpen has quit [Read error: 110 (Connection timed out)]
<tvn> ?
ulfdoz has joined #ocaml
<hcarty> tvn: Any infix operator ( +, -, /, * ) can be used that way. It is generally considered good practice to include a space around the operator to avoid (*) which would act as the start of a comment.
<tvn> ah ic
<hcarty> ( * ), ( / ), etc..
f[x] has quit [Read error: 110 (Connection timed out)]
_zack has quit ["Leaving."]
_zack has joined #ocaml
Alpounet has joined #ocaml
tvn has quit ["Leaving"]
_JusSx_ has quit ["leaving"]
_zack has quit ["Leaving."]
Yoric[DT] has quit ["Ex-Chat"]
komar__ is now known as komar_
Alpounet has quit ["Leaving"]
onigiri has joined #ocaml
albacker has joined #ocaml
ztfw` has joined #ocaml
ztfw`` has joined #ocaml
hkBst has quit [Read error: 104 (Connection reset by peer)]
sramsay has quit ["Leaving"]
peddie has joined #ocaml
ztfw` has quit [Read error: 110 (Connection timed out)]
ztfw has quit [Read error: 110 (Connection timed out)]
peddie_ has quit [Read error: 110 (Connection timed out)]
albacker has quit ["Leaving"]
espresso has joined #ocaml
p0nce has joined #ocaml
p0nce has left #ocaml []
ztfw``` has joined #ocaml
ztfw`` has quit [Read error: 110 (Connection timed out)]
smimou has quit ["bli"]
thrasibule has joined #ocaml