silver_ has quit [Read error: Connection reset by peer]
noitakomentaja has quit [Ping timeout: 244 seconds]
tormen has joined #ocaml
rdivyanshu has joined #ocaml
tormen_ has quit [Ping timeout: 246 seconds]
ziyourenxiang has quit [Ping timeout: 268 seconds]
philtor has joined #ocaml
philt has joined #ocaml
philt has left #ocaml [#ocaml]
philtor has quit [Client Quit]
philtor has joined #ocaml
philt has joined #ocaml
philtor has left #ocaml [#ocaml]
philt has quit [Client Quit]
philtor has joined #ocaml
philtor has quit [Client Quit]
keep_learning_M has joined #ocaml
MadcapJake has joined #ocaml
JimmyRcom has quit [Ping timeout: 268 seconds]
rdivyanshu has quit [Remote host closed the connection]
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
ziyourenxiang has joined #ocaml
ggole has joined #ocaml
MadcapJake has quit [Quit: MadcapJake]
MadcapJake has joined #ocaml
MadcapJake has quit [Client Quit]
MadcapJake has joined #ocaml
bartholin has joined #ocaml
keep_learning_M has quit [Quit: This computer has gone to sleep]
Niamkik has quit [Ping timeout: 272 seconds]
Ulrar has quit [Ping timeout: 272 seconds]
Exagone313 has quit [Ping timeout: 272 seconds]
Niamkik has joined #ocaml
Exagone313 has joined #ocaml
rand__ has joined #ocaml
Ulrar has joined #ocaml
<Ulrar>
Not sure my message went through so just in case
<Ulrar>
So I have a dumb question, since 'result' is a bit generic when googling. Where can I find some function or operator to chain calls to functions returning a result type ? (Only call the next one if the first one returned Ok 'a ..) ?
orbifx has joined #ocaml
FreeBirdLjj has joined #ocaml
<Leonidas>
Ulrar: it is usually called `bind`, and is often written in infix: `>>=` which is as great to google as `result`.
* Leonidas
personally uses some kind of do-notation to avoid the syntactic clutter this causes
<dmbaturin>
Leonidas: What do you use for generic do notation?
companion_cube has quit [Ping timeout: 244 seconds]
companion_cube has joined #ocaml
jknick has quit [Remote host closed the connection]
jknick has joined #ocaml
<Leonidas>
dmbaturin: ppx_let
<Leonidas>
writing ppx_let support modules is relatively easy for things that don't have them, so that's nice
<Ulrar>
Leonidas: Ah, so is that the same one as in Lwt or is it just named the same ?
<Ulrar>
I assume it's just named the same
<Leonidas>
Ulrar: there are tons and tons of bind operators, working on different monads, all named the same
<Ulrar>
I see
<Ulrar>
So I guess I'll just open it under a different name
<Leonidas>
or do a local open
<Ulrar>
Well I'm using >>= from Lwt basically everywhere
<Leonidas>
Async has 'a Deferred.Result.t with its own bind, that's like 'a result Lwt.t
<Ulrar>
The functions I'm working with there actually return a 'a retult Lwt.t
<Ulrar>
ah !
<Leonidas>
you can then define your own >>= to work on 'a result Lwt.t
<Ulrar>
Looks like it exists
<Ulrar>
Lwt_result
<Ulrar>
Let's try that
<Ulrar>
Seems all good
<Ulrar>
thanks !
rand__ has quit [Ping timeout: 244 seconds]
rand__ has joined #ocaml
keep_learning_M has joined #ocaml
TheLemonMan has joined #ocaml
mfp has joined #ocaml
rand__ has quit [Ping timeout: 252 seconds]
rand__ has joined #ocaml
rdivyanshu has joined #ocaml
ewanas has joined #ocaml
barcabuona has quit [Quit: WeeChat 2.2]
rdivyanshu has quit []
rdivyanshu has joined #ocaml
rdivyanshu has quit [Remote host closed the connection]
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 252 seconds]
keep_learning_M has quit [Quit: This computer has gone to sleep]
Ulrar has quit [Quit: migrons]
keep_learning_M has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Ulrar has joined #ocaml
themsay has joined #ocaml
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 272 seconds]
keep_learning_M has quit [Quit: This computer has gone to sleep]
rdivyanshu has joined #ocaml
keep_learning_M has joined #ocaml
erkin has joined #ocaml
rdivyanshu has quit [Ping timeout: 252 seconds]
Ulrar has quit [Quit: WeeChat 2.2]
Ulrar has joined #ocaml
orbifx has quit [Read error: Connection reset by peer]
orbifx has joined #ocaml
silver has joined #ocaml
rdivyanshu has joined #ocaml
rdivyanshu has quit [Remote host closed the connection]
rdivyanshu has joined #ocaml
rand__ has quit [Ping timeout: 268 seconds]
rand__ has joined #ocaml
orbifx has quit [Read error: Connection reset by peer]
orbifx1 has joined #ocaml
crave has joined #ocaml
<crave>
Hi
<crave>
I'm trying to compile ocaml-wasm with my system's ocaml (4.07.0)
<crave>
I'm getting the following error message: Error: /usr/lib/ocaml/bigarray.cma is not a bytecode object file
rand__ has quit [Ping timeout: 272 seconds]
<crave>
Any idea what I could do to fix it? The file exists.
<crave>
The error message is produced by /usr/bin/ocamlc.opt
<crave>
I've read that there may be a version mismatch - how can I analyze this?
rdivyanshu has quit [Remote host closed the connection]
ewanas has quit [Ping timeout: 244 seconds]
ewanas has joined #ocaml
ewanas has joined #ocaml
ewanas has quit [Changing host]
<crave>
I'd really appreciate any help, maybe a link to a guide if I've missed something really basic
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 250 seconds]
rdivyanshu has joined #ocaml
leah2 has quit [Ping timeout: 252 seconds]
<octachron>
crave, what happens if you try to use bigarray.cma directly? For instance, "/usr/bin/ocamlc.opt /usr/lib/ocaml/bigarray.cma x.ml" ?
<octachron>
(you could also use ocamlobjinfo)
rdivyanshu has quit [Ping timeout: 252 seconds]
<octachron>
if you have the same error, it is a packaging error from your distribution. You might want to try to reinstall the bigarray package if it exists
rdivyanshu has joined #ocaml
sspi__ has quit []
sspi__ has joined #ocaml
rdivyanshu has quit [Ping timeout: 252 seconds]
<crave>
octachron, /usr/bin/ocamlc.opt /usr/lib/ocaml/bigarray.cma x.ml with an empty x.ml produces nothing
<crave>
I've posted my question on stackoverflow: /bin/ocamlc.opt /usr/lib/ocaml/big
<crave>
Error: /usr/lib/ocaml/bigarray.cma is not a bytecode object file
rdivyanshu has joined #ocaml
<crave>
Hmmm
<crave>
This isn't working with the ocamlc.opt I'm getting from opam either
<crave>
octachron, could you try reproducing it with version 4.07.0?
<crave>
ocamlc.opt -pack bigarray.cma -o a.out
<octachron>
installing with an opam managed ocaml 4.07.0 works well
<crave>
you mean ocaml-wasm?
<crave>
does "ocamlc.opt -pack bigarray.cma -o a.out" work?
<octachron>
no ocaml-wasm itself compiles fine
<crave>
Yeah I can install it fine too with opam but "ocamlc.opt -pack bigarray.cma -o a.out" still doesn't work
<crave>
even in the opam env
neatonk has joined #ocaml
leah2 has joined #ocaml
<octachron>
ah, yes "ocamlc.opt -pack bigarray.cma -o a.out" cannot work
neatonk has quit [Ping timeout: 250 seconds]
orbifx1 has quit [Ping timeout: 272 seconds]
<crave>
oh ok?
<crave>
why?
<octachron>
because -pack is used to pack together .cmo files
neatonk has joined #ocaml
rdivyanshu has quit [Remote host closed the connection]
rdivyanshu has joined #ocaml
<octachron>
Just to be sure, I imagine that if you remove the bigarray.cma after "-pack", the command compiles fine and the build process normally from here?
ziyourenxiang has quit [Ping timeout: 252 seconds]
JimmyRcom has joined #ocaml
JimmyRcom has quit [Ping timeout: 252 seconds]
keep_learning_M has quit [Quit: This computer has gone to sleep]
JimmyRcom has joined #ocaml
<crave>
octachron, yes
JimmyRcom has quit [Ping timeout: 268 seconds]
spew has joined #ocaml
rdivyanshu has quit [Remote host closed the connection]
regnat[m]1 has joined #ocaml
rdivyanshu has joined #ocaml
regnat[m] has quit [Ping timeout: 246 seconds]
rdivyanshu has quit [Ping timeout: 245 seconds]
rdivyanshu has joined #ocaml
erkin has quit [Read error: Connection reset by peer]
rdivyanshu has quit [Ping timeout: 252 seconds]
spew has quit [Ping timeout: 268 seconds]
rdivyanshu has joined #ocaml
spew has joined #ocaml
mannycalavera has joined #ocaml
TheLemonMan has joined #ocaml
themsay has quit [Ping timeout: 272 seconds]
spew has quit [Ping timeout: 245 seconds]
erkin has joined #ocaml
void_pointer has joined #ocaml
djellemah_ has joined #ocaml
djellemah has quit [Ping timeout: 250 seconds]
djellemah_ is now known as djellemah
djellemah has quit [Quit: Leaving]
djellemah has joined #ocaml
djellemah has quit [Client Quit]
djellemah has joined #ocaml
djellemah_ has joined #ocaml
djellemah_ has quit [Client Quit]
aristos has joined #ocaml
djellemah_ has joined #ocaml
djellemah has quit [Ping timeout: 246 seconds]
djellemah_ has quit [Client Quit]
djellemah has joined #ocaml
djellemah has quit [Client Quit]
jnavila has joined #ocaml
djellemah has joined #ocaml
djellemah has quit [Client Quit]
kroot_ has joined #ocaml
djellemah has joined #ocaml
aristos has quit [Quit: Leaving]
aristos has joined #ocaml
kakadu has quit [Remote host closed the connection]
rdivyanshu has quit [Remote host closed the connection]
crave has quit [Ping timeout: 272 seconds]
mannycalavera has quit [Quit: Page closed]
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 250 seconds]
env__ has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
env__ has quit [Ping timeout: 252 seconds]
jnavila has quit [Ping timeout: 246 seconds]
rdivyanshu has joined #ocaml
jnavila has joined #ocaml
rdivyanshu has quit [Ping timeout: 252 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
silver has joined #ocaml
JimmyRcom has joined #ocaml
JimmyRcom has quit [Ping timeout: 244 seconds]
ggole has quit [Quit: ggole]
enikar has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
troydm has quit [Ping timeout: 252 seconds]
env__ has joined #ocaml
kakadu has joined #ocaml
orbifx1 has joined #ocaml
troydm has joined #ocaml
env__ has quit [Ping timeout: 272 seconds]
kini has quit [Quit: No Ping reply in 180 seconds.]