sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
ikaros has quit ["Leaving"]
mnemonic has joined #ocaml
ikaros has joined #ocaml
<mnemonic>
yo
<jiffyjeff>
oy
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
<gmh33>
are cmxa files what you use to compile files with ocamlopt?
<gmh33>
seems like it..
smimp has quit ["Lost terminal"]
<Smerdyakov>
A .cmxa file is a native-code library.
Submarine has quit ["Leaving"]
yangsx has joined #ocaml
johnnowak has joined #ocaml
pytn has joined #ocaml
Mr_Awesome has joined #ocaml
<pytn>
So what are people using OCaml for?
<pytn>
I'm doing some scientific stuff on big arrays, looking at DNA.
<Mr_Awesome>
im trying to make games
<Mr_Awesome>
i already made one that won a contest
<pytn>
Congrats.
<pytn>
So how did you find OCaml?
<pytn>
I am a bit embarrassed to say I first heard of it from Yegge's posts on it.
pytn has left #ocaml []
yangsx has left #ocaml []
Smergo has quit [Read error: 110 (Connection timed out)]
joshcryer has joined #ocaml
pantsd has joined #ocaml
joshcryer has quit [Client Quit]
mnemonic has quit ["leaving"]
joshcryer has joined #ocaml
gmh33 has quit ["Leaving"]
Mr_Awesome has quit ["...and the Awesome level drops"]
threeve has joined #ocaml
mbishop has quit [Remote closed the connection]
johnnowak has quit []
mbishop has joined #ocaml
smimp has joined #ocaml
Smerdyakov has quit ["Leaving"]
threeve has quit []
flux- has quit [Read error: 113 (No route to host)]
pstickne has joined #ocaml
diffbavis has quit [Read error: 145 (Connection timed out)]
flux- has joined #ocaml
pantsd has quit [Read error: 110 (Connection timed out)]
chi11 has joined #ocaml
joshcryer has quit [Read error: 60 (Operation timed out)]
velco has joined #ocaml
bluestorm has joined #ocaml
Smergo has joined #ocaml
love-pingoo has joined #ocaml
malc_ has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
joshcryer has joined #ocaml
diffbavis has joined #ocaml
Aradorn has joined #ocaml
malc_ has quit ["leaving"]
slipstream has quit [Connection reset by peer]
slipstream has joined #ocaml
johnnowak has joined #ocaml
johnnowak has quit [Client Quit]
Smerdyakov has joined #ocaml
ikaros has left #ocaml []
diffbavis has quit [Read error: 131 (Connection reset by peer)]
pango has quit [Remote closed the connection]
slipstream has quit [Read error: 131 (Connection reset by peer)]
slipstream has joined #ocaml
joelr1 has joined #ocaml
<joelr1>
good day
love-pingoo has quit ["Leaving"]
joelr1 has quit []
smimou has joined #ocaml
velco has quit ["<boris``> reduction ad absurdum is a fallacious method of proof"]
Submarine has joined #ocaml
chi11 is now known as velco
mattam has quit [Read error: 113 (No route to host)]
mattam has joined #ocaml
Submarine_ has joined #ocaml
Submarine__ has joined #ocaml
Submarine_ has quit [Remote closed the connection]
Submarine has quit [Nick collision from services.]
Submarine__ is now known as Submarine
diffbavis has joined #ocaml
velco has quit ["I'm outta here ..."]
pango has joined #ocaml
bhauth has joined #ocaml
Aradorn_ has joined #ocaml
Aradorn has quit [Read error: 104 (Connection reset by peer)]
ikaros_ has joined #ocaml
chi11 has joined #ocaml
ikaros_ has quit ["Leaving"]
zmdkrbou has joined #ocaml
bhauth has quit [Client Quit]
bluestorm has quit ["Konversation terminated!"]
benny_ has joined #ocaml
benny has quit [Read error: 145 (Connection timed out)]
joshcryer has quit [zelazny.freenode.net irc.freenode.net]
pstickne has quit [zelazny.freenode.net irc.freenode.net]
mbishop has quit [zelazny.freenode.net irc.freenode.net]
romanoffi has quit [zelazny.freenode.net irc.freenode.net]
jiffyjeff has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
eradman has quit [zelazny.freenode.net irc.freenode.net]
malc_ has joined #ocaml
joshcryer has joined #ocaml
pstickne has joined #ocaml
mbishop has joined #ocaml
romanoffi has joined #ocaml
jiffyjeff has joined #ocaml
Oatmeat|umn has joined #ocaml
eradman has joined #ocaml
Aradorn_ has quit [Client Quit]
slipstream-- has joined #ocaml
Submarine has quit ["Leaving"]
slipstream has quit [Read error: 110 (Connection timed out)]
dark_light has joined #ocaml
bluestorm has joined #ocaml
gunark has joined #ocaml
chi11 has quit ["I'm outta here ..."]
Submarine has joined #ocaml
mnemonic has joined #ocaml
<mnemonic>
hi
romanoffi has left #ocaml []
mnemonic has quit ["leaving"]
mnemonic has joined #ocaml
shawn has quit [Read error: 110 (Connection timed out)]
Submarine has quit ["Leaving"]
ikaros has joined #ocaml
smimp has quit ["Lost terminal"]
rillig has joined #ocaml
<mbishop>
I know how function and fun differ, but when using them in say, the definition of a function, like 'let rec foo = function', does it matter which one you use?
m3ga has joined #ocaml
<Smerdyakov>
mbishop, I don't think I understand. It matters because 'function' and 'fun' differ, so you can't use them interchangeably.
<mbishop>
well, function only takes a single argument, right? so if you want x and y you have to use function x -> function y -> x+y;; or something similar, right?
<Smerdyakov>
Yes, though obviously 'fun' would work better in that case, just because it's shorter.
<mbishop>
right, and you can use fun x y -> x+y;;, but is there a difference when using them to define a function? is 'let rec foo = fun' and 'let rec foo = function' any different?
<Smerdyakov>
Sorry, your question seems nonsensical.
<Smerdyakov>
They are different because they have different syntax, at the least.
<Smerdyakov>
The fact that an anonymous function expression appears in a 'let rec' doesn't change its syntax or semantics.
<mbishop>
Hmm, well, I've typically seen function used to define a function, but I have a book that uses fun as well, is there any difference at all between the two? is one prefered over the other?
<mbishop>
will one be less efficient?
<Smerdyakov>
Certainly the closest thing OCaml has to a specification, the manual, says nothing about the efficiency of either.
<Smerdyakov>
I always use 'fun' when possible, because it's shorter, and 'function' otherwise.
<mbishop>
Hmm, so I suppose fun would be prefered?
<mbishop>
ok
<malc_>
mbishop: `function' more or less equals `fun _x = match _x with'