adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.02.2 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
<taigi100> this function wants me to give it 2 params, I guess n and rev, why?
Algebr` has quit [Ping timeout: 265 seconds]
<Soni> so nobody told me how to learn ocaml without Real World Ocaml
Bluddy has joined #ocaml
tianon has joined #ocaml
<Drup> taigi100: It doesn't take 2 parameters, but you missapplied g
<Drup> g should take two parameters and you gave only one
<taigi100> I gave it 2 ... or so I though I did
<taigi100> and that tells me that /10 is not a function ...
<Drup> taigi100: stop using parens to give parameters :)
<Drup> function application of multiple parameters is "f x y z"
<Drup> not "f( x y z)"
<taigi100> ok
<taigi100> and what has priority in this language?
tianon has quit [Ping timeout: 255 seconds]
<Drup> http://caml.inria.fr/pub/docs/manual-ocaml/expr.html go down a bit, and you'll know everything
thmslld has joined #ocaml
taigi100 has quit [Quit: Page closed]
raazdaan has joined #ocaml
f[x] has quit [Ping timeout: 255 seconds]
raazdaan has quit [Client Quit]
ohama has quit [Ping timeout: 240 seconds]
toomuchtvrotsurb has joined #ocaml
Snark has quit [Ping timeout: 240 seconds]
Snark has joined #ocaml
c74d3a has quit [Read error: Connection reset by peer]
c74d3a has joined #ocaml
ygrek has joined #ocaml
relrod_ is now known as relrod
<Soni> is this any good? http://ocaml.github.io/ocamlunix/
c74d3a has quit [Ping timeout: 252 seconds]
<smondet> Soni: yes, I knew the french version, but i've heard that the translation effort was pretty good too
c74d3a4 has joined #ocaml
obadz` has joined #ocaml
raazdaan has joined #ocaml
raazdaan has quit [Client Quit]
c74d3a4 has quit [Read error: Connection reset by peer]
c74d3a4 has joined #ocaml
ohama has joined #ocaml
ohama has quit [Remote host closed the connection]
ohama has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
c74d3a4 has quit [Ping timeout: 264 seconds]
c74d3a4e has joined #ocaml
^elyse^ has quit [Quit: Leaving]
toomuchtvrotsurb has quit [Remote host closed the connection]
tmtwd has joined #ocaml
c74d3a4e has quit [Read error: Connection reset by peer]
c74d3a4e has joined #ocaml
obadz- has quit [Quit: leaving]
toomuchtvrotsurb has joined #ocaml
rgrinberg has quit [Ping timeout: 264 seconds]
c74d3a4e has quit [Remote host closed the connection]
toomucht_ has joined #ocaml
obadz` has quit [Quit: WeeChat 1.3]
obadz- has joined #ocaml
obadz has quit [Disconnected by services]
obadz- is now known as obadz
toomuchtvrotsurb has quit [Read error: Connection reset by peer]
toomuch__ has joined #ocaml
c74d3a4e has joined #ocaml
toomuchtvrotsurb has joined #ocaml
toomucht_ has quit [Ping timeout: 250 seconds]
toomuchtvrotsurb has quit [Remote host closed the connection]
toomuch__ has quit [Ping timeout: 265 seconds]
toomucht_ has joined #ocaml
toomucht_ has quit [Remote host closed the connection]
obadz has quit [Ping timeout: 264 seconds]
rgrinberg has joined #ocaml
NhanH has quit [Ping timeout: 250 seconds]
oldmanistan_ has quit [Ping timeout: 246 seconds]
lambdahands has quit [Ping timeout: 252 seconds]
Bluddy has quit [Read error: Connection reset by peer]
cojy has quit [Ping timeout: 240 seconds]
n1ftyn8_ has quit [Ping timeout: 252 seconds]
rfv has quit [Ping timeout: 246 seconds]
msch has quit [Ping timeout: 246 seconds]
<Soni> smondet, who's it aimed at?
ncthom91 has joined #ocaml
tianon has joined #ocaml
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
lambdahands has joined #ocaml
n1ftyn8_ has joined #ocaml
mac10688_ has quit [Ping timeout: 250 seconds]
oldmanistan_ has joined #ocaml
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has joined #ocaml
Algebr` has joined #ocaml
raazdaan has joined #ocaml
swgillespie has joined #ocaml
ygrek has joined #ocaml
tmtwd has quit [Ping timeout: 250 seconds]
<smondet> Soni: not sure, it's about unix system programming basics, but in OCaml instead of C, so it stresses on the logic, the APIs, concurrency, and not stupid buffer sizes and `void*` function pointers
Bluddy has joined #ocaml
raazdaan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nullcatxxx_ has joined #ocaml
rfv has joined #ocaml
kdas_ has quit [Quit: Leaving]
mrhmouse has joined #ocaml
<mrhmouse> Hey #ocaml :) I'm having issues getting opam to build under Linux 4.2.2, x64
<Algebr`> Can you provide more info?
<mrhmouse> Yep! Working on getting a paste up, sorry. Slow tonight
<mrhmouse> http://ix.io/llN
<mrhmouse> It asks at the bottom that I recompile with -fPIC
<mrhmouse> This is on the current master branch, but I get the same issue under release 1.2.2
<mrhmouse> I haven't attempted earlier releases.
<mrhmouse> OCaml version is 4.02.3, if that helps
shinnya has quit [Ping timeout: 264 seconds]
NhanH has joined #ocaml
nullcatxxx_ has quit [Read error: Connection reset by peer]
nullcatx_ has joined #ocaml
<enjolras_> i can't really help, never got that familiar about these linking issues, but where you ocaml compiler comes from ?
<Algebr`> that's a error beyond my understanding as well, but thank you for using ix, that's a really neat tool
<enjolras_> the error, i get it. libasmrun.a doesn't contain PIC objects and it's trying to be linked with PIC code in a dynamic elf
<enjolras_> now, i don't know what the real error is
<enjolras_> mrhmouse: have you tried the opam installer which will dowload its own ocaml compiler ?
<mrhmouse> the OCaml compiler is from Arch Linux repositories, so maybe this is a packaging issue?
<enjolras_> mrhmouse: you could also download a pre-built binary and start from here
keen__________10 has joined #ocaml
<enjolras_> mrhmouse: have you tried with opam from AUR also ?
<mrhmouse> Enjolras_: yes, opam from AUR just downloads release 1.2.2 and builds it
<mrhmouse> where I get the same error :(
<enjolras_> idk then :/
keen___________9 has quit [Ping timeout: 250 seconds]
SomeDamnBody has joined #ocaml
<mrhmouse> speaking of binary releases, any idea why the ARMv6 target was dropped? There's only ARMv7 now, and my poor Raspberry Pi cannot build the dependencies to opam :(
<enjolras_> now, if you are on 64bits, not sure why libasmrun is built for 32bits
<SomeDamnBody> I'm trying to use ppx extensions through the ppx_deriving
<mrhmouse> I'll check if I have some lib32- variant in the wrong spot, but I doubt it
<SomeDamnBody> and I think I'm missing something some how, because I keep getting syntax errors
<enjolras_> https://github.com/ocaml/opam/releases/download/1.2.2/opam-1.2.2-x86_64-Linux you could dowload this if you don't want to struggle with build
<SomeDamnBody> so, I have this record type, type xyz = { a : string ; b : int } [@@deriving enum] or some such
<SomeDamnBody> there must be something I should be passing to the compiler, because this is the valid syntax that is advocated on the github page
<SomeDamnBody> and that is demonstrated in the examples that work when you checkout the ppx_deriving repository and build it
<SomeDamnBody> Parse error: semi expected after str_item in implem
<mrhmouse> Enjolras_: Thanks, that solves my immediate issue. I'll file a bug report for the build problem tomorrow :)
<enjolras_> you can also try make cold to build with opam's built ocaml compiler
<mrhmouse> That dies, too :/
<mrhmouse> "gzip: stdin: unexpected end of file"
<mrhmouse> and a few similar errors from tar
<mrhmouse> Just after printing "hevea-1.10.patch".. What's interesting is that it appears to download OCaml 4.02.1, whereas I have 4.02.3
<enjolras_> gzip stuff : retry, maybe a newtork error
<mrhmouse> It dies in different places each time, but with the same cause.
<mrhmouse> Odd.
<enjolras_> :/
<mrhmouse> If I run 'make clean' prior to 'make cold', it always dies just after "hevea", though this is likely coincidence
Bluddy has quit [Quit: Connection closed for inactivity]
cojy has joined #ocaml
nullcatx_ has quit [Ping timeout: 250 seconds]
msch has joined #ocaml
ggole has joined #ocaml
slash^ has joined #ocaml
Algebr` has quit [Ping timeout: 252 seconds]
MercurialAlchemi has joined #ocaml
rgrinberg has quit [Ping timeout: 240 seconds]
rgrinberg has joined #ocaml
psy_ has quit [Ping timeout: 255 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy has joined #ocaml
Boerkaas has quit [Ping timeout: 250 seconds]
Korhonen has joined #ocaml
psy has quit [Remote host closed the connection]
psy has joined #ocaml
rgrinberg has quit [Ping timeout: 250 seconds]
ril has joined #ocaml
ril is now known as ril[away]
ril[away] is now known as ril
c74d3a4e has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
c74d3a4e has joined #ocaml
rgrinberg has quit [Ping timeout: 268 seconds]
ril is now known as ril[away]
ril[away] is now known as ril
rfv has quit [Remote host closed the connection]
cojy has quit [Remote host closed the connection]
oldmanistan_ has quit [Remote host closed the connection]
NhanH has quit [Remote host closed the connection]
n1ftyn8_ has quit [Remote host closed the connection]
msch has quit [Remote host closed the connection]
lambdahands has quit [Remote host closed the connection]
NhanH has joined #ocaml
oldmanistan_ has joined #ocaml
cojy has joined #ocaml
kushal has joined #ocaml
n1ftyn8_ has joined #ocaml
ril is now known as ril[away]
ril[away] is now known as ril
rand__ has joined #ocaml
LnL has quit [Read error: Connection reset by peer]
LnL has joined #ocaml
msch has joined #ocaml
rfv has joined #ocaml
wwilly has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
slash^ has joined #ocaml
AlexRussia has quit [Quit: WeeChat 1.4-dev]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slash^ has quit [Read error: Connection reset by peer]
lambdahands has joined #ocaml
AlexRussia has joined #ocaml
AlexRussia has quit [Quit: WeeChat 1.4-dev]
AlexRussia has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 256 seconds]
ygrek has quit [Ping timeout: 255 seconds]
mort___ has joined #ocaml
sh0t has joined #ocaml
tane has joined #ocaml
ollehar has joined #ocaml
SomeDamnBody has quit [Ping timeout: 250 seconds]
OnkV has quit [Ping timeout: 240 seconds]
enjolras_ has quit [Quit: leaving]
sh0t has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
Enjolras has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 268 seconds]
Enjolras has quit [Quit: utf8...]
sh0t has joined #ocaml
kushal has quit [Ping timeout: 265 seconds]
Enjolras has joined #ocaml
mea-culpa has joined #ocaml
wwilly has quit [Read error: Connection reset by peer]
wwilly has joined #ocaml
^elyse^ has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 252 seconds]
sgnb has quit [Remote host closed the connection]
zaquest has quit [Quit: Leaving]
orbifx has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 252 seconds]
lobo has joined #ocaml
psy has quit [Ping timeout: 246 seconds]
psy has joined #ocaml
yomimono has joined #ocaml
segmond has quit [Ping timeout: 240 seconds]
rand__ has quit [Quit: leaving]
obadz has joined #ocaml
mac10688_ has joined #ocaml
slash^ has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 250 seconds]
lobo has quit [Quit: leaving]
xet7_ has quit [Ping timeout: 260 seconds]
zaquest has joined #ocaml
manuel_ has joined #ocaml
<Korhonen> Is there a way to declare a binding ahead similar to C prototypes other than using "let rec ... and"?
<ggole> Not really
<ggole> There's a hack involving recursive modules, but you don't wanna do that
wwilly has left #ocaml ["Leaving"]
^elyse^ has quit [Quit: Leaving]
<dmbaturin> Korhonen: Why do you want it though?
mac10688_ has quit [Ping timeout: 240 seconds]
Bluddy has joined #ocaml
<Korhonen> dmbaturin, just to re-arrange code in a more pleasant way, it's certainly not absolutely required I like two functions to be some-what further apart right now.
lobo has joined #ocaml
<ggole> If it is only one small part that contains the dependency, you could try to factor that out
<ggole> But in general you need let rec.
^elyse^ has joined #ocaml
rgrinberg has joined #ocaml
shinnya has joined #ocaml
sh0t has quit [Ping timeout: 244 seconds]
mac10688_ has joined #ocaml
rgrinberg has quit [Ping timeout: 260 seconds]
xet7_ has joined #ocaml
tane has quit [Quit: Verlassend]
sgnb has joined #ocaml
orbifx has quit [Ping timeout: 268 seconds]
xet7_ has quit [Read error: Connection reset by peer]
xet7_ has joined #ocaml
mort___ has quit [Quit: Leaving.]
xet7_ is now known as xet7
yomimono has quit [Ping timeout: 240 seconds]
^elyse^ has quit [Quit: Leaving]
rgrinberg has joined #ocaml
mac10688_ has quit [Ping timeout: 256 seconds]
ollehar has quit [Ping timeout: 256 seconds]
<tibor_> How can I define an enum type in ocaml?
<Drup> type my_enum = Foo | Bar | Baz
<tibor_> type ss = a | b | c;;?
<tibor_> Thank you
<lobo> tibor_: nope. names must start uppercase. A | B | C
kushal has joined #ocaml
^elyse^ has joined #ocaml
kushal has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 256 seconds]
ollehar has joined #ocaml
kushal has joined #ocaml
kushal has quit [Read error: Connection reset by peer]
tmtwd has joined #ocaml
jgjl has joined #ocaml
thmslld has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
Korhonen has quit [Changing host]
Korhonen has joined #ocaml
tmtwd has joined #ocaml
tmtwd has quit [Quit: Leaving]
thmslld has joined #ocaml
xet7_ has joined #ocaml
xet7 has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Ping timeout: 265 seconds]
tmtwd has joined #ocaml
SomeDamnBody has joined #ocaml
manuel_ has quit [Quit: manuel_]
mea-culpa` has joined #ocaml
mv has joined #ocaml
mea-culpa has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
rgrinberg has joined #ocaml
swgillespie has joined #ocaml
xet7_ is now known as xet7
tmtwd has quit [Ping timeout: 260 seconds]
swgillespie is now known as swgillespie[ATL]
mort___ has joined #ocaml
rgrinberg has quit [Ping timeout: 250 seconds]
rgrinberg has joined #ocaml
shinnya has joined #ocaml
infinity0 has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
infinity0 has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
xet7_ has joined #ocaml
xet7 has quit [Read error: Connection reset by peer]
lobo has quit [Quit: leaving]
xet7 has joined #ocaml
xet7_ has quit [Ping timeout: 264 seconds]
sh0t has joined #ocaml
jgjl has quit [Quit: Textual IRC Client: www.textualapp.com]
shinnya has quit [Ping timeout: 240 seconds]
Kakadu has joined #ocaml
Kakadu has quit []
Kakadu has joined #ocaml
toomuchtvrotsurb has joined #ocaml
TheLemonMan has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
ggole has quit []
labichn has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
jonludlam has joined #ocaml
obadz- has joined #ocaml
obadz has quit [Ping timeout: 255 seconds]
rgrinberg has quit [Ping timeout: 244 seconds]
<tobiasBora> Hello !
Haudegen has quit [Ping timeout: 268 seconds]
<tobiasBora> I have a question about ocamlbuild : some rules are defined in function of the content of a file (mlpack, mllib...)
lobo has joined #ocaml
<tobiasBora> (For example the rule "caml: mlpack & cmo* & cmi -> cmo")
<tobiasBora> How can I build myself such a strange rule ? What should I put in ~deps ?
k1000_ is now known as k1000
k1000 has left #ocaml [#ocaml]
<tobiasBora> And what are the ".d.cmo" ?
k1000 has joined #ocaml
yomimono has joined #ocaml
psy has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<Korhonen> I've installed Async_unix with opam and it shows up in utop if I do #require "async_unix" but there seems to be no way to use this #require directive in a normal source file?
<Korhonen> It says "unbound module: Async_unix" when I attempt to use it.
<flux> korhonen, the 'require' syntax comes from findlib. when compiling such modules, use the following: ocamlfind ocamlc -linkpkg async_unix -o myprogram myprogram.ml
Haudegen has joined #ocaml
swgillespie[ATL] has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ocaml
<Korhonen> flux: "ocamlc.opt: don't know what to do with async_unix."
<flux> oops, I missed the switch -package
<flux> ocamlfind ocamlc -linkpkg -package async_unix -o myprogram myprogram.ml
<flux> so for real projects one doesn't usually write that thing over and over, but use, say, ocamlbuild for building the project
<Korhonen> flux, yeah, I found a way around it by just inspecting the code of corebuild and added a line as a hack for now.
ollehar has quit [Quit: ollehar]
mv has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SomeDamnBody has quit [Ping timeout: 272 seconds]
mac10688_ has joined #ocaml
sh0t has quit [Ping timeout: 264 seconds]
shinnya has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
orbifx has joined #ocaml
toomuchtvrotsurb has joined #ocaml
orbifx has quit [Ping timeout: 250 seconds]
toomuchtvrotsurb has quit [Remote host closed the connection]
labichn has quit [Ping timeout: 246 seconds]
sh0t has joined #ocaml
obadz- has quit [Ping timeout: 244 seconds]
mea-culpa` is now known as mea-culpa
swgillespie has joined #ocaml
monod has joined #ocaml
toomuchtvrotsurb has joined #ocaml
^elyse^ has quit [Quit: Leaving]
ianhedoesit has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
jave has quit [Quit: ZNC - http://znc.in]
sh0t has quit [Ping timeout: 240 seconds]
mcc has joined #ocaml
obadz- has joined #ocaml
jave has joined #ocaml
<mcc> Hellos... awhile back drup was recommending to me an ocaml-to-js compiler. this was js_of_ocaml right?
<def`> yes
<mcc> cool
browncodes has joined #ocaml
yomimono has quit [Ping timeout: 265 seconds]
mort___ has quit [Read error: Connection reset by peer]
lobo has quit [Quit: leaving]
smtb has joined #ocaml
nullcatxxx_ has joined #ocaml
obadz- is now known as obadz
smtb has quit [Quit: WeeChat 0.4.2]
smtb has joined #ocaml
<smtb> anybody have issues with opam installing conf-gmp? I'm getting error "conf-gmp is not a valid versioned package name". Not quite sure how to fix.
jonludlam has quit [Ping timeout: 250 seconds]
nullcatx_ has joined #ocaml
nullcatxxx_ has quit [Read error: Connection reset by peer]
nullcatx_ has quit [Ping timeout: 265 seconds]
Kakadu has quit [Remote host closed the connection]
damason has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Korhonen is now known as ChezDexter
MercurialAlchemi has joined #ocaml
ianhedoesit has quit [Quit: leaving]