<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
<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?