lapinou changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | http://www.ocaml.org | OCaml 4.01.0 announce at http://bit.ly/1851A3R | Public logs at http://tunes.org/~nef/logs/ocaml/
rgrinberg has quit [Read error: Connection reset by peer]
nikki93 has joined #ocaml
rgrinberg has joined #ocaml
dapz has joined #ocaml
dapz has quit [Client Quit]
tab1293 has quit [Ping timeout: 240 seconds]
dapz has joined #ocaml
dapz has quit [Client Quit]
dapz has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
tab1293 has joined #ocaml
<tab1293> what does the keyword 'and' do in ocaml?
<Drup> simultaneous definitions
<nicoo> tab1293: In « let a = expr and b = expr' » it lets you define simultaneously a and b
nikki93 has quit [Remote host closed the connection]
<nicoo> Damn you, Drup :)
<Drup> and mutually recursive definition, with rec
<Drup> (let rec .. and ...)
rgrinberg has quit [Quit: Leaving.]
nikki93 has joined #ocaml
michael_lee has joined #ocaml
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
nikki93 has quit [Read error: Connection reset by peer]
nikki93 has joined #ocaml
tautologico has quit [Quit: Connection closed for inactivity]
tab1293 has quit [Ping timeout: 252 seconds]
nikki93 has quit [Remote host closed the connection]
jao has quit [Ping timeout: 250 seconds]
studybot_ has quit [Read error: Connection reset by peer]
kig has quit [Quit: kig]
mcclurmc has joined #ocaml
studybot has joined #ocaml
csakatoku has joined #ocaml
kig has joined #ocaml
ygrek has joined #ocaml
clan has quit [Quit: clan]
divyanshu has joined #ocaml
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ocaml
kig has quit [Quit: kig]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
iorivur has quit [Ping timeout: 245 seconds]
tlockney_away is now known as tlockney
iorivur has joined #ocaml
nikki93 has joined #ocaml
jpdeplaix has quit [Ping timeout: 252 seconds]
jpdeplaix has joined #ocaml
q66 has quit [Quit: Leaving]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
oriba has quit [Quit: Verlassend]
waneck_ has quit [Remote host closed the connection]
iorivur has quit [Ping timeout: 245 seconds]
divyanshu has quit [Quit: Computer has gone to sleep.]
clan has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
clan has quit [Client Quit]
iorivur has joined #ocaml
tab1293 has joined #ocaml
divyanshu has joined #ocaml
tlockney is now known as tlockney_away
<tab1293> can someone explain what the keyword Some does in ocaml. I am looking at this page but still can't figure it out http://ocaml-lib.sourceforge.net/doc/Option.html
rgrinberg has joined #ocaml
clan has joined #ocaml
tab1293 has quit [Ping timeout: 245 seconds]
mcclurmc has quit [Remote host closed the connection]
iorivur has quit [Ping timeout: 276 seconds]
iorivur has joined #ocaml
araujo has quit [Quit: Leaving]
csakatoku has quit []
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
tautologico has joined #ocaml
axiles has joined #ocaml
michael_lee has quit [Quit: Ex-Chat]
dapz has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
iorivur has quit [Ping timeout: 252 seconds]
racycle__ has quit [Quit: ZZZzzz…]
ygrek has quit [Ping timeout: 240 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ocaml
iorivur has joined #ocaml
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ocaml
alinab has joined #ocaml
tov has joined #ocaml
nikki93 has quit [Remote host closed the connection]
elfring has joined #ocaml
nikki93 has joined #ocaml
jao has quit [Ping timeout: 276 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ocaml
Simn has joined #ocaml
slash^ has joined #ocaml
IbnFirnas_ has quit [Ping timeout: 246 seconds]
IbnFirnas_ has joined #ocaml
Eyyub has joined #ocaml
nikki93 has quit [Remote host closed the connection]
clan has quit [Quit: clan]
ggole has joined #ocaml
ygrek has joined #ocaml
paolooo has joined #ocaml
paolooo has quit [Client Quit]
paolooo has joined #ocaml
paolooo has quit [Client Quit]
tab1293 has joined #ocaml
iorivur has quit [Ping timeout: 252 seconds]
steshaw has joined #ocaml
skchrko has joined #ocaml
iorivur has joined #ocaml
<flux> tab1293, it's a constuctor
<flux> it could be defined like: type 'a option = None | Some of 'a
<flux> so Some 42 produces a value of type int option, with said value
<tab1293> so if you None would match Some 42 flux?
<flux> None would not match Some 42
<flux> only Some 42 matches Some 42 :)
<tab1293> Then what is the None | Some of 'a mean
<tab1293> still confused what that definition that you wrote is
<tab1293> Like where does "Some 42" match into the definition "type 'a option = None | Some of 'a" flux
<flux> tab1293, it's inside the compiler, because the language itself uses it for optional arguments
<flux> so that line probably doesn't exist by itself anywhere, but if you wanted to define a type that behaved exactly the same, that would be it
<tab1293> So if you passed Some 42 is an optional argument to a function?
<flux> hmm
<flux> so if what?
<flux> you can pass Some 42 as a value to a function just the same as any other value
<flux> but compiler has this special support for ?arguments
<flux> such as let foo ?arg i = match arg with None -> i | Some x -> x
<flux> so the types need to be there before the compiler can use them, therefore they need to be built-in
<ggole> It's in pervasives.ml, but commented out.
Eyyub has quit [Ping timeout: 245 seconds]
marr has joined #ocaml
kig has joined #ocaml
IbnFirnas_ has quit [Ping timeout: 246 seconds]
IbnFirnas_ has joined #ocaml
tab1293 has quit [Ping timeout: 252 seconds]
maattdd has joined #ocaml
Kakadu has joined #ocaml
bartbes_ is now known as bartbes
iorivur has quit [Remote host closed the connection]
pminten has joined #ocaml
rand000 has joined #ocaml
troydm has quit [Ping timeout: 252 seconds]
johnf has quit [Read error: Connection reset by peer]
johnf has joined #ocaml
zpe has joined #ocaml
maattdd has quit [Ping timeout: 245 seconds]
johnf has quit [Read error: Connection reset by peer]
johnf has joined #ocaml
ollehar has joined #ocaml
elfring has quit [Quit: Konversation terminated!]
kig has quit [Quit: kig]
marr has quit []
Geir_ has joined #ocaml
Geir_ has quit [Client Quit]
Geir_ has joined #ocaml
Geir_ is now known as bunzen
iorivur has joined #ocaml
maattdd has joined #ocaml
dsheets has quit [Ping timeout: 245 seconds]
kig has joined #ocaml
milosn has quit [Remote host closed the connection]
Anarchos has joined #ocaml
iorivur has quit [Ping timeout: 245 seconds]
milosn has joined #ocaml
ia0 has quit [Quit: leaving]
ia0 has joined #ocaml
iorivur has joined #ocaml
pminten has quit [Quit: Leaving]
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #ocaml
skchrko has quit [Ping timeout: 250 seconds]
rand000 has quit [Ping timeout: 240 seconds]
araujo has joined #ocaml
araujo has quit [Changing host]
araujo has joined #ocaml
skchrko has joined #ocaml
iorivur has quit [Ping timeout: 245 seconds]
kig has quit [Quit: kig]
ollehar has quit [Ping timeout: 240 seconds]
ollehar has joined #ocaml
ygrek has quit [Ping timeout: 276 seconds]
pminten has joined #ocaml
tobiasBora has joined #ocaml
studybot has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
steshaw has quit [Quit: Leaving.]
ollehar has quit [Ping timeout: 240 seconds]
watermind has joined #ocaml
ddosia has joined #ocaml
studybot has joined #ocaml
studybot_ has joined #ocaml
rand000 has joined #ocaml
studybot has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
lordkryss has joined #ocaml
q66 has joined #ocaml
q66 has quit [Changing host]
q66 has joined #ocaml
<gasche> Drup , mfp : the thing about -pack you discussed, with an improvement in trunk, would correspond to module aliases
<gasche> the problem is that nobody knows that most of the new module construct mean (module type of, destructive substitution, etc.), so you should expect the feature to have a lot of rough edges even after the release
iorivur has joined #ocaml
<mrvn> I guess "type of" could replace much need for packs.
<Drup> gasche: ah, thanks for the reference, I knew it was somewhere :)
ygrek has quit [Ping timeout: 264 seconds]
ollehar has joined #ocaml
NoNNaN has quit [Ping timeout: 272 seconds]
NoNNaN has joined #ocaml
<gasche> Drup: Google search with site:caml.inria.fr/mantis is quite efficient at finding relevant issues
<gasche> (I suppose real developers just know the PR numbers)
Anarchos has joined #ocaml
racycle__ has joined #ocaml
divyanshu has quit [Quit: Computer has gone to sleep.]
rand000 has quit [Ping timeout: 240 seconds]
divyanshu has joined #ocaml
divyanshu has quit [Client Quit]
S11001001 has joined #ocaml
S11001001 has quit [Changing host]
S11001001 has joined #ocaml
divyanshu has joined #ocaml
racycle__ has quit [Quit: ZZZzzz…]
shinnya has joined #ocaml
ygrek has joined #ocaml
divyanshu has quit [Quit: Computer has gone to sleep.]
saml has joined #ocaml
maattdd has quit [Ping timeout: 240 seconds]
hto has quit [Read error: Connection reset by peer]
darkf has quit [Quit: Leaving]
sari_e has joined #ocaml
sari_e is now known as Eyyub
maattdd has joined #ocaml
divyanshu has joined #ocaml
ygrek has quit [Ping timeout: 252 seconds]
ygrek has joined #ocaml
tane has joined #ocaml
tani has joined #ocaml
tobiasBora has quit [Ping timeout: 240 seconds]
tane has quit [Ping timeout: 252 seconds]
tobiasBora has joined #ocaml
metasyntax has joined #ocaml
lordkryss has quit [Quit: Connection closed for inactivity]
Eyyub has quit [Quit: WeeChat 0.4.1]
slash^ has quit [Ping timeout: 250 seconds]
slash^ has joined #ocaml
nlucaroni has joined #ocaml
nojb has joined #ocaml
rand000 has joined #ocaml
mcclurmc has joined #ocaml
tobiasBora has quit [Quit: Konversation terminated!]
rgrinberg has joined #ocaml
racycl___ has joined #ocaml
pminten has quit [Quit: Leaving]
lostcuaz has joined #ocaml
hto has joined #ocaml
dapz has joined #ocaml
nojb has quit [Ping timeout: 252 seconds]
divyanshu has quit [Ping timeout: 276 seconds]
divyanshu has joined #ocaml
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ocaml
tlockney_away is now known as tlockney
troydm has joined #ocaml
Hannibal_Smith has joined #ocaml
jwatzman|work has joined #ocaml
shinnya has quit [Ping timeout: 264 seconds]
q66 has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Quit: Leaving.]
rgrinberg has joined #ocaml
q66 has joined #ocaml
q66 has quit [Changing host]
q66 has joined #ocaml
nikki93 has joined #ocaml
boogie has joined #ocaml
maattdd has quit [Ping timeout: 265 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kakadu has quit [Ping timeout: 240 seconds]
ygrek has quit [Ping timeout: 276 seconds]
ollehar has quit [Ping timeout: 240 seconds]
slash^ has quit [Remote host closed the connection]
boogie has quit [Read error: Connection reset by peer]
boogie has joined #ocaml
Thooms has joined #ocaml
boogie has quit [Read error: Connection reset by peer]
boogie has joined #ocaml
Averell has quit [Read error: Connection reset by peer]
elfring has joined #ocaml
nikki93 has quit [Remote host closed the connection]
<nlucaroni> Is there a directory/filesystem notification or monitoring library for ocaml that is x-platform? (I see inotify bindings for linux, and of course explicitly monitoring Unix.[lf]stat on files/directories)
maattdd has joined #ocaml
ygrek has joined #ocaml
WraithM has joined #ocaml
averell has joined #ocaml
maattdd has quit [Ping timeout: 252 seconds]
patojo has joined #ocaml
malo has joined #ocaml
nikki93 has joined #ocaml
<adrien> well, you should first try to find a C library that is cross-platform
<adrien> I think glib has something
<ousado> libuv maybe
<ousado> but even there supported features are very OS specific
boogie has quit [Ping timeout: 252 seconds]
Kakadu has joined #ocaml
<nlucaroni> Yes, good call. I'll check those out.
WraithM has quit [Ping timeout: 276 seconds]
manizzle has joined #ocaml
ygrek has quit [Ping timeout: 276 seconds]
nikki93 has quit []
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
watermind has quit [Ping timeout: 252 seconds]
clan has joined #ocaml
ollehar has joined #ocaml
Hannibal_Smith has quit [Quit: Sto andando via]
maattdd has joined #ocaml
maattdd has quit [Ping timeout: 252 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
mpmilano has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg1 has joined #ocaml
rgrinberg has quit [Ping timeout: 252 seconds]
jbrown has joined #ocaml
ollehar has quit [Quit: ollehar]
rand000 has quit [Ping timeout: 264 seconds]
<smondet> Hi, has anyone tried ocamljava (2.x) recently? any insights about it becoming open-source?
<companion_cube> no idea :/
S11001001 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
claudiuc has joined #ocaml
ollehar has joined #ocaml
watermind has joined #ocaml
maattdd has joined #ocaml
shinnya has joined #ocaml
maattdd has quit [Ping timeout: 252 seconds]
ikaros has joined #ocaml
teolicy has joined #ocaml
axiles has quit [Remote host closed the connection]
<teolicy> Hi, I'm new to OCaml and have a trivial question. I'm going through the 99 problems (http://ocaml.org/learn/tutorials/99problems.html) page on ocaml.org.
<teolicy> Here's my solution for finding a list's length, vs. the ocaml.org solution: http://pastebin.com/rNJRastW
<Drup> pretty much the same
<teolicy> I don't understand the 'function' keyword, and was probably unable to find the right documentation for it.
<teolicy> Where is it defined, in a language reference kind of way?
<Drup> "let f = function ..." ≡ "let f x = match x with ..."
<Drup> I think it's somwhere in the ocaml manual, it's not very important, just a nice syntactic shortcut :)
<teolicy> "let f x = function ..." == "let f x y = match y with ..." ?
<Drup> yes
<teolicy> OK
<teolicy> Thanks, I knew it was probably trivial, but wanted to be sure.
<Drup> no problem :)
tlockney is now known as tlockney_away
tlockney_away is now known as tlockney
tani has quit [Quit: Verlassend]
divyanshu has quit [Quit: Computer has gone to sleep.]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
maattdd has joined #ocaml
Simn has quit [Quit: Leaving]
elfring has quit [Quit: Konversation terminated!]
rand000 has joined #ocaml
watermind has quit [Ping timeout: 265 seconds]
jwatzman|work has quit [Quit: jwatzman|work]
teolicy has quit [Quit: kthxbye]
jwatzman|work has joined #ocaml
patojo has quit [Remote host closed the connection]
boogie has joined #ocaml
wwilly has quit [Remote host closed the connection]
watermind has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
ollehar has quit [Ping timeout: 264 seconds]
Kakadu has quit [Quit: Konversation terminated!]
WraithM has joined #ocaml
watermind has quit [Ping timeout: 264 seconds]
Thooms has quit [Ping timeout: 276 seconds]
watermind has joined #ocaml
nojb has joined #ocaml
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkf has joined #ocaml
ccasin has quit [Ping timeout: 246 seconds]
ccasin has joined #ocaml
jbrown has quit [Ping timeout: 252 seconds]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
tlockney is now known as tlockney_away
jbrown has joined #ocaml
ThatTreeOverTher has joined #ocaml
rand000 has quit [Quit: leaving]
foocraft has joined #ocaml
madroach has quit [Ping timeout: 252 seconds]
madroach has joined #ocaml
maurer has quit [Ping timeout: 240 seconds]
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #ocaml
watermind has quit [Quit: Konversation terminated!]
ggole has quit []
tab1293 has joined #ocaml
<tab1293> I am trying to dechipher this code but am having a little trouble of following it: https://github.com/jzhang121391/COMSCI131_Homework2/blob/master/hw2.ml
<tab1293> so when matcher is called on line 33 is it actually running the check_rest function on line 30?