00:04
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:11
gereedy has quit [Quit: gereedy]
00:37
Tuplanolla has quit [Quit: Leaving.]
01:08
gereedy has joined #ocaml
01:10
rgrinberg has joined #ocaml
01:37
williewillus has quit [Quit: Ping timeout (120 seconds)]
01:44
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:04
rgrinberg has joined #ocaml
02:16
williewillus9 has joined #ocaml
02:45
terrorjack has joined #ocaml
02:51
williewillus9 is now known as williewillus
02:54
waleee has quit [Ping timeout: 272 seconds]
03:00
<
greenbagels >
what's the preferred way to write a recursive lwt function?
03:01
chrisz has quit [Ping timeout: 252 seconds]
03:01
<
greenbagels >
hm let me give an example to demonstrate what im working on
03:03
chrisz has joined #ocaml
03:07
<
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
03:07
<
greenbagels >
(I'm also open to more general issues anyone sees with my code / style; i'm very much an ocaml newbie)
03:53
<
gopiandcode >
`let%lwt () = handle_ws_message (msg_content ^ content) in`
03:54
<
gopiandcode >
I think `Lwt_io.printf ...` probably returns a value of type `unit Lwt.t`
03:54
<
gopiandcode >
so to make sure it's executed, you need to bind it using `let%lwt () = ... in`
03:57
<
greenbagels >
i see, so sequencing doesnt really work there
04:04
gereedy has quit [Ping timeout: 276 seconds]
04:05
Haudegen has joined #ocaml
04:05
zebrag has quit [Quit: Konversation terminated!]
04:16
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:52
rgrinberg has joined #ocaml
05:23
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:51
gravicappa has joined #ocaml
05:56
mro has joined #ocaml
07:19
aspe has joined #ocaml
07:34
aspe has quit [Remote host closed the connection]
07:37
<
d_bot >
<undu> It can be used with Jaeger, but Breda a proxy
07:40
mbuf has joined #ocaml
07:50
azimut has quit [Ping timeout: 240 seconds]
07:51
azimut has joined #ocaml
07:56
olle has joined #ocaml
08:21
copy has quit [Ping timeout: 260 seconds]
08:21
copy has joined #ocaml
08:31
DNH has joined #ocaml
08:48
mro has quit [Remote host closed the connection]
08:49
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:03
mro has joined #ocaml
09:16
mro has quit [Quit: Leaving...]
09:50
bartholin has joined #ocaml
10:08
gravicappa has quit [Ping timeout: 240 seconds]
10:18
chrisz has quit [Ping timeout: 240 seconds]
10:20
chrisz has joined #ocaml
10:24
chrisz has quit [Ping timeout: 240 seconds]
10:32
chrisz has joined #ocaml
10:33
tizoc has quit [Quit: Coyote finally caught me]
10:40
tizoc has joined #ocaml
10:40
chrisz has quit [Ping timeout: 240 seconds]
10:42
chrisz has joined #ocaml
10:45
wingsorc has quit [Quit: Leaving]
11:01
mbuf has quit [Quit: Leaving]
11:03
spip has quit [Ping timeout: 240 seconds]
11:03
spip has joined #ocaml
11:04
namkeleser has joined #ocaml
11:04
mbuf has joined #ocaml
11:10
chrisz has quit [Ping timeout: 248 seconds]
11:11
DNH has joined #ocaml
11:12
chrisz has joined #ocaml
11:27
bartholin has quit [Ping timeout: 260 seconds]
11:27
bartholin has joined #ocaml
12:07
szkl has quit [Quit: Connection closed for inactivity]
12:15
Haudegen has quit [Quit: Bin weg.]
12:16
namkeleser has quit [Quit: Client closed]
12:25
olle has quit [Ping timeout: 276 seconds]
12:44
chrisz has quit [Ping timeout: 240 seconds]
12:46
chrisz has joined #ocaml
12:47
gereedy has joined #ocaml
12:51
chrisz has quit [Ping timeout: 260 seconds]
12:51
chrisz has joined #ocaml
12:58
chrisz has quit [Ping timeout: 260 seconds]
13:00
chrisz has joined #ocaml
13:10
olle has joined #ocaml
13:22
Haudegen has joined #ocaml
13:47
gereedy has quit [Quit: gereedy]
13:58
<
d_bot >
<khady> thanks
14:13
waleee has joined #ocaml
14:19
zebrag has joined #ocaml
14:22
jpds has quit [Ping timeout: 240 seconds]
14:23
rgrinberg has joined #ocaml
14:24
adanwan_ has quit [Read error: Connection reset by peer]
14:37
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:52
azimut has joined #ocaml
14:52
tiferrei has joined #ocaml
14:52
adanwan has joined #ocaml
15:00
jpds has joined #ocaml
15:14
vicfred has quit [Quit: Leaving]
15:20
rgrinberg has joined #ocaml
15:37
jpds has quit [Ping timeout: 240 seconds]
15:38
hyphen has quit [Ping timeout: 248 seconds]
15:40
hyphen has joined #ocaml
15:42
Techcable_ has joined #ocaml
15:42
rwmjones_ has joined #ocaml
15:42
cbarrett_ has joined #ocaml
15:42
v0idpwn_ has joined #ocaml
15:42
andreypopp_ has joined #ocaml
15:42
berberman_ has joined #ocaml
15:44
Fardale1 has joined #ocaml
15:44
Haudegen has quit [Quit: Bin weg.]
15:45
kevin1 has joined #ocaml
15:47
amosbird- has joined #ocaml
15:48
rak_ has joined #ocaml
15:49
andreypopp has quit [*.net *.split]
15:49
h11 has quit [*.net *.split]
15:49
nore has quit [*.net *.split]
15:49
amosbird has quit [*.net *.split]
15:49
lobo has quit [*.net *.split]
15:49
Techcable has quit [*.net *.split]
15:49
Fardale has quit [*.net *.split]
15:49
rwmjones has quit [*.net *.split]
15:49
Absalom has quit [*.net *.split]
15:49
berberman has quit [*.net *.split]
15:49
ks_ has quit [*.net *.split]
15:49
v0idpwn has quit [*.net *.split]
15:49
cbarrett has quit [*.net *.split]
15:49
leah2 has quit [*.net *.split]
15:49
rak has quit [*.net *.split]
15:50
Techcable_ is now known as Techcable
15:50
cbarrett_ is now known as cbarrett
15:50
v0idpwn_ is now known as v0idpwn
15:51
Fardale1 is now known as Fardale
15:56
lobo has joined #ocaml
15:57
leah2 has joined #ocaml
15:57
nore has joined #ocaml
16:00
jpds has joined #ocaml
16:00
gravicappa has joined #ocaml
16:02
h11 has joined #ocaml
16:10
mbuf has quit [Quit: Leaving]
16:12
<
rgrinberg >
brettgilio excited?
16:16
<
brettgilio >
rgrinberg just thought it was shareworthy
16:16
<
rgrinberg >
Well, I'm excited. Lots of painful bugs fixed in that release
16:29
hyphen has quit [Ping timeout: 248 seconds]
16:36
hyphen has joined #ocaml
16:37
bartholin has quit [Quit: Leaving]
16:58
Haudegen has joined #ocaml
17:07
hyphen has quit [Ping timeout: 256 seconds]
17:13
Sankalp has quit [Ping timeout: 240 seconds]
17:14
Sankalp has joined #ocaml
17:37
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:48
rwmjones_ is now known as rwmjones
17:56
dhil has joined #ocaml
18:47
bobo has joined #ocaml
18:48
spip has quit [Ping timeout: 276 seconds]
18:56
<
d_bot >
<mbacarella> lol what's this emoji
18:56
<
d_bot >
<mbacarella> :ocaml:
18:56
<
d_bot >
<mbacarella> laser eyed camel, brilliant
19:03
Anarchos has joined #ocaml
19:04
<
d_bot >
<mbacarella> * Watch mode now default to clearing the terminal on rebuild (#5636, fixes, #5216, @rgrinberg)
19:05
<
d_bot >
<mbacarella> i didn't even realize i desperately wanted that
19:05
<
d_bot >
<mbacarella> i was just doing it mindlessly by hand
19:15
Corbin has quit [Remote host closed the connection]
19:18
Corbin has joined #ocaml
19:37
Tuplanolla has joined #ocaml
19:40
rgrinberg has joined #ocaml
19:49
hyphen has joined #ocaml
19:49
<
d_bot >
<rgrinberg> Glad you like it
19:50
<
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
19:52
<
d_bot >
<VPhantom> It's considered finished? I thought it was still in development. 🤔
19:56
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:00
<
brettgilio >
If it is listed beta and still directs to dev.* i'd just say it isnt done done
20:00
<
brettgilio >
It may never be done for all I know
20:00
<
brettgilio >
It might always be a living book
20:00
<
brettgilio >
but somebody should ask
20:02
rgrinberg has joined #ocaml
20:02
<
d_bot >
<Minicorgi> so why does it read "published in Q4" ?
20:03
<
brettgilio >
There used to also be a way to get an offline PDF
20:04
<
brettgilio >
but Idk how to do that anymore either
20:12
<
d_bot >
<denis631> Hey guys, I have a question about OCaml FFI.
20:12
<
d_bot >
<denis631> I want to call a function and pass a `session **session_ptr_ptr` pointer, such that it initializes the data.
20:12
<
d_bot >
<denis631> How should I do it in OCaml?
20:12
<
d_bot >
<denis631> Here is the C API:
20:12
<
d_bot >
<denis631> ```C
20:12
<
d_bot >
<denis631> int __F(open_session)(WT_CONNECTION *connection,
20:12
<
d_bot >
<denis631> WT_EVENT_HANDLER *event_handler,
20:12
<
d_bot >
<denis631> const char *config,
20:12
<
d_bot >
<denis631> WT_SESSION **sessionp);
20:12
<
d_bot >
<denis631> ```
20:12
<
d_bot >
<denis631> And I try to allocate the pointer by using the allocate method, namely:
20:12
<
d_bot >
<denis631> `let session_ptr_ptr = allocate (ptr session_t) (from_voidp session_t null)`
20:12
<
d_bot >
<denis631> But when I look at the printfs, then the address in C is different from the address in OCaml.
20:13
<
d_bot >
<denis631> In C the `*sessionp` is not equal to `NULL`, but when the call finishes the `!@session_ptr_ptr` is still `NULL`.
20:13
<
d_bot >
<denis631> PS. Do I have to provide all the fields of a C struct when performing the bindings?
20:15
olle has quit [Remote host closed the connection]
20:22
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:24
rgrinberg has joined #ocaml
20:28
gravicappa has quit [Ping timeout: 256 seconds]
20:32
rgrinberg has quit [Ping timeout: 260 seconds]
20:49
Anarchos has quit [Quit: Vision[]: i've been blurred!]
21:07
DNH has quit [Ping timeout: 272 seconds]
21:12
hyphen has quit [Ping timeout: 272 seconds]
21:12
wingsorc has joined #ocaml
21:21
DNH has joined #ocaml
21:54
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
21:54
Tuplanolla has quit [Quit: Leaving.]
21:55
Haudegen has joined #ocaml
22:01
olle has joined #ocaml
22:04
vicfred has joined #ocaml
22:05
xgqt has quit [Ping timeout: 240 seconds]
22:06
xgqt has joined #ocaml
22:20
xenu has quit [Read error: Connection reset by peer]
22:20
xenu has joined #ocaml
22:26
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:33
mima has joined #ocaml
22:41
Haudegen has quit [Ping timeout: 276 seconds]
22:45
rgrinberg has joined #ocaml
22:46
rgrinberg has quit [Client Quit]
22:49
rgrinberg has joined #ocaml
23:03
bobo has quit [Ping timeout: 240 seconds]
23:03
bobo has joined #ocaml
23:08
hyphen has joined #ocaml
23:18
dhil has quit [Ping timeout: 256 seconds]
23:25
hexology- has joined #ocaml
23:28
olle has quit [Ping timeout: 240 seconds]
23:39
hexology- is now known as hexology
23:39
hexology is now known as hexology-
23:40
hexology- is now known as hexology