companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
rpg has joined #ocaml
infinity0_ has joined #ocaml
infinity0 is now known as Guest68193
infinity0 has joined #ocaml
Guest68193 has quit [Killed (orwell.freenode.net (Nickname regained by services))]
infinity0_ is now known as infinity0
infinity0 has quit [Changing host]
infinity0 has quit [Remote host closed the connection]
spew has joined #ocaml
SpiceGuid has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.46/20161213183751]]
jack5638 has joined #ocaml
rpg has quit [Client Quit]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
spew_ has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has quit [Killed (adams.freenode.net (Nickname regained by services))]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
spew has quit [Client Quit]
spew_ is now known as spew
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
sgronblo has quit [Ping timeout: 255 seconds]
copy` has quit [Quit: Connection closed for inactivity]
enterprisey has joined #ocaml
enterprisey has quit [Client Quit]
mfp_ has quit [Ping timeout: 255 seconds]
enterprisey has joined #ocaml
chat___ has quit [Ping timeout: 255 seconds]
KeyJoo has quit [Ping timeout: 240 seconds]
chat____ has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
sgronblo has joined #ocaml
jacobian has quit [Ping timeout: 268 seconds]
spew has quit [Quit: foobar]
pete_8 has joined #ocaml
pete_8 has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
rpg has joined #ocaml
jmiven has quit [Quit: co'o]
chat____ has quit [Ping timeout: 240 seconds]
jmiven has joined #ocaml
shinnya has quit [Ping timeout: 246 seconds]
ygrek__ has quit [Ping timeout: 246 seconds]
pierpa has quit [Ping timeout: 260 seconds]
18VABC9VY has joined #ocaml
sepp2k has quit [Ping timeout: 260 seconds]
cggong has joined #ocaml
rpg has quit [Ping timeout: 260 seconds]
rpg has joined #ocaml
rpg_ has joined #ocaml
rpg has quit [Ping timeout: 260 seconds]
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
cggong has quit [Quit: cggong]
cggong has joined #ocaml
vicfred has quit [Quit: Leaving]
samrat has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
raphaelss has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
olibjerd has joined #ocaml
rpg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
olibjerd has quit [Read error: Connection reset by peer]
olibjerd has joined #ocaml
infinity0 has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 258 seconds]
pete_8 has joined #ocaml
mengu has joined #ocaml
shortCircuit__ has joined #ocaml
jlam__ has joined #ocaml
mengu_ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
mengu has quit [Ping timeout: 246 seconds]
mengu_ has quit [Ping timeout: 240 seconds]
18VABC9VY has quit [Ping timeout: 260 seconds]
mengu has joined #ocaml
5EXAA6XS1 has joined #ocaml
mengu has quit [Ping timeout: 260 seconds]
raphaelss has quit [Ping timeout: 246 seconds]
5EXAA6XS1 has quit [Ping timeout: 260 seconds]
shortCircuit__ has quit [Ping timeout: 255 seconds]
chat_____ has joined #ocaml
wagle has quit [Remote host closed the connection]
wagle has joined #ocaml
chat_____ has quit [Ping timeout: 255 seconds]
shortCircuit__ has joined #ocaml
lostman has joined #ocaml
shortCircuit__ has quit [Ping timeout: 240 seconds]
cggong has quit [Quit: cggong]
chat___ has joined #ocaml
shortCircuit__ has joined #ocaml
Mercuria1Alchemi has joined #ocaml
enterprisey has quit [Remote host closed the connection]
samrat has quit [Ping timeout: 240 seconds]
mengu has joined #ocaml
bzb_hh has joined #ocaml
bzb_hh has quit [Client Quit]
mengu has quit [Ping timeout: 240 seconds]
samrat has joined #ocaml
ocabot_ has quit [Remote host closed the connection]
ocabot_ has joined #ocaml
samrat has quit [Ping timeout: 260 seconds]
samrat has joined #ocaml
ocabot_ has quit [Remote host closed the connection]
ocabot_ has joined #ocaml
AlexRussia has quit [Ping timeout: 255 seconds]
Simn has joined #ocaml
freusque has joined #ocaml
Merv_ has quit [Remote host closed the connection]
Merv_ has joined #ocaml
Merv_ has quit [Ping timeout: 246 seconds]
chat___ has quit [Ping timeout: 260 seconds]
shortCircuit__ has quit [Ping timeout: 268 seconds]
mengu has joined #ocaml
ziyourenxiang has joined #ocaml
ocabot_ has quit [Remote host closed the connection]
ocabot_ has joined #ocaml
shortCircuit__ has joined #ocaml
mengu has quit [Ping timeout: 255 seconds]
chat_ has joined #ocaml
shortCircuit__ has quit [Ping timeout: 258 seconds]
shortCircuit__ has joined #ocaml
shortCircuit__ has quit [Client Quit]
mal`` has quit [Quit: Leaving]
andreas_ has joined #ocaml
mal`` has joined #ocaml
mfp_ has joined #ocaml
jacobian has joined #ocaml
chat_ has quit [Ping timeout: 260 seconds]
chat_ has joined #ocaml
pete_8 has quit [Ping timeout: 240 seconds]
samrat has quit [Ping timeout: 268 seconds]
jacobian has quit [Ping timeout: 260 seconds]
samrat has joined #ocaml
lostman has quit [Quit: Connection closed for inactivity]
infinity0 has quit [Remote host closed the connection]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
argent_smith has joined #ocaml
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
jacobian has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
AlexRussia has joined #ocaml
jack5638 has quit [Ping timeout: 246 seconds]
jack5638 has joined #ocaml
chat_ has quit [Ping timeout: 245 seconds]
Merv_ has joined #ocaml
samrat has quit [Ping timeout: 260 seconds]
zpe has joined #ocaml
barcabuona has quit [Ping timeout: 255 seconds]
Merv__ has joined #ocaml
Merv_ has quit [Ping timeout: 255 seconds]
dhil_ has joined #ocaml
nopf_ has quit [Quit: leaving]
samrat has joined #ocaml
nopf has joined #ocaml
jacobian has quit [Remote host closed the connection]
sgronblo has quit [Ping timeout: 240 seconds]
kakadu__ has joined #ocaml
madroach has quit [Ping timeout: 240 seconds]
madroach has joined #ocaml
samrat has quit [Ping timeout: 268 seconds]
silver has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 255 seconds]
Algebr has quit [Ping timeout: 260 seconds]
yunxing has quit [Quit: Connection closed for inactivity]
olibjerd has quit [Quit: olibjerd]
sgronblo has joined #ocaml
TheLemonMan has joined #ocaml
samrat has joined #ocaml
moei has quit [Read error: Connection reset by peer]
moei has joined #ocaml
jnavila has joined #ocaml
_andre has joined #ocaml
Algebr has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
mengu has joined #ocaml
jlam_ has joined #ocaml
jlam__ has quit [Ping timeout: 260 seconds]
dhil_ has quit [Ping timeout: 260 seconds]
mengu has quit [Ping timeout: 240 seconds]
raphaelss has joined #ocaml
jnavila has quit [Ping timeout: 260 seconds]
mengu has joined #ocaml
jnavila has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
sepp2k has joined #ocaml
dhil_ has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
TheLemonMan has joined #ocaml
cggong has joined #ocaml
olibjerd has joined #ocaml
cggong has quit [Quit: cggong]
toolslive has quit [Ping timeout: 255 seconds]
shinnya has joined #ocaml
KeyJoo has joined #ocaml
toolslive has joined #ocaml
al-damiri has joined #ocaml
KeyJoo has quit [Excess Flood]
KeyJoo has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Mercuria1Alchemi has quit [Ping timeout: 255 seconds]
samrat has quit [Ping timeout: 260 seconds]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
MercurialAlchemi has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
zpe has quit [Remote host closed the connection]
cggong has joined #ocaml
dhil_ has quit [Ping timeout: 240 seconds]
pete_8 has joined #ocaml
jlam_ has joined #ocaml
ryanartecona has joined #ocaml
jlam__ has quit [Ping timeout: 260 seconds]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 246 seconds]
jlam_ has joined #ocaml
jlam__ has quit [Ping timeout: 246 seconds]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
mengu has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
chat has joined #ocaml
samrat has joined #ocaml
chat is now known as Guest35363
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
copy` has joined #ocaml
mengu has joined #ocaml
mengu has quit [Remote host closed the connection]
keyjoo_ has joined #ocaml
KeyJoo has quit [Read error: Connection reset by peer]
MK__ has joined #ocaml
freusque has quit [Quit: WeeChat 1.7]
Algebr has quit [Ping timeout: 240 seconds]
lostman has joined #ocaml
Mat__ has joined #ocaml
jnavila has joined #ocaml
<Mat__> How is it possible to create a cstrcut from another cstruct given buffer, offset, and len?
cggong has quit [Quit: cggong]
<orbifx[m]> Mat__ think you can
<Mat__> thanks
MercurialAlchemi has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
ziyourenxiang has quit [Ping timeout: 246 seconds]
rpg has joined #ocaml
benmachine has joined #ocaml
<benmachine> I am trying to work out when installing ocaml-ipaddr gets you the ipaddr.unix findlib package, I think it's iff you installed base-unix, can anyone point me in the right direction? https://github.com/mirage/ocaml-ipaddr
rpg has left #ocaml ["Textual IRC Client: www.textualapp.com"]
<Drup> it doesn't seem to be really conditional
<Drup> (at least in the last version)
<benmachine> I agree that I can't see anything along those lines, but I note that base-unix is an optional dependency
<benmachine> and also I have empirical evidence of sorts that it is possible to do 'opam install ipaddr' and not endup with ipaddr.unix
<Drup> well, the packaging changed recently, it might be a leftover
<benmachine> hm, ok *shrug*
<Drup> You better ask them directly, I think. One of the objective of moving to jbuilder was to remove all these optional dependencies
cggong has joined #ocaml
<benmachine> ah, no, I do see the pre-jbuilder version seems to define the unix subpackage with exists_if and so forth
maarhart has joined #ocaml
tane has joined #ocaml
ryanartecona has joined #ocaml
maarhart has quit [Quit: Mutter: www.mutterirc.com]
keyjoo_ has quit [Ping timeout: 260 seconds]
samrat has quit [Ping timeout: 240 seconds]
maarhart has joined #ocaml
mengu has joined #ocaml
maarhart has quit [Ping timeout: 245 seconds]
cggong has quit [Quit: cggong]
mengu has quit [Ping timeout: 260 seconds]
MK__ has quit [Remote host closed the connection]
olibjerd has quit [Ping timeout: 260 seconds]
cggong has joined #ocaml
Mat__ has quit [Ping timeout: 260 seconds]
olibjerd has joined #ocaml
olibjerd has quit [Client Quit]
zpe has joined #ocaml
cggong has quit [Quit: cggong]
cggong has joined #ocaml
olibjerd has joined #ocaml
olibjerd has quit [Quit: olibjerd]
Merv__ has quit [Remote host closed the connection]
Merv_ has joined #ocaml
olibjerd has joined #ocaml
Anarchos has joined #ocaml
Merv_ has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 245 seconds]
mengu has joined #ocaml
mengu has quit [Ping timeout: 260 seconds]
govg has joined #ocaml
cggong has quit [Quit: cggong]
maarhart has joined #ocaml
kakadu__ has quit [Quit: Konversation terminated!]
maarhart has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
mengu has joined #ocaml
govg has quit [Quit: leaving]
zpe has quit [Remote host closed the connection]
jlam_ has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
jlam__ has quit [Ping timeout: 240 seconds]
jbrown has quit [Ping timeout: 255 seconds]
enterprisey has joined #ocaml
raphaelss has quit [Ping timeout: 260 seconds]
jnavila has quit [Remote host closed the connection]
<orbifx[m]> How is jbuilder regarded compared to ocamlbuild?
<rgrinberg> Extremely favorably
average has joined #ocaml
<rgrinberg> I have no reason to use ocamlbuild myself anymore
jbrown has joined #ocaml
Guest35363 has quit [Quit: leaving]
lostman has quit [Quit: Connection closed for inactivity]
boojinks has joined #ocaml
govg has joined #ocaml
govg has quit [Client Quit]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
Merv_ has joined #ocaml
kakadu has joined #ocaml
govg has joined #ocaml
raphaelss has joined #ocaml
govg has quit [Client Quit]
antismap has joined #ocaml
antismap has quit [Client Quit]
antismap has joined #ocaml
ygrek__ has joined #ocaml
govg has joined #ocaml
govg_ has joined #ocaml
govg_ has quit [Client Quit]
olibjerd has quit [Quit: olibjerd]
MercurialAlchemi has quit [Ping timeout: 255 seconds]
sepp2k has joined #ocaml
<orbifx[m]> rgrinberg: point or two on what's bette?
<orbifx[m]> Better*
yomimono has joined #ocaml
ia0 has quit [Quit: reboot]
<companion_cube> there are solutions for ppx,cppo,… now right?
ia0 has joined #ocaml
fraggle_ has joined #ocaml
<rgrinberg> Yes. Cppo always worked though. Just with annoying boilerplate
<rgrinberg> orbifx[m]: for starters, it's much faster and it supports multiple opam packages out of 1 build well.
<rgrinberg> but there are many other advantages. it all depends on what project you have
_andre has quit [Quit: leaving]
<orbifx[m]> What parameters?
keyjoo_ has joined #ocaml
pierpa has joined #ocaml
argent_smith has quit [Quit: Leaving.]
<rgrinberg> parameters?
enterprisey has quit [Remote host closed the connection]
govg has quit [Quit: "switching PCs"]
<orbifx[m]> For making the judgment on. You said it depends on the project
ryanartecona has quit [Quit: ryanartecona]
<rgrinberg> when compared to pure ocamlbuild right? or vs. ocamlbuild + oasis?
<companion_cube> vs oasis, for me
<rgrinberg> sure: supports module alias, doesn't make you checkin generated crap, uses omp out of the box, supports multi package builds, supports jsoo, generates .install files for opam.
<companion_cube> omp ?
<companion_cube> rgrinberg: yeah but it doesn't do configure, does it? :.
<rgrinberg> ocaml-migrate-parsetree
<orbifx[m]> + oasis for me too
<companion_cube> ah
<rgrinberg> configure in what sense?
<companion_cube> ./configure
<companion_cube> stateful configuration of sub-libraries
<orbifx[m]> How did you find the documentation?
<rgrinberg> hmm, you'd have to tell me what exactly you'd expect that to do.
<rgrinberg> Oh yeah, and jbuilder suppports odoc
<rgrinberg> The docs are here: http://jbuilder.readthedocs.io/en/latest/
<rgrinberg> companion_cube: but if you mean common things like checking whether native code is present and deciding how to build executables depending on that. jbuilder supports a lot of configuration like that out of the box
shinnya has joined #ocaml
<companion_cube> no, I mean like enabling/disabling stuff by running a command
mengu has quit [Remote host closed the connection]
<rgrinberg> well, the way oasis does that stuff is really ass backwards I think. if you don't want to build a certain target
<rgrinberg> just tell jbuilder which targets you want to build
<companion_cube> I'd need a script then…
<companion_cube> (during dev I need this kind of things, usually)
<rgrinberg> i actually think that you really wouldn't unless you have something very very particular. so it's best that you just describe your use case :)
<rgrinberg> I'll give you an example, of how i replaced a common use of oasis' flags in jbuilder
<companion_cube> well I develop something and I don't want to have all the parts activated when I develop one part
<rgrinberg> why not? something being "active" only means that jbuilder evaluated the build rules for it.
<Drup> yes, that work fine
<companion_cube> I mean I don't want to compile it -_-
<rgrinberg> then just tell jbuilder to compile what you want. e.g. $ jbuilder build containers-unix.install or something
<rgrinberg> that would only build your containers-unix opam subpackage
<companion_cube> I'll say it differently. I have `make watch` which recompiles in a loop, and it needs some stateful info to only rebuild what I'm interested in currently.
<Drup> I wonder how much you still need that when your build system runs between 4 and 10 time faster
<Drup> (no, this is not an exaggeration)
<companion_cube> 10×? I have a hard time believing this.
<companion_cube> jbuilder can't possibly make flambda suddenly much faster :p
<rgrinberg> Drup: ha, but a make watch is still something useful. I use one with jbuilder but i just tell it to rebuild my entire project on every change. works well enough
<rgrinberg> companion_cube: how do you tell your make watch which target to build?
<rgrinberg> seems like you need some support of source -> targets you're interested mapping
<companion_cube> rgrinberg: by ./configure disabling/enabling these parts
<companion_cube> since oasis builds eveything activated this way, and not more
<orbifx[m]> so I guess the only shortcoming is that it sounds like it's written in Java :P
<rgrinberg> ok so instead of thinking about flags which enable/disable part of your build. Think about which parts of the build you want "enabled". Convert those to targets and pass them to jbuilder. That's your build command for your make watch
mengu has joined #ocaml
<rgrinberg> I don't know what you use for your `make watch`. But I use watch man. here's something that I'd use to rebuild only the cohttp-lwt-unix package on a change
<rgrinberg> $ watchman-make -p '**/jbuild' '**/*.ml' '**/.mli' --make='jbuilder build' -t 'cohttp-lwt-unix.install'
<companion_cube> I use inotify + make
<rgrinberg> ok well, i really think you should listen to drup and just rebuild everything. it's pretty fast... :)
<companion_cube> hmm.
<rgrinberg> but you will need a different make command telling jbuilder what exactly you need to build
<Drup> at least try
<Drup> if it's not fast enough, you can probably do a script thingy
<rgrinberg> i don't think that's very different than passing some configure options though
<companion_cube> Drup: I need to convert 300 lines of _oasis… flemme
<companion_cube> one day, probably
pierpa_ has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
<rgrinberg> companion_cube: you mean zipperposition right? it would be a really quick port if your project structure was compatible
<rgrinberg> right now you split a single library into multiple source dirs, which jbuilder doesn't like
<companion_cube> that's not very important though (can be changed)
<companion_cube> but it's full of packs, whch worries me more
mengu has joined #ocaml
<rgrinberg> well the packs shouldn't worry you :)
<companion_cube> also I have a auto-generated file, a few stupid things like that
<rgrinberg> i actually gave porting zipperposition a try a long time ago. the only limitation apart from the project structure was the lack of menhir support
<companion_cube> ouch
<companion_cube> that's a no-no indeed
<rgrinberg> but i specifically added menhir to try and port zipperposition
<rgrinberg> that was a while ago
<rgrinberg> I should revisit it :P
<companion_cube> that's nice of you
mengu has quit [Ping timeout: 260 seconds]
pierpa has quit [Remote host closed the connection]
<rgrinberg> is opam kin to downgrade ocamlfind for other people as well?
copy` has quit [Quit: Connection closed for inactivity]
al-damiri has quit [Quit: Connection closed for inactivity]
yomimono has quit [Quit: Ex-Chat]
chat_ has joined #ocaml
pete_8 has quit [Ping timeout: 240 seconds]
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 260 seconds]
pete_8 has joined #ocaml
mengu has joined #ocaml
tane has quit [Quit: Leaving]
jlam__ has joined #ocaml
boojinks has quit [Quit: Lost terminal]
<apache2> https://www.ocaml.org shows error in browser because someone forgot to include the www. label in the x509 cert
kakadu_ has quit [Read error: Connection reset by peer]
jlam_ has quit [Ping timeout: 260 seconds]
jlam1 has joined #ocaml
kakadu_ has joined #ocaml
jlam__ has quit [Ping timeout: 260 seconds]
pete_8 has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 240 seconds]
jlam_ has joined #ocaml
jlam1 has quit [Ping timeout: 255 seconds]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
jeffmo has quit [Ping timeout: 365 seconds]
jcloud has quit [Ping timeout: 365 seconds]
jeffmo_ has joined #ocaml
jcloud has joined #ocaml
ygrek_ has joined #ocaml
ygrek__ has quit [Remote host closed the connection]
keyjoo_ has quit [Ping timeout: 259 seconds]
breitenj has quit [Excess Flood]
madroach has quit [Remote host closed the connection]
madroach_ has joined #ocaml
breitenj- has joined #ocaml
ziyourenxiang has joined #ocaml
pierpa_ has quit [Quit: Page closed]
raphaelss has quit [Ping timeout: 255 seconds]
sepp2k has quit [Quit: Leaving.]