flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml MOOC http://1149.fr/ocaml-mooc | OCaml 4.03.0 announced http://ocaml.org/releases/4.03.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
yunxing_ has joined #ocaml
TheVoid has quit [Ping timeout: 240 seconds]
seangrov` has joined #ocaml
f[x] has quit [Ping timeout: 244 seconds]
seangrove has quit [Ping timeout: 244 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
al-damiri has joined #ocaml
TheVoid has joined #ocaml
seangrov` has quit [Ping timeout: 276 seconds]
Algebr has quit [Ping timeout: 250 seconds]
connorjacobsen has joined #ocaml
connorjacobsen has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
seangrove has joined #ocaml
<seangrove> What's a good way to launch/monitor/kill multiple processes concurrently?
demonimin has quit [Remote host closed the connection]
<lin> xargs
demonimin has joined #ocaml
tmtwd has joined #ocaml
yunxing_ has quit [Ping timeout: 250 seconds]
copy` has quit [Quit: Connection closed for inactivity]
seangrove has quit [Ping timeout: 252 seconds]
adelbertc has quit [Quit: Connection closed for inactivity]
seangrove has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
zRecursive has joined #ocaml
zRecursive has quit [Remote host closed the connection]
zRecursive has joined #ocaml
atbagautdinov has joined #ocaml
atbagautdinov has left #ocaml [#ocaml]
tmtwd has quit [Ping timeout: 252 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
<seangrove> let a = 1
zRecursive has quit [Remote host closed the connection]
seangrove has quit [Ping timeout: 264 seconds]
r_rios has joined #ocaml
kushal has joined #ocaml
govg has quit [Ping timeout: 272 seconds]
yunxing_ has joined #ocaml
yunxing_ has quit [Client Quit]
<flux> gasche, right, didn't think of the -stdin switch. but I think the key here was that he wanted to evaluate two files. so it would be (cat foo.ml; cat) | ocaml -stdin - except for functions that want to use stdin themselves..
tmtwd has joined #ocaml
seangrove has joined #ocaml
rgrinberg has quit [Ping timeout: 276 seconds]
adelbertc has joined #ocaml
seangrove has quit [Ping timeout: 258 seconds]
jonasen has joined #ocaml
Algebr has joined #ocaml
MercurialAlchemi has joined #ocaml
seangrove has joined #ocaml
r_rios has quit [Quit: Konversation terminated!]
atbagautdinov has joined #ocaml
kushal has quit [Quit: Leaving]
seangrove has quit [Ping timeout: 272 seconds]
govg has joined #ocaml
tmtwd has quit [Ping timeout: 276 seconds]
MercurialAlchemi has quit [Ping timeout: 250 seconds]
tmtwd has joined #ocaml
seangrove has joined #ocaml
zRecursive has joined #ocaml
seangrove has quit [Ping timeout: 240 seconds]
parataxis has quit [Ping timeout: 250 seconds]
seangrove has joined #ocaml
msch has quit [Ping timeout: 250 seconds]
caw has quit [Ping timeout: 250 seconds]
trevorriles has quit [Ping timeout: 250 seconds]
emmanueloga has quit [Ping timeout: 250 seconds]
yunxing has quit [Ping timeout: 260 seconds]
chenglou has quit [Ping timeout: 260 seconds]
stephe_ has quit [Ping timeout: 260 seconds]
fUD has quit [Ping timeout: 272 seconds]
myst|fon has quit [Ping timeout: 260 seconds]
l1x has quit [Ping timeout: 260 seconds]
andreypopp has quit [Ping timeout: 260 seconds]
bigs has quit [Ping timeout: 260 seconds]
lopex has quit [Ping timeout: 260 seconds]
mattg has quit [Ping timeout: 260 seconds]
rfv has quit [Ping timeout: 260 seconds]
cannedprimates has quit [Ping timeout: 260 seconds]
yunxing has joined #ocaml
mankyKitty has quit [Ping timeout: 250 seconds]
jkni has quit [Ping timeout: 272 seconds]
jeroud has quit [Ping timeout: 272 seconds]
MorTal1ty has quit [Ping timeout: 260 seconds]
strmpnk has quit [Ping timeout: 260 seconds]
sspi has quit [Ping timeout: 260 seconds]
mrallen1 has quit [Ping timeout: 260 seconds]
NhanH has quit [Ping timeout: 260 seconds]
ggherdov has quit [Ping timeout: 260 seconds]
pootler_ has quit [Ping timeout: 272 seconds]
oldmanistan_ has quit [Ping timeout: 272 seconds]
chenglou has joined #ocaml
emmanueloga has joined #ocaml
cannedprimates has joined #ocaml
bigs has joined #ocaml
trevorriles has joined #ocaml
sspi has joined #ocaml
mrallen1 has joined #ocaml
rfv has joined #ocaml
M-martinklepsch has quit [Ping timeout: 276 seconds]
oldmanistan_ has joined #ocaml
mankyKitty has joined #ocaml
Algebr has quit [Ping timeout: 250 seconds]
l1x has joined #ocaml
jkni has joined #ocaml
stephe_ has joined #ocaml
fUD has joined #ocaml
andreypopp has joined #ocaml
myst|fon has joined #ocaml
msch has joined #ocaml
caw has joined #ocaml
MercurialAlchemi has joined #ocaml
trevorriles has quit [Ping timeout: 250 seconds]
parataxis has joined #ocaml
NhanH has joined #ocaml
uriznik has joined #ocaml
MorTal1ty has joined #ocaml
strmpnk has joined #ocaml
pootler_ has joined #ocaml
M-martinklepsch has joined #ocaml
lopex has joined #ocaml
mattg has joined #ocaml
jeroud has joined #ocaml
trevorriles has joined #ocaml
ggherdov has joined #ocaml
kdas__ has joined #ocaml
kdas__ has quit [Read error: Connection reset by peer]
Algebr has joined #ocaml
tmtwd has quit [Ping timeout: 272 seconds]
zRecursive has quit [Remote host closed the connection]
dakk has quit [Ping timeout: 250 seconds]
mattg has quit [Ping timeout: 260 seconds]
lopex has quit [Ping timeout: 260 seconds]
mattg has joined #ocaml
jeroud has quit [Ping timeout: 250 seconds]
trevorriles has quit [Ping timeout: 272 seconds]
lopex has joined #ocaml
trevorriles has joined #ocaml
jeroud has joined #ocaml
kolko has joined #ocaml
tmtwd has joined #ocaml
A1977494 has joined #ocaml
michipili has joined #ocaml
tmtwd has quit [Ping timeout: 260 seconds]
seangrove has quit [Remote host closed the connection]
seangrov` has joined #ocaml
Simn has joined #ocaml
orbifx-m has quit [Ping timeout: 260 seconds]
orbifx-m has joined #ocaml
dakk has joined #ocaml
kolko has quit [Ping timeout: 264 seconds]
zRecursive has joined #ocaml
seangrov` has quit [Read error: Connection reset by peer]
Sorella has quit [Quit: Connection closed for inactivity]
Algebr has quit [Ping timeout: 250 seconds]
reynir has quit [Quit: WeeChat 1.1.1]
reynir has joined #ocaml
reynir has quit [Client Quit]
reynir has joined #ocaml
larhat has joined #ocaml
Orion3k has joined #ocaml
govg has quit [Quit: leaving]
govg has joined #ocaml
govg has quit [Client Quit]
govg has joined #ocaml
jwatzman|work has joined #ocaml
reynir has quit [Quit: WeeChat 1.4]
zRecursive has quit [Remote host closed the connection]
reynir has joined #ocaml
reynir has quit [Client Quit]
reynir has joined #ocaml
dexterph has joined #ocaml
<dexterph> `mapper.expr mapper { new_exp with pexp_attributes }` (https://github.com/ocsigen/lwt/blob/master/ppx/ppx_lwt_ex.ml#L123) what is this syntax? I thought when using 'with' syntax you always needed equal signs to update fields
<michipili> you can skip the = if there is a symbol in the current scope which has the same name as the field
<michipili> same as for field initialisation
<michipili> I tink this arrived in 4.02
<companion_cube> no, it's older
<dexterph> ah, thanks
_y is now known as __y
<flux> and it's pretty nice. I use it often like let foo = .. in let bar = .. in .. { foo; bar }.
<michipili> Do you remember when it arrived? I cannot find a trace of it in http://caml.inria.fr/pub/docs/manual-ocaml/extn.html
<michipili> yep it's very useful :)
__y is now known as _y
<flux> can't find it from the test suite, that would have been an easy way to find it.. :)
<flux> (I tried git grep '{.*with[^=]*}')
Orion3k has quit [Ping timeout: 276 seconds]
reynir has quit [Quit: WeeChat 1.4]
<michipili> I think the regexp should really be {.*with[^=}]*}
<michipili> but I guess the improved safeness is purely hypothetical ;)
<flux> hmm, does it not match the exact same set of lines still?-)
<michipili> check for { a with b; c = 1} :)
darkf_ has joined #ocaml
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
<jun__> michipili: it arrived in 3.12 (http://caml.inria.fr/pub/docs/manual-ocaml/extn.html#sec226)
<michipili> oooh so old? thanks! :)
<michipili> I started OCaml in 1999, it's hard to get a cinsistent feel of time :D
Orion3k has joined #ocaml
AltGr has joined #ocaml
f[x] has joined #ocaml
sepp2k has joined #ocaml
Orion3k has quit [Ping timeout: 272 seconds]
reynir has joined #ocaml
adelbertc has quit [Quit: Connection closed for inactivity]
swistak35 has quit [Ping timeout: 250 seconds]
jwatzman|work has quit [Quit: jwatzman|work]
Kakadu has joined #ocaml
michipili has quit [Ping timeout: 276 seconds]
dexterph has quit [Ping timeout: 260 seconds]
silver has joined #ocaml
silver_ has joined #ocaml
octachron has joined #ocaml
silver has quit [Ping timeout: 276 seconds]
<Khady> Hi. I'm using cohttp client to create a post request, but I have an issue. The body of the request seems to be empty. I don't understand why. Here is my code http://paste.isomorphis.me/ir3
<Khady> the body |> Cohttp_lwt_body.to_string >|= fun body -> Printf.printf "Body: %s\n" body line actually prints the expected body, but I don't receive it on my server
f[x] has quit [Ping timeout: 260 seconds]
uriznik has left #ocaml [#ocaml]
<Khady> looks like I have to add chunked:false as parameter, but I don't understand why
darkf has quit [Quit: Leaving]
<mrvn> no support for chunked transfer in your server?
two_wheels has joined #ocaml
<Khady> probably
<Khady> The doc of Client.call says "If a body is specified then that will be included with the request, using chunked encoding if chunked is true. The default is to disable chunked encoding for HTTP request bodies for compatibility reasons." but actually it is disabled only for HEAD, GET and DELETE
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 276 seconds]
sdothum has joined #ocaml
<mrvn> open an issue for the docs
<Khady> I'll check the more recent versions and do that. Thanks
jwatzman|work has joined #ocaml
SHODAN has quit [Ping timeout: 252 seconds]
SHODAN has joined #ocaml
f[x] has joined #ocaml
mengu has joined #ocaml
mengu has quit [Changing host]
mengu has joined #ocaml
SHODAN has quit [Ping timeout: 250 seconds]
jeffmo has joined #ocaml
SHODAN has joined #ocaml
mbrock has joined #ocaml
SHODAN has left #ocaml [#ocaml]
rgrinberg has joined #ocaml
Enjolras has joined #ocaml
tane has joined #ocaml
jeffmo_ has joined #ocaml
jeffmo has quit [Ping timeout: 246 seconds]
jeffmo_ is now known as jeffmo
ohama has quit [Ping timeout: 244 seconds]
ohama has joined #ocaml
jeffmo_ has joined #ocaml
jeffmo has quit [Ping timeout: 276 seconds]
jeffmo_ is now known as jeffmo
jwatzman|work has quit [Quit: jwatzman|work]
mengu has quit [Remote host closed the connection]
Kakadu has left #ocaml [#ocaml]
sepp2k has quit [Quit: Leaving.]
mengu has joined #ocaml
mengu has quit [Changing host]
mengu has joined #ocaml
yomimono has joined #ocaml
Kakadu has joined #ocaml
leyyin has joined #ocaml
FreeBirdLjj has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 276 seconds]
redpoppies has joined #ocaml
redpoppies has quit [Client Quit]
jeffmo has quit [Read error: Connection reset by peer]
jeffmo has joined #ocaml
jeffmo has quit [Client Quit]
jeffmo has joined #ocaml
nicoo has quit [Ping timeout: 244 seconds]
larhat has quit [Ping timeout: 240 seconds]
larhat has joined #ocaml
mengu has quit [Remote host closed the connection]
sh0t has joined #ocaml
kushal has joined #ocaml
nicoo has joined #ocaml
circ-user-vkmXT_ has joined #ocaml
circ-user-vkmXT has quit [Ping timeout: 276 seconds]
ncthom91 has joined #ocaml
jwatzman|work has joined #ocaml
sepp2k has joined #ocaml
larhat has quit [Read error: Connection reset by peer]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
ljs has joined #ocaml
dexterph has joined #ocaml
MercurialAlchemi has joined #ocaml
christoph_debian has quit [Quit: WeeChat 1.0.1]
jeffmo_ has joined #ocaml
larhat has joined #ocaml
jeffmo has quit [Ping timeout: 258 seconds]
jeffmo_ is now known as jeffmo
tane has quit [Ping timeout: 276 seconds]
Sorella has joined #ocaml
tane has joined #ocaml
seangrove has joined #ocaml
slash^ has joined #ocaml
sepp2k has quit [Ping timeout: 264 seconds]
benwbooth has quit [Ping timeout: 276 seconds]
benwbooth has joined #ocaml
benwbooth has quit [Max SendQ exceeded]
benwbooth has joined #ocaml
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dexterph has quit [Ping timeout: 240 seconds]
copy` has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
<mrvn> re
f[x] has quit [Ping timeout: 250 seconds]
rgrinberg has quit [Ping timeout: 240 seconds]
ljs has quit [Quit: Be back later ...]
octachron has quit [Quit: Page closed]
rgrinberg has joined #ocaml
larhat has quit [Quit: Leaving.]
tane has quit [Ping timeout: 244 seconds]
kolko has joined #ocaml
mbrock has quit [Quit: Connection closed for inactivity]
arjunguha has joined #ocaml
arjunguha has quit [Client Quit]
SpiceGuid has joined #ocaml
tane has joined #ocaml
seangrove has quit [Ping timeout: 250 seconds]
chris2 has quit [Ping timeout: 250 seconds]
TheVoid has quit [Ping timeout: 252 seconds]
orbifx-m2 has joined #ocaml
orbifx-m has quit [Ping timeout: 240 seconds]
TheVoid has joined #ocaml
chris2 has joined #ocaml
kushal has quit [Ping timeout: 240 seconds]
yunxing_ has joined #ocaml
Kakadu has quit [Quit: Page closed]
yomimono has quit [Ping timeout: 250 seconds]
octachron has joined #ocaml
SpiceGuid has quit [Ping timeout: 246 seconds]
leyyin has quit [Ping timeout: 240 seconds]
sh0t has quit [Quit: Leaving]
leyyin has joined #ocaml
pierpa has joined #ocaml
al-damiri has joined #ocaml
al-damiri has quit [Ping timeout: 272 seconds]
Pepe_ has quit [Ping timeout: 260 seconds]
Pepe_ has joined #ocaml
al-damiri has joined #ocaml
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has joined #ocaml
yminsky has quit [Ping timeout: 250 seconds]
Sorella has quit [Ping timeout: 250 seconds]
yminsky has joined #ocaml
Sorella has joined #ocaml
pootler_ has quit [Ping timeout: 272 seconds]
pootler_ has joined #ocaml
seangrove has joined #ocaml
yminsky has quit [Ping timeout: 250 seconds]
myst|fon has quit [Ping timeout: 272 seconds]
yminsky has joined #ocaml
al-damiri has quit [Ping timeout: 250 seconds]
myst|fon has joined #ocaml
benwbooth has quit [Ping timeout: 250 seconds]
tane has quit [Quit: Verlassend]
al-damiri has joined #ocaml
benwbooth has joined #ocaml
_y has quit [Ping timeout: 244 seconds]
adelbertc has joined #ocaml
_y has joined #ocaml
al-damiri has quit [Ping timeout: 260 seconds]
al-damiri has joined #ocaml
AltGr has left #ocaml [#ocaml]
monod has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Algebr has joined #ocaml
rgrinberg has quit [Quit: WeeChat 1.5]
rgrinberg has joined #ocaml
SpiceGuid has joined #ocaml
caw has quit [Ping timeout: 264 seconds]
caw has joined #ocaml
monod has quit [Ping timeout: 244 seconds]
Kakadu has joined #ocaml
benwbooth has quit [Ping timeout: 272 seconds]
rgrinberg has quit [Ping timeout: 264 seconds]
benwbooth has joined #ocaml
matason has joined #ocaml
Orion3k has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
yunxing_ has quit [Ping timeout: 258 seconds]
slash^ has quit [Read error: Connection reset by peer]
kolko has quit [Quit: ZNC - http://znc.in]
govg has quit [Quit: leaving]
monod has joined #ocaml
rgrinberg has joined #ocaml
AltGr has joined #ocaml
kushal has joined #ocaml
TheLemonMan has joined #ocaml
atbagautdinov has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 250 seconds]
yunxing_ has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
kushal has quit [Ping timeout: 246 seconds]
yunxing_ has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
monod has quit [Quit: Sto andando via]
btbytes has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
f[x] has joined #ocaml
yunxing_ has joined #ocaml
octachron has quit [Ping timeout: 246 seconds]
octachron has joined #ocaml
btbytes has quit [Ping timeout: 250 seconds]
octachron has quit [Ping timeout: 258 seconds]
rgrinberg has quit [Quit: WeeChat 1.5]
rgrinberg has joined #ocaml
AltGr has left #ocaml [#ocaml]
Simn has quit [Quit: Leaving]
psnively has joined #ocaml
tane has joined #ocaml
matason has quit [Ping timeout: 276 seconds]
A1977494 has quit [Ping timeout: 276 seconds]
rgrinberg has quit [Quit: WeeChat 1.5]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
rgrinberg has joined #ocaml
btbytes has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
manizzle has quit [Quit: Leaving]
manizzle has joined #ocaml
yunxing_ has joined #ocaml
<seangrove> Anything I'm obviously missing on why `opam install cohttp` would fail? https://gist.github.com/sgrove/31b3067d10ad5bac65b7e02bb428792c
<psnively> seangrove: Well, do you have fieldslib and sexplib installed?
<seangrove> Let me check...
<seangrove> Also, how can I find what version a library is at based on its repo? Is it in the opam file?
<seangrove> psnively: Yes, opam list shows both of those as being installed
<seangrove> Ah, ok, I had pinned a previous version
<seangrove> But that's bizarre, it was on a different switch
<psnively> seangrove: On the latest opam?
<seangrove> If I pin a package on one switch, does it affect other switches?
<psnively> seangrove: I would expect so.
<psnively> seangrove: But don't quote me on that.
<seangrove> Really? That's the opposite of what I'd expect...
<seangrove> Hrm, ok, thanks
<seangrove> Good to know anyway
<psnively> seangrove: Honestly, I'm not sure.
<psnively> seangrove: So did that clear up your issue?
leyyin has quit [Quit: So Long, and Thanks for All the Fish]
<seangrove> psnively: unpinning my custom cohttp fixed it, yes
<psnively> seangrove: Groovy. My next question was to be sure you're using aspcud as your external solver. :-)
<seangrove> psnively: Believe I'm one step ahead of you there ;)
<psnively> seangrove: And if you're on a Mac, that's a bit of a headache. :-D
<groovy2shoes> hmm...
<psnively> seangrove: +1
<psnively> seangrove: i tried not using aspcud for a while, and just ran into alllllllll manner of headaches with shifting dependencies in the Jane Street ecosystem. Then I finally got aspcud built and installed, and opam suddenly happily started upgrading, downgrading, side-grading, etc. without a hitch.
tane has quit [Quit: Verlassend]
<seangrove> Very nice
<seangrove> Now to figure out how to launch and kill unix process with lwt
darkf has joined #ocaml
sh0t has joined #ocaml
f[x] has quit [Ping timeout: 250 seconds]
dhil has quit [Ping timeout: 250 seconds]
<sh0t> hi guys: say i have a module with some data structures struct.ml and another one pprint.ml which "opens" struct.ml and contains function for doing pretty printing. Now I can't use pretty printing in struct.ml. How are in general this circularity problem dealt with in Ocaml?
Kakadu has quit [Remote host closed the connection]
yomimono has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
psnively has quit [Quit: Textual IRC Client: www.textualapp.com]
seangrove has quit [Ping timeout: 250 seconds]
btbytes has quit [Quit: Leaving.]
two_wheels has joined #ocaml
sh0t has quit [Remote host closed the connection]
jeffmo has quit [Quit: jeffmo]
yunxing_ has quit [Remote host closed the connection]
btbytes has joined #ocaml
yomimono has quit [Ping timeout: 264 seconds]
seangrove has joined #ocaml
yunxing_ has joined #ocaml
btbytes has quit [Quit: Leaving.]
<seangrove> companion_cube: ping
Orion3k has quit [Ping timeout: 260 seconds]
<seangrove> Looking to use containers - looks like there's a mutable set, which is great
<seangrove> Is there an immutable/persistent set?
seangrove has quit [Remote host closed the connection]
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
seangrove has joined #ocaml
Orion3k has joined #ocaml
sh0t has joined #ocaml
btbytes has joined #ocaml
<seangrove> How can I make a set of ints?
<seangrove> module IntSet = Set.Make(int) doesn't work :P
btbytes has quit [Client Quit]
<seangrove> I found http://stackoverflow.com/questions/1452218/ocaml-set-modules, but not sure that's the most obvious answer
<Drup> seangrove: you are using containers ?
<Drup> if so, Set.Make(CCInt)
<Drup> otherwise, the first answer is fine
<seangrove> Drup: Nah, couldn't quite figure it out for this small script, will circle back to it later
orbifx-m2 has quit [Ping timeout: 246 seconds]