adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.0 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
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 250 seconds]
ziyourenxiang has joined #ocaml
mfp has quit [Ping timeout: 252 seconds]
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> oops
<octachron> crave, and with ocamlobjinfo?
<crave> There's a Dockerfile so you can reproduce the error
<crave> File /usr/lib/ocaml/bigarray.cma
<crave> Force custom: no
<crave> Extra C options:
<crave> Extra dynamically-loaded libraries: -lbigarray
<crave> Extra C object files: -lbigarray
<crave> Unit name: Bigarray
<crave> Interfaces imported:
<crave> e5f3d189d40891229c2283728e203e8aUnix
<crave> d4688bd6236fccf33550a083ea8e768fStdlib__complex
<crave> fde4e26503108d041547c9eef855a5faStdlib__bigarray
<crave> 2812fae09b173a42800ce3b48328b9cbStdlib
<crave> 7ea79e608e46b41c80c3251773e6fdf3CamlinternalFormatBasics
<crave> 0c47051b3cf2ad550a5c848dbb88e6c4Bigarray
<crave> Required globals:
<crave> Stdlib
<crave> Stdlib__bigarray
<crave> Uses unsafe features: YES
<crave> Primitives declared in this module:
<crave> caml_ba_map_file_bytecode
<crave> Force link: YES
<crave> sorry for the spam
<crave> did everything arrive?
<octachron> I just wanted to know if there was an error. So at least, the distributed version is the right version
rdivyanshu has joined #ocaml
<crave> if it's not a version issue what else could it be?
rdivyanshu has quit [Ping timeout: 252 seconds]
silver has quit [Read error: Connection reset by peer]
neatonk has quit [Ping timeout: 245 seconds]
<octachron> it is a version mismatch somewhere
<crave> is there a way to narrow it down? e.g. can I "include" the module in the x.ml and force it to cause the error?
<crave> Maybe that would help narrowing it down?
<octachron> one way to narrow the problematic command would be to replace `-quiet` by `-classical_display` in the Makefile
<octachron> which should print exactly which compilation step fails
<crave> ocamlbuild: unknown option '-classical_display'.
<crave> Maybe -verbose 8?
<crave> oh -classic-display
<octachron> sorry
rand__ has joined #ocaml
<crave> line 151 is the same as before
<crave> seems to be the problem
<crave> /usr/bin/ocamlc.opt -pack bigarray.cma
<crave> Yep
<crave> that reproduces it
<crave> File "_none_", line 1:
<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.]
orbifx1 has quit [Ping timeout: 252 seconds]
kini has joined #ocaml
env__ has joined #ocaml
env__ has quit [Ping timeout: 244 seconds]
orbifx1 has joined #ocaml
env__ has joined #ocaml
FreeBirdLjj has joined #ocaml
djellemah has quit [Ping timeout: 245 seconds]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
JimmyRcom has joined #ocaml
djellemah has joined #ocaml
r3s1stanc3 has quit [Quit: ZNC 1.7.1 - https://znc.in]
r3s1stanc3 has joined #ocaml
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 244 seconds]
orbifx1 has quit [Read error: Connection reset by peer]
orbifx2 has joined #ocaml
env__ has quit [Quit: Lost terminal]
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 272 seconds]
demonimin has quit [Ping timeout: 246 seconds]
orbifx2 has quit [Ping timeout: 252 seconds]
rand__ has quit [Ping timeout: 244 seconds]
ShalokShalom_ has joined #ocaml
ShalokShalom has quit [Ping timeout: 268 seconds]
erkin has quit [Remote host closed the connection]
burt55 has joined #ocaml
Jesin has joined #ocaml
Jesin has quit [Remote host closed the connection]
burt55 has quit [Remote host closed the connection]
Jesin has joined #ocaml
bartholin has quit [Remote host closed the connection]
aristos has quit [Quit: Leaving]
Jesin has quit [Quit: Leaving]
crave has joined #ocaml
Jesin has joined #ocaml
kakadu has quit [Remote host closed the connection]
crave has quit [Remote host closed the connection]
demonimin has joined #ocaml
demonimin has quit [Quit: bye]
ziyourenxiang has joined #ocaml
demonimin has joined #ocaml
rdivyanshu has joined #ocaml
rdivyanshu has quit [Ping timeout: 268 seconds]