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>
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
<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]
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."
<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…]