adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
okuu has quit [Remote host closed the connection]
okuu has joined #ocaml
okuu has quit [Ping timeout: 255 seconds]
spew has quit [Quit: Connection closed for inactivity]
okuu has joined #ocaml
jim7j1ajh is now known as jimt
Haudegen has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 246 seconds]
silver has quit [Read error: Connection reset by peer]
themsay has quit [Ping timeout: 246 seconds]
themsay has joined #ocaml
ricekrispie has joined #ocaml
AnAverageHuman has joined #ocaml
okuu has quit [Ping timeout: 258 seconds]
AtumT has quit [Quit: AtumT]
louisg has joined #ocaml
<louisg> Quick question: trying to find the source of an out of memory. Running with v=63 tells me it's a stack overflow in structural comparison. I've tried running my program under ocamldebug, but after it OOMs I can't look at the stack. Most directly: how can I see the stack at OOM-time? In general: how do I debug this kind of OOM/runaway stack?
jao has quit [Ping timeout: 246 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 250 seconds]
ricekrispie2 has joined #ocaml
ricekrispie has quit [Ping timeout: 245 seconds]
h11 has quit [Ping timeout: 255 seconds]
h11 has joined #ocaml
sonologico has joined #ocaml
caltelt_ has joined #ocaml
gravicappa has joined #ocaml
<companion_cube> try OCAMLRUNPARAM=b? might get a stacktrace
caltelt_ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
kalio has quit [Ping timeout: 250 seconds]
kalio has joined #ocaml
xuib has joined #ocaml
nullifidian has quit [Read error: Connection reset by peer]
nullifidian_ has joined #ocaml
_whitelogger has joined #ocaml
stux|RC-only has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Birdface has joined #ocaml
FreeBirdLjj has joined #ocaml
raduom has quit [Quit: Textual IRC Client: www.textualapp.com]
zolk3ri has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
zolk3ri has joined #ocaml
q9929t has joined #ocaml
q9929t has quit [Client Quit]
kvda has joined #ocaml
amiloradovsky has joined #ocaml
stux|RC-only has joined #ocaml
mfp has joined #ocaml
stux|RC-only has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
kakadu_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ocaml
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ocaml
dimitarvp has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
dimitarvp has quit [Read error: Connection reset by peer]
dimitarvp has joined #ocaml
stux|RC-only has joined #ocaml
h11 has quit [*.net *.split]
ansiwen has quit [*.net *.split]
MasseR has quit [*.net *.split]
cthuluh has quit [*.net *.split]
def` has quit [*.net *.split]
cow-orker has quit [*.net *.split]
Robdor has quit [*.net *.split]
rntz_tmp has quit [*.net *.split]
sim642 has quit [*.net *.split]
cthuluh has joined #ocaml
Haudegen has joined #ocaml
sim642 has joined #ocaml
rntz_tmp has joined #ocaml
ansiwen has joined #ocaml
MasseR has joined #ocaml
Robdor has joined #ocaml
h11 has joined #ocaml
jack5638 has quit [Ping timeout: 255 seconds]
jack5638 has joined #ocaml
ggole has joined #ocaml
cow-orker has joined #ocaml
def` has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
dimitarvp has quit [Read error: Connection reset by peer]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tane has joined #ocaml
jnavila has joined #ocaml
stux|RC-only has quit [Quit: Aloha!]
zapashcanon_ has left #ocaml [#ocaml]
zapashcanon has joined #ocaml
silver has joined #ocaml
tane has quit [Quit: Leaving]
stux|RC-only has joined #ocaml
AnAverageHuman has joined #ocaml
jao has joined #ocaml
jao has quit [Ping timeout: 245 seconds]
bartholin has quit [Remote host closed the connection]
zolk3ri has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
yomimono has quit [Ping timeout: 246 seconds]
xuib has quit [Ping timeout: 250 seconds]
<Ankhers> In Erlang if I need to pass a named function into a function as an argument, I can do something like `lists:map(fun function/1, List).' instead of `lists:map(fun(Arg) -> function(Arg), List).' Is there something similar in OCaml where I don't have to write out the entire argument list and manually apply it to the function? (I think this is called eta reduction?)
<Fardale> Ankhers: I am not sure I understand your question, in ocaml you can right: List.map function list
<Fardale> this will apply `function` to every element of the list `list`
<Ankhers> Fardale: That did it. I thought I still needed to use the `fun' syntax in some way. Thanks!
cantstanya has quit [Remote host closed the connection]
yomimono has joined #ocaml
cantstanya has joined #ocaml
<Ankhers> Is there a way to have a type constructor to have multiple values or are you supposed to use tuples for that?
<Fardale> type t = Plop string * int * string
<Ankhers> Isn't that a tuple?
<Fardale> this is not a tuple
<Ankhers> Oh okay
<Fardale> type t = Plop (string * int * string)
<Fardale> this is a tuple (yes it is a bit confusing)
<ggole> You can attach records too, if you want names for the parts
<Ankhers> `type foo = | Foo of int * string | Bar of int * float'` This should work too, right? How do I pattern match on that? I have `let f = function | Foo index val -> ...', but I am getting a syntax error.
<ggole> Foo (index, val)
<ggole> Constructor argument lists do *look* like tuples, both in construction and destruction
<Ankhers> But it still isn't a tuple? Can I get a link to the documentation surrounding this please?
<ggole> But they aren't tuples as an optimisation
<ggole> You cannot match Foo args, or construct a Foo int_string_pair
<ggole> (Foo _ is a valid pattern as a special case.)
<Ankhers> ggole, Fardale: Thanks for the help here. I guess it is just something I am going to need to get used to.
FreeBirdLjj has quit [Remote host closed the connection]
ygrek has joined #ocaml
themsay has quit [Ping timeout: 250 seconds]
themsay has joined #ocaml
FreeBirdLjj has joined #ocaml
sonologico has quit [Remote host closed the connection]
yomimono has quit [Ping timeout: 255 seconds]
yomimono has joined #ocaml
AtumT has joined #ocaml
bartholin has joined #ocaml
Haudegen has quit [Remote host closed the connection]
quarters has quit [Changing host]
quarters has joined #ocaml
quarters has joined #ocaml
jao has joined #ocaml
tane has joined #ocaml
gravicappa has quit [Ping timeout: 245 seconds]
yomimono has quit [Ping timeout: 268 seconds]
<hannes> how can I do cross references in ocaml's mli files? I have a package foo where I'd like to refer to package foo-abc (that defines module Foo_abc)?
<hannes> I tried to use {!Foo_abc}, but odoc doesn't seem to find the foo-abc package :/
<hannes> now, I don't have any build-dependency of foo-abc in foo, since that's the other way around -- but I'd like to forward-refer to foo-abc -- is this possible?
<Fardale> maybe you can do that by adding foo-abc as a doc dependency of foo
<Fardale> But I am not sure
<hannes> Fardale: how would I do this?
yomimono has joined #ocaml
<Fardale> in the opam file, you add: "foo-abc" { with-doc }
<Fardale> in the depends section
<Fardale> that means that you need this package only if you want to build the doc. It is often use this for the odoc dependency
<hannes> Fardale: hmm, thanks, this won't work here since I use odoc and dune -- and no opam..
<hannes> (but I can try nevertheless)
pierpal has quit [Remote host closed the connection]
gareppa has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
nullifidian__ has joined #ocaml
Haudegen has joined #ocaml
<hannes> and another question: I use dune's private_modules to hide some modules from the public, but dune build @doc generates _in the index_ a list of these private modules (yes, I have some mli files there, but I nevertheless want them to be used only internally by the library) -- is this a bug or am i doing something wrong?
yomimono has quit [Quit: Lost terminal]
nullifidian_ has quit [Ping timeout: 255 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ocaml
themsay has quit [Ping timeout: 245 seconds]
gareppa has quit [Quit: Leaving]
gareppa has joined #ocaml
xuib has joined #ocaml
gravicappa has joined #ocaml
caltelt_ has joined #ocaml
ggole has quit [Quit: Leaving]
themsay has joined #ocaml
jao has quit [Ping timeout: 246 seconds]
gareppa has quit [Quit: Leaving]
jao has joined #ocaml
gravicappa has quit [Ping timeout: 246 seconds]
Gertm has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
themsay has quit [Ping timeout: 245 seconds]
tristero has joined #ocaml
Birdface has quit [Ping timeout: 250 seconds]
jnavila has quit [Remote host closed the connection]
unyu has quit [Quit: ERC (IRC client for Emacs 26.1)]
unyu has joined #ocaml
tane has quit [Quit: Leaving]
kalio has quit [Quit: WeeChat 2.4]
kalio has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
amiloradovsky has quit [Ping timeout: 245 seconds]