adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
al-damiri has quit [Quit: Connection closed for inactivity]
ostera1974 has joined #ocaml
steenuil has quit [Remote host closed the connection]
orbifx has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
kvda has joined #ocaml
mbac has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
olle has joined #ocaml
silver has quit [Read error: Connection reset by peer]
keep_learning has quit [Remote host closed the connection]
keep_learning has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
mfp has quit [Ping timeout: 245 seconds]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 272 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
ostera1974 has quit [Ping timeout: 272 seconds]
ostera1974 has joined #ocaml
marvin2 has quit [Ping timeout: 244 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
cubemonkey has joined #ocaml
cubemonkey has joined #ocaml
ostera1974 has quit [Ping timeout: 244 seconds]
ostera1974 has joined #ocaml
cubemonkey has quit [Read error: Connection reset by peer]
kvda has joined #ocaml
kvda has quit [Client Quit]
ostera1974 has quit [Ping timeout: 245 seconds]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
dtornabene has joined #ocaml
pierpal has quit [Ping timeout: 250 seconds]
pierpal has joined #ocaml
gravicappa has joined #ocaml
pierpal has quit [Ping timeout: 250 seconds]
pierpal has joined #ocaml
ostera1974 has joined #ocaml
ostera1974 has quit [Ping timeout: 250 seconds]
marvin2 has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
freyr69 has joined #ocaml
ostera1974 has joined #ocaml
ostera1974 has quit [Ping timeout: 250 seconds]
mildtaste has joined #ocaml
_whitelogger has joined #ocaml
<freyr69> Where could I find an info about dune's default flags?
Jesin has quit [Ping timeout: 250 seconds]
<vsiles> freyr69: maybe ask here https://discuss.ocaml.org/tags/dune
ostera1974 has joined #ocaml
ostera1974 has quit [Ping timeout: 268 seconds]
kvda has joined #ocaml
carlosdagos has quit [Quit: Connection closed for inactivity]
Haudegen has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaar has joined #ocaml
krkini is now known as kini
webshinra_ has quit [Remote host closed the connection]
ollehar has joined #ocaml
ostera1974 has joined #ocaml
ostera1974 has quit [Ping timeout: 244 seconds]
asymptotically has joined #ocaml
webshinra has joined #ocaml
kvda has joined #ocaml
hph^ has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbifx has joined #ocaml
<def`_> freyr69: from the root of your project, run "dune printenv"
def`_ is now known as def`
ostera1974 has joined #ocaml
ostera1974 has quit [Ping timeout: 246 seconds]
jaar has quit [Ping timeout: 252 seconds]
<freyr69> def`: wow, thanks. Though it seems that dune with env stanza in the root does not affect my environment
<freyr69> Ah, it does
<freyr69> neat
<freyr69> dune is supercool
<freyr69> But is there any way to set the js_of_ocaml env for all libraries at once?
<freyr69> env contains only flags, ocamlc_flags and ocamlopt_flags
<def`> I don't know :/
mfp has joined #ocaml
dtornabene has quit [Remote host closed the connection]
jaar has joined #ocaml
ziyourenxiang has quit [Remote host closed the connection]
ziyourenxiang has joined #ocaml
<freyr69> does dune add weak.js by default?
<Drup> I doubt it, but you should just be able to depend on js_of_ocaml.weak
ostera1974 has joined #ocaml
<freyr69> Drup: I should add it to the executables only, not for the libs, right?
<Drup> I don't think it matters, so do what is best in your case
ostera1974 has quit [Ping timeout: 246 seconds]
<freyr69> Is bigarray.js always added by default?
<freyr69> I have "may miss dependencies: caml_ba_get_1, caml_int_compare" js_oc_ocaml error
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
<Drup> I'm not sure
silver has joined #ocaml
iovec has quit [Quit: Connection closed for inactivity]
johnelse has quit [Read error: Connection reset by peer]
johnelse has joined #ocaml
ostera1974 has joined #ocaml
Haudegen has quit [Remote host closed the connection]
ostera1974 has quit [Ping timeout: 268 seconds]
MasseR has quit [Ping timeout: 268 seconds]
MasseR has joined #ocaml
Haudegen has joined #ocaml
spew has joined #ocaml
ostera1974 has joined #ocaml
<wilfredh> when packaging something with dune, why do projects have a build: section but not an install: section?
<wilfredh> "If your project uses dune, skip install:"
<wilfredh> I'm trying to package a project and wondering how to override PREFIX
al-damiri has joined #ocaml
<orbifx> maybe install is beyong the scope of that file. .dune files have rules for that
<octachron> wilfredh, install is not needed if a *.install file is present or generated
<Drup> In any case, prefix should not be handled at the package level
<Drup> opam-installer as options to modify the prefix
<wilfredh> I'm trying to build a relocatable executable
<wilfredh> my build environment is an opam switch, which won't exist when my RPM is installed
<wilfredh> so I'd like to override PREFIX to be /usr, or I end up with ocamlfind trying to find my switch on the target machine
<wilfredh> Drup: the only prefix related option to 'opam install' that I can see is --destdir but that seems to be a subdirectory of the switch
<wilfredh> was that the option you meant?
<Drup> That's not really how the build tools work. PREFIX is only used for where to place the resulting files, the locations where to find libraries is controlled through environment variables
<Drup> So, you don't really need to worry about it
<Drup> and yes, destdir is what I'm talking about
<wilfredh> $ ocamlmerlin --version
<Drup> You should look at other ocaml RPM packages as inspiration
<wilfredh> Fatal error: exception Failure("Config file not found - neither /home/wilfred/share/dotopam/default/lib/findlib.conf nor the directory /home/wilfred/share/dotopam/default/lib/findlib.conf.d")
<wilfredh> I'm surprised that it's insisting on looking for findlib data at runtime
<Drup> Ah, well, merlin is a bit special, I'll let the authors deal with that :p
<wilfredh> I can kludge it with `OCAMLFIND_CONF=/dev/null ocamlmerlin --version` but then I'd need to write a wrapper script
<Drup> that also makes merlin useless, you should probably make sure merlin can find ocamlfind instead.
ostera1974 has quit [Ping timeout: 250 seconds]
<wilfredh> Drup: AFAICS merlin works fine without ocamlfind.
<wilfredh> doesn't it find dependencies using .merlin files?|
ziyourenxiang has quit [Remote host closed the connection]
<Drup> No, it uses ocamlfind to find libraries.
ziyourenxiang has joined #ocaml
FreeBirdLjj has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
freyr69 has quit [Remote host closed the connection]
<def`> We would like to get rid of ocamlfind, or at least make it really optional at some point.
<def`> The thing is that merlin links to findlib to resolve packages (the PKG lines in .merlin, merlin-use or MerlinUse in Emacs & Vim), but findlib initialization fails without a findlib.conf file.
<companion_cube> what would merlin rely on, then?
<def`> absolute directories
<companion_cube> ah right, dune would generate that I suppose
<def`> Yes.
ostera1974 has joined #ocaml
Niamkik has quit [Ping timeout: 245 seconds]
ziyourenxiang has quit [Ping timeout: 252 seconds]
jerme_ has joined #ocaml
iovec has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Niamkik has joined #ocaml
FreeBirdLjj has joined #ocaml
<companion_cube> (i'm fully on the dune train, but yeah, keeping an option for people who don't use dune seems nice)
ostera1974 has quit [Ping timeout: 245 seconds]
FreeBirdLjj has quit [Ping timeout: 268 seconds]
ollehar has quit [Ping timeout: 244 seconds]
orbifx has quit [Quit: WeeChat 2.3]
Haudegen has quit [Remote host closed the connection]
Schroeder has quit [Ping timeout: 240 seconds]
Jesin has joined #ocaml
FreeBirdLjj has joined #ocaml
Serpent7776 has joined #ocaml
Schroeder has joined #ocaml
Schroeder has quit [Changing host]
Schroeder has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
Spetznaz_ has joined #ocaml
Spetznaz_ has quit [Read error: Connection reset by peer]
Spetznaz_ has joined #ocaml
pierpal has quit [Ping timeout: 268 seconds]
steenuil has joined #ocaml
jaar has quit [Ping timeout: 268 seconds]
orbifx has joined #ocaml
gravicappa has quit [Ping timeout: 244 seconds]
olle has joined #ocaml
tane has joined #ocaml
layeredeggplant has joined #ocaml
layeredeggplant has quit [Client Quit]
kakadu_ has joined #ocaml
ravenous_ has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
Denommus has joined #ocaml
crowley95 has quit [Ping timeout: 268 seconds]
crowley95 has joined #ocaml
<orbifx> is there a conventional name for an (include * exclude) pair/tuple?
Denommus has quit [Remote host closed the connection]
<companion_cube> like in List.partition, you mean?
ravenous_ is now known as ravenousmoose
<cemerick> Anyone aware of any existing turnkey node.js interop libraries, etc?
<cemerick> If not I'll just pipe protobuf data over, but maybe someone's paved this path...
<orbifx> companion_cube: lemme check
<orbifx> companion_cube: yeah, but for sets, going to check if there is one there too
<orbifx> companion_cube: its there ^^
<orbifx> I'm sure this is not the last time I will implement something only to find it later on in the standard library ^^
<orbifx> cemerick: no I haven't, you've probably searched OPAM and the forum
steenuil has quit [Remote host closed the connection]
<orbifx> cemerick: I don't know anything about these, just found them in a search: https://github.com/besport/ocaml-node | https://github.com/fxfactorial/ocaml-nodejs
Serpent7776 has quit [Quit: leaving]
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
kvda has joined #ocaml
kvda has quit [Client Quit]
kvda has joined #ocaml
nullifidian__ has joined #ocaml
jnavila has quit [Remote host closed the connection]
nullifidian_ has quit [Read error: Connection reset by peer]
kakadu_ has quit [Remote host closed the connection]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Haudegen has joined #ocaml
SpiceGuid has joined #ocaml
tane has quit [Quit: Leaving]
kvda has joined #ocaml
SpiceGuid has quit [Ping timeout: 250 seconds]
Niamkik has quit [Ping timeout: 268 seconds]
Niamkik has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cubemonkey has joined #ocaml
cubemonkey has joined #ocaml
anmonteiro has joined #ocaml
asymptotically has quit [Quit: Leaving]
kvda has joined #ocaml
<anmonteiro> wilfredh: btw Esy can build relocatable executables. Not sure about the Merlin problem though
<anmonteiro> https://esy.sh
cubemonkey has quit [Read error: Connection reset by peer]
silver_ has joined #ocaml
ziyourenxiang has joined #ocaml
silver has quit [Ping timeout: 268 seconds]
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
<cemerick> orbifx: yeah, I saw those. AFAICT, those are libraries intended to make calling into the node.js stdlib from ocaml targeting JSOO easier