ayrnieu changed the topic of #ocaml to: OCaml 3.08.4 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/
_exa has joined #ocaml
_exa has quit [Remote closed the connection]
exa has quit [Read error: 110 (Connection timed out)]
ax has joined #ocaml
<ax> does anyone know if someone has made inline help within vim for ocaml?
<KrispyKringle> to my knowledge, ax, it doesn't.
<ax> ok, figured it was worth askin
<ax> g
<KrispyKringle> yeah
albertelegance has joined #ocaml
cmeme has quit [Read error: 110 (Connection timed out)]
cmeme has joined #ocaml
pango__ has joined #ocaml
pango_ has quit [Read error: 148 (No route to host)]
vezenchio has quit ["I could see how [James Randi] comes off as a bit abrasive, as he uses terms like "gobbledigook" and "woo-woo" when referring ]
skylan has joined #ocaml
ellisonch has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
threeve has joined #ocaml
threeve has quit []
__DL__ has joined #ocaml
ChipsterOne has joined #ocaml
__DL__ has quit ["Bye Bye"]
__DL__ has joined #ocaml
tato has joined #ocaml
<tato> question: is there a difference between "let f x y = x + y" and "let f(x,y)=x+y"? all the tutorial uses the former but the latter seems alot easier to understand
<det> Yes, there is a difference.
<det> The first is a function which takes an int and returns a function which takes an int and adds it to the first argument.
<det> The second is a function which takes a single tuple of two arguments and adds them
<det> Read up on "currying"
<tato> i will
<tato> is one advantageous over the other?
<det> The first will be more efficient in O'Caml
<tato> b/c the tuple seems a bit more efficient b/c it doesn't involve two function calls
<tato> oh
<det> no, O'Caml will optimize the first case when fully aplied
<det> The second may (perhaps always) require heap allocate of the arguments.
Msandin has joined #ocaml
<det> This is particular to the O'caml implementation and characateristic of tupling vs currying in general.
<det> and not*
<tato> currying... ok, i'll look into it
<tato> thanks
albertelegance has quit ["Leaving"]
Skal has joined #ocaml
Revision17 has joined #ocaml
ChipsterOne is now known as Chipster1
revision17_ has quit [Read error: 110 (Connection timed out)]
Msandin has quit [Read error: 104 (Connection reset by peer)]
tato has quit ["Leaving"]
Skal has quit [Remote closed the connection]
pango__ is now known as pango
Chipster1 has quit []
exa has joined #ocaml
Skal has joined #ocaml
brx has joined #ocaml
Snark has joined #ocaml
_exa has joined #ocaml
vezenchio has joined #ocaml
exa has quit [Read error: 110 (Connection timed out)]
ellisonch has quit [Read error: 110 (Connection timed out)]
_exa is now known as exa
edesarna has joined #ocaml
UziMonkey has joined #ocaml
ulfdoz has quit [Read error: 113 (No route to host)]
ulfdoz has joined #ocaml
Bigb[a]ng is now known as Bigbang
Demitar has quit [Read error: 104 (Connection reset by peer)]
albertelegance has joined #ocaml
UziMonkey has quit [Remote closed the connection]
threeve has joined #ocaml
ski has joined #ocaml
Bigbang is now known as Bigb[a]ng
UziMonkey has joined #ocaml
_JusSx_ has joined #ocaml
UziMonkey has quit [Client Quit]
smimou has joined #ocaml
shirogane has joined #ocaml
Bigb[a]ng is now known as Bigbang
elux has joined #ocaml
elux has left #ocaml []
edesarna has quit [Read error: 110 (Connection timed out)]
shirogane has quit [Remote closed the connection]
kryptt has joined #ocaml
m3ga has joined #ocaml
spiral has joined #ocaml
spiral has left #ocaml []
m3ga has quit ["Client exiting"]
Submarine has joined #ocaml
Bigbang is now known as Bigb[a]ng
albertelegance has quit ["Leaving"]
Snark has quit ["Leaving"]
_JusSx_ has quit ["leaving"]
Demitar has joined #ocaml
Rev17|home has quit [Remote closed the connection]
smimou has quit ["?"]
albertelegance has joined #ocaml
brx_ has joined #ocaml
__DL__ has quit ["Bye Bye"]
brx__ has joined #ocaml
brx has quit [Read error: 110 (Connection timed out)]
brx_ has quit [Read error: 110 (Connection timed out)]
<ulfdoz> My parser degrades to a hack I fear. :\
brx__ has quit [Remote closed the connection]
brx has joined #ocaml
brx has quit [Remote closed the connection]
Submarine is now known as SubWoodchuck
SubWoodchuck has quit [Client Quit]
<KrispyKringle> How do pointers/references work in OCaml?
<ski> you allocate with ref : 'a -> 'a ref
<KrispyKringle> ah.
<KrispyKringle> thanks.
<ski> and dereference with ! : 'a ref -> 'a
<KrispyKringle> I'm sure I can find more in the manual. just needed a starting place. thanks. :)
<KrispyKringle> and the garbage collection is reference counting, so i can, say, return a reference to a variable and the variable will stick around as long as the reference is around, right?
<pango> reference counting, not exactly
<pango> everything else is correct, as long as a (non weak) reference exists, dynamically allocated data isn't removed
<KrispyKringle> right, well, something like reference counting. ;)
<KrispyKringle> I don't care about implementation right now.
<KrispyKringle> thanks.
tato has joined #ocaml
<tato> how can i make the ocaml toplevel interpretor recognize the up/down arrow keys to scroll through history and such?
<pango> tato: alias locaml='ledit -h ~/.ocaml_history -x ocaml'
<pango> that's what I use
<tato> ledit?
<pango> Description: line editor for interactive programs
<pango> Ledit is a line editor, allowing to use control commands like in emacs
<pango> or in shells (bash, tcsh). To be used with interactive commands. It is
<pango> written in Ocaml and Camlp4 and uses the library unix.cma.