<d_bot>
<mbacarella> how is something like `let%bind foo = bar` represented it the AST?
<companion_cube>
something like (ext "bind" (let foo = bar)) I think
Tuplanolla has quit [Quit: Leaving.]
azimut has quit [Remote host closed the connection]
<d_bot>
<mbacarella> i thought so too but can't find the helpers that actually build that
azimut has joined #ocaml
<d_bot>
<mbacarella> ho hum maybe i can just do `[%bind [%expr let foo = bar]]`
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
<d_bot>
<mbacarella> wait that probably didn't sense.
<d_bot>
<mbacarella>
<d_bot>
<mbacarella> I'm trying to build an AST of `let%map_open foo0 = bar0 and ... fooN = barN` but can't find the right `Ast_helpers`. but apparently `let%ext foo0 = bar0...` is the same as `[%ext let foo0 = bar0 ...]` so I can use build a normal let AST and wrap it in the extension point using ppx_metaquot `[%expr [%map_open [%e Exp.let_ ["foo0", "bar0"]]]`
neiluj has quit [Remote host closed the connection]
neiluj has joined #ocaml
<neiluj>
thanks! Indeed there's not much of a difference
<Armael>
what are you using custom blocks for? there might be a faster option
<neiluj>
to hold a C array
<Armael>
there is a different way of passing C pointers to the OCaml world which doesn't require allocating a block, by disguising them as OCaml integers
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
motherfsck has quit [Quit: quit]
Serpent7776 has joined #ocaml
motherfsck has joined #ocaml
mbuf has quit [Quit: Leaving]
<d_bot>
<froyo> they teach people to fail instead of return options 😭
noonien6 has joined #ocaml
<d_bot>
<froyo> his pop is a drop, really.. pop would be uncons
<d_bot>
<Stalker> ok thanks
<d_bot>
<Stalker> isnt it easier to use open Stack ?
<d_bot>
<Stalker> the stack module
<companion_cube>
ideally, don't `open` it, just use `Stack.create()`, `Stack.push`, etc
<d_bot>
<Stalker> yeah i tried otherwise it can conflicts with other types
<companion_cube>
`open` is to be used in small doses imho
<d_bot>
<froyo> this is a pedagogical video, first of all
<d_bot>
<froyo> and second of all because stdlib's stack is a mutable data structure, which comes with its own complexities
Haudegen has joined #ocaml
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
noze has joined #ocaml
<noze>
is there a way to install a package via opam without performing an update of currently installed packages?
<noze>
right now I tried to install batteries, but because a bunch of libraries have upstream changes, opam tries to rebuild everything including coq, taking >10 minutes instead of <1min -.-
<sim642>
Are you sure those others aren't transitively needed for what you're trying to install?
salkin has quit [Quit: salkin]
<noze>
as far as I can tell, they don't need to be upgraded for batteries to be installable
<noze>
It relies on dune and ocamlfind (amongst others). Those are installed, but not at their latest version. The version installed is greater than the one required though. Yet opam seems to see this as an occasion to upgrade dune and ocamlfind, which in turn requires recompiling everything that uses these two, i.e. most of what I have installed.
noze` has joined #ocaml
xgqt has quit [Quit: WeeChat 3.4.1]
xgqt has joined #ocaml
<d_bot>
<froyo> ah yes, the dread of upgrading dune
zebrag has joined #ocaml
Sankalp has joined #ocaml
noze has quit [Read error: Connection reset by peer]
ns12 has quit [Quit: bye]
ns12 has joined #ocaml
hexology- is now known as hexology
<octachron>
opam install --skip-updates
mro has joined #ocaml
hexology has quit [Quit: brb]
hexology has joined #ocaml
<noze`>
octachron: that doesn't seem to make a difference
xgqt has quit [Remote host closed the connection]
xgqt has joined #ocaml
waleee has joined #ocaml
Everything has joined #ocaml
enjolras has joined #ocaml
Anarchos has joined #ocaml
Everything has quit [Quit: leaving]
mro has quit [Quit: Leaving...]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Serpent7776 has quit [Quit: leaving]
motherfsck has quit [Quit: quit]
motherfsck has joined #ocaml
rgrinberg has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
bastienleonard has quit [Ping timeout: 240 seconds]