vect changed the topic of #ocaml to: OCaml 3.07 ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn, ICFP'03 http://www.icfpcontest.org/, A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/, A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
malc has joined #ocaml
Kinners has joined #ocaml
buggs|afk is now known as buggs
noss has quit ["hej då"]
mimosa has quit ["I like core dumps"]
gim has quit ["dodo"]
avn has quit [zelazny.freenode.net irc.freenode.net]
buggs has quit [zelazny.freenode.net irc.freenode.net]
mattam has quit [zelazny.freenode.net irc.freenode.net]
Demitar has quit [zelazny.freenode.net irc.freenode.net]
Defcon7 has quit [zelazny.freenode.net irc.freenode.net]
det has quit [zelazny.freenode.net irc.freenode.net]
mellum has quit [zelazny.freenode.net irc.freenode.net]
avn has joined #ocaml
buggs has joined #ocaml
mattam has joined #ocaml
Demitar has joined #ocaml
Defcon7 has joined #ocaml
det has joined #ocaml
mellum has joined #ocaml
karryall has quit [zelazny.freenode.net irc.freenode.net]
simon- has quit [zelazny.freenode.net irc.freenode.net]
karryall has joined #ocaml
simon- has joined #ocaml
daxie has quit [zelazny.freenode.net irc.freenode.net]
lus|wazze has quit [zelazny.freenode.net irc.freenode.net]
rox has quit [zelazny.freenode.net irc.freenode.net]
cm has quit [zelazny.freenode.net irc.freenode.net]
Maddas has quit [zelazny.freenode.net irc.freenode.net]
async has quit [zelazny.freenode.net irc.freenode.net]
brwill_zzz has quit [zelazny.freenode.net irc.freenode.net]
daxie has joined #ocaml
lus|wazze has joined #ocaml
rox has joined #ocaml
cm has joined #ocaml
brwill_zzz has joined #ocaml
async has joined #ocaml
Maddas has joined #ocaml
asqui has quit [Excess Flood]
malc has quit [zelazny.freenode.net irc.freenode.net]
malc has joined #ocaml
asqui has joined #ocaml
malc has quit [zelazny.freenode.net irc.freenode.net]
malc has joined #ocaml
karryall has quit [zelazny.freenode.net irc.freenode.net]
simon- has quit [zelazny.freenode.net irc.freenode.net]
karryall has joined #ocaml
simon- has joined #ocaml
Herrchen has quit [zelazny.freenode.net irc.freenode.net]
lam has quit [zelazny.freenode.net irc.freenode.net]
wax has quit [zelazny.freenode.net irc.freenode.net]
Herrchen has joined #ocaml
lam has joined #ocaml
wax has joined #ocaml
Kinners has quit [zelazny.freenode.net irc.freenode.net]
ayrnieu has quit [zelazny.freenode.net irc.freenode.net]
The-Fixer has quit [zelazny.freenode.net irc.freenode.net]
jrosdahl has quit [zelazny.freenode.net irc.freenode.net]
Hadaka has quit [zelazny.freenode.net irc.freenode.net]
Kinners has joined #ocaml
ayrnieu has joined #ocaml
The-Fixer has joined #ocaml
jrosdahl has joined #ocaml
Hadaka has joined #ocaml
lus|wazze has quit ["If we don't believe in freedom of expression for people we despise, we don't believe in it at all -- Noam Chomsky"]
malc has quit ["no reason"]
phubuh has joined #ocaml
Kinners has left #ocaml []
buggs is now known as buggs|afk
clog has joined #ocaml
teratorn has quit [calvino.freenode.net irc.freenode.net]
vect has quit [calvino.freenode.net irc.freenode.net]
mw_ has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
mw_ has joined #ocaml
teratorn has joined #ocaml
vect has joined #ocaml
Smerdyakov has joined #ocaml
lam has quit [calvino.freenode.net irc.freenode.net]
wax has quit [calvino.freenode.net irc.freenode.net]
wax has joined #ocaml
lam has joined #ocaml
daxie has quit [Read error: 60 (Operation timed out)]
mw_ has quit [calvino.freenode.net irc.freenode.net]
ayrnieu has quit [calvino.freenode.net irc.freenode.net]
Hadaka has quit [calvino.freenode.net irc.freenode.net]
jrosdahl has quit [calvino.freenode.net irc.freenode.net]
The-Fixer has quit [calvino.freenode.net irc.freenode.net]
Naked has joined #ocaml
Naked is now known as Hadaka
mw has joined #ocaml
The-Fixer has joined #ocaml
gim has joined #ocaml
Herrchen has joined #ocaml
mimosa has joined #ocaml
dax has joined #ocaml
asqui has quit ["Now I am gone..."]
jrosdahl has joined #ocaml
srv has joined #ocaml
durnew has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
karryall has quit [Remote closed the connection]
karryall has joined #ocaml
gim has quit [Read error: 60 (Operation timed out)]
mimosa has quit [Connection timed out]
mimosa has joined #ocaml
gim has joined #ocaml
dax has quit [Read error: 110 (Connection timed out)]
lus|wazze has joined #ocaml
__buggs has joined #ocaml
buggs|afk has quit [Read error: 110 (Connection timed out)]
__buggs is now known as buggs
dax has joined #ocaml
mattam_ is now known as mattam
two-face has joined #ocaml
Defcon7 has quit ["changing servers"]
Defcon7 has joined #ocaml
carm has joined #ocaml
<carm> I know this sounds retarded, but how do I raise an integer to an arbitrary power? The Num module seems appropiate, but doesn't appear to exist in my top level...
<karryall> carm: indeed, the standard library doesn't have such a function
<karryall> you'll have to write it yourself
<carm> can do, but makes no sense to me
<carm> even SML has it - Real.pow I believe
<karryall> you said integer
<karryall> for floats, ocaml has the ** operator
<carm> karrayall: this is true, I implicitly meant with casting if necessary
<carm> thanks
<simon-> does SML have mutable Strings?
<dax> hmm
* dax sucks at ocaml
<lus|wazze> [15:13:37] <simon-> does SML have mutable Strings? <--- in SML strings are immutable I believe ... but Im no expert at sml so dont take my word for it :)
<simon-> lus|wazze, they are.
<two-face> forget about SML, dive into the future
<dax> bleh can't figure this out :'(
<carm> dax - what?
<dax> trying to clean a function a bit...
<dax> but running into type problems
<carm> ahh
<dax> most likely because i'm doing it the wrong way :p
<carm> im trying to find a (log n) solution to find the nth digit of (a/b) (where a < b)
<dax> hmm
<dax> could you help a ocaml noob with a stupid problem then?
<carm> I suppose
<dax> i'll pm the function, don't want to flood the channel
<carm> k
<karryall> dax: you should use a service like this one http://codedbliss.com/codepaste/paste.rhtml
<carm> hmm I'm going to take a look at that.
mattam has quit ["brb"]
mattam has joined #ocaml
srv has quit ["leaving"]
avn has quit [Read error: 104 (Connection reset by peer)]
avn has joined #ocaml
malc has joined #ocaml
whee has joined #ocaml
malc has quit ["no reason"]
<dax> karryall: they don't have ocaml highlighting :o
<Etaoin> and irc does?
<dax> hmm well you could probably write a plugin for your irc client :p
<dax> is that a proper way to do that? and uhm is it tail recursive (i think not)?
<whee> it looks tail recursive to me, but I don't know heh
<dax> hmm
phubuh has quit [Remote closed the connection]
<dax> uhm how would i write a function that would add all the elements of a float list together and return the result?
<karryall> let sum = List.fold_left (+.) 0. ;;
* dax looks up the fold_left function in the manual
eternite has joined #ocaml
<eternite> hello evrybody!
<dax> hi eternite
mattam has quit ["brb"]
<eternite> Is someone know something about the date of ICFP'04 ?
mattam has joined #ocaml
karryall has quit ["home"]
<Etaoin> eternite: google knows
<dax> hmm? can't val names start with an uppercase?
<eternite> no
<Maddas> no
<dax> hmm that's a bit anoying :(
<Maddas> What's the problem with starting variable names in lowercase?
<Maddas> uppercase first is for type constructors :)
<dax> oh well naming a normal N feels more normal than n imo...
<dax> oh the pun... :p
<Maddas> dheh
two-face has left #ocaml []
karryall has joined #ocaml
avn has quit [Read error: 54 (Connection reset by peer)]
karryall has quit ["bye"]
avn has joined #ocaml
phubuh has joined #ocaml
eternite has quit ["Arlg connection crash!"]
ayrnieu has joined #ocaml
buggs has quit ["make installkernel"]
<phubuh> let _ =
<phubuh> let j = new vm in
<phubuh> let system = j#find_class "java/lang/System" in
<phubuh> let out = system#get_static_field "out"
<phubuh> ~jtype: (`Java_object_type "java/io/PrintStream") in
<phubuh> out#call_void_method "println"
<phubuh> ~jtype: (`Java_method_type ([`Java_int_type], `Java_void_type))
<phubuh> ~args: [`Java_int (Int32.of_int 123)]
<phubuh> whee!
<mattam> java compiler ?
<mattam> or just vm impl ?
teratorn has quit [calvino.freenode.net irc.freenode.net]
smkl has quit [calvino.freenode.net irc.freenode.net]
ez4 has joined #ocaml
<phubuh> mattam: binding to java, like perl4caml
teratorn has joined #ocaml
smkl has joined #ocaml
<mattam> k
<mattam> yet more libraries for OCaml!
<phubuh> indeed!
<phubuh> I started working on it to use joscar, the best implementation of the AIM protocol
<Maddas> cool, phubuh!
<phubuh> it only handles methods that returns void, and there's no support for strings or arrays, or fields that aren't objects, but that should be easy (if very tedious and mechanical)
buggs has joined #ocaml
<Maddas> phubuh: it's still cool :-)
<phubuh> :-)
mimosa has quit ["I like core dumps"]
<phubuh> bah. I have (`Foo bar) in a value. to check if it's a Foo, I do Field (v, 0) == hash_variant ("Foo"), correct?
<Riastradh> Why not just 'match value with `Foo bar -> ... | baz -> ...'?
<phubuh> oh, this is in C
<Riastradh> Oh.
<Riastradh> Why not just use OCaml? *smirk*
<phubuh> JNI doesn't quite work with OCaml :(
<phubuh> bah, I wish the docs were more clear about this
<phubuh> I also wish I wouldn't spontaneously break things, but that's hopeless
gim has quit ["babaye"]
<mellum> Mixing C and Ocaml is fun. I once had a bug that made my program crash reproducible after 6 hours of CPU time.
<carm> mellum: are you claiming it is unstable? I wrote an ocaml wrapper for a poker hand evaluator library that was written in C. seems to work Ok for me.
<phubuh> heh, yeah, it's pretty annoying. do you know if my hashing stuff is correct?
<carm> phubuh - no idea. didnt have to deal with Field macro, fortunately.
<phubuh> oh, hmm. I think the problem is elsewhere!