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/
david_koontz has left #ocaml []
falconair has joined #ocaml
bohanlon has joined #ocaml
_fab has quit []
bohanlon has quit ["leaving"]
bmiller has quit []
love-pingoo has quit ["Connection reset by pear"]
sponge45 has joined #ocaml
chessguy has quit [" HydraIRC -> http://www.hydrairc.com <- The dawn of a new IRC era"]
ctb has joined #ocaml
<ctb> Heya, is this channel appropriate for me to ask a coding question?
<ctb> I guess I'll just shoot, and then you can just not answer if I'm in the wrong place. :)
<ctb> I have a function of type: (string * 'a) list -> classdec list -> bool = <fun>
<ctb> when using it I'm generating the error: This expression has type (ty * field) list but is here used with type (string * 'a) list
<ctb> only, the "ty" type is defined as: type ty = ClassTy of string;;
<ctb> I'm not particular gifted at thinking like a static type checker
<ctb> what's the steps I would go through to debug this and get things checked out?
<ctb> I had hoped that (string * a') would work for (ty * field) since ty is a string with a ClassTy name. :(
<Smerdyakov> The values of type ty are values (ClassTy s) for strings s, _not_ the strings themselves.
<Smerdyakov> Perhaps you meant to use: type ty = string
<ctb> okay. I suppose I realized that as soon as I typed it
<ctb> perhaps I could use pattern matching then to temporarly extract that string?
<Smerdyakov> Is that really a question? :)
<ctb> no. :)
<ctb> Thank you for the brief discussion. I think I have enough to continue. :)
dibblego has joined #ocaml
danly has quit [Read error: 54 (Connection reset by peer)]
chessguy has joined #ocaml
_shawn has quit [Read error: 104 (Connection reset by peer)]
postalchris has quit ["Leaving."]
chessguy has quit [" Like VS.net's GUI? Then try HydraIRC -> http://www.hydrairc.com <-"]
trrkkkkkk has joined #ocaml
trrkkkkk has quit [Read error: 113 (No route to host)]
<jordan-> how do i represent the empty character in ocaml?
<jordan-> for example i want a char representation of ""
<jordan-> i have a function: string_to_list defined as follows.. let l = ref [] in ((String.iter (fun x -> l := (List.append !l [x])) s); !l);; which right now maps "" to [], which is wrong.
sponge45 has quit ["zzzzzzzzzz"]
<fremo> jordan-: are you sure this character exists ? :)
danly has joined #ocaml
danly has quit ["Leaving"]
Smerdyakov has quit ["Leaving"]
buluc1 has joined #ocaml
dibblego has quit ["Leaving"]
marburg has joined #ocaml
bluestorm has joined #ocaml
<marburg> if i have a function written in moo.ml, how do I use that fuction in cow.ml?
<flux__> jordan-, I don't see how that is wrong
<flux__> marburg, Moo.func ()
<flux__> marburg, ocamlc -o prog moo.ml cow.ml
<marburg> flux__: alright, neat. how about if I want to use it from the interactive ocaml shell?
<ulfdoz> ocaml?
<flux__> jordan-, btw, you don't need all those pafenthesis, you can drop atleast (( and (List..
falconair has quit [Client Quit]
<flux__> marburg, #load "moo.cmo";; or #use "moo.ml";; or ocaml moo.(ml|cmo)
<flux__> then again Moo.foo
<flux__> or open Moo;; after which the functions are in the current scope
bluestorm has quit ["Konversation terminated!"]
<marburg> flux__: that's exactly what I needed :D
* marburg dances
danly has joined #ocaml
Skal has joined #ocaml
<flux__> glad to help with the first steps, although peering through the manual is a good idea too ;)
pango__ has joined #ocaml
<flux__> marburg, btw, another point: you have found rlwrap (or ledit), haven't you?
<flux__> useful little things
<marburg> flux__: sorry, what?
* marburg looks up rlwrap
pango_ has quit [Remote closed the connection]
<Shimei> So I've been reading _Practical_OCaml_. It's pretty interesting, I like how the first major example project uses marshaling and hashtables to make a database. Fun stuff.
<flux__> shimei, so how do you like the book?
<flux__> people here have been asking that
<Shimei> I'm not far enough to review it yet, but I think it does a good job of showing OCaml off. It seems to be intended to awe experienced programmers (who already know another language), rather than the complete newbie.
_velco has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [No route to host]
danly has quit [Remote closed the connection]
iZZy`` has quit [Read error: 60 (Operation timed out)]
iZZy`` has joined #ocaml
marburg has quit [Remote closed the connection]
gene9 has joined #ocaml
pango__ has quit [Remote closed the connection]
pango has joined #ocaml
gene9 has quit [Remote closed the connection]
love-pingoo has joined #ocaml
velco has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
lde has quit ["ERC Version 5.1.4 (IRC client for Emacs)"]
dibblego has joined #ocaml
trrkkkkkk has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 104 (Connection reset by peer)]
trrkkkkk has quit [Read error: 145 (Connection timed out)]
Snark has joined #ocaml
MisterC has joined #ocaml
lde has joined #ocaml
Skal has quit [Read error: 60 (Operation timed out)]
iZZy`` is now known as ikaros
dibblego has quit [Read error: 110 (Connection timed out)]
joshcryer has quit [Connection timed out]
Leonidas has joined #ocaml
khaladan_ has joined #ocaml
khaladan has quit [Connection timed out]
khaladan has joined #ocaml
khaladan_ has quit [Read error: 145 (Connection timed out)]
chessguy has joined #ocaml
Smerdyakov has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [Read error: 148 (No route to host)]
trrkkkkkk has joined #ocaml
trrkkkkk has quit [Read error: 145 (Connection timed out)]
chessguy has quit [Read error: 60 (Operation timed out)]
ramkrsna has quit [Read error: 104 (Connection reset by peer)]
ramkrsna has joined #ocaml
trrkkkkkk has quit [Read error: 113 (No route to host)]
trrkkkkkk has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [Read error: 113 (No route to host)]
jordan- has quit ["This computer has gone to sleep"]
bmiller has joined #ocaml
trrkkkkkk has joined #ocaml
trrkkkkk has quit [Read error: 145 (Connection timed out)]
love-pingoo has quit ["Leaving"]
ramkrsna has quit [Remote closed the connection]
velco has quit [Remote closed the connection]
danly has joined #ocaml
_fab has joined #ocaml
unfo- has quit [Read error: 110 (Connection timed out)]
_velco has quit ["I'm outta here ..."]
bluestorm has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [Read error: 148 (No route to host)]
jajs has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
MisterC has quit [Remote closed the connection]
bluestorm has quit [zelazny.freenode.net irc.freenode.net]
Smerdyakov has quit [zelazny.freenode.net irc.freenode.net]
Leonidas has quit [zelazny.freenode.net irc.freenode.net]
cmeme has quit [zelazny.freenode.net irc.freenode.net]
batdog|gone has quit [zelazny.freenode.net irc.freenode.net]
descender has quit [zelazny.freenode.net irc.freenode.net]
ppsmimou has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
jdev has quit [zelazny.freenode.net irc.freenode.net]
piggybox has quit [zelazny.freenode.net irc.freenode.net]
eradman has quit [zelazny.freenode.net irc.freenode.net]
bluestorm has joined #ocaml
Smerdyakov has joined #ocaml
Leonidas has joined #ocaml
cmeme has joined #ocaml
batdog|gone has joined #ocaml
descender has joined #ocaml
ppsmimou has joined #ocaml
piggybox has joined #ocaml
Oatmeat|umn has joined #ocaml
jdev has joined #ocaml
eradman has joined #ocaml
chessguy has joined #ocaml
piggybox has quit [Connection timed out]
Leonidas has quit [Read error: 113 (No route to host)]
jajs has quit [Remote closed the connection]
jajs has joined #ocaml
mellum has quit [Read error: 104 (Connection reset by peer)]
joshcryer has joined #ocaml
Skal has joined #ocaml
postalchris has joined #ocaml
bluestorm has quit [Read error: 104 (Connection reset by peer)]
bluestorm has joined #ocaml
grigorij has joined #ocaml
<pango> ftp://ftp.berlios.de/pub/mldonkey/pango/goodies/hashquality.ml (testing the quality of strings hashing...)
<pango> Hashtbl.hash works like (s.[0] * 19 + s.[1]) * 19 + s.[2] ... so the number of collisions for single words is not minimal...
<pango> (using a native int rolling accumulator, and stripping the sign before returning)
bluestorm is now known as bluestorm_aw
<pango> $ ./hashquality /usr/share/dict/american-english
<pango> ...
<pango> Words read: 96274 Different: 96274 Collisions: 87
kwak_ has joined #ocaml
bluestorm_aw is now known as bluestorm
Snark has quit ["Leaving"]
trrkkkkkk has joined #ocaml
kwak_ has quit []
trrkkkkk has quit [Read error: 148 (No route to host)]
jajs has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
chessguy has quit [" HydraIRC -> http://www.hydrairc.com <- Try something fresh"]
asbradbury has joined #ocaml
<asbradbury> I saw this linked to: http://caml.inria.fr/pub/docs/manual-camlp4/manual007.html - can I enable support for this alternative syntax?
cardmagic has joined #ocaml
<pango> I'd say ocaml{c,opt} -pp camlp4r
<asbradbury> thanks
<pango> and ocaml -I +camlp4 camlp4r.cma for toplevel
ctb has left #ocaml []
joshcryer has quit [Connection timed out]
grigorij has quit [Remote closed the connection]
Skal has quit [Remote closed the connection]
postalchris has quit [Read error: 110 (Connection timed out)]
dark_ has joined #ocaml
dark_ is now known as dark_light