azimut has quit [Read error: Connection reset by peer]
adanwan has quit [Read error: Connection reset by peer]
Soni has quit [Ping timeout: 248 seconds]
adanwan has joined #ocaml
azimut has joined #ocaml
Soni has joined #ocaml
<sleepydog>
I'm just checking here, in case I missed something; I want to get data from a file descriptor into a Bigarray (a Cstruct.t, really). I am not interested in using Lwt or Async, but the Cstruct module only provides read functions in its lwt and async sub-modules, and the stdlib doesn't seem to have I/O for bigarrays.
<sleepydog>
Is there a small package that I can use or should I just write my own C bindings?
spip has joined #ocaml
bobo_ has quit [Ping timeout: 268 seconds]
waleee has quit [Ping timeout: 268 seconds]
bobo_ has joined #ocaml
spip has quit [Ping timeout: 268 seconds]
chrisz has quit [Ping timeout: 268 seconds]
chrisz has joined #ocaml
<companion_cube>
is it async IO?
azimut has quit [Ping timeout: 258 seconds]
Haudegen has joined #ocaml
adanwan_ has joined #ocaml
adanwan has quit [Remote host closed the connection]
pieguy128_ has joined #ocaml
pieguy128 has quit [Ping timeout: 268 seconds]
gopiandcode has quit [Read error: Connection reset by peer]
gopiandcode has joined #ocaml
<sim642>
I haven't used cstruct but there appears to be cstruct-unix
adanwan has joined #ocaml
adanwan_ has quit [Ping timeout: 258 seconds]
Serpent7776 has joined #ocaml
Serpent7776 has quit [Ping timeout: 268 seconds]
mbuf has joined #ocaml
Serpent7776 has joined #ocaml
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
williewillus has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
<haesbaert>
sleepydog: I endered up writing my own, actually copied from Lwt-unix which provided the C binding
<haesbaert>
*ended
williewillus has joined #ocaml
williewillus has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
adanwan has quit [Ping timeout: 258 seconds]
adanwan_ has joined #ocaml
pqwy[m] has quit [Quit: Bridge terminating on SIGTERM]
mclovin has quit [Quit: Bridge terminating on SIGTERM]
OCamlPro[m] has quit [Quit: Bridge terminating on SIGTERM]
mclovin has joined #ocaml
bartholin has joined #ocaml
m5zs7k has quit [Ping timeout: 248 seconds]
m5zs7k has joined #ocaml
olle has joined #ocaml
pqwy[m] has joined #ocaml
OCamlPro[m] has joined #ocaml
troydm has quit [Ping timeout: 265 seconds]
theblatte has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
<theblatte>
the latest 2 versions of menhir interact badly with flambda for me and it seems that compilation with -O3 diverges or at least doesn't terminate after a few hours (instead of ~5 minutes). Reverting to menhir.20211128 works
bitblit has joined #ocaml
<theblatte>
is this a known problem? getting a small repro might be tricky, I'm getting this issue when building infer
John_Ivan has joined #ocaml
troydm has joined #ocaml
mbuf has quit [Remote host closed the connection]
mbuf has joined #ocaml
azimut has joined #ocaml
mbuf has quit [Ping timeout: 265 seconds]
mbuf has joined #ocaml
Haudegen has joined #ocaml
serpent has joined #ocaml
serpent has quit [Ping timeout: 250 seconds]
wonko has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.6]
<sleepydog>
companion_cube: no, sync I/O from a Thread
<sleepydog>
haesbaert: good to know, I'll probably go that route too.
<olle>
Another question on AST and types
<olle>
Some types are value types and can be copied automatically by C; other types a reference types and are NOT copied
<olle>
Is it adviced to use 'a type params to the "type" type in the AST?
<olle>
type typ 'a = Int
wonko has quit [Ping timeout: 268 seconds]
<olle>
Problem is that the struct type can be both by value and ref
<olle>
Or maybe it's easier to just do Struct_value and Struct_ref, and then `let is_value_type t = match t with | Int | Float | Struct_value -> true`
John_Ivan_ has joined #ocaml
John_Ivan__ has joined #ocaml
John_Ivan has quit [Ping timeout: 265 seconds]
John_Ivan_ has quit [Ping timeout: 268 seconds]
bobo_ has quit [Read error: Connection reset by peer]
spip has joined #ocaml
mbuf has quit [Read error: Connection reset by peer]
mbuf has joined #ocaml
<companion_cube>
haesbaert: could they go in ext-unix?
qwr has quit [Ping timeout: 252 seconds]
szkl has quit [Quit: Connection closed for inactivity]
perrierjouet has joined #ocaml
wonko has joined #ocaml
<haesbaert>
companion_cube: sure, but I think they belong in cstruct-unix more than ext-unix