__DL__ changed the topic of #ocaml to: OCaml 3.09.0 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/
premchai21 has joined #ocaml
vincenz has quit ["leaving"]
revision17_ has quit [Read error: 104 (Connection reset by peer)]
ulfdoz has joined #ocaml
rq has joined #ocaml
batdog is now known as batdog|gone
mjs22 has quit ["Leaving"]
batdog|gone is now known as batdog
batdog is now known as batdog|gone
moea has joined #ocaml
<moea> are there versions of sqrt and exp that work on integers?
<premchai21> You could convert them to floats and then back, I suppose.
<moea> that would be slow, though
<moea> pango: thanks :)
premchai21 has quit ["changing universes"]
<pango> I just translated it, hence the very imperative style
Nutssh has quit [brown.freenode.net irc.freenode.net]
pmdboi has joined #ocaml
Nutssh has joined #ocaml
fab_ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
rq has quit ["Leaving"]
pango_ has joined #ocaml
pango has quit [Read error: 60 (Operation timed out)]
Nutssh has quit [brown.freenode.net irc.freenode.net]
Nutssh has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
rongenre has quit [Remote closed the connection]
Nutssh has quit [brown.freenode.net irc.freenode.net]
Nutssh has joined #ocaml
Nutssh has quit [Excess Flood]
Nutssh has joined #ocaml
Nutssh has quit [brown.freenode.net irc.freenode.net]
Nutssh has joined #ocaml
Nutssh has quit [No route to host]
descender has joined #ocaml
bzzbzz has joined #ocaml
kryptt has joined #ocaml
kryptt has left #ocaml []
__DL__ has joined #ocaml
vincenz has joined #ocaml
Snark has joined #ocaml
<vincenz> Hello
<vincenz> Anyone around?
<vincenz> and wherew is 3.09 ?
<vincenz> nm, the news is just old
<vincenz> tho I had a question concerning lazyness
shirogane has quit [Remote closed the connection]
Nutssh has joined #ocaml
Skal has joined #ocaml
goomba has joined #ocaml
vezenchio has joined #ocaml
m3ga has joined #ocaml
Nutssh has quit ["Client exiting"]
exa has quit [Read error: 104 (Connection reset by peer)]
exa has joined #ocaml
smimou has joined #ocaml
ramkrsna has joined #ocaml
m3ga_ has joined #ocaml
m3ga_ has quit [Read error: 104 (Connection reset by peer)]
Oatmeat|cs has quit [Read error: 110 (Connection timed out)]
ramkrsna has quit [Read error: 110 (Connection timed out)]
ulfdoz has quit ["deprecated"]
ulfdoz has joined #ocaml
Oatmeat|umn has joined #ocaml
goomba has quit [Read error: 104 (Connection reset by peer)]
fab_ has quit [Read error: 113 (No route to host)]
mcspiff has joined #ocaml
<mcspiff> hello
<mcspiff> quick question about declaring functions
<mcspiff> I declared two functions
<mcspiff> one is let square x = x*x;;
<mcspiff> the other is let square 2 = fun x-> x*x;;
<mcspiff> which is 'proper' or does it matter?
<Snark> I don't think it matters
<Snark> doesn't ocaml recognize them as the same type ?
<mcspiff> well as far as I could tell yes.
<mcspiff> but if i was to show other people code, they wouldnt yell at me for using one or the other? ;-)
<mellum> mcspiff: well, the second does not make a lot of sense, really.
<mcspiff> your right
<mcspiff> because it has a typo
<mcspiff> let square2 = fun x -> x*x;;
<mellum> well, that makes sense, but it's not idiomatic, so you should use the first one.
<mcspiff> alright
tom_p has quit [Remote closed the connection]
<Demitar> mcspiff, might want to have a peek at http://caml.inria.fr/resources/doc/guides/guidelines.en.html as well. :)
tom_p has joined #ocaml
<vincenz> you have to use the first
<vincenz> cause the second will force it to be bound to a single _a' type
<vincenz> and make it monomorphic
<mcspiff> ah
<vincenz> nm
<vincenz> it matters little
<vincenz> duh
<vincenz> * is only defined for ints
<mcspiff> ok
mcspiff has quit []
batdog|gone is now known as batdog
LoneTech has joined #ocaml
__DL__ has quit [Remote closed the connection]
<LoneTech> hello. I'm new to ocaml and trying to use an extlib module, but I get "Unbound module Extlib". am I supposed to do something beyond "open Extlib;;"?
batdog is now known as batdog|gone
batdog|gone is now known as batdog
<LoneTech> batdog, do you know?
<batdog> LoneTech: know what? was away...
<LoneTech> how to link to extlib. I'm trying to use the DynArray module, but I just get messages stating it's unbound
<batdog> LoneTech: no idea, sorry
<LoneTech> ok, thanks anyway
<LoneTech> I think I'm beginning to figure it out. it's compiled, so only works with ocamlopt, and I need to do things with the cmx files
<Smerdyakov> LoneTech, the beginning of every standard library's manual section addresses this.
<LoneTech> I must have missed that, and don't quite see where you mean. Sorry.
<Smerdyakov> There are a number of libraries that come packages with OCaml.
<Smerdyakov> Each one has a section of the manual.
<Smerdyakov> I don't mean "the standard library."
<LoneTech> Part IV?
<LoneTech> I think I found what you mean
<LoneTech> thank you
pmdboi has quit [Read error: 110 (Connection timed out)]
<LoneTech> still not getting it quite right :/
<Smerdyakov> You are including the right .cma or .cmxa files on the compilation command-line before your own files?
<LoneTech> I think so. it doesn't seem like ocamc complains if I specify ones that don't exist so I'm not too sure.
<LoneTech> oh, there it worked
<LoneTech> specifying -I, the cmxa before the .ml, and using the name DynArray
<Smerdyakov> BTW, using OCamlMakefile is a good idea for anything but the most trivial projects.
<Smerdyakov> Or some other build process that thinks about command-line syntax and ordering for you.
<LoneTech> good, I like make
<LoneTech> now how to let ocamlmakefile know I want extlib
<LoneTech> thank you very much (:
<Smerdyakov> The file itself documents the variables you set.
<LoneTech> oh, there's a -package
<LoneTech> my makefile seems to work now
<LoneTech> PACKS was the one I wanted
Submarine has joined #ocaml
rq has joined #ocaml
LoneTech has quit [Read error: 104 (Connection reset by peer)]
mattam has quit [Read error: 104 (Connection reset by peer)]
mattam has joined #ocaml
apost has joined #ocaml
apost has left #ocaml []
mattam_ has joined #ocaml
Banana has quit [Read error: 104 (Connection reset by peer)]
Banana has joined #ocaml
mattam has quit [Read error: 104 (Connection reset by peer)]
Submarine has quit [Remote closed the connection]
rq has quit ["Leaving"]
shirogane has joined #ocaml
exa has quit [Excess Flood]
Schmurtz has quit [Remote closed the connection]
exa has joined #ocaml
ski has quit ["bbl"]
Schmurtz has joined #ocaml
ski_ has joined #ocaml
Banana has quit [Read error: 104 (Connection reset by peer)]
mattam_ has quit [Read error: 104 (Connection reset by peer)]
mattam has joined #ocaml
Banana has joined #ocaml
ecc has joined #ocaml
Snark has quit ["Parti"]
descender has quit [No route to host]
seerhut has joined #ocaml
ski has joined #ocaml
ski__ has joined #ocaml
ski has quit [Nick collision from services.]
ski__ is now known as ski
ski has quit ["NMI"]
ski has joined #ocaml
descender has joined #ocaml
<seerhut> irc://irc.eastgame.net/#mldonkey
seerhut has left #ocaml []
<Smerdyakov> What a bastard.
<moea> heh
<ulfdoz> let's flood'em. :)
Amorphous has quit [Read error: 104 (Connection reset by peer)]
Amorphous has joined #ocaml
descender has quit [Success]
Submarine has joined #ocaml
descender has joined #ocaml
ecc has quit ["Client exiting"]
vezenchio has quit ["Welcome to the internet. 60% porn. 20% nostalgia. 20% psychiatrist training ground."]
descender has quit ["XML is like violence, if it doesn't solve the problem, just use more."]
descender has joined #ocaml
smimou has quit ["bli"]
__DL__ has joined #ocaml
ski__ has joined #ocaml
ski has quit [Nick collision from services.]
ski__ is now known as ski
pnou_ has joined #ocaml
pnou has quit [Read error: 104 (Connection reset by peer)]
m3ga has quit [Remote closed the connection]
Banana_ has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 104 (Connection reset by peer)]
Banana has quit [Read error: 104 (Connection reset by peer)]