companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gereedy has quit [Quit: gereedy]
Tuplanolla has quit [Quit: Leaving.]
gereedy has joined #ocaml
rgrinberg has joined #ocaml
williewillus has quit [Quit: Ping timeout (120 seconds)]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
williewillus9 has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
williewillus9 is now known as williewillus
waleee has quit [Ping timeout: 272 seconds]
<greenbagels> what's the preferred way to write a recursive lwt function?
chrisz has quit [Ping timeout: 252 seconds]
<greenbagels> hm let me give an example to demonstrate what im working on
chrisz has joined #ocaml
<greenbagels> this is just a basic websocket example adapted from https://github.com/vbmithr/ocaml-websocket/blob/master/lwt/wscat.ml
<greenbagels> I'm not sure how to resolve the warning that's being given; when i resolve this warning using `ignore`, it starts complaining that the function is returning type unit instead of 'a Lwt.t
<greenbagels> (I'm also open to more general issues anyone sees with my code / style; i'm very much an ocaml newbie)
<gopiandcode> `let%lwt () = handle_ws_message (msg_content ^ content) in`
<gopiandcode> I think `Lwt_io.printf ...` probably returns a value of type `unit Lwt.t`
<gopiandcode> so to make sure it's executed, you need to bind it using `let%lwt () = ... in`
<greenbagels> :o
<greenbagels> i see, so sequencing doesnt really work there
gereedy has quit [Ping timeout: 276 seconds]
Haudegen has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has joined #ocaml
mro has joined #ocaml
<d_bot> <khady> @companion_cube do you use https://github.com/imandra-ai/ocaml-opentelemetry with jaeger or something else? Happy with this opentelemetry lib?
aspe has joined #ocaml
aspe has quit [Remote host closed the connection]
<d_bot> <undu> It can be used with Jaeger, but Breda a proxy
mbuf has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
azimut has joined #ocaml
olle has joined #ocaml
copy has quit [Ping timeout: 260 seconds]
copy has joined #ocaml
DNH has joined #ocaml
mro has quit [Remote host closed the connection]
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
mro has quit [Quit: Leaving...]
bartholin has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
wingsorc has quit [Quit: Leaving]
mbuf has quit [Quit: Leaving]
spip has quit [Ping timeout: 240 seconds]
spip has joined #ocaml
namkeleser has joined #ocaml
mbuf has joined #ocaml
chrisz has quit [Ping timeout: 248 seconds]
DNH has joined #ocaml
chrisz has joined #ocaml
bartholin has quit [Ping timeout: 260 seconds]
bartholin has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
Haudegen has quit [Quit: Bin weg.]
namkeleser has quit [Quit: Client closed]
olle has quit [Ping timeout: 276 seconds]
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
gereedy has joined #ocaml
chrisz has quit [Ping timeout: 260 seconds]
chrisz has joined #ocaml
chrisz has quit [Ping timeout: 260 seconds]
chrisz has joined #ocaml
olle has joined #ocaml
Haudegen has joined #ocaml
gereedy has quit [Quit: gereedy]
<d_bot> <khady> thanks
waleee has joined #ocaml
zebrag has joined #ocaml
jpds has quit [Ping timeout: 240 seconds]
rgrinberg has joined #ocaml
azimut has quit [Quit: ZNC - https://znc.in]
adanwan_ has quit [Read error: Connection reset by peer]
tiferrei has quit [Quit: ZNC 1.8.2+deb2build1 - https://znc.in]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
azimut has joined #ocaml
tiferrei has joined #ocaml
adanwan has joined #ocaml
jpds has joined #ocaml
vicfred has quit [Quit: Leaving]
rgrinberg has joined #ocaml
jpds has quit [Ping timeout: 240 seconds]
hyphen has quit [Ping timeout: 248 seconds]
hyphen has joined #ocaml
Techcable_ has joined #ocaml
rwmjones_ has joined #ocaml
cbarrett_ has joined #ocaml
v0idpwn_ has joined #ocaml
andreypopp_ has joined #ocaml
berberman_ has joined #ocaml
Fardale1 has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
kevin1 has joined #ocaml
amosbird- has joined #ocaml
rak_ has joined #ocaml
andreypopp has quit [*.net *.split]
h11 has quit [*.net *.split]
nore has quit [*.net *.split]
amosbird has quit [*.net *.split]
lobo has quit [*.net *.split]
Techcable has quit [*.net *.split]
Fardale has quit [*.net *.split]
rwmjones has quit [*.net *.split]
Absalom has quit [*.net *.split]
berberman has quit [*.net *.split]
ks_ has quit [*.net *.split]
v0idpwn has quit [*.net *.split]
cbarrett has quit [*.net *.split]
leah2 has quit [*.net *.split]
rak has quit [*.net *.split]
Techcable_ is now known as Techcable
cbarrett_ is now known as cbarrett
v0idpwn_ is now known as v0idpwn
Fardale1 is now known as Fardale
lobo has joined #ocaml
leah2 has joined #ocaml
nore has joined #ocaml
jpds has joined #ocaml
gravicappa has joined #ocaml
h11 has joined #ocaml
mbuf has quit [Quit: Leaving]
<rgrinberg> brettgilio excited?
<brettgilio> rgrinberg just thought it was shareworthy
<rgrinberg> Well, I'm excited. Lots of painful bugs fixed in that release
hyphen has quit [Ping timeout: 248 seconds]
hyphen has joined #ocaml
bartholin has quit [Quit: Leaving]
Haudegen has joined #ocaml
hyphen has quit [Ping timeout: 256 seconds]
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwmjones_ is now known as rwmjones
dhil has joined #ocaml
bobo has joined #ocaml
spip has quit [Ping timeout: 276 seconds]
<d_bot> <mbacarella> lol what's this emoji
<d_bot> <mbacarella> :ocaml:
<d_bot> <mbacarella> laser eyed camel, brilliant
Anarchos has joined #ocaml
<d_bot> <mbacarella> * Watch mode now default to clearing the terminal on rebuild (#5636, fixes, #5216, @rgrinberg)
<d_bot> <mbacarella> i didn't even realize i desperately wanted that
<d_bot> <mbacarella> i was just doing it mindlessly by hand
Corbin has quit [Remote host closed the connection]
Corbin has joined #ocaml
Tuplanolla has joined #ocaml
rgrinberg has joined #ocaml
hyphen has joined #ocaml
<d_bot> <rgrinberg> Glad you like it
<d_bot> <Minicorgi> what's the status of real world ocaml? It reads published in Q4 2021 but a) no physical copies are sold b) there are still mistakes in the book c) the "beta" label is till here
<d_bot> <VPhantom> It's considered finished? I thought it was still in development. 🤔
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<brettgilio> If it is listed beta and still directs to dev.* i'd just say it isnt done done
<brettgilio> It may never be done for all I know
<brettgilio> It might always be a living book
<brettgilio> but somebody should ask
rgrinberg has joined #ocaml
<d_bot> <Minicorgi> so why does it read "published in Q4" ?
<brettgilio> There used to also be a way to get an offline PDF
<brettgilio> but Idk how to do that anymore either
<d_bot> <denis631> Hey guys, I have a question about OCaml FFI.
<d_bot> <denis631> I want to call a function and pass a `session **session_ptr_ptr` pointer, such that it initializes the data.
<d_bot> <denis631> How should I do it in OCaml?
<d_bot> <denis631>
<d_bot> <denis631> Here is the C API:
<d_bot> <denis631> ```C
<d_bot> <denis631> int __F(open_session)(WT_CONNECTION *connection,
<d_bot> <denis631> WT_EVENT_HANDLER *event_handler,
<d_bot> <denis631> const char *config,
<d_bot> <denis631> WT_SESSION **sessionp);
<d_bot> <denis631> ```
<d_bot> <denis631>
<d_bot> <denis631> And I try to allocate the pointer by using the allocate method, namely:
<d_bot> <denis631> `let session_ptr_ptr = allocate (ptr session_t) (from_voidp session_t null)`
<d_bot> <denis631>
<d_bot> <denis631> But when I look at the printfs, then the address in C is different from the address in OCaml.
<d_bot> <denis631> In C the `*sessionp` is not equal to `NULL`, but when the call finishes the `!@session_ptr_ptr` is still `NULL`.
<d_bot> <denis631>
<d_bot> <denis631> PS. Do I have to provide all the fields of a C struct when performing the bindings?
olle has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
rgrinberg has quit [Ping timeout: 260 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
DNH has quit [Ping timeout: 272 seconds]
hyphen has quit [Ping timeout: 272 seconds]
wingsorc has joined #ocaml
DNH has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Tuplanolla has quit [Quit: Leaving.]
Haudegen has joined #ocaml
olle has joined #ocaml
vicfred has joined #ocaml
xgqt has quit [Ping timeout: 240 seconds]
xgqt has joined #ocaml
xenu has quit [Read error: Connection reset by peer]
xenu has joined #ocaml
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mima has joined #ocaml
Haudegen has quit [Ping timeout: 276 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
bobo has quit [Ping timeout: 240 seconds]
bobo has joined #ocaml
hyphen has joined #ocaml
dhil has quit [Ping timeout: 256 seconds]
hexology- has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
hexology- is now known as hexology
hexology is now known as hexology-
hexology- is now known as hexology