Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Tuplanolla has quit [Quit: Leaving.]
olle has joined #ocaml
vicfred has quit [Quit: Leaving]
kaph has quit [Read error: Connection reset by peer]
olle has quit [Ping timeout: 240 seconds]
olle has joined #ocaml
olle has quit [Ping timeout: 252 seconds]
Techcable has joined #ocaml
<d_bot_> <cemerick> I feel like I've seen a tutorial for setting up and publishing to a private opam repository, but can't find it now. Was I imagining it?
<d_bot_> <cemerick> specifically, for how to do it outside of github, and *I think* using references to git commits instead of hosting tarballs somewhere
rish has quit [Quit: WeeChat 3.0]
mbuf has joined #ocaml
azimut_ has quit [Remote host closed the connection]
azimut has joined #ocaml
gravicappa has joined #ocaml
wyrd has quit [Quit: leaving]
wyrd has joined #ocaml
hackinghorn has quit [Ping timeout: 260 seconds]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
Haudegen has joined #ocaml
azimut_ has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
ansiwen has quit [Quit: ZNC 1.7.1 - https://znc.in]
ansiwen has joined #ocaml
vicfred has joined #ocaml
troydm has quit [Ping timeout: 250 seconds]
zebrag has quit [Quit: Konversation terminated!]
azimut_ has quit [Remote host closed the connection]
azimut has joined #ocaml
troydm has joined #ocaml
wyrd has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
azimut_ has joined #ocaml
wyrd has joined #ocaml
Serpent7776 has joined #ocaml
azimut_ has quit [Remote host closed the connection]
azimut has joined #ocaml
mro has joined #ocaml
xgqt has quit [Ping timeout: 256 seconds]
xgqt has joined #ocaml
waleee has quit [Ping timeout: 250 seconds]
saltrocklamp[m] has quit [Quit: You have been kicked for being idle]
<gopiandcode> trying to compile some stuff on a freebsd machine - hosting service doesn't provide root, so I have to compile everything from scratch, can't use pkg install etc.
<gopiandcode> managed to get opam up and running with a 4.12.0 switch
<gopiandcode> but now, one of the packages I'm installing requires libev, and I'm stuck
<gopiandcode> I've downloaded the ports of libev and compiled it, so now I have a libev.so file
<gopiandcode> but no root, so I can't place it under /lib/
<gopiandcode> how can I tell opam to look for shared libraries in a particular directory?
<gopiandcode> is it just by export LIBRARY/LD_LIBRARY_PATH?
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<d_bot_> <orbitz> gopiandcode: For compiling I think you'llneed LIBRARY
<d_bot_> <orbitz> But: surely there are hosts that let you install things?
<gopiandcode> It's a pretty barebones hosting provider, so the hosting service comes with a few languages (php, python, go) and libraries, but not much else, and no root
<d_bot_> <orbitz> Sure, but there are plenty of hosting provides out there
<d_bot_> <orbitz> I compile on sr.ht which provides FreeBSD build environments, for example
<hannes> gopiandcode: I'd guess you need to pass -L ~/libs -I ~/include (or where you installed the libev) to OCaml -- so whenever it calls out to a C compiler or linker it adds the paths
<gopiandcode> yes, maybe, if need be I can swap to another hosting provider, but I'd like to leave that as a last option - my hosting provider serves my main website (which is just a static page: gopiandcode.uk) very well, and I found that they also offer some basic VPS-like service, so for doing some small web-service experiments, I'd rather not go through the hassle of creating an account on a separate provider
<gopiandcode> hannes: right, I figured that would need to be done somewhere down the pipeline at the point where the OCaml compiler is run, but is there a way to do it from opam?
<gopiandcode> opam install -L ~/libs -I ~/include dream?
<theblatte> gopiandcode: do you need to pass it to the build or it builds fine but fails to execute?
<hannes> gopiandcode: I am not aware of an opam solution. What I know is that the OCaml compiler calls out to cc/ld, and in OCaml's configure step you can set the flags used (also reported by ocamlc -config) -> TL;DR: a CFLAGS=-Lfoo ./configure should (may) do the trick ;)
<gopiandcode> hannes: update, ran into a problem before that, mirage-crypto fails to build on freebsd? in particular, the dune file in src-freestanding calls out to make, but the freebsd's make rejects the makefile (gnu make works however?)
<hannes> gopiandcode: the issue is that dune in version 3 (< 3.0.3) does not work well on FreeBSD (see https://github.com/ocaml/dune/issues/5470)
<hannes> but gladly 3.0.3 is on the publish queue https://github.com/ocaml/opam-repository/pull/20829
<gopiandcode> ah, I see, good to hear that it's already been queued to be fixed!
<gopiandcode> in the meanwhile is the best option to just clone the mirage-crypto library locally and pin it?
<hannes> gopiandcode: maybe pin dune, maybe opam install dune<3.0
<gopiandcode> hannes: ah, thanks, yep, that's a much better idea
<gopiandcode> yup, I'm having a bunch of packages (bigstringaf, digestif) fail because of the dune issue, so pinning dune is definitely going to save some time
olle has joined #ocaml
<gopiandcode> theblatte: hadn't got round to actually building it, pre-emptively asked the question because I figured libev wouldn't be present, good point - I guess if it's a shared library, it might be the case that the compile won't fail (although maybe might fail because of missing include files)
<gopiandcode> will follow up once I finish recompiling dune, and the 100 packages that have to be recompiled as a result
mro has quit [Ping timeout: 240 seconds]
xd1le has joined #ocaml
kaph has joined #ocaml
bartholin has joined #ocaml
<gopiandcode> okay, I had to set C_INCLUDE_PATH as well, but that allowed me to build conf-libev without problem
nd__ has joined #ocaml
bartholin has quit [Ping timeout: 272 seconds]
olle has quit [Remote host closed the connection]
bartholin has joined #ocaml
spip has joined #ocaml
<gopiandcode> w00t - got my project to compile on the freebsd vps!
nd__ has quit [Ping timeout: 272 seconds]
xd1le has quit [Quit: xd1le]
Haudegen has quit [Quit: Bin weg.]
olle has joined #ocaml
romildo has joined #ocaml
kaph has quit [Read error: Connection reset by peer]
nd__ has joined #ocaml
Anarchos has joined #ocaml
kaph has joined #ocaml
thulis has joined #ocaml
romildo has quit [Quit: Leaving]
Haudegen has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
spip has quit [Ping timeout: 256 seconds]
bobo has joined #ocaml
<d_bot_> <Butanium (@me on reply)> there is no equivalent of java `get_or_default` in Built in in OCaml/Base ?
<d_bot_> <Anurag> Base has `Option.value` which lets you supply a `default`. You can probably use that in any context where your lookup returns an option
<d_bot_> <Butanium (@me on reply)> I can just do `match opt with Some a -> a | None -> default` but just wondering
<d_bot_> <undu> `Option.value ~default val`
andreypopp has quit [Ping timeout: 260 seconds]
<d_bot_> <Anurag> Not sure what version of OCaml added the `Option` module (4.08 maybe?), but `value` is present in that module.
<d_bot_> <undu> indeed, 4.08
<d_bot_> <Butanium (@me on reply)> ok thanks !
kaph has quit [Ping timeout: 240 seconds]
kaph has joined #ocaml
dextaa_ has joined #ocaml
gravicappa has joined #ocaml
nd___ has joined #ocaml
hackinghorn has joined #ocaml
nd__ has quit [Ping timeout: 256 seconds]
hackinghorn has quit [Remote host closed the connection]
hackinghorn has joined #ocaml
kaph has quit [Ping timeout: 245 seconds]
nd___ has quit [Ping timeout: 260 seconds]
andreypopp has joined #ocaml
hackinghorn has quit [Ping timeout: 240 seconds]
motherfsck has joined #ocaml
thulis has quit [Quit: WeeChat 3.0]
kaph has joined #ocaml
andreypopp has quit [Read error: Connection reset by peer]
andreypopp_ has joined #ocaml
andreypopp_ has quit [Read error: Connection reset by peer]
andreypopp has joined #ocaml
nd__ has joined #ocaml
waleee has joined #ocaml
<d_bot_> <Butanium (@me on reply)> do you do rather `mytype\n(* comments explaining my type *)` or `(* comments..*)\nmytype` ?
<d_bot_> <Butanium (@me on reply)> it seems like ocamllsp wants me to do `comment\ntype`
<d_bot_> <orbitz> I do this one
Haudegen has quit [Quit: Bin weg.]
kaph has quit [Ping timeout: 240 seconds]
<d_bot_> <khady> what do you mean by want you to do this one? You mean it is auto formated like this?
<d_bot_> <Butanium (@me on reply)> yes
<d_bot_> <Butanium (@me on reply)> @khady
<d_bot_> <Butanium (@me on reply)> oh ok it's because I had 2 comments I think
<d_bot_> <khady> also yes if you have somehow misplaced comments you'll see to which node it is really attached
<d_bot_> <Butanium (@me on reply)> ok it's because I had to comments in a row
<d_bot_> <Butanium (@me on reply)> ocamlformat thinks it's an entity not attached to any type
<d_bot_> <Butanium (@me on reply)> but actually it's because I didn't want to put the english and french comment in one comment
<d_bot_> <Butanium (@me on reply)> https://pastebin.com/5etqnuA4
<d_bot_> <Butanium (@me on reply)> for example in this case it prefers having a space between type declaration and comment
zebrag has joined #ocaml
<d_bot_> <Butanium (@me on reply)> I merged the french and english comments in one
kaph has joined #ocaml
kaph has quit [Ping timeout: 272 seconds]
vicfred has quit [Quit: Leaving]
bartholin has quit [Ping timeout: 240 seconds]
rgrinberg has joined #ocaml
nerdypepper has quit [Quit: bye]
kurfen has quit [Quit: ZNC 1.8.2 - https://znc.in]
nerdypepper has joined #ocaml
kurfen has joined #ocaml
bartholin has joined #ocaml
hackinghorn has joined #ocaml
ns12 has quit [Quit: bye]
ns12 has joined #ocaml
bartholin has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hackinghorn has quit [Ping timeout: 268 seconds]
kaph has joined #ocaml
Haudegen has joined #ocaml
rgrinberg has joined #ocaml
szkl has joined #ocaml
olle has quit [Remote host closed the connection]
mbuf has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
Anarchos has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
<Anarchos> am i the only one to find Cmdliner over complicated ?
<d_bot_> <undu> I don't think so, no
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
<d_bot_> <VPhantom> I ended up not using it for my small project. I'm sure it's great for big projects like Dune but it was way overkill for a little utility.
hackinghorn has joined #ocaml
hackinghorn has quit [Changing host]
hackinghorn has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
<Anarchos> VPantom i ended with same advice while using it
Anarchos has quit [Ping timeout: 256 seconds]
Anarchos has joined #ocaml
xgqt has quit [Ping timeout: 240 seconds]
zebrag has joined #ocaml
xgqt has joined #ocaml
hackinghorn has quit [Ping timeout: 240 seconds]
hackinghorn has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
<d_bot_> <RegularSpatula> It took me a while to get used to using it
Serpent7776 has quit [Quit: leaving]
hackinghorn has quit [Ping timeout: 240 seconds]
zebrag has joined #ocaml
cedric has joined #ocaml
hackinghorn has joined #ocaml
hackinghorn has quit [Remote host closed the connection]
nd__ has quit [Ping timeout: 260 seconds]
wyrd has quit [Ping timeout: 240 seconds]
hackinghorn has joined #ocaml
nd__ has joined #ocaml
hackinghorn has quit [Ping timeout: 250 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nd__ has quit [Ping timeout: 250 seconds]
wyrd has joined #ocaml
rgrinberg has joined #ocaml
nd__ has joined #ocaml
nd__ has quit [Ping timeout: 272 seconds]
sagax has joined #ocaml
nd__ has joined #ocaml
kaph has quit [Read error: Connection reset by peer]
motherfsck has quit [Ping timeout: 256 seconds]
kaph has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
nd__ has quit [Ping timeout: 256 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Anarchos has quit [Quit: Vision[]: i've been blurred!]