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
theglass has joined #ocaml
theglass has quit [Changing host]
<wtetzner> hello
<wtetzner> I'm having some problems with jbuild
<wtetzner> this is my jbuild file: https://pastebin.com/rG2042jS
<wtetzner> this is my opam file: https://pastebin.com/PPh2UPzL
<wtetzner> and this is the error I'm seeing: https://pastebin.com/D69y4G3s
<wtetzner> it seems like it's picking a default name for my package for some reason
<wtetzner> even though I've specified the name in both the jbuild and opam files
<wtetzner> I'm just not sure what else to even try at this point
<wtetzner> oh, and I'm using opam 2
enterprisey has joined #ocaml
zmt01 has quit [Quit: Leaving]
zmt00 has joined #ocaml
dratini0 has quit [Remote host closed the connection]
dratini0 has joined #ocaml
sepp2k has quit [Quit: Leaving.]
mfp has quit [Ping timeout: 240 seconds]
<wtetzner> does the jbuild file have to be in the src directory?
<wtetzner> is there any way to tell it where the sources live?
dratini0 has quit [Ping timeout: 248 seconds]
hannes` has joined #ocaml
hannes has quit [Ping timeout: 260 seconds]
nomicflux has joined #ocaml
ansiwen[q] has quit [Ping timeout: 255 seconds]
wtetzner has quit [Ping timeout: 255 seconds]
ansiwen[q] has joined #ocaml
AndChat|4016 has joined #ocaml
AndChat4016 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 255 seconds]
janicks has joined #ocaml
AndChat|4016 has quit [Quit: Bye]
AndChat4016 has joined #ocaml
FreeBirdLjj has joined #ocaml
enterprisey has joined #ocaml
Algebr has quit [Ping timeout: 258 seconds]
AndChat|4016 has joined #ocaml
AndChat4016 has quit [Ping timeout: 240 seconds]
AndChat|4016 has quit [Quit: Bye]
AndChat4016 has joined #ocaml
tonyhb has joined #ocaml
<tonyhb> this is definitely a noob question
<tonyhb> but
nomicflux has quit [Quit: nomicflux]
<tonyhb> in RWO's intro to ADTs the author suggests moving common fields into a record and having variants specify only the variant data
<tonyhb> they use a tupl to join the common/variant as (common, variant)
<tonyhb> is there a benefit over using a tupl, versus putting the variant as a field of the common record?
<tonyhb> *tuple
govg has quit [Ping timeout: 260 seconds]
govg has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 240 seconds]
AndChat|4016 has joined #ocaml
AndChat4016 has quit [Ping timeout: 258 seconds]
jbrown has quit [Ping timeout: 248 seconds]
hnrgrgr has quit [Ping timeout: 240 seconds]
<lyxia> tonyhb: if the variant changes but the record doesn't, then a tuple makes reconstruction quicker
AndChat|4016 has quit [Quit: Bye]
AndChat4016 has joined #ocaml
hnrgrgr has joined #ocaml
tizoc has quit [Ping timeout: 240 seconds]
<tonyhb> thanks lyxia
govg has joined #ocaml
wtetzner has joined #ocaml
<tonyhb> trying to understand why things are done a certain way rather than just thinking "oh cool" :)
<tonyhb> always assume that the author has a reason for doing it this way based on lots of experience
wtetzner has quit [Ping timeout: 240 seconds]
jbrown has joined #ocaml
cobreadmonster has joined #ocaml
<cobreadmonster> What's the OCaml equivalent of numpy?
<lyxia> tonyhb: TBH it mostly doesn't matter
<tonyhb> yah :)
<tonyhb> i had mine done within a record
<tonyhb> and was just curious if there'd be any bumps in the future
<tonyhb> only been doing ocaml for a week
<tonyhb> thanks for the heads up
<tonyhb> figured it could be stylistic :)
AndChat|4016 has joined #ocaml
AndChat4016 has quit [Ping timeout: 264 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
AndChat|4016 has quit [Quit: Bye]
AndChat4016 has joined #ocaml
lgd has quit [Remote host closed the connection]
lgd has joined #ocaml
wtetzner has joined #ocaml
wtetzner has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 260 seconds]
govg has joined #ocaml
kerrhau has quit [Ping timeout: 255 seconds]
dtornabene has quit [Quit: Leaving]
enterprisey has quit [Quit: Leaving]
cbot has joined #ocaml
zmt00 has quit [Quit: Leaving]
jbrown has quit [Remote host closed the connection]
<tonyhb> 
tonyhb has quit [Quit: leaving]
kerrhau has joined #ocaml
jnavila has joined #ocaml
mbuf has joined #ocaml
MercurialAlchemi has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
seliopou_ has quit [Ping timeout: 258 seconds]
seliopou has joined #ocaml
Simn has joined #ocaml
infinity0 has joined #ocaml
infinity0_ has quit [Ping timeout: 255 seconds]
cbot has quit [Quit: Leaving]
cobreadmonster has quit [Quit: Connection closed for inactivity]
kerrhau has quit [Ping timeout: 240 seconds]
jonasen has joined #ocaml
guest__ has quit [Quit: Page closed]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samrat has joined #ocaml
AltGr has joined #ocaml
AndChat4016 has quit [Read error: Connection reset by peer]
janicks has quit [Remote host closed the connection]
mfp has joined #ocaml
fraya has joined #ocaml
toolslive has joined #ocaml
<toolslive> "BFD library unavailable, cannot print info on .cmxs files" How do I fix this ? (bfd lib and headers were available at the time opam built the toolchain )
kakadu has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 258 seconds]
luukAntwerp has quit [Quit: Konversation terminated!]
shiyaz has joined #ocaml
shiyas has joined #ocaml
OPrime has joined #ocaml
shiyaz has quit [Ping timeout: 255 seconds]
fraya has quit [Quit: Leaving]
fraya has joined #ocaml
tormen has quit [Ping timeout: 240 seconds]
reynir has quit [Read error: Connection reset by peer]
reynir has joined #ocaml
reynir is now known as Guest31597
Guest31597 has quit [Client Quit]
reynir1 has joined #ocaml
reynir1 is now known as rubberduckreynir
argent_smith has joined #ocaml
rubberduckreynir is now known as reynir
andreas__ has joined #ocaml
_andre has joined #ocaml
ziyourenxiang has joined #ocaml
zolk3ri has joined #ocaml
tormen has joined #ocaml
hannes` is now known as hannes
<orbifx[m]> Is there a Result monad in the standard library? Or any functions related to Result.t?
<octachron> orbifx[m], no. The type is Pervasives.result is only defined to provide a common interface for external libraries
<orbifx[m]> Thanks octachron
kerrhau has joined #ocaml
kerrhau has quit [Ping timeout: 248 seconds]
OPrime has quit [Quit: Page closed]
OPrime has joined #ocaml
dhil has joined #ocaml
fraya has quit [Quit: Leaving]
dratini0 has joined #ocaml
nomicflux has joined #ocaml
shinnya has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
ousado has quit [Read error: Connection reset by peer]
jao has joined #ocaml
ousado has joined #ocaml
tizoc has joined #ocaml
tizoc has quit [Client Quit]
tizoc has joined #ocaml
wtetzner has joined #ocaml
rand__ has joined #ocaml
ygrek_ has joined #ocaml
wtetzner has quit [Ping timeout: 248 seconds]
jbrown has joined #ocaml
nomicflux has quit [Quit: nomicflux]
breitenj has quit [Max SendQ exceeded]
breitenj has joined #ocaml
govg has quit [Ping timeout: 258 seconds]
govg has joined #ocaml
sepp2k has joined #ocaml
ygrek_ has quit [Ping timeout: 260 seconds]
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
mbuf has quit [Quit: Leaving]
sh0t has joined #ocaml
sh0t has quit [Remote host closed the connection]
sh0t has joined #ocaml
demonimin has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 264 seconds]
demonimin has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 248 seconds]
frefity has quit [Ping timeout: 258 seconds]
frefity has joined #ocaml
demonimin has quit [Remote host closed the connection]
demonimin has joined #ocaml
ShalokShalom has joined #ocaml
demonimin has quit [Remote host closed the connection]
shiyaz has joined #ocaml
shiyas has quit [Ping timeout: 255 seconds]
OPrime has quit [Quit: Page closed]
lostman has joined #ocaml
demonimin has joined #ocaml
<lostman> hi folks. i was looking at bucklescript today and was wondering whether it is possible to use ppx_deriving with bsc/reason?
<lostman> I would *really* like to be able to derive show!
dhil has quit [Ping timeout: 252 seconds]
demonimin has quit [Remote host closed the connection]
demonimin has joined #ocaml
shiyas has joined #ocaml
shiyaz has quit [Ping timeout: 255 seconds]
FreeBirdLjj has joined #ocaml
jonasen has joined #ocaml
<reynir> lostman: there's #reasonml, but I think they're basically all using slack or whatever
<dratini0> lostman: Take a look at this: https://github.com/mhallin/graphql_ppx It has an example on how you need to change your bsconfig.json to use ppx.
dhil has joined #ocaml
ziyourenxiang has joined #ocaml
ShalokShalom has quit [Remote host closed the connection]
freusque has quit [Quit: WeeChat 1.7.1]
zmt00 has joined #ocaml
toolslive has quit [Quit: Leaving]
AltGr has left #ocaml [#ocaml]
<lostman> dratini0: hah, adding ppx_deriving to ppx-flags is a good start. now i have to figure out how would i invoke it with some deriver plugin. any ideas how is it done from the terminal?
<dratini0> Sorry, never used deriving before :-(
<lostman> it says: usage <infile> <outfile> but i try "ppx_deriving test.ml test_out.ml" and that complains Failure("Ast_mapper: OCaml version mismatch or malformed input")
shiyas has quit [Ping timeout: 240 seconds]
mbuf has joined #ocaml
<dratini0> Guess, but did you install ppx_deriving from opam?
kakadu_ has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
kakadu has joined #ocaml
<CcxWrk> Why is my opam using plain http and giving --insecure flag to curl? Can I make it not do that?
kakadu_ has joined #ocaml
jao has joined #ocaml
<hannes> CcxWrk: in .opam/config you can insert "download-command: [ "curl" url "-o" out ]" or whatever download program you like to use
kalio has quit [Quit: WeeChat 1.9.1]
<CcxWrk> And when doing init? The manpage for opam-init states ADDRESS (absent=https://opam.ocaml.org) but it's not what actually gets used
<hannes> CcxWrk: opam init does not do any downloads... the address is afaik for the default repository
kakadu has quit [Ping timeout: 240 seconds]
<CcxWrk> execve("/usr/bin/curl", ["curl", "--write-out", "%{http_code}\\n", "--insecure", "--retry", "3", "--retry-delay", "2", "-L", "-o", "/home/ccx/.opam/repo/default/url"..., "http://opam.ocaml.org/urls.txt"], [/* 76 vars */]) = 0
kalio has joined #ocaml
<CcxWrk> I'm stracing it to see that it does insecure downloads.
<CcxWrk> I believe I've seen it use https on another install.
<dratini0> Mine on Debian does by default, but I am not sure if it uses --insecure
<hannes> dratini0: the debian package for opam is patched to avoid the --insecure
<dratini0> Oh, I see
FreeBirdLjj has quit [Remote host closed the connection]
<lostman> dratini0: yeah i installed it from opam. i suppose it wouldn't work anyway since it has runtime component that'd have to be ported to bucklescript
<CcxWrk> So no clue besides looking into the Debian patchset?
Denommus has joined #ocaml
slash^ has joined #ocaml
jnavila has joined #ocaml
<Denommus> hey, I can't install lwt. I get this error: https://ptpb.pw/Tq0A
<Denommus> maybe I need to recompile my switch?
<Denommus> (it's 4.02.3, btw)
rand__ has quit [Ping timeout: 258 seconds]
<Denommus> yeah, reinstalling 4.02.3 worked
arj has joined #ocaml
FreeBirdLjj has joined #ocaml
andreas__ has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
TheLemonMan has joined #ocaml
nullifidian__ has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
nullifidian__ has joined #ocaml
tane has joined #ocaml
zaquest has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
luukAntwerp has joined #ocaml
zaquest has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
barcabuona has joined #ocaml
barcabuona is now known as hello_world_man
al-damiri has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
frefity has quit [Ping timeout: 264 seconds]
kakadu has joined #ocaml
webshinra has quit [Ping timeout: 240 seconds]
mbuf has quit [Quit: Leaving]
webshinra has joined #ocaml
rand__ has joined #ocaml
rand__ has quit [Quit: leaving]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Anarchos has joined #ocaml
lostman has quit [Quit: Connection closed for inactivity]
samrat has quit [Ping timeout: 240 seconds]
hello_world_man has quit [Quit: WeeChat 1.9.1]
Denommus has quit [Quit: going home]
slash^ has quit [Read error: Connection reset by peer]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arj has quit [Quit: Leaving.]
mk9 has joined #ocaml
shinnya has joined #ocaml
kakadu has quit []
kakadu has joined #ocaml
mk9_ has joined #ocaml
mk9 has quit [Ping timeout: 248 seconds]
tane has quit [Quit: Leaving]
marcux has joined #ocaml
_andre has quit [Quit: leaving]
mk9_ has quit [Quit: mk9_]
kolko has joined #ocaml
keep_learning has quit [Ping timeout: 240 seconds]
mk9_ has joined #ocaml
mk9_ has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
mk9_ has joined #ocaml
argent_smith has quit [Quit: Leaving.]
marcux has quit [Ping timeout: 248 seconds]
sh0t has quit [Ping timeout: 248 seconds]
Simn has quit [Ping timeout: 255 seconds]
jnavila has quit [Remote host closed the connection]
mengu has joined #ocaml
kerrhau has joined #ocaml
kerrhau has quit [Changing host]
kerrhau has joined #ocaml
cbot has joined #ocaml
zaquest has quit [Ping timeout: 255 seconds]
zaquest has joined #ocaml
mk9_ has quit [Quit: mk9_]
keep_learning has joined #ocaml
kakadu has quit [Remote host closed the connection]