adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Upcoming OCaml MOOC: https://huit.re/ocamlmooc | OCaml 4.03.0 release notes: 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
wu_ng has quit [Read error: Connection reset by peer]
wu_ng has joined #ocaml
zpe has joined #ocaml
AltGr has joined #ocaml
rgrinberg has joined #ocaml
sm0g has joined #ocaml
sm0g has quit [Ping timeout: 244 seconds]
shinnya has quit [Ping timeout: 240 seconds]
mfp_ has quit [Ping timeout: 264 seconds]
sm0g has joined #ocaml
sm0g has quit [Ping timeout: 265 seconds]
Heasummn has quit [Ping timeout: 265 seconds]
wu_ng has quit [Ping timeout: 244 seconds]
kakadu has joined #ocaml
letaris has quit [Read error: Connection reset by peer]
zpe has quit [Ping timeout: 276 seconds]
sm0g has joined #ocaml
sm0g has quit [Ping timeout: 244 seconds]
unbalanced has quit [Read error: Network is unreachable]
unbalanced has joined #ocaml
thegameg has quit [Ping timeout: 250 seconds]
thegameg has joined #ocaml
pyon has quit [Quit: Fix config.]
pyon has joined #ocaml
zpe has joined #ocaml
hhx has quit [Quit: WeeChat 1.5]
sm0g has joined #ocaml
sm0g has quit [Ping timeout: 276 seconds]
AltGr has left #ocaml [#ocaml]
fraggle_ has quit [Ping timeout: 265 seconds]
fraggle_ has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has joined #ocaml
AlexDenisov has joined #ocaml
jonasen has joined #ocaml
AltGr has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 265 seconds]
larhat has quit [Quit: Leaving.]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC 1.6.3 - http://znc.in]
tmtwd has quit [Ping timeout: 255 seconds]
wu_ng has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
tmtwd has joined #ocaml
johnelse_ has joined #ocaml
john51_ has joined #ocaml
Merv_ has joined #ocaml
hannes` has joined #ocaml
menasw_ has joined #ocaml
l1x_ has joined #ocaml
NhanH__ has joined #ocaml
sheijk_ has joined #ocaml
fUD_ has joined #ocaml
hnrgrgr_ has joined #ocaml
Merv__ has joined #ocaml
artart78_ has joined #ocaml
tg` has joined #ocaml
mrvn_ has joined #ocaml
ski_ has joined #ocaml
wagle_ has joined #ocaml
profan_ has joined #ocaml
SimonJF_ has joined #ocaml
kandu has joined #ocaml
seliopou_ has joined #ocaml
__rlp_ has joined #ocaml
zaltekk_ has joined #ocaml
trevorriles_ has joined #ocaml
kandu is now known as Guest45156
stephe_ has joined #ocaml
banjiewen_ has joined #ocaml
andreypopp_ has joined #ocaml
mankyKitty_ has joined #ocaml
luz1e has joined #ocaml
sigjuice_ has joined #ocaml
henrytill_ has joined #ocaml
cdidd has quit [*.net *.split]
profan has quit [*.net *.split]
seliopou has quit [*.net *.split]
cross has quit [*.net *.split]
john51 has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
stephe has quit [*.net *.split]
parataxis has quit [*.net *.split]
menasw has quit [*.net *.split]
NhanH_ has quit [*.net *.split]
Merv has quit [*.net *.split]
dinosaure has quit [*.net *.split]
l1x has quit [*.net *.split]
banjiewen has quit [*.net *.split]
vishesh has quit [*.net *.split]
SimonJF has quit [*.net *.split]
Madars has quit [*.net *.split]
sigjuice has quit [*.net *.split]
mrvn has quit [*.net *.split]
wagle has quit [*.net *.split]
mankyKitty has quit [*.net *.split]
hannes has quit [*.net *.split]
pootler has quit [*.net *.split]
fUD has quit [*.net *.split]
andreypopp has quit [*.net *.split]
jcloud has quit [*.net *.split]
johnelse has quit [*.net *.split]
__rlp has quit [*.net *.split]
Guest16680 has quit [*.net *.split]
groovy2shoes has quit [*.net *.split]
trevorriles has quit [*.net *.split]
hnrgrgr has quit [*.net *.split]
tg has quit [*.net *.split]
jpdeplaix has quit [*.net *.split]
artart78 has quit [*.net *.split]
luzie has quit [*.net *.split]
ski has quit [*.net *.split]
Lastpixl has quit [*.net *.split]
fedruantine has quit [*.net *.split]
_habnabit has quit [*.net *.split]
zaltekk has quit [*.net *.split]
sheijk has quit [*.net *.split]
henrytill has quit [*.net *.split]
pigoz has quit [*.net *.split]
MasseR has quit [*.net *.split]
tg` is now known as tg
menasw_ is now known as menasw
fedruantine has joined #ocaml
cross has joined #ocaml
_habnabit has joined #ocaml
stephe_ is now known as stephe
zetavolt has quit [Ping timeout: 272 seconds]
john51_ has quit [Read error: Connection reset by peer]
fUD_ is now known as fUD
emmanueloga has joined #ocaml
Merv__ is now known as Merv
john51 has joined #ocaml
caw has quit [Ping timeout: 244 seconds]
banjiewen_ is now known as banjiewen
rfv has quit [Ping timeout: 265 seconds]
parataxis has joined #ocaml
l1x_ is now known as l1x
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vishesh has joined #ocaml
mankyKitty_ is now known as mankyKitty
Madars has joined #ocaml
MasseR has joined #ocaml
cdidd has joined #ocaml
jpdeplaix has joined #ocaml
Lastpixl has joined #ocaml
dinosaure has joined #ocaml
groovy2shoes has joined #ocaml
pigoz has joined #ocaml
rfv has joined #ocaml
jcloud has joined #ocaml
andreypopp_ is now known as andreypopp
caw has joined #ocaml
tmtwd has quit [Ping timeout: 272 seconds]
copy` has quit [Quit: Connection closed for inactivity]
rgrinberg has quit [Ping timeout: 265 seconds]
apache2 has joined #ocaml
<apache2> this article seems to detail use of camlp4, all the examples are broken https://ocaml.org/learn/tutorials/stream_expressions.html
MercurialAlchemi has joined #ocaml
zetavolt has joined #ocaml
zpe has quit [Ping timeout: 272 seconds]
jonasen has joined #ocaml
mcc has quit [Quit: Connection closed for inactivity]
Algebr has quit [Ping timeout: 264 seconds]
kosh_ has quit [Ping timeout: 255 seconds]
zpe has joined #ocaml
zpe has quit [Ping timeout: 265 seconds]
hannes` is now known as hannes
kosh_ has joined #ocaml
Algebr has joined #ocaml
freusque has joined #ocaml
yomimono has joined #ocaml
zpe has joined #ocaml
<companion_cube> infinity0: I don't think you can disable TCE
freusque has quit [Ping timeout: 265 seconds]
AlexDenisov has joined #ocaml
benjamin1 is now known as osheeta
Simn has joined #ocaml
freusque has joined #ocaml
johnelse_ is now known as johnelse
yomimono has quit [Ping timeout: 260 seconds]
larhat has joined #ocaml
mfp_ has joined #ocaml
kakadu has quit [Remote host closed the connection]
larhat has quit [Ping timeout: 265 seconds]
larhat has joined #ocaml
yomimono has joined #ocaml
rand__ has joined #ocaml
<infinity0> companion_cube: oh man well do you have any debugging tips
<infinity0> i managed to fix my problem by totally guessing what was wrong, but i can't really rely on that next time
<companion_cube> erf, my tips are: use `assert` a lot; use backtraces or gdb
<companion_cube> but indeed, it's not easy
averell has joined #ocaml
<infinity0> companion_cube: what do you mean use backtraces? the fact that tce removes a lot of the stack frames is what was affecting me so the backtraces weren't very useful
<companion_cube> yeah, agreed
octachron has joined #ocaml
<adrien> infinity0: you shouldn't need to disable TCE
<adrien> I mean, it shouldn't be what messes with your traces
silver has joined #ocaml
jonasen has quit [Ping timeout: 272 seconds]
jwatzman|work has joined #ocaml
<infinity0> well there's a ton of stuff that's obviously missing from these traces
tg has quit [Quit: Leaving]
<infinity0> Re-raised at file "camlinternalLazy.ml", line 32, characters 10-11
<infinity0> Called from file "test/testDataGraph.ml", line 250, characters 19-43
<infinity0> e.g. there is definitely something between my test and Lazy - which is used in another utility, but not directly by my test
<companion_cube> try disabling inlining, too
<companion_cube> what compiler version do you use?
<infinity0> still on 4.02.3 with debian
<companion_cube> ok, try inline(0) in _tags, or the equivalent, I think
tg has joined #ocaml
<Algebr> hmm, caml_int64_ops segfaulting on me
<Algebr> dealing with real 32 and 64 bit values is a real pain in ocaml
<infinity0> still the same stack trace with inline 0, but nvmd i'll come back to this some other time
jonasen has joined #ocaml
johnelse has quit [Quit: leaving]
<infinity0> adrien: but also, why do you think TCE *wouldn't* mess with my traces? i don't really know the internals of how ocaml does things
AltGr has left #ocaml [#ocaml]
yomimono has quit [Ping timeout: 260 seconds]
<adrien> infinity0: it turns your functions calls into loops
johnelse has joined #ocaml
<adrien> so you should see fewer steps or none but that's almost it
<infinity0> does it only optimise if the tail call is to the same function? that would make sense then (that it doesn't mess with my stack traces)
<infinity0> but *something* is cutting out stuff from my stack traces, i thought TCE was a reasonable candidate, assuming that it optimises all tail calls and not just ones to the same function
wu_ng has quit [Ping timeout: 252 seconds]
ygrek has quit [Ping timeout: 276 seconds]
<zozozo> infinity0: it doesn't need to be the same function for TCE to be done
freusque has quit [Quit: WeeChat 1.4]
<zozozo> for instance mutually recursive functions
<infinity0> yeah that's what i thought. and i assume it does it even when there is no mutual recursion, but just when it can? i'd imagine it's not worth the effort to detect mutual recursion and restrict it to those cases
<zozozo> right
rand__ has quit [Ping timeout: 265 seconds]
<Algebr> doesn't 4.03.0 have something like [@@noline], maybe a no [@@notc] would be nice as well
mpsiaidezmoi has joined #ocaml
al-damiri has joined #ocaml
<mpsiaidezmoi> bonjour j'ai une question à propos des arbres
<mpsiaidezmoi> je ne comprends pas mon cours
<lyxia> n'hésite pas à poser ta question
<lyxia> oh wait this is #ocaml
<Enjolras> mpsiaidezmoi: hi if you want to speak french please join #ocaml-fr
octachron has left #ocaml [#ocaml]
octachron has joined #ocaml
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nahra` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
Nahra has joined #ocaml
<Enjolras> i think you can emulate a notc, at some cost. For instance, let rec no_tc' blah = ... do something ... ((), no_tc bar) let no_tc blah = snd @@ no_tc' blah
yomimono has joined #ocaml
artart78_ is now known as artart78
kiwnix has joined #ocaml
copy` has joined #ocaml
Sorella has joined #ocaml
AlexDenisov has joined #ocaml
hyperboreean has quit [Read error: Connection reset by peer]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_andre has joined #ocaml
rom15041 is now known as rom1504
kakadu has joined #ocaml
hyperboreean has joined #ocaml
AlexDenisov has joined #ocaml
ggole has joined #ocaml
<Algebr> oh nice, completely forgot that result type is finally in pervasises
<companion_cube> there is a compat package anyway
sdothum has joined #ocaml
jstolarek has joined #ocaml
profan_ is now known as profan
jstolarek has quit [Ping timeout: 244 seconds]
freusque has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
cnu- has quit [Ping timeout: 272 seconds]
cnu- has joined #ocaml
mpsiaidezmoi has quit [Ping timeout: 240 seconds]
shinnya has joined #ocaml
yomimono has quit [Ping timeout: 260 seconds]
wxfdglm has joined #ocaml
jbrown has quit [Quit: Leaving]
jbrown has joined #ocaml
ee_ks has joined #ocaml
ee_ks has left #ocaml [#ocaml]
uberTaco has joined #ocaml
AlexDenisov has quit [Max SendQ exceeded]
AlexDenisov has joined #ocaml
pootler has joined #ocaml
zpe has quit [Remote host closed the connection]
Merv_ has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 265 seconds]
freusque has quit [Ping timeout: 252 seconds]
freusque has joined #ocaml
sh0t has joined #ocaml
freusque has quit [Ping timeout: 252 seconds]
averell has quit [Ping timeout: 248 seconds]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sz0 has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 252 seconds]
jwatzman|work has quit [Quit: jwatzman|work]
pootler has quit [Ping timeout: 265 seconds]
pootler has joined #ocaml
averell has joined #ocaml
pootler has quit [Read error: No route to host]
pootler has joined #ocaml
Guest45156 has quit [Ping timeout: 244 seconds]
fluter has quit [Ping timeout: 255 seconds]
kandu has joined #ocaml
kandu is now known as Guest57575
_whitelogger has joined #ocaml
fluter has joined #ocaml
orbifx has joined #ocaml
<orbifx> hello all
freusque has joined #ocaml
<companion_cube> hi orbifx
<orbifx> why would ocamlbuild create a larger binary than ocamlfind + ocamlopt ?
<flux> well, it uses ocamlfind and ocamlopt to create the binary, so it doesn't, unless it gives different arguments to them than your comparison
<flux> ocamlbuild -v iirc displays the command lines used
<flux> or maybe -classic-display if not that
<orbifx> how do you tell it to -linkpkg?
<flux> my suspicion: 1) you link in some additional library or 2) you have debug information 3) one is stripped or and one isn't
<flux> tell what?
<flux> ocamlbuild must use -linkpkg in the final step of compiling, no?
pootler has quit []
<orbifx> when I was using ocamlfind + ocamlopt directly I had -linkpkg
<flux> but ocamlbuild doesn't use -linkpkg?
<flux> I think it must use, otherwise it is unable to create a binray
<orbifx> which i pressume tells it to dynamic link to the libraries rathern then build them in?
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flux> well, no
<flux> ocamlfind uses -linkpkg to determine that the libraries must be linked in
<flux> without -linkpkg they are not linked in
<flux> and you cannot produce a final executable
<flux> in other words, you must have it, or it won't work
<flux> you get a bunch of errors without
<orbifx> ok got you
<orbifx> so it must be something else
<orbifx> I run both the builds side to side and now the difference is miniscule
<orbifx> guess the old binary was out of date
_whitelogger_ has joined #ocaml
_whitelogger has quit [Remote host closed the connection]
AlexDenisov has joined #ocaml
ygrek has joined #ocaml
iZsh has quit [Quit: ZNC - http://znc.in]
iZsh has joined #ocaml
<orbifx> thanks flux
tane has joined #ocaml
MercurialAlchemi has joined #ocaml
shinnya has quit [Ping timeout: 265 seconds]
ygrek has quit [Ping timeout: 264 seconds]
veggie_ has joined #ocaml
orbifx has quit [Ping timeout: 252 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 265 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
tristero has quit [Quit: tristero]
libertas has joined #ocaml
<libertas> hi, trying to setup up merlin with ocaml files in vim
<libertas> can I move the lines of:
<libertas> let g:opamshare = substitute(system('opam config var share'),'\n$','','''')
<libertas> execute "set rtp+=" . g:opamshare . "/merlin/vim"
<libertas> set rtp... and let g:syntastic_ocaml_checkers = ['merlin']
<libertas> to ~/.vim/after/ftplugin/ocaml.vim?
<libertas> tried but it returns error when opening an ocaml file
octachron has quit [Quit: Page closed]
slash^ has joined #ocaml
Algebr has quit [Ping timeout: 265 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
larhat has quit [Quit: Leaving.]
smondet`` has quit [Ping timeout: 255 seconds]
<Bluddy[m]> libertas: I don't think you can do that because by adding to rtp (runtimepath), you're adding the location of merlin, but you aren't sourcing (ie. loading) merlin's files. Vim sources its plugin files (all plugin files found in the rtp) when it boots up, and this isn't happening here. If you want merlin to be loaded lazily, I suggest you use a plugin manager (such as vim-plug, which is terrific), and use vim-plug's lazy init
<Bluddy[m]> feature. In this case, though, you'll probably be using the version of merlin obtained from its git repo.
tristero has joined #ocaml
wxfdglm has quit [Ping timeout: 244 seconds]
AdmWiggin is now known as tianon
lolisa has joined #ocaml
Euturiel has joined #ocaml
ygrek has joined #ocaml
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Leonidas has quit [Quit: An ideal world is left as an exercise to the reader]
Denommus has joined #ocaml
Euturiel has quit [Remote host closed the connection]
Denommus` has joined #ocaml
wxfdglm has joined #ocaml
Algebr has joined #ocaml
Daewron has joined #ocaml
Daewron has quit [Remote host closed the connection]
lolisa has quit [Ping timeout: 252 seconds]
Denommus has quit [Ping timeout: 265 seconds]
atsampson has quit [Ping timeout: 265 seconds]
atsampson has joined #ocaml
Element has joined #ocaml
eh_eff has joined #ocaml
Kakadu has quit [Ping timeout: 240 seconds]
Denommus` is now known as Denommus
rbocquet has quit [Ping timeout: 252 seconds]
rbocquet has joined #ocaml
shinnya has joined #ocaml
trevorriles_ is now known as trevorriles
MercurialAlchemi has joined #ocaml
ygrek has quit [Ping timeout: 255 seconds]
Element has quit [Remote host closed the connection]
Leonidas_ has joined #ocaml
Leonidas_ is now known as Leonidas
FreeBirdLjj has joined #ocaml
pootler has joined #ocaml
wagle_ is now known as wagle
FreeBirdLjj has quit [Ping timeout: 265 seconds]
zetavolt is now known as zv
Lughar has joined #ocaml
ygrek has joined #ocaml
Lughar has quit [Remote host closed the connection]
rgrinberg has quit [Ping timeout: 276 seconds]
wxfdglm has quit [Ping timeout: 265 seconds]
rand__ has joined #ocaml
wxfdglm has joined #ocaml
jonasen_ has joined #ocaml
jonasen has quit [Ping timeout: 260 seconds]
veggie_ has quit [Ping timeout: 260 seconds]
octachron has joined #ocaml
orbifx has joined #ocaml
veggie_ has joined #ocaml
AlexDenisov has joined #ocaml
rgrinberg has joined #ocaml
wxfdglm has quit [Ping timeout: 244 seconds]
eh_eff has quit [Ping timeout: 276 seconds]
pootler has quit [Read error: Connection reset by peer]
_andre has quit [Quit: leaving]
slash^ has quit [Read error: Connection reset by peer]
MercurialAlchemi has quit [Ping timeout: 252 seconds]
<reynir> libertas: fwiw I usually do opam install merlin ocp-indent user-setup; opam user-setup install
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<companion_cube> what's user-setup?
<reynir> It configures your editors for you :) https://github.com/OCamlPro/opam-user-setup
<companion_cube> ah, hmm
<companion_cube> (I git version my editor config)
<Algebr> also opam install starterkit which is a superset of that and other beginning stuff.
<companion_cube> jeez, youngsters these days with their fancy new toys :p
eh_eff has joined #ocaml
<reynir> heh
<Drup> (I recommend user-setup, it works very well to auto-configure emacs in a way that works cross-switches)
<Drup> (I believe it works for other editors, but I haven't tested it)
eh_eff has quit [Ping timeout: 272 seconds]
rand__ has quit [Quit: leaving]
dmj has joined #ocaml
jonasen_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jstolarek has joined #ocaml
veggie_ has quit [Ping timeout: 265 seconds]
pootler has joined #ocaml
Algebr has quit [Ping timeout: 276 seconds]
orbifx has quit [Ping timeout: 276 seconds]
veggie_ has joined #ocaml
eh_eff has joined #ocaml
dmruiz has joined #ocaml
<dmruiz> what am I doing wrong when I define this type synonym?
<dmruiz> type 'a parser = string -> ('a * string) list;;
<companion_cube> doesn't look wrong
<rightfold> works on my machine
<dmruiz> utop says me: "Error: Parse error: [type_longident] expected after [optional_type_parameter] (in [type_ident_and_parameters])"
<rightfold> the error is likely in surrounding code
<companion_cube> I think you're using camlp4
<companion_cube> in which `parser` might have a special meaning
<dmruiz> no it is just in utop
<dmruiz> there is no more code
<rightfold> works for me in utop
<octachron> dmruiz, companion cube is right: parser is a keyword with camlp4
<octachron> (even in the camlp4-emulated original syntax)
<companion_cube> the error message looks a lot like camlp4
<dmruiz> octachron, companion_cube , thanks I didn't know that.
orbifx has joined #ocaml
<struk|desk> companion_cube: you mean it looks cryptic and unhelpful?
<companion_cube> :D
<orbifx> companion_cube: there is also `opam install write-my-code-for-me`
<companion_cube> meh, it's not worse than usual ocaml syntax errirs
<struk|desk> orbifx: the last version of write-my-code-for-me still required dependencies "thought", "coffee", "time", and "sleep".
<octachron> I would argue that camlp4 syntax error messages are still sometimes better than vanilla syntax error
<orbifx> lol :)
orbifx-m has joined #ocaml
orbifx has quit [Ping timeout: 272 seconds]
<reynir> I actually tried to install write-my-code-for-me :(
<companion_cube> write-my-opam-install-command-for-me
dmruiz has quit [Remote host closed the connection]
<reynir> heh
ggole has quit []
aantron has joined #ocaml
orbifx-m2 has joined #ocaml
orbifx-m has quit [Ping timeout: 255 seconds]
orbifx-m has joined #ocaml
jstolarek has quit [Ping timeout: 265 seconds]
orbifx-m2 has quit [Ping timeout: 265 seconds]
tane has quit [Quit: Leaving]
togg719 has joined #ocaml
rgrinberg has quit [Ping timeout: 244 seconds]
orbifx-m has quit [Read error: Connection reset by peer]
orbifx-m2 has joined #ocaml
Denommus has quit [Quit: going home]
dmj has quit [Ping timeout: 255 seconds]
orbifx-m has joined #ocaml
kamog has joined #ocaml
orbifx-m2 has quit [Ping timeout: 276 seconds]
Sorella has quit [Quit: Connection closed for inactivity]
manizzle has joined #ocaml
Simn has quit [Read error: Connection reset by peer]
ee_ks has joined #ocaml
octachron has quit [Quit: Leaving]