adrien 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.02.3 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
silver has quit [Quit: rakede]
seangrove has quit [Ping timeout: 276 seconds]
thomasga has left #ocaml [#ocaml]
orbifx has quit [Ping timeout: 248 seconds]
tmtwd has joined #ocaml
snhmib has quit [Quit: WeeChat 1.3]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 248 seconds]
AltGr has joined #ocaml
seangrove has joined #ocaml
tmtwd has quit [Ping timeout: 248 seconds]
seangrove has quit [Ping timeout: 268 seconds]
noddy has joined #ocaml
seangrove has joined #ocaml
nicholasf has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
tmtwd has joined #ocaml
tennix has joined #ocaml
seangrove has joined #ocaml
noddy has quit [Ping timeout: 252 seconds]
seangrove has quit [Ping timeout: 264 seconds]
hcarty has joined #ocaml
hcarty has quit [Ping timeout: 276 seconds]
Vintila has joined #ocaml
seangrove has joined #ocaml
Algebr`` has joined #ocaml
seangrove has quit [Ping timeout: 250 seconds]
pyon has quit [Remote host closed the connection]
Algebr`` has quit [Remote host closed the connection]
Algebr`` has joined #ocaml
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
pyon has joined #ocaml
pierpa has quit [Ping timeout: 244 seconds]
ygrek has quit [Ping timeout: 248 seconds]
AltGr has left #ocaml [#ocaml]
manizzle has joined #ocaml
nicholasf has quit [Remote host closed the connection]
<Algebr``> What time format is this? '2016-01-25T02:58:23Z'
<copy`> ISO
A1977494 has joined #ocaml
AltGr has joined #ocaml
pyon has quit [Quit: Reality is multi-dimensional. More precisely, two-dimensional.]
nicholasf has joined #ocaml
aantron has quit [Remote host closed the connection]
pyon has joined #ocaml
troydm has quit [Ping timeout: 244 seconds]
nicholasf has quit [Remote host closed the connection]
nicholasf has joined #ocaml
avarsh has joined #ocaml
aj__ has joined #ocaml
malina has quit [Ping timeout: 244 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
tennix has quit [Ping timeout: 260 seconds]
MercurialAlchemi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 246 seconds]
MercurialAlchemi has joined #ocaml
Mercuria1Alchemi has joined #ocaml
tennix has joined #ocaml
manizzle has quit [Ping timeout: 244 seconds]
slash^ has joined #ocaml
nicholasf has quit [Remote host closed the connection]
nicholasf has joined #ocaml
<flux> leonidas, hmm, I thought this was fixed but I guesss not: let channels_invite token channel user = let%lwt channel_id = id_of_channel token channel and user_id = id_of_user token user in endpoint "channels.info" ..
ggole has joined #ocaml
Stalkr_ has joined #ocaml
ggole_ has joined #ocaml
shinnya has quit [Ping timeout: 244 seconds]
ggole__ has joined #ocaml
ggole has quit [Ping timeout: 248 seconds]
ggole_ has quit [Ping timeout: 260 seconds]
copy` has quit [Quit: Connection closed for inactivity]
Mercuria1Alchemi has quit [Ping timeout: 252 seconds]
ggole_ has joined #ocaml
Algebr`` has quit [Ping timeout: 248 seconds]
tmtwd_ has joined #ocaml
ggole__ has quit [Ping timeout: 264 seconds]
jgjl has joined #ocaml
tmtwd has quit [Ping timeout: 276 seconds]
tane has joined #ocaml
leyyin has joined #ocaml
tmtwd_ has quit [Ping timeout: 248 seconds]
aj__ has quit [Ping timeout: 268 seconds]
avarsh has quit [Ping timeout: 268 seconds]
<flux> hmm, it was just my opam installation, probably old :)
jgjl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<flux> *** Error in `/home/erkkise/.opam/4.02.3/bin/ocamlrun': double free or corruption (out): 0x0000000001640a00 *** my new shiny opam installation :(
nicholasf has quit [Remote host closed the connection]
ggole__ has joined #ocaml
djellemah_ is now known as djellemah
nicholasf has joined #ocaml
teknozulu has joined #ocaml
<flux> my ocaml top level is quite broken :-o, even plainish 'ocaml' crashed after a #require
ggole_ has quit [Ping timeout: 264 seconds]
<teknozulu> Ugh. I'm trying to compile using -i to generate .mlis, which causes an unbound module error in one of the .ml files. Compilation without -i works just fine.
<teknozulu> Any general hunch?
<flux> do you compile in the same order?
<flux> ie. given the unbound module, does the file module.cmi exist?
<flux> meh, and I can't really do 4.02.2 either because I want to play with ppx. now this is quite annoying..
AltGr has left #ocaml [#ocaml]
Simn has joined #ocaml
<teknozulu> Well, I'm not changing anything else than adding the flag so I would expect them to be in the same order (which may not be a reasonable expectation?) - literally going from "corebuild -package core -package async -package rpc_parallel.core -tag thread launch.native" to "corebuild -cflag -i -package core -package async -package rpc_parallel.core -tag thread launch.native"
<teknozulu> the cmi is there, though
<flux> as far as I see the only reason for "unbound module" would be that the compiler doesn't find the .cmi for some reason
<flux> perhaps corebuild does something unexpected there
<teknozulu> i have a theory
<teknozulu> hmm. so, the first offending module did not have any dependencies, so i could compile it with -i alone. The interface however had replaced every instance of "string" with "bytes", and i recall that causing a compilation error at a previous time (module does not contain intf)
<teknozulu> So I went ahead and made corebuild ignore bundler, which was referenced in worker_desc
<teknozulu> So, now worker_desc doesnt complain about bundler being unbound, but now the next module used by worker_desc is supposedly unbound too.
govg has joined #ocaml
<teknozulu> repeated the ignoring for the new offending module, and it worked. I wish I knew the root cause, though
<flux> hmm, my issue went away by recompiling everything
<flux> now I'm thinking I should've taken a copy beforehand to see what was different :/
jgjl has joined #ocaml
<teknozulu> My version control discipline with random personal projects is despicable
aj__ has joined #ocaml
avarsh has joined #ocaml
seangrove has joined #ocaml
<flux> well, at least the effort to start using one shouldn't be great, just git init and off you go ;)
govg has quit [Ping timeout: 260 seconds]
cdidd has joined #ocaml
cdidd has quit [Remote host closed the connection]
Kakadu has joined #ocaml
<seangrove> What's the mirage-compatible Cohttp-client module?
<seangrove> Hrm, perhaps Cohttp_mirage.Client.post
orbifx has joined #ocaml
nicholasf has quit [Read error: Connection reset by peer]
nicholasf has joined #ocaml
Kakadu has quit [Ping timeout: 250 seconds]
teknozulu has quit [Ping timeout: 244 seconds]
abbiya has joined #ocaml
govg has joined #ocaml
avarsh has quit [Ping timeout: 248 seconds]
aj__ has quit [Ping timeout: 248 seconds]
troydm has joined #ocaml
seangrove has quit [Ping timeout: 276 seconds]
govg has quit [Quit: leaving]
<flux> soo, I'm looking into PPX. is there a way to convert nodes into strings for debugging output?
silver has joined #ocaml
<flux> cool, so I modified "hello" to "!hello" with ppx. now off to port pg'ocaml!
pyon has quit [Remote host closed the connection]
fraggle_ has quit [Remote host closed the connection]
dsheets has joined #ocaml
abbiya has quit [Ping timeout: 246 seconds]
fraggle_ has joined #ocaml
jgjl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aj__ has joined #ocaml
avarsh has joined #ocaml
seangrove has joined #ocaml
<flux> ppx_measure seems pretty cool!
<flux> sadly it currently does conversions only to one direction
slash^1 has joined #ocaml
slash^1 has left #ocaml [#ocaml]
<flux> also I wonder if it might be possible to do them automatically with those typed ppx transformers.. :)
manizzle has joined #ocaml
seangrove has quit [Remote host closed the connection]
seangrove has joined #ocaml
dsheets has quit [Remote host closed the connection]
seangrove has quit [Ping timeout: 248 seconds]
dsheets has joined #ocaml
dsheets has quit [Remote host closed the connection]
seangrove has joined #ocaml
avarsh has quit [Ping timeout: 248 seconds]
aj__ has quit [Ping timeout: 248 seconds]
ggole__ has quit []
tane has quit [Quit: Verlassend]
kushal has quit [Ping timeout: 240 seconds]
aantron has joined #ocaml
kushal has joined #ocaml
Mercuria1Alchemi has joined #ocaml
aantron has quit [Remote host closed the connection]
jgjl has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 240 seconds]
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 244 seconds]
seangrov` has joined #ocaml
seangrove has quit [Ping timeout: 246 seconds]
Mercuria1Alchemi has joined #ocaml
Mercuria1Alchemi has quit [Remote host closed the connection]
<flux> it seems compiler libs documentation is not really available online?-( I found http://gallium.inria.fr/~scherer/tmp/trunk-manual/libref/ but it seems to be old.
<Drup> it isn't, and it's annoying to generate
<Drup> and it's basically useless anyway
<Drup> (except for flambda, and there is a makefile target specifically for it)
<flux> it doesn't seem Asttypes etc is useless documentation..
<flux> so I guess my best bet is getting compiler sources and referering to the .ml{,i} files?-)
<Drup> that's not what I mean. I mean that you will not get added value of using ocamldoc. Half the comments are badly located/rendered, the other half are not even doc comments
octachron has joined #ocaml
<Drup> and that's when it has comment to begin with, which is often not the case (except in middle_end/ )
<flux> something that works nicely with emacs and tuareg's documnetation lookup feature would be the best :)
<Drup> mli files and merlin ? :D
Mercuria1Alchemi has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 252 seconds]
<flux> needs the cmt files, right?
zpe has joined #ocaml
Khady has quit [Remote host closed the connection]
TheLemonMan has joined #ocaml
darkf has quit [Quit: Leaving]
zpe has quit [Remote host closed the connection]
dinosaure has quit [Quit: WeeChat 1.4]
aantron has joined #ocaml
seangrov` has quit [Ping timeout: 252 seconds]
seangrov` has joined #ocaml
aantron has quit [Quit: Leaving...]
dsheets has joined #ocaml
seangrov` has quit [Ping timeout: 244 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
TheLemonMan has joined #ocaml
<flux> ppx_tools is really god-sent for its metaquoting :)
kushal has quit [Quit: Leaving]
seangrov` has joined #ocaml
seangrov` has quit [Ping timeout: 250 seconds]
octachron has quit [Quit: Leaving]
jgjl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has joined #ocaml
Vintila has quit [Ping timeout: 268 seconds]
d0nn1e has quit [Ping timeout: 248 seconds]
d0nn1e has joined #ocaml
ggole has joined #ocaml
noddy has joined #ocaml
tane has joined #ocaml
boegel has joined #ocaml
aj__ has joined #ocaml
avarsh has joined #ocaml
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
matason has joined #ocaml
Algebr`` has joined #ocaml
matason has quit [Ping timeout: 248 seconds]
dsheets has quit [Remote host closed the connection]
Algebr has joined #ocaml
tane has quit [Quit: Verlassend]
leyyin has quit [Read error: Connection reset by peer]
leyyin_ has joined #ocaml
<flux> I wonder if it's guaranteed that the ppx extension is applied top-bottom left-right..
<flux> it seems "no" at least within a single function.
sh0t has joined #ocaml
wiredsister has joined #ocaml
iosys has quit [Quit: Leaving...]
jgjl has joined #ocaml
iosys has joined #ocaml
<flux> so, it seems I'm able to compile one test case of the ppxified PGOCaml!
<flux> didn't dare try running, though :-)
matason has joined #ocaml
malina has joined #ocaml
matason has quit [Ping timeout: 244 seconds]
jfntn has joined #ocaml
jfntn has quit [Client Quit]
jfntn has joined #ocaml
copy` has joined #ocaml
<leyyin_> does anyone know why when using oasis in dynamic mode https://ocaml.org/learn/tutorials/setting_up_with_oasis.html#Themeatofyourproject and using an external library. When I run `make` it tells me that the module does not exist, in not dynamic mode it works fine
pyon has joined #ocaml
tmtwd_ has joined #ocaml
wiredsister has quit [Ping timeout: 268 seconds]
dhil has joined #ocaml
tennix has quit [Ping timeout: 276 seconds]
jackweirdy has joined #ocaml
<flux> if merlin doesn't work nice with a ppx extension, is it something that should be fixed in the ppx (locations?) or in merlin?
noddy has quit [Ping timeout: 246 seconds]
dsheets has joined #ocaml
<companion_cube> in the .merlin, i suppose, because theoretically merlin handles ppx extensions correctly
dsheets has quit [Ping timeout: 244 seconds]
A19774941 has joined #ocaml
ygrek has joined #ocaml
A1977494 has quit [Ping timeout: 260 seconds]
aj__ has quit [Ping timeout: 268 seconds]
avarsh has quit [Ping timeout: 268 seconds]
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<def`> flux: depends what goes wrong
tmtwd_ has quit [Ping timeout: 276 seconds]
jfntn has quit [Remote host closed the connection]
Kakadu has joined #ocaml
A19774941 has quit [Quit: Leaving.]
pierpa has joined #ocaml
<flux> def`, how might one debug it?
<flux> saving says "no errors", but then I cannot get information of identifiers outside the extension's [%brackets]
<flux> in fact for that file it seems I cannot get any info from anywhere..
<def`> vim or emacs ?
<flux> emacs
<flux> ocamlc -dannot produces something that seems useful
<def`> M-x merlin-dump browse
jackweirdy has joined #ocaml
<def`> It should output an s-exp of the locations merlin sees
<flux> nil
<flux> when I restarted merlin and tried again
<flux> "Apparently circular structure being printed"
<def`> ?
<flux> hmm actually this was the wrong file :-)
<flux> right, so whenever I issue the dump with browse it says "nil"
<flux> btw, merlin 2.3.1 for ocaml 4.02.3
<def`> Ok, I will try later
<flux> for those interested, the port is here: https://github.com/eras/pgocaml/tree/ppx
sh0t has quit [Ping timeout: 248 seconds]
<flux> for that particular issue w/ merlin, the one test that comes with pgocaml seems to work fine.. :)
<flux> s/^/except /
<def`> To me it sounds like incorrect locations generated by the ppx
<flux> that it certainly possible. this is my first ppx :)
<flux> I'm just forwaring the whatever loc I get.
<def`> I will check in one or two hours, sorry :)
<flux> I can forgive you that on Saturday evening :)
<Simn> Is ppx what I should look into to replace a camlp4o parser?
<def`> That's highly likely yes
<flux> def`, I restarted emacs and it works :-)
<flux> (I had tried restarting merlin previously)
<flux> (the process that is)
dsheets has joined #ocaml
<def`> flux: :(, pff so many bugs to track
<flux> emacs coding is sweet.. :)
<flux> def`, thank you for the hard work though, merlin is super useful :)
dsheets has quit [Ping timeout: 260 seconds]
<def`> thx :)
<flux> I think I found the issue
<flux> if the ppx fails, merlin doesn't recover
<flux> and by failing I mean it throws an exception
<def`> Ahhh... Very likely
<flux> is there a nicer way to handle errors with ppx?-)
<def`> I never tried that.
<def`> Merlin should be fixed to have a better behavior
<flux> now it works perfectly with better error signaling :)
chemical_rascal has joined #ocaml
jackweirdy has quit [Quit: Textual IRC Client: www.textualapp.com]
<chemical_rascal> Hey! Is anyone here know their way around ocamlyacc and is willing to help out someone fresh-eyed to the thing?
<chemical_rascal> Wow, that was some bad grammar on my part. s/here know/here who knows/;s/is willing/willing/
<chemical_rascal> Anyway, the specific problem is that I've got ocamlyacc building a "parser.mli" from a "parser.mly", however then running "ocamlc -c parser.mli" squaks out a syntax error.
<def`> chemical_rascal: which syntax error?
<chemical_rascal> def`: "File "parser.mli", line 53, characters 0-0:" "Error: Syntax error"
<chemical_rascal> 53 is the final line. Lines 53 and 52 are:
<chemical_rascal> val prog :
<def`> Can you share the file :) ?
<chemical_rascal> (Lexing.lexbuf -> token) -> Lexing.lexbuf -> Tuple
<def`> I can see what's wrong
<chemical_rascal> Aaah, I'll see what I can do, sure.
<def`> Your %start directive in the mly must be wrong
<chemical_rascal> Oooh, right, I'll check that first
<chemical_rascal> Doesn't look wrong?
<def`> Copy paste?
<chemical_rascal> I'll just upload both
<chemical_rascal> def`: The mli and mly, in that order.
<def`> Tuple is not a valid ocaml type
<chemical_rascal> Huh, that'd be an issue then
<chemical_rascal> Thanks!
<def`> np :)
matason has joined #ocaml
<chemical_rascal> OH
<chemical_rascal> I need to define an AST structure and such, don't I
<chemical_rascal> Damnit
jgjl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slash^ has quit [Read error: Connection reset by peer]
troydm has quit [Quit: What is hope? That all of your wishes and all of your dreams come true? (C) Rau Le Creuset]
troydm has joined #ocaml
troydm has quit [Remote host closed the connection]
troydm has joined #ocaml
hcarty has joined #ocaml
pyon has quit [Quit: Reality is multi-dimensional. More precisely, two-dimensional.]
ggole has quit []
teknozulu has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
wiredsister has joined #ocaml
pyon has joined #ocaml
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 244 seconds]
JacobEdelman_ has joined #ocaml
matason has quit [Ping timeout: 260 seconds]
matason has joined #ocaml
Intensity has quit [Ping timeout: 240 seconds]
cross has quit [Ping timeout: 260 seconds]
hcarty has quit [Ping timeout: 252 seconds]
Intensity has joined #ocaml
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
noddy has joined #ocaml
sh0t has joined #ocaml
zpe has joined #ocaml
noddy has quit [Ping timeout: 252 seconds]
teknozulu has quit [Ping timeout: 240 seconds]
noddy has joined #ocaml
orbifx has quit [Read error: Connection reset by peer]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
noddy has quit [Ping timeout: 244 seconds]
dsheets has joined #ocaml
sh0t has quit [Remote host closed the connection]
dsheets has quit [Ping timeout: 244 seconds]
sh0t has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 276 seconds]
zpe has quit [Remote host closed the connection]
MercurialAlchemi has joined #ocaml
leyyin__ has joined #ocaml
leyyin__ has quit [Remote host closed the connection]
rbocquet has quit [Ping timeout: 248 seconds]
boegel has quit [Read error: Connection reset by peer]
rbocquet has joined #ocaml
leyyin_ has quit [Ping timeout: 268 seconds]
boegel has joined #ocaml
hydan has joined #ocaml
hydan has quit [Remote host closed the connection]
Simn has quit [Quit: Leaving]
matason has quit [Ping timeout: 264 seconds]
wiredsister has quit [Ping timeout: 248 seconds]
t4nk322 has joined #ocaml
cross has joined #ocaml
aj__ has joined #ocaml
avarsh has joined #ocaml
noddy has joined #ocaml
t4nk322 has quit [Quit: Page closed]
meteo has quit [Quit: Leaving]
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
teknozulu has joined #ocaml
tennix has joined #ocaml