00:07
urdh29 has joined #ocaml
00:07
urdh29 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
00:09
leastbit has joined #ocaml
00:10
drot17 has joined #ocaml
00:10
drot17 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
00:12
leastbit has quit [Client Quit]
00:25
FreeBirdLjj has joined #ocaml
00:26
dindon has joined #ocaml
00:26
dindon has quit [Killed (Sigyn (Spam is off topic on freenode.))]
00:30
FreeBirdLjj has quit [Ping timeout: 256 seconds]
00:30
JimmyRcom has quit [Remote host closed the connection]
00:37
AbbeyRipstra6 has joined #ocaml
00:37
AbbeyRipstra6 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
00:40
FreeBirdLjj has joined #ocaml
00:45
FreeBirdLjj has quit [Ping timeout: 244 seconds]
01:02
quipa has quit [Ping timeout: 256 seconds]
01:03
Denommus has joined #ocaml
01:03
FreeBirdLjj has joined #ocaml
01:08
FreeBirdLjj has quit [Ping timeout: 256 seconds]
01:11
ygrek has joined #ocaml
01:26
FreeBirdLjj has joined #ocaml
01:30
FreeBirdLjj has quit [Ping timeout: 244 seconds]
01:31
pierpal has joined #ocaml
01:32
moei has quit [Quit: Leaving...]
01:38
pierpal has quit [Ping timeout: 264 seconds]
01:45
pierpal has joined #ocaml
01:47
Haudegen has quit [Remote host closed the connection]
01:57
silver has quit [Read error: Connection reset by peer]
01:59
FreeBirdLjj has joined #ocaml
02:09
FreeBirdLjj has quit [Ping timeout: 256 seconds]
02:10
Zx38 has joined #ocaml
02:10
Zx38 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
02:13
pierpa has quit [Quit: Page closed]
02:24
Holo20 has joined #ocaml
02:24
Holo20 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
02:25
tormen_ has joined #ocaml
02:28
tormen has quit [Ping timeout: 256 seconds]
02:33
Guest36629 has joined #ocaml
02:33
Guest36629 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
02:53
Ricardus0 has joined #ocaml
02:53
Ricardus0 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
02:59
JimmyRcom has joined #ocaml
03:12
christophegx has joined #ocaml
03:12
christophegx has quit [Killed (Sigyn (Spam is off topic on freenode.))]
03:16
mbuf has joined #ocaml
03:18
mfp has quit [Ping timeout: 240 seconds]
03:19
Guest12588 has quit [Quit: reconnect]
03:20
BurningPrincess1 has joined #ocaml
03:20
BurningPrincess1 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
03:27
Madars has joined #ocaml
03:39
zolk3ri has quit [Quit: leaving]
03:45
Cprossu1 has joined #ocaml
03:45
Cprossu1 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
04:21
calcul0n has joined #ocaml
04:21
calcul0n has quit [Killed (Sigyn (Spam is off topic on freenode.))]
04:35
modin29 has joined #ocaml
04:35
modin29 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
04:42
mancha4 has joined #ocaml
04:42
mancha4 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
04:42
TBloemink9 has joined #ocaml
04:42
TBloemink9 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
04:56
mbuf has quit [Ping timeout: 240 seconds]
05:15
mbuf has joined #ocaml
05:30
moei has joined #ocaml
05:36
gshrikant has joined #ocaml
05:55
slackjeff12 has joined #ocaml
05:55
slackjeff12 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
06:11
Fare has quit [Ping timeout: 244 seconds]
06:16
<
xvilka >
does Cstruct from Mirage allows to have nested C structures?
06:24
yaewa has joined #ocaml
06:24
yaewa has quit [Remote host closed the connection]
06:25
JimmyRcom has quit [Quit: Leaving]
06:25
moei has quit [Ping timeout: 256 seconds]
06:42
noitakomentaja has joined #ocaml
06:58
moei has joined #ocaml
07:01
okdas has joined #ocaml
07:01
okdas has quit [Killed (Sigyn (Spam is off topic on freenode.))]
07:01
mengu has joined #ocaml
07:02
gshrikant has quit [Quit: WeeChat 2.1]
07:06
mengu has quit [Ping timeout: 268 seconds]
07:08
noitakomentaja has quit [Quit: WeeChat 2.0.1]
07:08
sagotch has joined #ocaml
07:08
mengu has joined #ocaml
07:09
noitakomentaja has joined #ocaml
07:09
newtmewt has joined #ocaml
07:09
newtmewt has quit [Killed (Sigyn (Spam is off topic on freenode.))]
07:10
lambda has joined #ocaml
07:10
pOe[ has joined #ocaml
07:10
pOe[ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
07:10
lambda is now known as Guest97020
07:13
mengu has quit [Ping timeout: 240 seconds]
07:18
mengu has joined #ocaml
07:19
L0j1k27 has joined #ocaml
07:19
L0j1k27 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
07:19
parisianCoder has quit [Quit: WeeChat 2.2]
07:21
hvxgr19 has joined #ocaml
07:21
hvxgr19 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
07:23
mengu has quit [Ping timeout: 260 seconds]
07:25
parisianCoder has joined #ocaml
07:30
ollehar has joined #ocaml
07:30
mengu has joined #ocaml
07:32
mengu has quit [Remote host closed the connection]
07:32
mengu has joined #ocaml
07:32
mengu has quit [Client Quit]
07:32
ollehar has quit [Read error: Connection reset by peer]
07:32
zv_ has joined #ocaml
07:33
noitakomentaja has quit [Ping timeout: 250 seconds]
07:36
TarVanimelde has joined #ocaml
07:39
TarVanimelde has quit [Client Quit]
07:49
dakk has joined #ocaml
08:00
Guest97020 has quit [Quit: WeeChat 2.2]
08:17
Denommus has quit [Ping timeout: 264 seconds]
08:37
dreamer has joined #ocaml
08:37
gareppa has joined #ocaml
08:38
<
dreamer >
hi all, I'm trying to manually compile an ocaml package, but make says No rule to make target 'all'. any idea if I'm missing something?
08:38
gareppa has quit [Remote host closed the connection]
08:39
<
dreamer >
or alternatively, can I tell opam to install a package from a local source directory?
08:39
<
companion_cube >
you can use `opam pin <path-to-the-local-repo>` (with opam2)
08:40
<
dreamer >
ok, I have 1.2.2
08:41
<
companion_cube >
`opam pin add <path>` then
08:41
<
companion_cube >
anyway, opam pin is the way you can tell opam to use some alternative (local or not) repository for a package
08:41
<
dreamer >
is that path to the opam file?
08:42
<
companion_cube >
to the directory with an opam file in i
08:42
<
companion_cube >
it
08:43
<
dreamer >
hmm, it's calling the package 'gstreamer.dev' instead
08:43
<
dreamer >
and failing
08:44
<
companion_cube >
you miss dependencies
08:45
<
dreamer >
opam depext doesn't find anything
08:45
<
dreamer >
or at least nothing I don't already have
08:46
<
companion_cube >
you probably need to look into the error file, and into the opam file to see how it tries to build stuff, sorry
08:47
<
dreamer >
the dev pushed an update but didn't change the version, so can't tell if the changes are in opam yet
08:47
<
companion_cube >
you can retry with stuff like `opam reinstall <nameofpackage> --yes`, it 's pretty useful
08:47
<
companion_cube >
(it'll reinstall or install ,depending on current state)
08:49
<
dreamer >
nope, same fail. will have to dive in ..
08:50
zv_ has quit [Ping timeout: 256 seconds]
08:51
<
dreamer >
ah, it's using an embedded version of m4/ and linked to its bootstrap
08:52
<
companion_cube >
there's conf-m4 to detect if m5 is installed
08:53
noitakomentaja has joined #ocaml
08:55
<
companion_cube >
m4*
08:55
<
dreamer >
meh. total failure. in a train now so can't dive too deep
08:58
ben_ has joined #ocaml
08:58
<
dreamer >
ok changed the path. finally worked. thnx companion_cube ;)
09:01
<
companion_cube >
:)
09:03
<
dreamer >
too bad the new code totally broke everything ...
09:03
* dreamer
update bugreport
09:04
<
dreamer >
we're having memory issues with ocaml-gstreamer. seems old processes are not being cleaned up properly
09:04
<
dreamer >
so at some point OOMkiller comes by and gives LS a big old suffocating hug
09:06
jaar has joined #ocaml
09:06
<
dreamer >
but now the gstreamer threads seem completely dead :P
09:08
zv_ has joined #ocaml
09:14
zolk3ri has joined #ocaml
09:24
ygrek has quit [Ping timeout: 256 seconds]
09:30
mfp has joined #ocaml
09:34
Mr_Sheesh has joined #ocaml
09:34
Mr_Sheesh has quit [Killed (Sigyn (Spam is off topic on freenode.))]
09:43
quipa has joined #ocaml
09:47
shakalaka has joined #ocaml
10:07
Sigals has joined #ocaml
10:08
Sigals has quit [Killed (Sigyn (Spam is off topic on freenode.))]
10:10
ziyourenxiang has joined #ocaml
10:57
Checking has joined #ocaml
10:57
Checking has quit [Killed (Sigyn (Spam is off topic on freenode.))]
11:00
jaar has quit [Remote host closed the connection]
11:00
jaar has joined #ocaml
11:04
sgnb` has quit [Remote host closed the connection]
11:04
sgnb has joined #ocaml
11:04
tobiasBora has quit [Ping timeout: 248 seconds]
11:08
tobiasBora has joined #ocaml
11:14
sagotch has quit [Quit: Leaving.]
11:15
silver has joined #ocaml
11:24
tobiasBora has quit [Ping timeout: 248 seconds]
11:34
pierpal has quit [Quit: Poof]
11:34
pierpal has joined #ocaml
11:43
tobiasBora has joined #ocaml
11:46
mbuf has quit [Quit: Leaving]
11:50
Meanderthal19 has joined #ocaml
11:51
Meanderthal19 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
11:53
Haudegen has joined #ocaml
11:59
sagotch has joined #ocaml
12:01
pierpal has quit [Ping timeout: 240 seconds]
12:09
ben_ has quit [Remote host closed the connection]
12:12
tobiasBora has quit [Ping timeout: 240 seconds]
12:16
cooled has joined #ocaml
12:16
cooled has quit [Killed (Sigyn (Spam is off topic on freenode.))]
12:21
ben_ has joined #ocaml
12:25
tobiasBora has joined #ocaml
12:25
Fare has joined #ocaml
12:34
spew has joined #ocaml
12:37
silver_ has joined #ocaml
12:41
silver has quit [Ping timeout: 260 seconds]
12:45
Bronsa has quit [Ping timeout: 248 seconds]
12:48
Bronsa has joined #ocaml
13:00
pierpal has joined #ocaml
13:08
armyriad14 has joined #ocaml
13:13
armyriad14 has quit [Ping timeout: 240 seconds]
13:13
_andre has joined #ocaml
13:18
cryptocat1094 has joined #ocaml
13:18
nicoo has quit [Ping timeout: 250 seconds]
13:18
pOe[ has joined #ocaml
13:19
pOe[ has quit [Killed (Unit193 (Spam is not permitted on freenode.))]
13:21
nicoo has joined #ocaml
13:26
Fare has quit [Ping timeout: 256 seconds]
13:28
jbrown has joined #ocaml
13:30
Meanderthal28 has joined #ocaml
13:35
Meanderthal28 has quit [Ping timeout: 240 seconds]
13:51
pierpal has quit [Ping timeout: 240 seconds]
13:54
pierpal has joined #ocaml
13:55
noitakomentaja has quit [Ping timeout: 250 seconds]
13:58
caente has joined #ocaml
13:58
noitakomentaja has joined #ocaml
14:02
Fare has joined #ocaml
14:09
Guest51813 has left #ocaml [#ocaml]
14:10
pierpal has quit [Quit: Poof]
14:10
pierpal has joined #ocaml
14:17
mbuf has joined #ocaml
14:18
xuanrui has joined #ocaml
14:18
xuanrui has quit [Remote host closed the connection]
14:22
_xvilka_ has joined #ocaml
14:23
rjungemann_ has joined #ocaml
14:23
fredcy_ has joined #ocaml
14:24
ilovezfs__ has joined #ocaml
14:24
Khady_ has joined #ocaml
14:25
wagle_ has joined #ocaml
14:25
erwounn_ has joined #ocaml
14:26
fredcy has quit [Ping timeout: 240 seconds]
14:26
rjungemann has quit [Ping timeout: 240 seconds]
14:26
ilovezfs_ has quit [Ping timeout: 240 seconds]
14:26
tg has quit [Ping timeout: 240 seconds]
14:26
xvilka has quit [Ping timeout: 240 seconds]
14:26
erwounn has quit [Ping timeout: 240 seconds]
14:26
ejpcmac has quit [Ping timeout: 240 seconds]
14:26
sven[m] has quit [Ping timeout: 240 seconds]
14:26
maufred has quit [Ping timeout: 240 seconds]
14:26
wagle has quit [Ping timeout: 240 seconds]
14:26
Khady has quit [Ping timeout: 240 seconds]
14:26
groovy2shoes has quit [Ping timeout: 240 seconds]
14:26
aubian has quit [Ping timeout: 240 seconds]
14:26
rjungemann_ is now known as rjungemann
14:27
maufred has joined #ocaml
14:27
aubian has joined #ocaml
14:28
Khady_ has joined #ocaml
14:28
Khady_ has quit [Changing host]
14:28
Khady_ is now known as Khady
14:28
sven[m] has joined #ocaml
14:30
ejpcmac has joined #ocaml
14:30
groovy2shoes has joined #ocaml
14:30
tg has joined #ocaml
15:01
leastbit has joined #ocaml
15:02
leastbit has quit [Client Quit]
15:09
c4rc4s has quit [Ping timeout: 276 seconds]
15:09
c4rc4s has joined #ocaml
15:12
FreeBirdLjj has joined #ocaml
15:14
noitakomentaja has quit [Ping timeout: 250 seconds]
15:16
c4rc4s has quit [Ping timeout: 276 seconds]
15:22
mancha18 has joined #ocaml
15:22
mancha18 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
15:22
Fare has quit [Ping timeout: 240 seconds]
15:22
<
dmbaturin >
Why bucklescript uses int32 for integers by default?
15:26
dakk_ has joined #ocaml
15:28
<
Drup >
dmbaturin: because javascript doesn't have integers, so you have to fit integers into the mantise of a float
15:29
asdf123 has quit [Ping timeout: 248 seconds]
15:29
dakk has quit [Ping timeout: 260 seconds]
15:30
Fare has joined #ocaml
15:35
<
dmbaturin >
Drup: Ah, I see.
15:36
Fare has quit [Ping timeout: 264 seconds]
15:37
psnively has joined #ocaml
15:38
Fare has joined #ocaml
15:42
jun_ has quit [Quit: WeeChat 1.6]
15:42
<
dmbaturin >
Also, I wonder why exactly clojure didn't do a similar transformation for tail recursion that bucklescript is doing.
15:43
asdf123 has joined #ocaml
15:44
Fare has quit [Ping timeout: 264 seconds]
15:45
sagotch has quit [Quit: Leaving.]
15:47
<
Armael >
Hum, which is?
15:50
totte has joined #ocaml
15:51
totte has quit [Killed (Sigyn (Spam is off topic on freenode.))]
15:51
c4rc4s has joined #ocaml
15:51
asdf123 has quit [Ping timeout: 240 seconds]
15:54
<
Armael >
Ok. I assume it only works for simple enough recursion patterns (as in jsoo)
15:54
Haudegen has quit [Ping timeout: 248 seconds]
15:56
<
Armael >
(or rather that it stops working for complicated enough cases)
15:59
rixed has joined #ocaml
15:59
FreeBirdLjj has quit [Remote host closed the connection]
16:00
<
dmbaturin >
Armael: I'm going to try and see if I can make it break down. :)
16:01
<
Drup >
try mutually recursive functions in monadic style
16:02
<
dmbaturin >
Right now I'm trying to figure how to properly use getElementById and stuff.
16:05
asdf123 has joined #ocaml
16:10
neatonk has quit [Remote host closed the connection]
16:12
FreeBirdLjj has joined #ocaml
16:13
neatonk has joined #ocaml
16:14
c4rc4s has quit [Ping timeout: 276 seconds]
16:19
c4rc4s has joined #ocaml
16:19
cyberlard24 has joined #ocaml
16:19
cyberlard24 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
16:20
jun has joined #ocaml
16:22
jun has quit [Client Quit]
16:22
Fare has joined #ocaml
16:24
jbrown has quit [Ping timeout: 260 seconds]
16:24
jun has joined #ocaml
16:28
superherointj has joined #ocaml
16:28
noitakomentaja has joined #ocaml
16:29
ziyourenxiang has quit [Ping timeout: 248 seconds]
16:29
jun has quit [Quit: WeeChat 1.6]
16:29
jun has joined #ocaml
16:30
badon25 has joined #ocaml
16:30
badon25 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
16:33
Fare has quit [Ping timeout: 244 seconds]
16:39
superherointj has quit [Quit: Leaving]
16:40
superherointj has joined #ocaml
16:42
superherointj has quit [Client Quit]
16:43
ollehar3 has joined #ocaml
16:44
Haudegen has joined #ocaml
16:44
pierpal has quit [Quit: Poof]
16:45
pierpal has joined #ocaml
16:51
ben_ has quit [Remote host closed the connection]
16:55
Fare has joined #ocaml
16:59
dakk_ has quit [Remote host closed the connection]
17:01
jaar has quit [Quit: Leaving]
17:03
Bronsa has quit [Ping timeout: 264 seconds]
17:03
ollehar3 has quit [Read error: Connection reset by peer]
17:04
noitakomentaja has quit [Ping timeout: 250 seconds]
17:06
FreeBirdLjj has quit [Remote host closed the connection]
17:07
FreeBirdLjj has joined #ocaml
17:09
ohnx23 has joined #ocaml
17:09
ohnx23 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
17:10
ollehar3 has joined #ocaml
17:11
FreeBirdLjj has quit [Ping timeout: 244 seconds]
17:11
ollehar3 has quit [Client Quit]
17:18
tokomak has joined #ocaml
17:20
noitakomentaja has joined #ocaml
17:28
Fare has quit [Ping timeout: 248 seconds]
17:32
caente has quit [Remote host closed the connection]
17:40
noitakomentaja has quit [Ping timeout: 250 seconds]
17:44
al-damiri has joined #ocaml
17:57
caente has joined #ocaml
17:58
caente has quit [Remote host closed the connection]
17:58
mbuf has quit [Ping timeout: 240 seconds]
17:59
mbuf has joined #ocaml
17:59
letoh_ has joined #ocaml
18:01
Fare has joined #ocaml
18:02
letoh has quit [Ping timeout: 264 seconds]
18:02
letoh_ has left #ocaml [#ocaml]
18:10
Kinsmir9 has joined #ocaml
18:10
Kinsmir9 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
18:11
cross has joined #ocaml
18:13
noitakomentaja has joined #ocaml
18:17
mbuf has quit [Quit: Leaving]
18:22
coventry has joined #ocaml
18:23
<
coventry >
Is there a way to tell dune to run tests in series rather than parallel?
18:29
<
Fare >
I believe you may try dune runtest -j 1
18:36
hnrgrgr has joined #ocaml
18:43
noitakomentaja has quit [Ping timeout: 250 seconds]
18:51
ben_ has joined #ocaml
18:55
ben_ has quit [Ping timeout: 240 seconds]
19:01
<
reynir >
(it's the classic odd/even mutual recursion definition)
19:08
jnavila has joined #ocaml
19:09
Jesin has joined #ocaml
19:15
<
Drup >
Wait, jsoo handles that one
19:15
<
Drup >
using trampolines
19:16
ben_ has joined #ocaml
19:22
<
Drup >
Doesn't even use trampolines for that one
19:24
<
Drup >
I remember bobzhang saying that bs's TCE was complete, and for some reason, I believed him ~~'
19:25
Jesin has quit [Remote host closed the connection]
19:25
ben_ has quit [Ping timeout: 244 seconds]
19:26
<
reynir >
Maybe he broke it :P
19:27
<
reynir >
Apparently Safari has proper tail calls
19:28
Jesin has joined #ocaml
19:30
<
Drup >
reynir: did you saw the tyre link I send you ?
19:31
<
reynir >
Can you perhaps ping me again tomorrow? I think I'm a bit too tired right now to read it
19:32
<
Drup >
Bah, you have time
19:32
<
reynir >
Yes, I have time, but my brain is not functioning right now :)
19:34
<
Drup >
No, I meant, I'm not going to pursue this right now
19:34
<
Drup >
You have time to read it and form an opinion
19:41
ben_ has joined #ocaml
19:53
haza-w0 has joined #ocaml
19:53
haza-w0 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
19:55
kakadu has joined #ocaml
19:59
MillerBoss1 has joined #ocaml
19:59
MillerBoss1 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
20:01
<
companion_cube >
adrien: from the discord bridge perspective, I wonder if requiring auth isn't more difficult to achieve than requiring TLS
20:04
jbrown has joined #ocaml
20:08
<
spew >
I wrote a program that calls fork and that means that it executes the main code of the program twice, since it evaluates the main (e.g. top-level) module of the program twice
20:08
<
spew >
is there a standard way to avoid that?
20:11
<
companion_cube >
hmm it shouldn't, the child continues from the same point as the parent
20:11
<
spew >
it evaluates the top-level of all the modules again
20:11
<
spew >
I can put print statements in any module and those will print twice as well
20:12
<
spew >
I am very confused
20:12
al-damiri has quit [Quit: Connection closed for inactivity]
20:13
<
spew >
so is that not normal?
20:15
<
spew >
so I have something in the "main" module that is "let () = (...)" which is the main entrypoint to the program
20:15
<
spew >
and that is getting evaluated again when I fork
20:16
<
reynir >
Can you make a small/minimal case?
20:24
<
spew >
it prints "top level module", "about to fork", and "evaluating main" twice
20:24
<
spew >
that's causing me to evaluate some things twice that I don't want to evaluate
20:24
<
spew >
it's a compiler and it's computing the whole compilation twice
20:25
ygrek has joined #ocaml
20:27
<
reynir >
spew: I fixed it by adding Printf.eprintf "%!" before the fork call
20:27
<
reynir >
so, it's a buffer issue :/
20:28
<
spew >
so it's not compiling again
20:28
<
spew >
it's just stuff in the buffer
20:28
<
spew >
thank you very much!
20:28
<
spew >
I was so confused
20:28
<
spew >
well thank goodness because that would have been beyond broken
20:32
<
spew >
putting a flush_all in my fork wrapper works like a charm
20:32
<
reynir >
Where does flush_all live, Pervasives? Didn't know of that one!
20:32
<
spew >
it does indeed: hiding in plain sight
20:39
<
companion_cube >
at_exit flush_all; (* just in case *)
20:40
<
spew >
that seems like over-kill
20:40
<
spew >
exit 0 should be enough
20:42
cryptocat1094 has quit [Quit: later]
20:45
jnavila has quit [Remote host closed the connection]
21:08
SkyPatrol has joined #ocaml
21:08
SkyPatrol has quit [Killed (Sigyn (Spam is off topic on freenode.))]
21:17
<
Fare >
I'm trying to make some Lwt code work with a background native thread, and I'm having the hardest time figuring out how to bridge the two.
21:17
<
Fare >
How are the native thread worker and the Lwt threads supposed to communicate with each other, in a way that doesn't block either?
21:17
pierpal has quit [Quit: Poof]
21:18
pierpal has joined #ocaml
21:19
<
Fare >
Also, can anyone explain to me what are the limitations on native threads, since I'm also told there is no multicore processing?
21:20
<
Fare >
And, will C code from a library run in parallel with OCaml code, or won't it?
21:20
<
companion_cube >
in general, things run on only one core
21:21
<
companion_cube >
but C code might release the lock and effectively run in parallel (I think it's done in some numerical stuff)
21:23
<
Fare >
ok, that's what I suspected.
21:23
<
Fare >
now —- how do I get communication between Lwt threads and a thread that mainly runs this C code?
21:23
<
companion_cube >
not sure you can do it in a totally non blocking way
21:24
<
companion_cube >
tbh I'm not experienced with this part of lwt much
21:24
<
Fare >
I was thinking of using Lwt_preemptive.detach to run that thread... but then the thread can't use Lwt primitives, so how is it going to communicate?
21:24
<
Fare >
I can define an Event.channel for communication, but then how do I teach Lwt to not block on that?
21:25
<
Fare >
Fine if I have to use Async instead of Lwt.
21:27
_andre has quit [Quit: leaving]
21:27
<
Drup >
Fare: just use Lwt_stream ?
21:28
mashpotato has joined #ocaml
21:28
<
Drup >
(also, do you always bail after waiting less for 5 minutes for an answer ?)
21:28
mashpotato has quit [Client Quit]
21:33
<
Fare >
bail? no, sorry, I just sometimes have intermittent connection.
21:39
Inception has joined #ocaml
21:39
Inception has quit [Killed (Sigyn (Spam is off topic on freenode.))]
21:42
ben_ has quit [Remote host closed the connection]
21:42
spew has quit [Quit: going home]
21:47
pierpa has joined #ocaml
21:51
<
adrien >
companion_cube: I can't "authentication || tls" for the channel
21:51
<
Fare >
the docs for Lwt_stream says it's deprecated in favor of lwt-pipe...
21:51
<
adrien >
companion_cube: plus, they should be able to handle authentication
21:51
<
adrien >
otherwise it's clearly flawed
21:52
<
adrien >
note that e.g. connecting from tor requires sasl
21:52
<
Fare >
I can't find an obvious way to communicate between system threads and Lwt threads...
21:53
<
Fare >
My current plan: instead of a system thread that processes requests in a loop, move the loop to Lwt and use detach to spawn a separate system thread for every request, and synchronize state when that returns only.
21:54
<
Fare >
That requires some refactoring of my code, but OK.
21:55
Xenthys8 has joined #ocaml
21:55
Xenthys8 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
22:01
Fare has left #ocaml ["Leaving"]
22:04
pierpal has quit [Ping timeout: 256 seconds]
22:08
wagle_ is now known as wagle
22:09
Fare has joined #ocaml
22:10
<
Fare >
Dammit, I closed this channel by mistake, again.
22:10
clockish has quit [Quit: bye]
22:11
clockish has joined #ocaml
22:11
FareTower has joined #ocaml
22:12
silver has joined #ocaml
22:13
silver_ has quit [Ping timeout: 240 seconds]
22:14
nullifidian has quit [Read error: Connection reset by peer]
22:14
nullifidian has joined #ocaml
22:23
kakadu has quit [Remote host closed the connection]
22:25
Jesin has quit [Remote host closed the connection]
22:32
silver_ has joined #ocaml
22:32
silver has quit [Ping timeout: 244 seconds]
22:34
FareTower has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
22:34
FareWell has joined #ocaml
22:35
SKYWARN has joined #ocaml
22:35
SKYWARN has quit [Killed (Sigyn (Spam is off topic on freenode.))]
22:36
silver__ has joined #ocaml
22:40
silver_ has quit [Ping timeout: 268 seconds]
22:42
wiggle has joined #ocaml
22:42
wiggle has quit [Killed (Sigyn (Spam is off topic on freenode.))]
22:45
coventry has quit [Ping timeout: 248 seconds]
22:51
Louis5 has joined #ocaml
22:51
Louis5 has quit [Remote host closed the connection]
23:03
Jesin has joined #ocaml
23:07
mengu has joined #ocaml
23:10
quipa has quit [Quit: Leaving]
23:13
zolk3ri has quit [Quit: leaving]
23:18
caltelt has joined #ocaml
23:21
Jesin has quit [Remote host closed the connection]
23:29
Jesin has joined #ocaml
23:29
coventry has joined #ocaml
23:43
ben_ has joined #ocaml
23:45
BackUP3 has joined #ocaml
23:45
BackUP3 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
23:47
ben_ has quit [Ping timeout: 240 seconds]
23:49
FareWell has quit [Ping timeout: 240 seconds]
23:50
Fare has quit [Ping timeout: 268 seconds]
23:51
mengu has quit [Remote host closed the connection]