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/
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
<companion_cube> oh there's a cstruct-unix? ok
<haesbaert> companion_cube: there was at some point, lemecheck
wonko has quit [Ping timeout: 244 seconds]
<haesbaert> oh cstruct-unix is just a Cstruct mmap
qwr has joined #ocaml
mbuf has quit [Quit: Leaving]
wonko has joined #ocaml
Serpent7776 has quit [Quit: WeeChat 1.9.1]
Haudegen has quit [Quit: Bin weg.]
bitblit has quit [Quit: You have been kicked for being idle]
williewillus has joined #ocaml
wonko has quit [Ping timeout: 268 seconds]
Tuplanolla has joined #ocaml
cedric has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
jpds1 has quit [Write error: Connection reset by peer]
adanwan_ has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
jpds1 has joined #ocaml
adanwan has joined #ocaml
azimut has joined #ocaml
Serpent7776 has joined #ocaml
jpds1 has quit [Ping timeout: 258 seconds]
jpds1 has joined #ocaml
dwt_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
dwt_ has joined #ocaml
wonko has joined #ocaml
bartholin has quit [Quit: Leaving]
bobo_ has joined #ocaml
spip has quit [Ping timeout: 265 seconds]
oriba has joined #ocaml
wonko has quit [Ping timeout: 244 seconds]
perrierjouet has quit [Quit: WeeChat 3.6]
perrierjouet has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 264 seconds]
sagax has quit [Read error: Connection reset by peer]
Serpent7776 has quit [Ping timeout: 268 seconds]
olle has quit [Ping timeout: 250 seconds]
waleee has joined #ocaml
wonko has joined #ocaml
wonko has quit [Ping timeout: 250 seconds]
rgrinberg has joined #ocaml
habnabit_ has quit [Ping timeout: 255 seconds]
habnabit_ has joined #ocaml