companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.05.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.05/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
spew has quit [Ping timeout: 260 seconds]
<orbifx[m]> dxtr: have you written anywhere about getting ocaml on pocketchip?
sam__ has joined #ocaml
sh0t has quit [Read error: No route to host]
sam__ has quit [Ping timeout: 248 seconds]
silver has quit [Quit: rakede]
jlam__ has joined #ocaml
copy_ has quit [Quit: Connection closed for inactivity]
sz0 has quit [Quit: Connection closed for inactivity]
jlam has quit [Ping timeout: 255 seconds]
lucybun has quit [Ping timeout: 246 seconds]
lucybun has joined #ocaml
pierpa has quit [Quit: Page closed]
<dxtr> orbifx[m]: Uhm, no. there wasn't much to write about. Download and install opam, 'opam switch 4.04.2' and wait
spew has joined #ocaml
sh0t has joined #ocaml
mfp__ has quit [Ping timeout: 240 seconds]
spew has quit [Ping timeout: 260 seconds]
spew has joined #ocaml
malc_ has joined #ocaml
sam__ has joined #ocaml
spew has quit [Ping timeout: 268 seconds]
sam__ has quit [Ping timeout: 268 seconds]
samrat_ has joined #ocaml
maxton__ has joined #ocaml
maxton_ has quit [Ping timeout: 268 seconds]
sam__ has joined #ocaml
maxton__ has quit [Read error: Connection reset by peer]
sh0t has quit [Remote host closed the connection]
maxton__ has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
alexelcu has quit [Remote host closed the connection]
handlex has joined #ocaml
alexelcu has joined #ocaml
ome has quit [Ping timeout: 255 seconds]
dmj` has quit [Remote host closed the connection]
spew has joined #ocaml
samrat_ has quit [Ping timeout: 240 seconds]
lostman has quit [Quit: Connection closed for inactivity]
handlex has quit [Quit: handlex]
spew has quit [Quit: foobar]
malc_ has quit [Remote host closed the connection]
samrat_ has joined #ocaml
_whitelogger has joined #ocaml
ziyourenxiang has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
groovy2shoes has quit [Quit: Leaving]
Enamex has joined #ocaml
groovy2shoes has joined #ocaml
ygrek has quit [Ping timeout: 248 seconds]
samrat_ has quit [Ping timeout: 260 seconds]
olibjerd has joined #ocaml
slash^ has joined #ocaml
sam__ has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ocaml
<orbifx[m]> dxtr: download from distro repos or source?
kakadu has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 260 seconds]
samrat_ has joined #ocaml
tane has joined #ocaml
argent_smith has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
dakk has joined #ocaml
LACampbell has quit [Ping timeout: 260 seconds]
Ragora is now known as Ragora|Away
LACampbell has joined #ocaml
samrat_ has quit [Ping timeout: 246 seconds]
FreeBird_ has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
shinnya has joined #ocaml
mfp__ has joined #ocaml
ziyourenxiang has joined #ocaml
tane has quit [Quit: Leaving]
Algebr has joined #ocaml
Soni has quit [Ping timeout: 240 seconds]
argent_smith has quit [Quit: Leaving.]
samrat_ has joined #ocaml
zpe has joined #ocaml
whisperedcigar has joined #ocaml
zpe_ has joined #ocaml
chat____4 has quit [Ping timeout: 240 seconds]
zpe has quit [Ping timeout: 240 seconds]
zpe_ has quit [Remote host closed the connection]
dakk has quit [Ping timeout: 240 seconds]
breitenj has joined #ocaml
jlam__ has quit [Ping timeout: 268 seconds]
samrat_ has quit [Ping timeout: 276 seconds]
jlam has joined #ocaml
breitenj has quit [Quit: ZNC - 1.6.0 - http://znc.in]
breitenj has joined #ocaml
Sakarah has joined #ocaml
Sakarah has quit [Remote host closed the connection]
olibjerd has quit [Quit: olibjerd]
MercurialAlchemi has joined #ocaml
LACampbell has quit [Ping timeout: 240 seconds]
breitenj- has joined #ocaml
breitenj- has quit [Remote host closed the connection]
breitenj- has joined #ocaml
jlam__ has joined #ocaml
breitenj has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jlam has quit [Ping timeout: 255 seconds]
breitenj has joined #ocaml
jlam has joined #ocaml
jlam__ has quit [Ping timeout: 240 seconds]
breitenj- has quit [Quit: ZNC - 1.6.0 - http://znc.in]
MatthiasGoergens has joined #ocaml
<MatthiasGoergens> Hi! I am trying to use merlin together with neovim (but can also fall back to vim). I installed merlin with opam. How do I now use it? All my googling didn't turn up a simple description of the keybindings, and how I can even tests that it's loaded properly.
<MatthiasGoergens> When I try :help Merlin<tab> I see a bunch of completions, so something must have worked in the installation. But eg just doing :Merlin<tab> doesn't show anything.
elfring has joined #ocaml
<_y> MatthiasGoergens, have you added some lines to your .vimrc ?
<_y> eg. i have those, which are completely generic:
<_y> let g:opamshare=substitute(system('opam config var share'),'\n$','','')
<_y> execute "set rtp+=" . g:opamshare . "/merlin/vim"
<_y> let g:syntastic_ocaml_checkers = ['merlin']
<_y> (the last one is for interaction with the (very worthy) plugin “Syntastic”)
<MatthiasGoergens> I added those lines via opam.
<MatthiasGoergens> Or at least lines that look very similar.
<MatthiasGoergens> Installing syntastic now.
sh0t has joined #ocaml
<_y> it is strange you have access to Merlin help but not to Merlin commands
breitenj has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<MatthiasGoergens> Should the Merlin commands start with :Merlin?
<_y> yes MatthiasGoergens
<_y> hm, now i think, are you trying this from a buffer whose filetype is ‘ocaml’?
<_y> Merlin is activated by file type
<MatthiasGoergens> :set filetype ocaml?
<_y> yes
<MatthiasGoergens> The syntax highlighting definitely works already---and I just also tried explicitly setting the filetype.
breitenj has joined #ocaml
<MatthiasGoergens> I am trying things out on qcheck's example/QCheck_test.ml. The qcheck repository comes with a .merlin in its root directory.
<elfring> Where is the data format for compiled module interfaces (CMI files) documented?
<_y> (i just noticed that i didn’t have myself the help tags for merlin.txt, probably because of an update of ocaml / merlin, but i guess it is not related to your problem)
<def`> MatthiasGoergens: what is printed by ":set rtp?" and ":scriptnames"
<Drup> elfring: typedtree.mli
<Drup> oh, cmi, types.mli then
<def`> Drup: cmi_format and types
breitenj has quit [Client Quit]
<MatthiasGoergens> :set rtp gives runtimepath=~/.config/nvim,/etc/xdg/nvim,~/.local/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/local/C ellar/neovim/0.2.0_1/share/nvim/runtime,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,~/.local/share/nvim/site/aft er,/etc/xdg/nvim/after,~/.config/nvim/after,~/.opam/system/share/merlin/vim
<_y> is merlin found under ~/.opan/system/share/merlin indeed?
FreeBird_ has quit [Remote host closed the connection]
<elfring> Drup, def: Should CMI files be compatible between the available versions of OCaml compilers?
<_y> are you using the system switch?
<MatthiasGoergens> :set scriptnames gives https://gist.github.com/matthiasgoergens/e7daec70ac260b993cb28cf699d1c789 (too much spam, so in a gist.)
<Drup> elfring: No.
<MatthiasGoergens> opam switch looks like i am using the system one. (I installed the system one with homebrew on macosx.)
govg has joined #ocaml
<elfring> Drup: Where are restrictions documented for the data exchange around compiled module interfaces?
<MatthiasGoergens> Trying opam switch 4.05.0 now, since that's the latest in the list. system was 4.04.2
<def`> MatthiasGoergens: you are missing "merlin/ftplugin/ocaml.vim" and "autoload/merlin.vim"
Sakarah has joined #ocaml
<def`> do you have a line "filetype plugin on" in the vimrc?
<Drup> elfring: Probably nowhere seriously, but you can read the already mentioned files.
<MatthiasGoergens> def`: Thanks, I'll look for those files. Hmm, I thought I had filetype plugin on, but can't find it. Let me check what the reasons were.
<elfring> Should compiled module interfaces (CMI files) which were generated by the tools “ocamlc” and “ocamlopt.opt” be equivalent for a specific software version?
def` has quit [Ping timeout: 255 seconds]
FreeBirdLjj has joined #ocaml
<elfring> ‎Drup: To which source code documentation did you refer?
<Drup> elfring: typing/types.mli and typing/cmi_format.mli in the compiler
silver has joined #ocaml
<Drup> You should just look at this, it'll answer your questions.
<elfring> ‎Drup‎: Would you like to show an exact link into the OCaml development repository?
<MatthiasGoergens> Thanks for your help so far! Also to def`, even if they won't receive this message.
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
MatthiasGoergens has quit [Ping timeout: 260 seconds]
<elfring> ‎Drup‎: I assume that you might refer to this module interface then: https://github.com/ocaml/ocaml/blob/30c796713c2d282ed8d05e5b7eb503a635638c6d/typing/cmi_format.mli
olibjerd has joined #ocaml
moei has joined #ocaml
<dxtr> orbifx[m]: Pick your poison :)
FreeBirdLjj has quit [Remote host closed the connection]
<orbifx[m]> ?
whisperedcigar has quit [Ping timeout: 248 seconds]
Soni has joined #ocaml
<orbifx[m]> dxtr: what do you mean? What poisons are on offer? :P
whisperedcigar has joined #ocaml
whisperedcigar has quit [Ping timeout: 248 seconds]
keep_learning has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
keep_learning has joined #ocaml
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 248 seconds]
whisperedcigar has joined #ocaml
jlam has joined #ocaml
max3 has joined #ocaml
whisperedcigar has quit [Ping timeout: 248 seconds]
<max3> okay i install opam now how do i install ocaml using opam? instructions are nowhere to be found
jlam__ has quit [Ping timeout: 260 seconds]
Soni has quit [Ping timeout: 268 seconds]
jlam__ has joined #ocaml
<octachron> max3, "opam switch 4.04.3" for the previous last version or "opam switch 4.05.0" for the last version published few days ago, with some wrinkle still being fixed
jlam has quit [Ping timeout: 240 seconds]
<max3> kakadu_, doesn't say anywhere on there explicitly about how to install
<max3> thank octachron
andreas_ has quit [Quit: Connection closed for inactivity]
<max3> oh apparently install opam install ocaml (at least the interpreter)
Soni has joined #ocaml
whisperedcigar has joined #ocaml
matthias__ has joined #ocaml
matthias__ is now known as steinhagelvoll
whisperedcigar has quit [Ping timeout: 248 seconds]
<steinhagelvoll> Hello, I'm new to ocaml und would like to install the gnuplot wrapper: https://bitbucket.org/ogu/gnuplot-ocaml
<steinhagelvoll> but I alway get this kind of error: The following dependencies couldn't be met:
<steinhagelvoll> - gnuplot -> core < v0.9.0 -> sexplib < 113.25.00
<steinhagelvoll> this is the full error: https://pastebin.com/viyLdQ0x
<steinhagelvoll> what am I doing wrong?
<steinhagelvoll> interestingly my ocaml version is: > $ ocaml --version
<steinhagelvoll> The OCaml toplevel, version 4.05.0
FreeBirdLjj has joined #ocaml
argent_smith has joined #ocaml
<octachron> steinhagelvoll, did you install an external solver (aspcud for instance)? otherwise opam internal solver can be quite whimsical?
keep_learning has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<octachron> steinhagelvoll, hm, it looks like it is a 4.05.0 problem and gnuplot is installable on 4.04.3
<adrien> 4.05.0 is very new
<adrien> only a couple days old
<adrien> it probably lacks some things
<adrien> 4.04.2 is probably a better choice for now
<adrien> you'd probably better use that switch
<adrien> (do you know what a "switch" is?)
FreeBirdLjj has quit [Ping timeout: 246 seconds]
<steinhagelvoll> ok that might be arch specific problem. I'll see if I can downgrade
<steinhagelvoll> what's switch?
MatthiasGoergens has joined #ocaml
<steinhagelvoll> i think I figured it out. I will try an older switch
whisperedcigar has joined #ocaml
keep_learning has joined #ocaml
mengu has joined #ocaml
tane has joined #ocaml
whisperedcigar has quit [Ping timeout: 248 seconds]
whisperedcigar has joined #ocaml
<adrien> steinhagelvoll: yup, 4.04.2 should be safe
whisperedcigar has quit [Ping timeout: 248 seconds]
whisperedcigar has joined #ocaml
<steinhagelvoll> ok thanks
whisperedcigar has quit [Ping timeout: 248 seconds]
Sakarah has quit [Ping timeout: 240 seconds]
samrat_ has joined #ocaml
whisperedcigar has joined #ocaml
whisperedcigar has quit [Ping timeout: 248 seconds]
breitenj has joined #ocaml
<dxtr> orbifx[m]: The poisons are A) Use the package manager B) Download the latest release from the website
<dxtr> Both works but the package manager doesn't have the latest release of opam
<dxtr> And I think that pulls in a bunch of dependencies too, like ocaml.
<dxtr> Which might not be a bad thing considering these dependencies might be necessary to compile ocaml
<orbifx[m]> Ow so pocketchip uses a distro? Debian?
<dxtr> debian oldstable
<dxtr> Jessie
<Drup> debian archeology ;)
ziyourenxiang has quit [Ping timeout: 260 seconds]
<Drup> (this is my personal nickname)
<dxtr> From what I've read there *shouldn't* be any serious issues upgrading to, say, stable or testing
<dxtr> But I haven't bothered with that
whisperedcigar has joined #ocaml
dakk has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
whisperedcigar has quit [Quit: WeeChat 1.5]
MatthiasGoergens has quit [Quit: Page closed]
dreadedfrog has joined #ocaml
deep-book-gk_ has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
deep-book-gk_ has left #ocaml [#ocaml]
<steinhagelvoll> ok thanks
<steinhagelvoll> sry wrong window
<steinhagelvoll> Can someone explain this syntax error to me: https://pastebin.com/cmKB2zsH
<steinhagelvoll> with the "open"-statement commented out it works fine
<steinhagelvoll> with the open statement I get: File "test.ml", line 3, characters 0-3:
<steinhagelvoll> Error: Syntax error
mengu has joined #ocaml
TheLemonMan has joined #ocaml
<octachron> steinhagelvoll, "for … done" is a toplevel expression, it must be separated by a ";;": "open X ;; for … done"
<dreadedfrog> steinhagelvoll: maybe missing semicolon?
<steinhagelvoll> thanks that seems to work. I tried ;, but not ;;
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
Enamex has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 260 seconds]
ryanartecona has joined #ocaml
samrat_ has quit [Ping timeout: 248 seconds]
ilovezfs_ has joined #ocaml
ilovezfs_ has left #ocaml [#ocaml]
ryanartecona has quit [Quit: ryanartecona]
malc_ has joined #ocaml
sam__ has joined #ocaml
sh0t has quit [Ping timeout: 276 seconds]
dreadedfrog has quit [Ping timeout: 240 seconds]
def` has joined #ocaml
jlam has joined #ocaml
jlam__ has quit [Ping timeout: 248 seconds]
Mercuria1Alchemi has joined #ocaml
Algebr has quit [Ping timeout: 255 seconds]
tane has quit [Quit: Leaving]
andreas_ has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
malc_ has quit [Remote host closed the connection]
al-damiri has joined #ocaml
KV has joined #ocaml
zpe has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 246 seconds]
<andreas_> I'm having some difficulties specifying a non-.ml file dependency with jbuilder. I need a file, schema.json, to compile foo.ml. As far as I can tell, the executable- and library-stanzas only allow dependencies to be specified with (modules x y z), which only allows .ml files. So how can I solve this?
<rgrinberg> you have a (rule (...)) stanza to generate your foo.ml right?
<andreas_> foo.ml is just a regular file.
<andreas_> ppx reads schema.json during compilation of foo.ml.
<rgrinberg> Oh, I see. And you pass this filename (schema.json) as an argument to your ppx, right?
<andreas_> It's hardcoded right now (blush), but it will be, yes :)
<rgrinberg> there's no straight forward way to express this dependency now off the top of my head. You should make a gh issue for this problem
<andreas_> Ok, thanks -- I'll create an issue. I'll try with a dummy module and a custom rule in the meantime..
Algebr has joined #ocaml
<rgrinberg> (modules (...)) is probably not the answer though. You really want to express that this is a preprocessing dependency here
<andreas_> That makes sense.
snowcrshd has joined #ocaml
<rgrinberg> another stupid way would be to define a custom preprocessor that just wraps your ppx and add a custom rule that will turn that schema.json into an ocaml module with a string (kind of like ocaml crunch).
<rgrinberg> Sounds a bit like a rube goldberg machine, but it should work
zpe_ has joined #ocaml
rostero has joined #ocaml
<rostero> new to ocaml. dependencies go in an .opam file, right? i'm trying to search github for everyone that uses a specific ocaml library
<Drup> rostero: `opam list --depends FOO"
<rostero> nice
<rostero> thanks
zpe has quit [Ping timeout: 258 seconds]
<rgrinberg> yes. but also, .opam isn't entirely correct either. some people have simply opam files too
<rostero> just trying to see if anyone was using this library called Clarity
<andreas_> rgrinberg: ah, that might work. I'll read up on the preprocessing options in jbuilder..
Algebr has quit [Read error: Connection reset by peer]
<Drup> rostero: It's very new and not very idiomatic, so I doubt it'll see a large adoption
<rostero> Drup: that's what i figured, but just wanted to confirm
<Drup> (also, it has some discutable design choices, and tries to hard to emulate haskell stuff which doesn't really work all that well without type classes)
<Drup> (it might all change when we get modular implicits, though)
<rostero> is there a roadmap for module implicits?
<Drup> Not really
<def`> (-_-;)
slash^ has quit [Read error: Connection reset by peer]
TheLemonMan has joined #ocaml
Algebr has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
sam__ has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
steinhagelvoll has quit [Quit: Leaving]
KV has quit [Quit: leaving]
argent_smith has quit [Quit: Leaving.]
sam__ has joined #ocaml
<flux> I believe you are easily entertained :)
sam__ has quit [Ping timeout: 240 seconds]
elfring has quit [Quit: Konversation terminated!]
mengu_ has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
mengu_ has quit [Client Quit]
sz0 has joined #ocaml
nicoo has quit [Ping timeout: 248 seconds]
kolko has quit [Quit: ZNC - http://znc.in]
mengu has joined #ocaml
olibjerd has quit [Ping timeout: 255 seconds]
nicoo has joined #ocaml
FreeBirdLjj has joined #ocaml
infinity0 has quit [Ping timeout: 240 seconds]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
soupault has joined #ocaml
<soupault> hello everyone! I'm starting to get acquainted with `jbuilder` and looking for some assistance. I have a project where the code is structured as follows: ./bin/ - several entry points, ./src/ - some modules which perform all the processing. the question is: do I need to write separate `jbuild`s for `bin` and `src`, and trigger the builds separately, or there is a way to build everything from a root location?
Algebr has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 255 seconds]
johnelse_ has joined #ocaml
vydd has joined #ocaml
<vydd> hi
al-damiri has quit [Remote host closed the connection]
rostero has quit [Remote host closed the connection]
dreadedfrog has joined #ocaml
FreeBirdLjj has joined #ocaml
ome has joined #ocaml
dmj` has joined #ocaml
dreadedfrog has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 276 seconds]
soupault has quit [Remote host closed the connection]
sam___ has joined #ocaml
al-damiri has joined #ocaml
pierpa has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
rostero has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
sz0 has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has joined #ocaml
sam____ has joined #ocaml
<dxtr> 'unusued variable &&.'
<dxtr> Thanks!
<dxtr> :)
FreeBirdLjj has quit [Ping timeout: 276 seconds]
sam____ has quit [Ping timeout: 240 seconds]
silver has quit [Ping timeout: 260 seconds]