dark_light changed the topic of #ocaml to: OCaml 3.09.2 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/
Shimei has quit [Read error: 60 (Operation timed out)]
Shimei has joined #ocaml
youknow365 has quit [Read error: 60 (Operation timed out)]
_fab has quit [Read error: 104 (Connection reset by peer)]
jcreigh has quit ["Cuius rei demonstrationem mirabilem sane detexi. Hanc marginis exiguitas non caperet."]
_fab has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
pango__ has joined #ocaml
pstickne has joined #ocaml
<pstickne> hello
chessguy has joined #ocaml
pango_ has quit [Remote closed the connection]
youknow365 has joined #ocaml
jcreigh has joined #ocaml
chessguy has quit [" HydraIRC -> http://www.hydrairc.com <- Go on, try it!"]
shekmalhen has joined #ocaml
Carillon has quit [" HydraIRC -> http://www.hydrairc.com <- IRC with a difference"]
Smerdyakov has quit ["Leaving"]
khaladan_ has joined #ocaml
khaladan- has joined #ocaml
jcreigh has quit ["Cuius rei demonstrationem mirabilem sane detexi. Hanc marginis exiguitas non caperet."]
khaladan has quit [Connection timed out]
khaladan- is now known as khaladan
khaladan_ has quit [Read error: 110 (Connection timed out)]
shekmalhen has quit ["brb"]
shekmalhen has joined #ocaml
jewel has joined #ocaml
Wild_Cat has joined #ocaml
<jewel> How can I use Str.first_chars from the ocaml repl? It says "Reference to undefined global `Str'"
Wild_Cat has quit []
Snark has joined #ocaml
_velco has joined #ocaml
velco_ has joined #ocaml
velco_ has quit [Remote closed the connection]
<TSC> You might need to build a special toplevel
<TSC> (That's what it says in the reference manual)
<flux__> or #load "str.cma";;
<jewel> thanks flux__
newsham has joined #ocaml
<newsham> whats this mean? fun a -> function |None -> a |Some x -> x :: a ?
<zvrba> pattern matching
<newsham> know where i'd find docs on this? someowhere in chap sec of the ocaml manual?
<newsham> sorry, new to ocaml and trying to read some code...
<zvrba> docs are on the web
<newsham> yes, they are.. any clues as to what part of the docs?
<jewel> did you read a tutorial?
<flux__> maybe you'll find ocaml-tutorial.org useful
<newsham> i read 'the objective caml system release 3.09 documentation and user's manual' partI "an introduction to objective calm"
<newsham> I understand fun x -> x+1 I dont understand "function |None -> a |Some x -> x :: a"
<newsham> and cant find anything similar in the intro
<flux__> function |None ->a | Some x -> x :: a is the same as fun z -> match z with | None->a | Some x -> x :: a
shekmalhen has quit ["bonne nuit"]
<newsham> makes sense. know where in the docs that syntax is mentioned?
<flux__> can't remember
<flux__> read them through :)
<pango__> it's mentionned very briefly in data types chapter
<newsham> hmm.. i dont see a data types chapter.. which book is this from?
<newsham> 6.4 of manual?
<pango__> in official ocaml user manual
<newsham> thanks.. i'll dig
<pango__> but that's certainly not the best source on that topic
<newsham> better place for me to look?
<newsham> thanks!
<pango__> in "Developing applications with objective caml", http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora016.html
<newsham> cool, didnt know about the ora book or the tutorial site.
<newsham> its a weird shorthand...
<newsham> (that "match expr with .." is used everywhere else, but here its dropped)
<pango__> yup, I often avoid using the 'function' construct to use an explicit match too (but in some cases it's ok... and you also have to know it exists, when reading other's code ;) )
<flux__> I find it the most convenient with List.map -like usage
<flux__> like List.map (function 42 -> 0 | x -> x + 1) data
<pango__> yes, that's one of those cases where "it's ok"
<pango__> yet, because it's a long keyword, it's not much less typing than fun x -> match x with ;)
<newsham> yah, thats where i came across it, in a list fold
<pango__> hence your two parameters... And depending on the fold direction, the parameters may not be in the right order for the 'function' construct to be natural...
<pango__> I suppose it's a fold_left here
<pango__> that's the 'favorable' direction ;)
shawn_ has joined #ocaml
<pango__> List.fold_right (function None -> fun a -> a | Some x -> fun a -> x :: a) vs List.fold_right (fun e a -> match e with None -> a | Some x -> x :: a)
<newsham> is there a way to get documentation from within the ocaml environment?
<newsham> like help(List.assoc) ?
<flux__> sure, Unix.system "man List";; ;)
Wild_Cat has joined #ocaml
<newsham> ooh, neat, man pages.
smimou has joined #ocaml
slipstream-- has joined #ocaml
pango__ has quit ["brb"]
pango_ has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
youknow365 has quit [Read error: 113 (No route to host)]
smimou has quit ["bli"]
shans_home has quit ["Leaving"]
finelemon has quit [Read error: 110 (Connection timed out)]
finelemon has joined #ocaml
chessguy has joined #ocaml
jewel has quit [Read error: 110 (Connection timed out)]
pango has quit [Connection reset by peer]
Smerdyakov has joined #ocaml
ppsmimou has quit ["Leaving"]
shawn_ has quit ["This computer has gone to sleep"]
ppsmimou has joined #ocaml
love-pingoo has quit ["Leaving"]
chessguy has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
bzzbzz has joined #ocaml
Wild_Cat has quit ["Leaving"]
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
shawn_ has joined #ocaml
Boojum has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
pango_ has quit ["bbl"]
Boojum is now known as Snark
pango has joined #ocaml
newsham has left #ocaml []
_jol_ has joined #ocaml
joshcryer has joined #ocaml
chessguy has joined #ocaml
_jol_ has quit ["leaving"]
Wild_Cat has joined #ocaml
tennin has joined #ocaml
Wild_Cat has quit []
bzzbzz has quit ["leaving"]
nebosuke2 has joined #ocaml
<nebosuke2> I have a question about what seems to be a wierd bug with ocamlopt on win xp
<nebosuke2> I've been trying to build the native version of lablgtk2, but ocamlopt seems to fail in a very strange way when called with a huge number of input cmx files
<nebosuke2> I modified the lablgtk2 build.ml to run ocamlopt with -verbose to see what's going wrong, and the problem is in this line: + ar rc "lablgtk.a" @C:\DOCUME~1\Dev\LOCALS~1\Temp\camlresp91666e
<nebosuke2> if I cut down the number of cmx files being fed to ocamlopt it runs just fine
<nebosuke2> apparently, at some number of input cmx files, ocamlopt attempts to create some intermediate temp files, but when it does, the arguments to ar get mangled
<nebosuke2> anyone know a way of dealing with this?
Kwisatz- has joined #ocaml
<flux__> no, but atleast it seems like a genuine bug :-)
<flux__> maybe it's not too difficult to fix,s eeing that you've debugged it so far
<nebosuke2> it looks like the only way to possibly work around it is by reducing the number of cmx files fed to ocamlopt in one go
<nebosuke2> I'm guessing you do it by doing something like -pack'ing the cmx files into a smaller number of intermediate cmx files, and then feeding those intermediate cmx files to ocamlopt
beschmi has joined #ocaml
Snark has quit ["Leaving"]
tennin has quit [Read error: 110 (Connection timed out)]
chessguy has quit [" HydraIRC -> http://www.hydrairc.com <- Leading Edge IRC"]
_velco has quit ["I'm outta here ..."]
smimou has quit ["bli"]
slipstream has joined #ocaml
chirper has joined #ocaml
beschmi has left #ocaml []
slipstream-- has quit [Read error: 110 (Connection timed out)]
chirper has quit ["leaving"]